December 4, 2026
I Changed One Word From “true” to “false” and Skipped the Mandatory Password Reset
A lending platform forced every user to change their password before they could use it. I got in without changing anything, by editing a…

By Vigneshkumaroffsec
7 min read
A lending platform forced every user to change their password before they could use it. I got in without changing anything, by editing a single value in the browser. Here's how a client-side flag became a full authentication-step bypass, and how to stop it. Authorized testing only; all details anonymized.
By Vignesh Kumar | Security Researcher
The login screen looked ordinary. Email, password, a blue "Sign In" button, "Welcome back to" at the top. I signed in with a test account from an authorized assessment, and the app did the responsible thing: it refused to let me in and showed a mandatory password change screen. Current password, new password, confirm, submit. You've seen it a hundred times, the "you must set a new password before continuing" wall.
Good security hygiene. Except I never filled it in. I opened DevTools, changed one word in local storage, refreshed, and I was standing in the dashboard, logged in, password untouched. "Good Morning," it said.
This is a client-side access control bypass, and it's one of the most common high-impact bugs I find in real applications. Here's exactly how it happens, why the "wall" wasn't a wall at all, and how to build it so it actually holds. Everything below is anonymized and from a system I was authorized to test.
One more thing worth saying up front: this had the fingerprints of a vibe-coded app — one shipped fast, likely with heavy AI assistance, where the screens look polished but nobody drew the line between "what the UI shows" and "what the server enforces." That gap is exactly where this bug lived, and it is the signature bug of the vibe-coding era: the frontend looks production-ready while the backend never got the memo.
The setup: a wall made of paper
When I signed in, the server did something subtle. It authenticated me and issued my tokens immediately, then told the browser "oh, also make this user change their password first."
I could see the whole decision sitting in the browser's local storage:
accessToken eyJhbGciOiJIUzI1NiIsInR5cCI6... (a valid, working JWT)
refreshToken eyJhbGciOiJIUzI1NiIsInR5cCI6...
authUser {"change_password":true, "module":[...], ...}
password_change trueaccessToken eyJhbGciOiJIUzI1NiIsInR5cCI6... (a valid, working JWT)
refreshToken eyJhbGciOiJIUzI1NiIsInR5cCI6...
authUser {"change_password":true, "module":[...], ...}
password_change trueRead that again. The access token was already valid. I was authenticated. The only thing standing between me and the app was a flag, password_change: true, and the matching change_password: true inside the user object. The frontend read those flags and decided, all on its own, to render the password-change screen instead of the dashboard.
The server had handed me the keys and then politely asked me not to use them yet.
The bypass: one edit
If the browser decides what screen I see based on a value the browser stores, then I control that value. I opened DevTools → Application → Local Storage, found password_change, and changed its value:
password_change true -> falsepassword_change true -> falseThen I refreshed. The frontend re-read the flag, saw false, concluded "this user has already changed their password," and routed me straight to the dashboard. The access token that was already in storage authenticated every request I made from there.
No current password. No new password. I walked past the one control that was supposed to gate the account, and the app greeted me by name.
Why this is serious, not a trick
It's tempting to shrug at "editing your own browser." But think about when a forced password change exists:
- First login with a temporary password. An admin creates accounts with a default or emailed temp password and forces a reset on first use. If anyone, including someone who only knows the temp password, can skip the reset, that temp password becomes a permanent working login.
- Admin-forced reset after a breach. Security forces all users to rotate passwords. If the rotation is skippable, the compromised passwords keep working.
- Compliance and onboarding gates. "Accept terms," "set up MFA," "complete KYC." Same pattern, same bug. Any step the frontend gates with a stored flag can be skipped the same way.
The password-change screen wasn't cosmetic. It was an authentication step, and the whole point of an authentication step is that the user cannot proceed without completing it. This one could be skipped by anyone who opens DevTools.
The root cause: the server trusted the client to enforce the rule
Every bug like this has the same shape. A security decision that must be made on the server was made on the client instead.
The server knew the user still needed to change their password, it even put change_password: true in the response. But then it:
- Issued a fully privileged access token anyway, before the required step was done.
- Delegated the enforcement to frontend routing logic, which reads a value the user controls.
The frontend is not a security boundary. It's a rendering layer running on the attacker's machine. Anything it "decides" can be re-decided by the person holding the keyboard: local storage, cookies, JavaScript variables, hidden form fields, disabled buttons, if (user.isAdmin) in a React component. All of it is suggestion, not enforcement.
How to test for it
On systems you're authorized to assess:
- Trigger the gate. Hit any "you must do X before continuing" screen: forced password change, MFA enrollment, accept-terms, onboarding, email verification.
- Look at what the browser is storing. DevTools → Application → Local Storage / Session Storage / Cookies. Look for boolean-ish flags:
password_change,change_password,isVerified,onboardingComplete,mustResetPassword,forcePasswordChange. - Check whether you already hold a valid token. If an
accessTokenis already present before you complete the step, that's the real problem, the server authenticated you too early. - Flip the flag and refresh. Change
truetofalse(or delete the flag) and reload. If you reach the protected area, it's a client-side bypass. - Confirm it's not just cosmetic. Make a real authenticated request from the "protected" area, load data, hit an API endpoint. If the server answers, you have real access, not just a rendered page.
- Test the direct route too. Skip the UI entirely and call a post-login API endpoint with the token you were issued. If it works without the password change, the server never enforced the step at all.
The fix: enforce the step on the server, every time
The rule is simple to state and the whole fix follows from it: the server, not the browser, decides whether a user who hasn't completed a required step is allowed to do anything.
- Don't issue a full-access token before the required step is done. Either issue no access token until the password is changed, or issue a restricted, single-purpose token whose only permission is to call the change-password endpoint and nothing else.
- Enforce the state server-side on every request. If the account is flagged "must change password," the API must reject every other endpoint for that user with a 403 until the change is recorded in the database, regardless of what the client sends.
- Make the client flag a convenience, never the control. It's fine to use
password_changeto decide which screen to render, as long as flipping it buys the attacker nothing because the server still says no. - Apply it to the whole class. MFA enrollment, terms acceptance, KYC, email verification: any mandatory step gets the same server-side gate. One shared middleware that checks "is this account in a pending state?" beats scattering the logic across the frontend.
A good test of the fix: set the flag to false by hand and try to use the app. If the server still blocks you, it's built right. If you get in, it never was.
Common mistakes to avoid
- Treating the password-change screen as done because the UI shows it, without checking the server enforces it.
- Issuing the real access token at login and "remembering" to restrict the user on the frontend.
- Fixing only the one flag you found and leaving
isVerified,onboardingComplete, and the rest wide open. - Hiding a button or a route instead of rejecting the request on the server.
- Assuming "the user can only edit their own browser" makes it safe, the user is exactly who you're defending the temp-password and forced-reset flows against.
A quick checklist
- No fully privileged token is issued before a mandatory step is completed.
- Every mandatory step (password change, MFA, terms, KYC, verification) is enforced server-side on every request.
- Flipping or deleting the client-side flag does not grant access to anything.
- Protected API endpoints reject users in a pending state with a 403, not just a hidden UI.
- The same middleware covers the whole class of "must complete X first" gates.
Final thoughts
The most dangerous security controls are the ones that look like they're working. This app did everything visibly right: it forced the reset, it showed the wall, it refused the dashboard. But the wall was drawn by JavaScript on my machine, from a value my machine stored, and I was free to repaint it. The access token, already in my pocket, did the rest.
If you build authentication, do one thing this week: find every "you must do X before continuing" screen in your app, open DevTools, and change the flag that gates it. If you get through, your server is trusting the browser to enforce your security, and the browser works for whoever is sitting at it.
About me
I'm Vignesh Kumar, a security researcher working across application security, DevSecOps, cloud security, and vulnerability research.
I share practical findings from security assessments and responsible disclosures to help improve the security of real-world systems.
This write-up is fully anonymized and describes testing performed on a system I was authorized to assess. The techniques are shared for defending and testing systems you own or are authorized to test.