Skip to content
Access control Write-up Beginner

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.

Sergey Kashatov Follow

Published on medium.com

Bounty$500 View original

Hi, today I will tell you how I hacked one service and successfully managed to get administrator rights.

Sergey Kashatov, on medium.com

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

  1. Inspect the JavaScript file associated with the site.
  2. Identify administrator API methods in the script.
  3. Send a request to one of those methods.
  4. 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.

More by Sergey Kashatov

View all

1 more disclosed report, best first.

More from ok.ru

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.