Escalation of Admin and Supervisor Privileges Enables Organization Takeover and Access to Any…
An IDOR vulnerability in the user settings page allowed an attacker to change the clinic_id parameter to match another organisation's ID, escalating their privileges to admin and supervisor within that organisation. A separate endpoint leaked the clinic_id via an email query, enabling organisation takeover and access to any account.
Published on medium.com
The attack scenario starts with acquiring valid credentials to log into the application, followed by navigating to the user settings page at https://pentest.com/settings/users. Exploiting an Insecure Direct Object Reference (IDOR) vulnerability, the attacker intercepts the request intended for editing user details…
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
Impact
An attacker could take over an organisation, gain admin and supervisor privileges, and access or control any account within that organisation.
What the attacker needed
Valid user account; knowledge of target clinic_id
How it was found
- Log in with valid credentials and go to the user settings page.
- Intercept the request for editing user details.
- Change the clinic_id parameter to the target organisation's clinic_id.
- Adjust request headers and body to impersonate an administrative role.
- Submit the altered request to escalate privileges.
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 (Insecure Direct Object Reference) happens when a website uses an identifier like a clinic ID in a request but doesn't check if you're allowed to use it. Here, by changing that ID to another organisation's ID, the attacker could become an admin of that organisation. A second flaw let anyone find those IDs by entering an email address.
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.