Earlier quoted context omitted.
Except discord.com doesn't execute JavaScript, the user's browser does. These are meaningful distinctions that delineate the impact. You aren't "discord.com" if you target someone with an XSS exploit, you've only run a script in a user's session. Whether you can actually do anything with that script or not decides whether you can take over the account or not.
Everybody knows that XSS is a client side exploit, you're acting naive by pretending like we're claiming it gives access to a server and ignoring the fact that having control of the client gives you de facto control of whatever account is logged into the client.
We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
271–280 of 453 posts
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#272Earlier quoted context omitted.
Well, llmslave2 is right. If discord.com executes javascript to conduct user actions, and you can execute javascript on discord.com, you are acting on the account as if you were discord.com
Except discord.com doesn't execute JavaScript, the user's browser does. These are meaningful distinctions that delineate the impact. You aren't "discord.com" if you target someone with an XSS exploit, you've only run a script in a user's session. Whether you can actually do anything with that script or not decides whether you can take over the account or not.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#273fascinating! but this is not a supply-chain attack unless i'm misunderstanding
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#274fascinating! but this is not a supply-chain attack unless i'm misunderstanding
It kinda is no? Discord uses mintlyfly. Minitlifly was vulnerable. And because they got access to mintlifly, discord was now also attackable
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#275Earlier quoted context omitted.
The Flash revisionism I see around here occasionally is bizarre. No, Flash was terrible and killing it was good.
There is artistically no equivalent to Flash ever since it died. Nothing else has allowed someone with artistic skills but no programming skills to create animations and games to the same degree and with the same ease.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#276I suspect Coinbase and others already use CSP.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#277The fact that SVG files can contain scripts was a bit of a mistake. On one hand, the animations and entire interactive demos and even games in a single SVG are cool. But on the other hand, it opens up a serious can of worms of security vulnerabilities. As a result, SVG files are often banned from various image upload tools, they do not unfurl previews, and so on. If you upload an SVG to discord, it just shows the raw…
Would it be possible for messenger apps to simply ignore tags (and accept that this will break a small fraction of SVGs)? Or is that not a sufficient defense?
But you can use an `img` tag (``) and that'll basically Just Work, or use a CSP. I wouldn't rely on sanitizing, but I'd still sanitize.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#278Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#279Earlier quoted context omitted.
is santizing SVGs hard, or just everyone forgets they can contain js?
I gather from the HN discussion that it's not simple to disable scripting in an SVG, in retrospect a tragically missing feature. I guess the next step is to propose a simple "noscripting" attribute, which if present in the root of the SVG doc inhibits all scripting by conforming renderers. Then the renderer layer at runtime could also take a noscripting option, so the rendering context could force it if appropriate.…
Sanitizing is hard to get right by comparison (svgs can reference other svgs) but it's still a good idea.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#280This feels so emblematic of our current era. VC funded vibe coded AI documentation startup somehow gets big name customers who don't properly vet the security of the platform, ship a massive vulnerability that could pwn millions of users and the person who reports the vulnerability gets...$5k. If I recall last week Mintlify wrote a blog post showcasing their impressive(ly complicated) caching architecture. Pretending…
The issue is everyone loves to have everything fronted by a single domain. Most of xss is because of this basic flaw. All of this could have been avoided if discord didn't run their API docs through discord.com