Skip to content
Business logic Write-up Beginner

Password Policy Bypass: Missing Server-Side Validation

The password reset flow enforced password strength only in the browser by disabling the submit button, with no server-side validation. An attacker could remove the disabled attribute and set a weak password, which the server accepted.

sushil1337 Follow

Published on sushil1337.medium.com

While testing a password reset flow recently, I stumbled upon a impactful security flaw. One that highlights how client-side validation alone is never enough.

Sushil Ram, on sushil1337.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

Password strength validation was performed only on the client side, and the server trusted whatever the browser submitted without re-validating.

Impact

Attackers or legitimate users could set weak passwords during reset, which could lead to account takeover if reset links are intercepted or reused, and causes policy violations and compliance issues.

What the attacker needed

Access to a password reset link; ability to use browser developer tools

The fix

The backend should validate password strength regardless of what the client sends, and client-side checks should be used only for user experience.

How it was found

  1. Initiate a password reset on the target application's Forgot Password page.
  2. Open the password reset link received via email.
  3. Enter a weak password; the Save button remains disabled due to client-side validation.
  4. Open Developer Tools, Elements, and locate the submit button in the HTML.
  5. Remove the disabled attribute or replace it with enabled.
  6. Click Save; the server accepts the weak password.

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 reset a password, the website checks in your browser whether it is strong enough and greys out the save button if not. But the server that actually saves the password did not check again. By editing the page in the browser's developer tools, the tester made the button clickable and saved a weak password, which the server accepted.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.