Skip to content

[Bug] : Teacher Authentication Can Be Bypassed via LocalStorage Manipulation #28

@Asifmd45

Description

@Asifmd45

Description

Authentication relies entirely on client-side localStorage values. A user can manually modify stored session data and gain access as any teacher account.

Steps to Reproduce

  1. Open browser developer tools.
  2. Navigate to localStorage.
  3. Modify the stored teacher session object.
  4. Refresh the application.

Expected Behavior

Teacher sessions should be validated before granting access to protected pages.

Actual Behavior

Any user can impersonate a teacher by modifying localStorage values.

Environment

  • Browser: Chrome 125
  • OS: Windows 11
  • Node.js version: 20.x

Affected Page / Component

  • Landing
  • Login
  • Dashboard
  • Student Feedback
  • Analytics
  • Other: Authentication

Additional Context

Current authentication is entirely client-side and does not validate session integrity.

Hey @rishima17 I would like to work on this issue under SSOC-2026..

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions