Skip to content
Access control Write-up Intermediate

The Day Admin Access Became an Organisation Takeover

Hardcoded credentials for a borrower-level account were exposed in an API response, and the application trusted a client-modifiable identity parameter in the authentication response, allowing escalation to full administrative access. An attacker could view sensitive financial data including customer bank account numbers and invoice records.

kaivalyagurav8291 Follow

Published on medium.com

I am Kaivalya Gurav, a self-taught cybersecurity researcher focused on identifying real-world application security vulnerabilities, particularly in fintech and Healthcare web platforms.

Kaivalya Gurav, 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 the application trusted client-controlled identity data in the authentication response instead of enforcing server-side role checks, compounded by hardcoded credentials exposed in a client-side request.

Impact

The authorization bypass exposed complete administrative control over the fintech platform’s financial operations, including customer bank account numbers and invoice records exceeding ₹200 crore monthly.

What the attacker needed

Access to the KYC submission workflow; ability to intercept HTTP traffic; a valid borrower-level session

The fix

The administrative interface was subsequently removed, and the report recommends removing hardcoded credentials and enforcing strict server-side role validation.

How it was found

  1. Inspect the KYC submission request and notice hardcoded credentials in the JSON body.
  2. Use search engine dorking to find an internal admin login portal.
  3. Log in with the exposed borrower credentials.
  4. Intercept the authentication response and replace it with a previously captured valid 200 OK response.
  5. Modify the email parameter in the response from the borrower address to an admin address.
  6. Forward the modified response and reload to gain administrative 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.

A web application was sending a username and password inside its own responses, so anyone watching network traffic could see them. Worse, after logging in, the app believed whatever email address the user's browser sent back, so a user could simply change that email to an admin's address and the app would grant admin rights. This is like a club that gives you a member card but lets you write 'president' on it yourself.

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.

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.