# Bypassing Password Validation Through Inconsistent Backend Logi
The password uniqueness check endpoint returned false for passwords longer than 12 characters, allowing the same password to be reused across multiple accounts. An attacker could bypass the intended password uniqueness enforcement and weaken authentication integrity.
Published on medium.com
While testing Plumsail authentication flow, I identified a business logic vulnerability caused by inconsistent password validation during user registration.
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 backend validation logic only checked passwords up to 12 characters, ignoring longer ones.
Impact
This could bypass password uniqueness enforcement, weaken authentication integrity, expose password enumeration behaviour, and increase attack surface for credential-based attacks when chained with other weaknesses.
What the attacker needed
Ability to register accounts; password longer than 12 characters
How it was found
- Create a user account using a password longer than 12 characters.
- Start a second registration session.
- Intercept the password validation request sent to /api/account/password/check-common.
- Submit the exact same password.
- Observe that the API incorrectly responds with false.
- Complete registration successfully.
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 sign up, the app checks if your password was already used by someone else. This check failed for long passwords, so two accounts could have the same password. That makes it easier for attackers to guess or reuse passwords.
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.