Open patrakov opened 2 years ago
This would all be solvable if it was possible to add a custom issue grouping fingerprint rule where the script_sample
was added to the fingerprint. Unfortunately that's not supported at the moment.
Thanks for bringing this up. I'm going to add this to the Issues backlog
Routing to @getsentry/product-owners-issues for triage ⏲️
Environment
self-hosted (https://develop.sentry.dev/self-hosted/)
Version
22.1.0
Steps to Reproduce
The report looks like this:
Expected Result
Not sure. Maybe something that takes
script_sample
into account, and warns if the policy doesn't havereport-sample
?Additionally, the ability to write a rule that says "all CSP reports with
script_sample
equal to(function injected(eventName, injectedIn
are caused by AdBlock and should be ignored" would be good.Actual Result
...which probably means that all "Blocked 'script' from 'eval:'" reports are grouped together. This particular CSP violation is caused by Adblock (and I have confirmed this with one user), but I would definitely not want this to be grouped together with real almost-successful XSS attempts.