Skip to content
Access control Disclosed report Beginner

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.

kalkii Follow

Originally disclosed on HackerOne

  • 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

  1. Visit https://███/█████/?#/
  2. Set a new parameter in local storage name █████ and value true
  3. Reload the page

█████

Suggested Mitigation/Remediation Actions

The original report as published on HackerOne, by kalkii. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

  1. Visit the protected page.
  2. Add a new local storage entry with the expected name and a true value.
  3. 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.

More by kalkii

View all

3 more disclosed reports, best first.

More from U.S. Dept Of Defense

View all

The newest disclosed reports for this program.

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.