A quick P2 vulnerability, just like that !
An undocumented API endpoint intended for super admins to adjust account credit limits was accessible to normal user accounts. An attacker could use it to raise their own credit limit from $100 to $1000.
medium.com
Published on medium.com
This is a brief about how to find, and how i found a quick P2 on a private program, including how i got an invite from them.
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 endpoint relied on being undocumented rather than enforcing an authorisation check, so any authenticated user could call it.
Impact
A normal user could increase their own credit limit, potentially obtaining more paid service than they were entitled to.
What the attacker needed
A normal user account
How it was found
- Browse the product and capture loaded JavaScript files with Burp Suite.
- Search the JavaScript for API endpoints and compare with the documentation.
- Identify an undocumented endpoint for adjusting account credit limits.
- Send a request to that endpoint to raise the account's credit limit.
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 website had a hidden feature meant only for administrators, but ordinary users could still reach it. By finding the address of that feature in the site's code, a user could change their own spending limit without permission.
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.