Overview
The PHPGurukul Pre-School Enrollment System Project V1.0 is vulnerable to a directory traversal attack, as discovered in the update-teacher-pic.php file. This vulnerability allows potential unauthorized data access, system compromise, and data leakage, affecting businesses and individuals who use this system for their pre-school enrollment processes. It is a critical vulnerability that demands immediate attention due to its high severity score.
Vulnerability Summary
CVE ID: CVE-2025-50349
Severity: High (7.5 CVSS score)
Attack Vector: Network
Privileges Required: Low
User Interaction: None
Impact: System compromise and potential data leakage
Affected Products
Escape the Surveillance Era
Most apps won’t tell you the truth.
They’re part of the problem.
Phone numbers. Emails. Profiles. Logs.
It’s all fuel for surveillance.
Ameeba Chat gives you a way out.
- • No phone number
- • No email
- • No personal info
- • Anonymous aliases
- • End-to-end encrypted
Chat without a trace.
Product | Affected Versions
PHPGurukul Pre-School Enrollment System Project | V1.0
How the Exploit Works
The exploit takes advantage of inadequate security measures in the handling of file paths in the update-teacher-pic.php file. An attacker can manipulate file paths to gain unauthorized access to directories and files outside of the intended directory, thereby gaining access to sensitive information or compromising the system.
Conceptual Example Code
Below is a conceptual example showing how an HTTP request might manipulate the file path to exploit this vulnerability:
POST /update-teacher-pic.php HTTP/1.1
Host: target.example.com
Content-Type: application/json
{
"pic_path": "../../../../etc/passwd"
}
In this example, the attacker tries to access the /etc/passwd file, which is a sensitive file outside the intended directory. This file contains user password information, which could potentially lead to a system compromise if accessed by an unauthorized user.
Mitigation Guidance
Users of the affected system are advised to apply the vendor patch immediately as a permanent solution. As a temporary mitigation, the use of a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can be employed to monitor and block suspicious activities.

