High CVSS 8.7

Overview

S40 CMS v0.4.2 contains a path traversal vulnerability in its index.php page handler. The p parameter is not properly sanitized, allowing attackers to traverse the file system and access arbitrary files outside the web root. This can be exploited remotely without authentication by appending traversal sequences and a null byte to bypass file extension checks.

Risk analysis

This vulnerability is rated 🟠 HIGH.

  • CVSS: 8.7 (HIGH)
  • Detected tags: path, unauth_access (tag impact: HIGH)

Recommended actions:

  • Canonicalize path; block `..` traversal; use allowlists.
  • Enforce authentication/authorization; reduce default endpoint exposure.

Recommended tools

Tags