Privilege Escalation in Collaborative Platforms — BugBounty
A collaborative platform did not invalidate session tokens when a user's role was downgraded, and it did not check the user's current role on each request. An attacker with a previously captured admin session token could replay requests to perform admin-only actions such as removing administrators or deleting a board.
بِسْ� ِ اللَّهِ الرَّحْ� َنِ الرَّحِي� ِ وبه نستعين والصلاة والسلا� على اشرف الانبياء وال� رسلين سيدنا � ح� د صلى اللًّه عليه وسل� الله� ارزقنا � ع العل� تقوى تعص� نا � ن السيئات وتعيننا على الطاعات الله� انصر اخواننا ال� ستضعفين في كل بقاع الأرض واج� ع ش� ل ال� سل� ين ووحده� على كل� ه الحق والدين
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 platform authenticated requests using session tokens but did not re-check the user's current role or invalidate tokens after a role change.
Impact
An attacker could retain administrative control, modify or delete sensitive data, remove legitimate administrators, and disrupt workflows.
What the attacker needed
Victim admin account; attacker account with temporary admin; ability to intercept requests
The fix
The platform should invalidate session tokens when a user's role changes and verify the user's current role on every request.
How it was found
- Create an admin account, set up a workspace, and invite a second account.
- Temporarily grant admin privileges to the second account and share a board with admin permissions.
- Intercept the request that removes an admin from the board.
- Downgrade the second account from admin to member and restrict board actions to admins only.
- Replay the captured delete request using the attacker's current valid session token.
- Observe that the request succeeds with a 200 OK response despite the downgrade.
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 you log in, the site gives your browser a session token, like a temporary pass. If an admin is demoted, the site should throw away that pass and check your role every time you do something. Here it did not, so an old admin pass still worked for admin actions.
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.