Follow me on
A removed admin's JWT remained valid for 15 minutes, allowing them to send an invitation to themselves and regain admin access, then remove the default admin and become sole admin.
March 03, 2019
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 application did not invalidate JWTs immediately upon admin removal, and also did not check privileges when sending invitations.
Impact
A removed admin could regain full admin access and take over the project, but only within the 15-minute window before the JWT expired.
What the attacker needed
Two accounts: default admin and assigned admin; assigned admin is logged in when removed; action within 15 minutes
How it was found
- Create two accounts: one default admin and one assigned admin.
- Default admin removes the assigned admin while the assigned admin is logged in.
- Assigned admin sends an invitation to their own email using the still-valid JWT.
- Assigned admin accepts the invitation and regains admin access.
- Assigned admin removes the default admin, becoming the only admin.
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.
When an admin is removed from a project, their login token (JWT) should stop working immediately. Here it kept working for 15 minutes, so the removed admin could still perform admin actions like inviting themselves back. This let them take over the project.
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.