Path Traversal Vulnerability in SourceCodester SRMS
SourceCodester Student Result Management System 1.0 contains a path traversal vulnerability (CVE-2025-4720) in the drop_student.php endpoint, allowing authenticated attackers to perform arbitrary file deletion via the 'img' parameter.
CVE search metadata
CVE search record: CVE-2025-4720. Severity: medium. CVSS: 5.4. EPSS: 0.59%. KEV: no. Product: Student Result Management System (1.0). Brief: Path Traversal Vulnerability in SourceCodester SRMS. Brief link: https://feed.craftedsignal.io/briefs/2026-08-srms-path-traversal/
The Munyweki Student Result Management System (SRMS) version 1.0 is susceptible to a path traversal vulnerability identified as CVE-2025-4720. The vulnerability exists within the academic/core/drop_student.php script, which processes user-controlled input from the img GET parameter. The application fails to sanitize this input before passing it to the PHP unlink() function. Consequently, an authenticated attacker can traverse the file system by providing directory traversal sequences (e.g., ../) in the parameter, leading to the unauthorized deletion of arbitrary files located on the server. The lack of validation on the img input makes the system highly vulnerable to destructive actions if an attacker gains authenticated access.
Attack Chain
- Attacker performs reconnaissance to identify the presence of the SRMS 1.0 application.
- Attacker obtains valid credentials to authenticate to the SRMS platform.
- Attacker navigates to the
academic/core/drop_student.phpadministrative function. - Attacker crafts a malicious GET request containing a path traversal payload in the
imgparameter (e.g.,?img=../../../../config.php). - The server-side script receives the payload and directly passes the unsanitized string to the
unlink()function. - The
unlink()function executes the deletion against the resolved file path on the web server. - Targeted system files are deleted, potentially causing denial of service or configuration loss.
Impact
Successful exploitation of CVE-2025-4720 allows an authenticated attacker to delete arbitrary files on the underlying web server. This could result in the destruction of critical application configuration files, database backups, or core system files, leading to a complete denial of service of the Student Result Management System.
Recommendation
Prioritized actions for detection and remediation:
- Deploy the provided Sigma rule to monitor for suspicious path traversal patterns in web server logs targeting
drop_student.php. - Review web server access logs for any requests to
drop_student.phpcontaining../sequences in theimgquery parameter. - Audit the file system permissions of the web application directory to ensure the web server service account has the minimum necessary privileges to prevent unauthorized file deletion.
- Patch or disable the vulnerable
academic/core/drop_student.phpcomponent if it is not strictly required for business operations.
Immediate actions
Deploy Sigma detection rule to web server monitoring stack.
Mitigations
Remove or sanitize input handling in drop_student.php.
CVE-2025-4720
Detection coverage 1
Detect CVE-2025-4720 Exploitation - Path Traversal in drop_student.php
mediumDetects attempts to exploit the path traversal vulnerability in drop_student.php by identifying directory traversal sequences in the img parameter
Detection queries are available on the platform. Get full rules →