Discovering a Security Flaw in a Government Portal Used by 3 Lakh
The portal stored a user's role in client-side session storage, so a student could change it to 'SuperAdmin' and see a search page. The backend did not check permissions, allowing any authenticated user to fetch other beneficiaries' full address and bank transaction details by registration ID.
Published on medium.com
A few weeks ago, while interacting with the Bihar State Education Finance Corporation (BSEFCL) portal, I came across something that seemed unusual.
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 relied on client-side session storage to decide user roles and did not enforce authorization checks on the backend API that returned beneficiary data.
Impact
Any authenticated user could view sensitive personal and financial data of all beneficiaries, though the author limited testing to avoid bulk extraction.
What the attacker needed
A valid student account; ability to edit browser session storage
The fix
The issue was fixed after responsible disclosure and validation by CERT-In.
How it was found
- Log in to the portal with a normal student account.
- Inspect the browser's session storage and find the key that controls the user role.
- Change that key's value to 'SuperAdmin' and refresh the page.
- Use the newly visible search page to look up another beneficiary by registration ID and retrieve their details.
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 often hides buttons or pages from users who should not see them, but that hiding happens in your browser, which you control. If the server does not also check whether you are allowed to do something, you can change what your browser shows and reach the hidden feature. Here, a student could change a stored value to appear as an administrator and then search for other people's private details.
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.