Skip to content

Password Value Reflected Back in Login Form on Failed Attempt #12267

@akramcodez

Description

@akramcodez

Problem

When a user submits incorrect login credentials, the server re-renders the login page and echoes the submitted password back into the password input field's value attribute. Although the field visually masks the input (••••••), the plaintext password remains accessible in the DOM, browser DevTools, and page source.

Reproducing the bug

  1. Navigate to the login page
  2. Enter any username and a wrong password (e.g., test123)
  3. Submit the form
  4. When the page reloads with the error message, open browser DevTools
  5. Inspect the password input field

Observed:

<input type="password" value="test123">

Expected:

<input type="password" value="">

Context

  • Browser (Chrome, Safari, Firefox, etc):
  • OS (Windows, Mac, etc):
  • Logged in (Y/N):
  • Environment (prod, dev, local): prod

Screenshot

Image

Metadata

Metadata

Assignees

Labels

Lead: @mekarpelesIssues overseen by Mek (Staff: Program Lead) [managed]Needs: BreakdownThis big issue needs a checklist or subissues to describe a breakdown of work. [managed]Priority: 3Issues that we can consider at our leisure. [managed]Theme: SecurityType: BugSomething isn't working. [managed]

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions