Skip to content
IDOR Write-up Intermediate

From Multiple IDORs leading to Code Execution on a different Host Container

Several endpoints on a hosting platform authorised requests only by a site ID taken from the request, so changing the ID gave access to other users' dashboards, container details and database credentials. A further IDOR on the phpMyAdmin login endpoint let the author log into another user's database container, which they say amounts to taking over the site and executing code.

Rahul Follow

Published on rahulr.in

Here is a short write-up on an interesting bug that I found while testing a Site there won’t be many screenshots of the bug as I can’t disclose any detail about the target.

Rahul R, on rahulr.in

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 the site ID supplied in the request and checked only that a valid session cookie existed, without confirming the session's user owned that site.

Impact

An attacker could read other users' container details and database credentials and log into their database container, which the author says gives control of the whole site and code execution; the text does not show the code execution itself.

How it was found

  1. Log in and open a site dashboard, then change the site ID in the request to another user's ID.
  2. Read the MySQL and SFTP credentials for the other user's site from that response.
  3. Request the phpMyAdmin login endpoint with the victim's site ID to be logged into their database container.

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 hosting platform gives each customer a numbered site, and its pages use that number to decide which site to show. The site never checked that the logged-in person actually owned that number, so anyone could swap in someone else's number and see their pages and secrets. This kind of flaw is called an IDOR: an object is fetched by an identifier without checking the requester is allowed to see it.

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.

Similar reports

View all

Same bug class and techniques, clearest first.

Insecure direct object reference (IDOR)

The lesson behind this report.

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.