Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle X-XSS-Protection violation reports #2190

Closed
reedloden opened this issue Oct 15, 2015 · 6 comments
Closed

Handle X-XSS-Protection violation reports #2190

reedloden opened this issue Oct 15, 2015 · 6 comments

Comments

@reedloden
Copy link
Contributor

Similar to #729 and #2165, WebKit (and Chrome) also supports a non-standard report addition to X-XSS-Protection (https://bugs.webkit.org/show_bug.cgi?id=100892) that will send a JSON-based report to a URI for any violations.

See https://gist.github.com/spaze/c91b692fc988ff1d13e8 for an example. You can see a live example on https://www.youtube.com.

Would be nice to support it in Sentry. :)

cc @mattrobenolt again.

@mattrobenolt
Copy link
Contributor

Oh boy, this is neat. :)

I think I'm going to refactor the CSP stuff I did to accept these arbitrary reports rather than being locked into how I structured CSP.

Thanks for this guidance! Really appreciated.

@mattrobenolt
Copy link
Contributor

btw @reedloden, are you guys using Sentry at HackerOne? You can email me personally if you want to chat, or hip in IRC #sentry.

@reedloden
Copy link
Contributor Author

@alex-hofsteede Here's another one. It's a different format than the others, sadly.

@reedloden
Copy link
Contributor Author

These reports being implemented elsewhere: https://scotthelme.co.uk/introducing-xss-reporting-to-report-uri/

Would love to get support in Sentry for them.

@tfoel
Copy link

tfoel commented Jun 18, 2018

Sentry is already better in terms of GDPR compliance than report-uri (see above) - so it would indeed be great to have support for such reportings. There's also CSP, Expect-CT that could be handled.

@BYK
Copy link
Member

BYK commented Oct 21, 2020

Closing this issue due to staleness. Feel free to comment here if you think we should still work on this.

@BYK BYK closed this as completed Oct 21, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants