I Popped Admin on a SaaS Platform in 2 HTTP Requests — Here’s
The profile update endpoint passed the raw request body to the ORM, allowing a free user to set their own role to admin and plan to enterprise. The admin user list and scans endpoints then exposed plaintext password reset tokens and base64-encoded private documents, enabling account takeover and bulk data theft.
Published on infosecwriteups.com
It’s a regular Saturday. Burp Suite is open, tea going cold, and I’m staring at a shiny new SaaS platform I just signed up for — free tier, obviously, because we’re frugal like that.
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 backend trusted client-supplied fields on profile update and returned full database rows without filtering, so privilege fields and secrets were exposed and writable.
Impact
An attacker with a free account could become admin, take over any account including the CEO's, and download all 1,630 private documents (96 MB) from 33 users.
What the attacker needed
A free account; Burp Suite or similar tool
The fix
The text says the company patched fast; the recommended fixes are to allowlist update fields, hash reset tokens, add ownership checks, and exclude file data from list responses.
How it was found
- Register a free account and inspect the profile endpoint response.
- Send a profile update request including role, plan, and permissions fields.
- Use the new admin access to fetch the user list and obtain plaintext reset tokens.
- Use a reset token to change another user's password without email access.
- Enumerate scan IDs to read other users' documents.
- Request the admin scans endpoint to download all documents in one response.
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.
The website let users change their profile, but it didn't check which fields they were allowed to change. A user could simply ask to become an admin, and the site agreed. Once admin, they could see everyone's password reset links and download all private files.
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.