S40 CMS Path Traversal Vulnerability

Vulnerability

A path traversal vulnerability has been identified in S40 CMS version 0.4.2. The issue arises in the index.php page handler, where the 'p' parameter is not properly sanitized. This lack of validation allows attackers to traverse the file system and access arbitrary files outside the web root. The vulnerability can be exploited remotely without authentication by appending traversal sequences and a null byte to bypass file extension checks.

Impact

Exploitation of this vulnerability leads to local file inclusion, allowing attackers to read sensitive files on the server, such as the password file.

Reproduction

To reproduce this vulnerability, send a GET request to the index.php page with the 'p' parameter set to a file path that includes traversal sequences. Append a null byte to the end of the file path to bypass file extension checks. The server response will indicate whether the file was successfully retrieved or if there was a permission issue or a 404 error.

Added: Aug 13, 2025, 11:40 PM
Updated: Aug 13, 2025, 11:40 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
0.0
relevance
0.3
threat
7.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.