Summary
QiboCMS V7's download handler may allow unauthenticated attackers to read files from the server by supplying a crafted, base64-encoded URL. The reported extension-check bypass could expose sensitive files, including configuration files containing database credentials.
Affected context
The issue is described in QiboCMS V7's inc/job/download.php, which handles requests to /do/job.php?job=download. It may occur when the handler decodes a user-supplied URL and relies on an extension check that can be bypassed using Windows wildcard behavior.
Exploit preconditions
- Attack surface: The QiboCMS download endpoint
- Required access: No authentication is described as necessary
- Trigger point: Processing the base64-encoded
urlparameter - Why exploitation is possible: The reported
ph<wildcard technique can bypass the.phpextension check, allowing the handler to retrieve files beyond its intended download scope
Why this happens
The download handler does not adequately constrain which files a user-supplied path can reference. This is associated with CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'). Relying on an extension check without securely resolving and restricting the requested path can allow attacker-controlled input to access unintended files.
Potential impact
- Sensitive application or server files may be disclosed
- Configuration files containing database credentials could be exposed
- Exposed credentials could enable unauthorized access to connected systems
- Disclosure of internal files could support further attacks
General mitigation guidance
Defensive patterns focus on limiting downloads to explicitly permitted files and directories.
- Prefer server-side identifiers mapped to approved files over user-controlled paths or URLs
- Use strict allowlists for downloadable resources and reject unexpected input
- Resolve paths to canonical form and verify they remain within an approved directory
- Avoid relying on extension checks as the sole access control
- Restrict the application process's filesystem permissions and protect sensitive configuration files
- Require appropriate authorization when downloads are not intended to be public
How teams detect issues like this
- Review download handlers for user-controlled paths, URL decoding, and extension-only validation
- Use static analysis to identify file access operations that consume request parameters
- Inspect access logs for unusual download requests, encoded parameters, and attempts to retrieve configuration files
- Enforce policies that restrict file downloads to approved directories and resources

