Skip to content
Account takeover Write-up Intermediate

My First Bug Bounty: How I Hijacked an Entire Workspace using a J

The server accepted JWTs with the algorithm set to 'none' and no signature, allowing an attacker to forge tokens for any user. Combined with a GraphQL query that leaked the workspace owner's internal ID and a profile mutation that changed the owner's email, the attacker could reset the password and take over the entire workspace.

Scarabel0x Follow

Published on medium.com

They say you never forget your first bug. After countless hours of reading writeups, watching tutorials, and staring at Burp Suite, the moment you finally see that vulnerability unfold right in front of your eyes is indescribable.

Scarabel0x, on medium.com

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 JWT library was configured to accept the 'none' algorithm without enforcing signature verification, and GraphQL mutations trusted the token's claims without checking the real session.

Impact

An attacker could take over any workspace, remove the original owner, and access all its data, though the text does not state whether any defence limited the exploit.

What the attacker needed

A free account on the platform; ability to intercept HTTP requests; knowledge of the victim's internal user ID

The fix

The developers patched it by strictly enforcing signature validation, disabling the 'none' algorithm, and making GraphQL mutations verify authorization against the actual authenticated session.

How it was found

  1. Intercept a login request and decode the JWT.
  2. Change the JWT header algorithm to 'none' and remove the signature.
  3. Send the modified token and observe a 200 OK response.
  4. Run the PageSideBarMeQuery GraphQL query to obtain the owner's internal user ID.
  5. Forge a JWT with alg=none and the owner's ID in the payload.
  6. Use the forged token to call the ProfileFormUpdateUser mutation and change the owner's email to the attacker's address.

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 JSON Web Token (JWT) is like a signed ID card a website gives you after login. The server is supposed to check the signature to make sure you didn't tamper with it. Here, the server accepted a token that said 'no signature needed', so the attacker could write any user ID into it and pretend to be that person.

What is Account takeover?

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.

More by Scarabel0x

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.