GHSL-2025-120: Privilege escalation allows unauthorized users to delete events in Sentry
The issue reprocessing endpoint required only the event:write scope, while the issue delete endpoint required event:admin. A user with only event:write could therefore trigger mass deletion of issue events by setting remainingEvents to delete.
Sentry version 25.11.0 contains a privilege escalation vulnerability where a scope mismatch issue could allow unauthorized users to delete events, potentially compromising the integrity of event data.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
This could allow a user with only event:write scope to delete events they should not be able to delete, compromising event data integrity.
What the attacker needed
An account with event:write scope; access to an issue in a project
The fix
The issue was fixed, though Sentry decided it was not a security vulnerability.
How it was found
- Send a POST request to the issue reprocessing endpoint for a chosen issue.
- Include a remainingEvents value of delete in the request body.
- The server accepts the request because only event:write is required.
- The reprocessing task runs and deletes the remaining events for that issue.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
Sentry lets people work with error events, and some actions are more destructive than others. Deleting events should need a stronger permission than just writing them. Here the reprocessing action could delete events but only checked for the weaker write permission, so someone without delete rights could still wipe event data.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.