Skip to main content

e-Diary Management System CVE-2025-50492

HIGH
Improper Input Validation (CWE-20)
2025-07-28 cve@mitre.org
7.5
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain victim's valid session token
  2. Delivery
    Victim changes password via change-password.php
  3. Exploit
    Stale session not invalidated
  4. Execution
    Reuse captured cookie
  5. Impact
    Retain authenticated access to account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

Exploitation requires the attacker to already possess a valid, previously issued session identifier for a target account, and the vulnerability manifests specifically when the victim uses the /edms/change-password.php feature to change their password - the defect is that this action does not invalidate the pre-existing session. The limiting factors are significant: the attacker must first capture a live session token (via a shared device, sniffing, XSS, or fixation), so this is not purely unauthenticated remote code exploitation despite PR:N in the published vector; the impact is bounded to the compromised user's account and data. This constrains realistic exploitation to targeted scenarios rather than internet-wide automated attacks.

Impact

Signals are mixed and partially contradictory. The published CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/C:N/I:N/A:H, score 7.5) rates this as a pure availability impact, which does not match a session-hijacking/information-disclosure vulnerability - hijacking a session compromises confidentiality and integrity, not availability. This C:N/I:N/A:H scoring appears to be a mis-scored record and should be independently reassessed (see assessed vectors below). EPSS is low (0.55%, 42nd percentile) and there is no KEV entry, indicating no evidence of widespread automated exploitation. Realistically, exploitation is gated on the attacker first obtaining a valid session token (shared/public machine, network interception, XSS, or a leaked cookie), which raises attack complexity and makes this a targeted rather than mass-exploitable issue. Net priority is low-to-moderate: a genuine account-takeover weakness, but constrained by a niche product footprint and a prerequisite token-capture step.

Exploit ScenarioDerived

An attacker obtains a victim's valid session cookie - for example from a shared or public computer, a network capture, or a cross-site scripting leak - and the victim, suspecting compromise, changes their password. Because change-password.php does not invalidate the old session, the attacker's captured cookie continues to authenticate them, preserving account access despite the password reset. The GitHub CVE repository referenced likely provides a PoC or write-up demonstrating the persistence of the stale session.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 05, 2026

Session hijacking in PHPGurukul e-Diary Management System v1.0 stems from the /edms/change-password.php endpoint failing to invalidate existing sessions after a password change, so a previously captured session identifier remains valid and grants continued authenticated access. Remote attackers who obtain a victim's session token can therefore retain or take over the account even after the legitimate user rotates their password. There is no CISA KEV listing and no confirmed active exploitation; a GitHub reference (VasilVK/CVE) tracking this CVE likely contains a proof-of-concept or write-up, though PoC status is not explicitly confirmed in the source data, and EPSS is low at 0.55% (42nd percentile).

RemediationAI

No vendor-released patch identified at time of analysis - PHPGurukul projects are frequently distributed without formal security releases, and the only references are the vendor site (http://e-diary.com) and the CVE repository (https://github.com/VasilVK/CVE/tree/main/CVE-2025-50492). As a code-level fix, modify change-password.php to call session_regenerate_id(true) and destroy all other active sessions for the account immediately after a successful password update, and invalidate server-side session records rather than relying on cookie expiry. As compensating controls until a fix is applied: set short session-cookie lifetimes and idle timeouts to shrink the window a stale token stays valid (trade-off: more frequent re-logins); enforce HttpOnly, Secure, and SameSite=Strict cookie attributes to reduce token theft via script or cross-site requests; and where feasible restrict the application behind authenticated VPN/network ACLs to limit who can reach /edms/ endpoints (trade-off: reduced accessibility for legitimate remote users).

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is a PHP web application (cpe:2.3:a:phpgurukul:e-diary_management_system:1.0) - one of PHPGurukul's freely distributed CRUD-style projects commonly used for learning and small deployments. The flaw lives in change-password.php, the account credential-rotation handler, which should destroy or regenerate all active session identifiers upon a successful password change. It does not, meaning server-side session state is not tied to the current credential. NVD assigns CWE-20 (Improper Input Validation), but the described behavior is more precisely a session-management defect in the CWE-613 (Insufficient Session Expiration) / CWE-384 (Session Fixation) family; the CWE mapping should be treated as loose. The 'Information Disclosure' tag reflects that a persisted session exposes the victim's authenticated data to whoever holds the stale token.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (mitre) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.4 HIGH

Network-reachable but requires first capturing a valid session token (AC:H); no prior app privileges needed (PR:N); session hijack compromises account confidentiality and integrity (C:H/I:H), not availability (A:N).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionCVE.org

Improper session invalidation in the component /edms/change-password.php of PHPGurukul e-Diary Management System v1 allows attackers to execute a session hijacking attack.

Executive ViewAI

Why It Matters

PHPGurukul e-Diary Management System v1.0 contains a session hijacking vulnerability that allows attackers to retain account access indefinitely, even after victims change passwords, creating persistent compromise of personal diary records and user data. Any organization running this system faces uncontrolled account takeover risk with no current vendor remediation available.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: implement forced session invalidation on password change through emergency code patch; deploy strict inactivity-based session termination (2-hour maximum); monitor all session activity for anomalies (geographic inconsistencies, concurrent sessions); restrict system access by source IP range where operationally feasible; require re-authentication for sensitive diary access operations; maintain continuous audit logging pending patched version availability.

Threat Intelligence Overview

EPSS Score
0.5%
Top 58% exploitable
Prevalence
Rare
free PHPGurukul educational PHP project, negligible production footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:phpgurukul:e-diary_management_system:1.0:*:*:*:*:*:*:*

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy