Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2024-8941 Overview
CVE-2024-8941 is a path traversal vulnerability [CWE-22] in Scriptcase version 9.4.019. The flaw exists in /scriptcase/devel/compat/nm_edit_php_edit.php and affects the subpage parameter. Unauthenticated remote attackers can bypass SecurityManager restrictions to list and read files outside the intended directory. Exploitation uses /... sequences or direct path manipulation through the field_file POST parameter. The vulnerability enables disclosure of application source code, configuration files, and other sensitive data residing on the host.
Critical Impact
Unauthenticated attackers can traverse the filesystem to read files outside the web root, exposing source code and configuration data.
Affected Products
- Scriptcase 9.4.019
- Deployments exposing /scriptcase/devel/compat/ to untrusted networks
- Development environments using the SecurityManager component
Discovery Timeline
- 2024-09-25 - CVE-2024-8941 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2024-8941
Vulnerability Analysis
The vulnerability resides in nm_edit_php_edit.php, a development-mode script inside the Scriptcase devel/compat/ directory. The script accepts the subpage parameter and the field_file POST parameter without proper canonicalization. Attackers submit traversal sequences such as /... that bypass the SecurityManager's string-based filtering. Because the endpoint does not require authentication, remote actors can reach it directly over HTTP.
Successful exploitation grants read access to parent directories and files that the web server process can access. Attackers typically target database credentials, project configuration files, and PHP source code. The information disclosed can enable follow-on attacks against the application backend or lateral movement.
Root Cause
The root cause is insufficient input validation on filesystem path parameters. The SecurityManager filter does not account for malformed traversal tokens like /..., allowing them to resolve to parent directories once the operating system normalizes the path. The flaw is classified under [CWE-22], Improper Limitation of a Pathname to a Restricted Directory.
Attack Vector
An unauthenticated attacker sends a crafted HTTP request to /scriptcase/devel/compat/nm_edit_php_edit.php with manipulated subpage and field_file values. No user interaction or privileges are required. Attack complexity is low because the endpoint is directly reachable and the bypass pattern is deterministic.
No verified public exploit code is available for this issue. Refer to the INCIBE CERT Vulnerability Notice for the authoritative technical description.
Detection Methods for CVE-2024-8941
Indicators of Compromise
- HTTP requests to /scriptcase/devel/compat/nm_edit_php_edit.php from external or untrusted sources
- Query strings or POST bodies containing /..., ../, or encoded traversal sequences in subpage or field_file
- Web server access logs showing successful 200 responses to the above endpoint with abnormal payload sizes
- Reads of sensitive files such as /etc/passwd, wp-config.php, or Scriptcase project configuration files
Detection Strategies
- Deploy web application firewall (WAF) rules that normalize paths before matching and reject traversal tokens including /...
- Monitor PHP interpreter telemetry for file_get_contents, fopen, or include calls referencing paths outside the Scriptcase document root
- Correlate access to devel/compat/ endpoints with the originating source IP to identify reconnaissance patterns
Monitoring Recommendations
- Alert on any production traffic reaching Scriptcase development endpoints under devel/
- Baseline request parameter values for subpage and flag deviations containing path separators or dot sequences
- Forward web server and PHP logs to centralized analytics for retention and historical hunting
How to Mitigate CVE-2024-8941
Immediate Actions Required
- Restrict network access to /scriptcase/devel/ paths to trusted administrator IP ranges only
- Disable or remove the devel/compat/ directory from production deployments
- Audit web and application logs for prior exploitation attempts targeting nm_edit_php_edit.php
- Rotate any credentials or secrets stored in files that may have been exposed
Patch Information
No vendor advisory or fixed version is listed in the enriched CVE data at the time of writing. Consult the INCIBE CERT Vulnerability Notice and the Scriptcase vendor channels for current patch availability. Upgrade beyond 9.4.019 as soon as a remediated release is published.
Workarounds
- Block external access to the entire devel/ tree at the reverse proxy or WAF layer
- Apply WAF signatures that reject requests containing /..., ..\\, or URL-encoded traversal variants in the subpage or field_file parameters
- Enforce PHP open_basedir restrictions to confine filesystem reads to the Scriptcase project directory
- Run the Scriptcase web server process under a low-privilege account with read access limited to required files
# Example Nginx rule to block external access to the devel path
location ^~ /scriptcase/devel/ {
allow 10.0.0.0/8; # trusted admin network
deny all;
return 403;
}
# Example PHP open_basedir hardening in php.ini
open_basedir = "/var/www/scriptcase/:/tmp/"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

