Client side authentication leads to Auth Bypass
The page's password check was performed only in client-side JavaScript, which set a local storage flag when the correct password was entered. An attacker could set that flag manually and reload the page to bypass the password and view sensitive data such as phone numbers and email addresses.
- Triaged in 4 days
- Fixed in 27 days
- Disclosed after 35 days
Hi Team
I have found that to access the data of endpoint https://████████/███/?#/ as user has to submit a password/passphrase.
When we provide wrong password then we get and error message asked to get pass assistance message Contact ████ for password assistance.
After analyzing the JS file I found that when correct password is provide a parameter is set in the localstorage "███████:true"
Impact
Auth bypass lead to sensitive data exposer like phone number, email id etc.
System Host(s)
██████
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
- Visit https://███/█████/?#/
- Set a new parameter in local storage name
█████and valuetrue - Reload the page
█████
Suggested Mitigation/Remediation Actions
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the application trusted a client-side local storage flag as proof of authentication instead of enforcing the password check on the server.
Impact
An attacker could bypass the password prompt and view sensitive data such as phone numbers and email addresses.
What the attacker needed
Access to the page URL; ability to edit local storage
How it was found
- Visit the protected page.
- Add a new local storage entry with the expected name and a true value.
- Reload the page to access the content.
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 report has not been written yet. The Original tab links to the source.
Some websites check a password in the browser itself rather than on the server. Here, the page only looked for a saved value in the browser's local storage to decide whether the user was allowed in. Anyone could add that value by hand, so the password protection was effectively useless.
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.