Re:An XSS on Facebook via PNGs and Wonky Content Types
by yeukhon on Wednesday March 16, 2016 @08:12PM
(#11301715)
> CSP only prevents cross-origin injection of certain resource types (images, scripts, Javascript).
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
by seanwilson on Thursday March 17, 2016 @04:17AM
(#11303108)
> Anyway, CSP clearly isn't useless... but try deploying it on your average Wordpress blog sometime.
What issues have you found with this?
Re:An XSS on Facebook via PNGs and Wonky Content Types
by sangnoir on Thursday March 17, 2016 @05:05AM
(#11303280)
Not OP, but my guess is random plugins stop working with strict (i.e. secure) policies, if they weren't written with CSP in mind.
Re:An XSS on Facebook via PNGs and Wonky Content Types
by nly on Thursday March 17, 2016 @07:18AM
(#11303671)
Its not really plugins. The vast majority of wordpress themes out there come with inline css, inline javascript, and prebaked dependencies on things like jquery and google fonts hosted on 3rd party CDNs.
Re:An XSS on Facebook via PNGs and Wonky Content Types
by seanwilson on Thursday March 17, 2016 @06:06AM
(#11303475)
Bad for development time but good for security then I'd guess.
Anyway, CSP clearly isn't useless... but try deploying it on your average Wordpress blog sometime.