An XSS on Facebook via PNGs and Wonky Content Types
11–20 of 48 posts
Re: An XSS on Facebook via PNGs and Wonky Content Types
#12Re: An XSS on Facebook via PNGs and Wonky Content Types
#13and they say CSP is useless...
Anyway, CSP clearly isn't useless... but try deploying it on your average Wordpress blog sometime.
Re: An XSS on Facebook via PNGs and Wonky Content Types
#14and they say CSP is useless...
I don't think CSP could have prevented this? Facebook.com is already CSP enabled, but CSP only prevents cross-origin injection of certain resource types (images, scripts, Javascript). This attack originated from Facebooks own domain and was served (well, sniffed) as HTML. Anyway, CSP clearly isn't useless... but try deploying it on your average Wordpress blog sometime.
Are you sure ONLY? Enable CSP on a XSS-vulnerable website, send a payload, CSP prevents XSS from executing if your policy say so.
Re: An XSS on Facebook via PNGs and Wonky Content Types
#15Re: An XSS on Facebook via PNGs and Wonky Content Types
#16Man, I work as a frontend engineer at one of the big tech companies and I understood like 25% of this post. And that's not meant to be a criticism, I'm just reflecting on my total ignorance of most security vulnerabilities. I know about and having implemented some measures against XSS / CSRF, but it's clear there are dozens of attack approaches I'm not even aware of. I feel like I have some homework to do.
1. Allowing something that is not HTML (and user-supplied) to be returned by the server with the text/html MIME type, causing the browser to want to parse it as HTML.
2. A link between the CDN (Akamai) domains and a top-level sub-domain on Facebook (i.e. photos.facebook.com was aliased to some Akamai domains).
At this point the attacker is able to serve HTML from a Facebook domain. There are things that could be protected against here, but the attacker has a lot of vectors they can go for at this point.
Re: An XSS on Facebook via PNGs and Wonky Content Types
#17Man, I work as a frontend engineer at one of the big tech companies and I understood like 25% of this post. And that's not meant to be a criticism, I'm just reflecting on my total ignorance of most security vulnerabilities. I know about and having implemented some measures against XSS / CSRF, but it's clear there are dozens of attack approaches I'm not even aware of. I feel like I have some homework to do.
Well, he's a security specialist. And I feel he's figuring out new ways to attack. If you're not an attacker yourself, then I think you'll always lag behind. I'm currently taking a security class and what I'm noticing is that I mistake the complicatedness for complexity but in essence most vulnerabilities and attacks have the same high level overview. What I'm trying to say is: don't feel so bad, if you understood 25…
You conjugated the same word two ways. What do you mean?
Re: An XSS on Facebook via PNGs and Wonky Content Types
#18That is incredibly clever, particularly exploiting DEFLATE to generate text. I would've never thought of that.
Re: An XSS on Facebook via PNGs and Wonky Content Types
#19Earlier quoted context omitted.
Well, he's a security specialist. And I feel he's figuring out new ways to attack. If you're not an attacker yourself, then I think you'll always lag behind. I'm currently taking a security class and what I'm noticing is that I mistake the complicatedness for complexity but in essence most vulnerabilities and attacks have the same high level overview. What I'm trying to say is: don't feel so bad, if you understood 25…
> I mistake the complicatedness for complexity You conjugated the same word two ways. What do you mean?
Re: An XSS on Facebook via PNGs and Wonky Content Types
#20Earlier quoted context omitted.
Well, he's a security specialist. And I feel he's figuring out new ways to attack. If you're not an attacker yourself, then I think you'll always lag behind. I'm currently taking a security class and what I'm noticing is that I mistake the complicatedness for complexity but in essence most vulnerabilities and attacks have the same high level overview. What I'm trying to say is: don't feel so bad, if you understood 25…
> I mistake the complicatedness for complexity You conjugated the same word two ways. What do you mean?
Complex -> complexity
On the other hand, complicatedness is a verb turned into an adjective turned into a noun.
Complicate -> complicated -> complicatedness
I read that as an implication that security concepts are not inherently difficult but are made difficult by people who explain it incorrectly.