A bit of information gathering
An unauthenticated request to the project duplication endpoint returned a verbose HTTP 500 error that leaked a JWT granting edit access to the supplied project. The attacker could then read or write any project whose UUID they knew.
Published on geleta.eu
Unlike probably all web developers I love HTTP 500 errors - they often indicate that something went terribly wrong and there might be a vulnerability. In most cases, you are left with something like this
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 duplication endpoint created a user and issued a JWT before failing, and the error handler returned the full internal error including the token to the unauthenticated caller.
Impact
An unauthenticated attacker could obtain a valid token with edit rights and read or write any project whose UUID they knew, which limits the impact somewhat.
What the attacker needed
No authentication needed; knowledge of a project UUID
How it was found
- Send an unauthenticated request to the project duplication endpoint with a project identifier.
- Observe the HTTP 500 response is much longer than usual.
- Inspect the response body and find JWT tokens.
- Base64-decode the token to see it grants edit access to the supplied project.
- Use the token against the JWT-authenticated download and write endpoints for other projects.
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 JWT is a signed token that proves who you are and what you may do. Here the server created a valid token for a new user with edit rights on a project, then accidentally included that token in an error page shown to anyone. Because the token was valid, the attacker could use it to access projects.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.