Earlier quoted context omitted.
I looked into it for work at some point as we wanted to support SVG uploads. Stripping is not enough to have an inert file. Scripts can also be attached as attributes. If you want to prevent external resources it gets more complex. The only reliable solution would be an allowlist of safe elements and attributes, but it would quickly cause compat issues unless you spend time curating the rules. I did not find an exist…
Shouldn't the ignoring of scripting be done at the user agent level? Maybe some kind of HTTP header to allow sites to disable scripts in SVG ala CORS?
We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
331–340 of 453 posts
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#332It is clear that SVG should not support scripts and CSS in SVG files. Those who need them can simply create HTML with inline SVG tags and scripts. And SVG should contain only shapes, effects and transformations. Or maybe we need a new image format, "SVG without scripts and CSS".
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#333Earlier quoted context omitted.
I feel like the "I'm a 16 year old high school senior" thing is some kind of social engineering- his knowledge seems a bit too broad. But who knows.
There are plenty of competent 16 year olds.
Human intelligence/aptitude has such extreme distributions it's almost unthinkable.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#334Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#335This is a pretty scary exploit, considering how easily it could be abused. Imagine just one link in a tweet, support ticket, or email: https://discord.com/_mintlify/static/evil/exploit.svg . If you click it, JavaScript runs on the discord.com origin. Here's what could happen: - Your Discord session cookies and token could be stolen, leading to a complete account takeover. - read/write your developer applications & we…
Doesn't stealing the cookies/token require a non-HTTP-only session cookie or a token in localstorage? Do you know that Discord puts their secrets in one of those insecure places, or was it just a guess? I believe if you always keep session cookies in secure, HTTP-only cookies, then you are more resilient to this attack. I interviewed frontend devs last year and was shocked how few knew about this stuff.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#336This is a pretty scary exploit, considering how easily it could be abused. Imagine just one link in a tweet, support ticket, or email: https://discord.com/_mintlify/static/evil/exploit.svg . If you click it, JavaScript runs on the discord.com origin. Here's what could happen: - Your Discord session cookies and token could be stolen, leading to a complete account takeover. - read/write your developer applications & we…
>the $4,000 bounty feels like a slap in the face. And serves a reminder crime does pay. In the black market, it would have been worth a bit more.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#337simultaneously there are many opportunities throughout to harden one's app to avoid similar exploits.
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#338Earlier quoted context omitted.
Is that a problem on its own? It's like, encrypted right? Maybe a time sensitive token?
Not a problem in itself. Also, there's not much point of encrypting tokens. The attacker could use the encrypted token to authenticate themselves without having to decrypt. They could just make a request from the victim's own browser. They could do this with cookies too even with httpOnly cookies. XSS is a big problem. If a hacker can inject a script into your front end and make it execute, it's game over. Once they…
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#339Earlier quoted context omitted.
This is what it really comes down to. Browsers are built around origins as the major security boundary. When you use a separate origin, safety comes for free.
Trust doesn’t though - discord.com/docs looks legit, as does docs.discord.com - discord-docs.com immediately sets off red flags
Re: We pwned X, Vercel, Cursor, and Discord through a supply-chain attack
#340Earlier quoted context omitted.
This specific XSS vulnerability may not have been, but the linked RCE vulnerability found by their friend https://kibty.town/blog/mintlify/ certainly would've been worth more than the $5,000 they were awarded. A vulnerability like that (or even a slightly worse XSS that allowed serving js instead of only svg) could've let them register service workers to all visiting users giving future XSS ability at any time, even…
Maybe? I don't know enough about the vulnerability. Is it serverside? Then it isn't worth very much.
>alongside, we can poison the nextjs cache for everyone for any site, allowing mass xss, defacing, etc on any docs site.