850$ IDOR:Unauthorized Session Revokation of any user
A GraphQL mutation that deletes a session did not check that the session belonged to the caller, so any logged-in user could revoke another user's session by supplying its identifier. Because session identifiers were short and predictable, an attacker could guess valid ones and repeatedly log victims out.
infosecwriteups.com
Published on infosecwriteups.com
Codecov is a popular code coverage tool that integrates with various continuous integration (CI) services, helping developers and organizations ensure code quality. It provides detailed coverage reports and facilitates the detection of code issues.
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the deleteSession GraphQL mutation accepted a session identifier from the request and acted on it without verifying that the session belonged to the authenticated caller.
Impact
Attackers could log legitimate users out at will, disrupting their access and acting as a denial of service; the text does not claim account takeover or data theft.
What the attacker needed
A free account; knowledge or guess of victim session ID
The fix
The text says Codecov implemented a fix so that session revocation actions are properly restricted and authenticated.
How it was found
- Log in to the Codecov platform with a normal user account.
- Send a GraphQL mutation to the session deletion endpoint, supplying the target user's session identifier.
- Replace the placeholder with the actual session identifier of the victim.
- Submit the request; a success response means the victim's session was revoked.
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 write-up has not been written yet. The Original tab links to the source.
A session is the record that keeps you logged in after you sign in. The site let any logged-in person ask it to end someone else's session just by naming that session, without checking who owned it. Since the session names were short and easy to guess, an attacker could keep kicking other people out of their accounts.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.