/

CVE-2026-128669

Severity:

HIGH RISK

(7.1)

Session Fixation (CWE-384) in PHPGurukul Admin Login

CVE-2026-128669

Received

Vulnerability type

Category:

Session Fixation

CWE:

CWE-384

Impact:

Authenticated Session Hijacking

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

PHPGurukul News Portal Project V4.1 does not regenerate the session identifier after a user successfully logs in through the admin endpoint. If an attacker can cause a victim to use a session ID known to the attacker before authentication, the attacker may reuse that ID to access the victim's authenticated session.

Affected context

The issue is described in the admin login endpoint at /admin/index.php. It becomes relevant when the application keeps the same session identifier across the transition from an unauthenticated session to an authenticated one, and an attacker can arrange for a victim's browser to use a session ID the attacker knows.

Exploit preconditions

  • Attack surface: Remote interaction with the admin login flow
  • Required access: The attacker must be able to establish or induce use of a known session ID in the victim's browser; prior account access is not indicated
  • Trigger point: The victim successfully authenticates through /admin/index.php
  • Why exploitation is possible: The session identifier is not regenerated after authentication, so the attacker-known identifier remains associated with the authenticated session

Why this happens

The application preserves a pre-authentication session identifier when authentication succeeds instead of issuing a fresh identifier. This is a session fixation flaw mapped to CWE-384: an attacker who can influence or predict the identifier used by a victim may retain a path to the authenticated session.

Potential impact

  • An attacker may hijack an administrator's authenticated session
  • Unauthorized access to administrative functions could occur
  • An attacker could make changes or access information available to the compromised account

General mitigation guidance

Defensive patterns for session fixation focus on establishing a new, unpredictable session identifier when authentication state changes.

  • Regenerate the session ID after successful authentication and other privilege changes
  • Invalidate the prior session identifier so it cannot be reused
  • Use secure cookie attributes and restrict session handling to trusted application flows
  • Apply least privilege to administrative accounts and session capabilities
  • Avoid allowing untrusted inputs or external channels to determine session identifiers

How teams detect issues like this

  • Review authentication code for session IDs that persist across login or privilege changes
  • Use static analysis or code review checks to identify missing session regeneration after authentication
  • Test whether a pre-login session identifier remains valid after successful login
  • Enforce application security policies requiring session rotation at authentication boundaries

Automated security review tools may help flag session lifecycle patterns for manual verification.

Sources

SourceLink
github.comgithub.com/dharmstm/PHP-GuruKul/blob/main/NVP-012-Session-Fixation.pdf

Frequently asked

questions

The described attack is remote, but it depends on the attacker being able to get the victim's browser to use a session ID known to the attacker.

The description does not indicate that an account is required. The attacker needs a way to establish or induce use of the chosen session ID and for the victim to log in.

Issue a new session identifier after successful authentication, invalidate the previous identifier, and ensure session cookies are handled securely.

Define and test session lifecycle rules, including rotation at login and privilege changes, and include these checks in code review and security testing.

Find out what's already
exploitable in your codebase.