Skip to content

Stored/DOM XSS in Authentication Navbar #448

@parakramgambhir14

Description

@parakramgambhir14

The authentication navbar and profile dropdown currently use unsafe HTML rendering for user data (name and email). This creates a potential DOM-based XSS vulnerability if malicious data is stored in localStorage.

User-controlled values are directly inserted into the UI, which could allow execution of injected scripts.

Steps to Reproduce

  1. Register or modify a user object in localStorage
  2. Inject HTML or script-like content into the name or email field
  3. Open the application navbar/profile dropdown
  4. Observe unsafe rendering behavior

Expected Behavior

User data should be displayed as plain text and not interpreted as HTML.

Actual Behavior

User data is rendered using unsafe HTML methods, creating a potential XSS risk.

Security Impact

  • DOM-based XSS risk in authentication UI
  • Potential execution of injected scripts from stored user data

Priority

High (Security Issue)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions