The Curious Case of a Patched IDOR and the Rabbit Hole That Foll
An IDOR allowed access to other users' information, and a hardcoded token in JavaScript exposed business emails and admin dashboard endpoints. The login password encryption used AES-ECB with a hardcoded key, enabling password brute forcing.
Published on medium.com
I’m a cybersecurity instructor by day and a bug hunter by night. This is my first time writing a full-on hacking story, so strap in, because this one gets wild.
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 missing server-side authorization checks on object IDs, a hardcoded token in client-side JavaScript, and use of AES-ECB with a hardcoded key for password encryption.
Impact
An attacker could access other users' PII, harvest over 40,000 business emails, access admin dashboard endpoints leaking sensitive information, and potentially brute-force passwords due to weak encryption.
What the attacker needed
Access to the web application; ability to send crafted requests; knowledge of another user's ID
The fix
The organization fixed most of the critical issues, though the text does not detail the specific fixes.
How it was found
- Send a request using another user's ID to an endpoint and observe their information returned.
- Find a login page with a Request Access form and monitor the network request for the business location dropdown.
- Notice the dropdown request returns PII including business emails and uses an authorization token.
- Search the bundled JavaScript for the auth token and find it hardcoded.
- Manipulate the response to match the expected format and gain access to the dashboard.
- Use the retrieved auth token to access admin dashboard endpoints leaking more sensitive information.
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.
An IDOR is when a website lets you see someone else's data just by changing an ID number in a request. Here, the tester also found a secret token inside the website's code that unlocked more data, and a weak password scrambling method that made guessing passwords easier.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.