Skip to content
Access control Write-up Beginner

How I Discovered an Admin Access Vulnerability in the Blockchain India Challenge (CDAC) Website

The website trusted a client-supplied role parameter in the login response, so changing it from user to admin granted administrator privileges. An attacker could gain admin access and view or modify sensitive data or change settings.

osintteam.blog

Published on osintteam.blog

A Privilege Escalation vulnerability allows a user to gain higher permissions than they are supposed to have. It usually happens when a website does not properly verify user roles on the server and instead trusts data sent by the client.

Deepanshu Deep, on osintteam.blog

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

The application trusted a client-supplied role parameter in the login response without server-side validation.

Impact

An attacker could gain administrator access, view or modify sensitive data, change application settings, or perform actions that should only be available to authorized users.

What the attacker needed

A normal user account; ability to intercept HTTP responses

The fix

The issue was fixed after reporting, with the development team ensuring the application properly validated user roles on the server.

How it was found

  1. Log in with a normal user account.
  2. Intercept the login response using Burp Suite.
  3. Notice the role parameter set to user.
  4. Change the role value from user to admin and forward the modified response.
  5. Observe that administrator privileges are granted.

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.

When you log in, the server sends back information about your account, including your role (like 'user' or 'admin'). This website let the browser decide the role instead of checking it on the server, so anyone could edit that value to become an admin. This is dangerous because admin accounts can see and change everything.

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.