How I upgraded my privileges to the administrator of Odnoklassniki’s url shortener
The URL shortener's JavaScript file exposed administrator API methods, and the server did not enforce authorisation on those endpoints. An attacker could call these methods to perform administrative actions.
Published on medium.com
Hi, today I will tell you how I hacked one service and successfully managed to get administrator rights.
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 authorisation checks on administrative API endpoints, which were discoverable from a publicly accessible JavaScript file.
Impact
Any user could perform administrative actions, as the vulnerability was accessible to all users.
What the attacker needed
None
The fix
The issue was fixed by the company.
How it was found
- Inspect the JavaScript file associated with the site.
- Identify administrator API methods in the script.
- Send a request to one of those methods.
- Observe a successful 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.
A website's JavaScript file can reveal hidden API endpoints. If the server does not check who is calling those endpoints, anyone can use them. Here, the admin functions were exposed and callable by any user.
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.