/

CVE-2022-51030

Severity:

HIGH RISK

(7.5)

Path Traversal (CWE-22) in QiboCMS V7 Download Handler

CVE-2022-51030

Received

Vulnerability type

Category:

Path Traversal / Arbitrary File Read

CWE:

CWE-22

Impact:

Sensitive File Disclosure

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

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 url parameter
  • Why exploitation is possible: The reported ph< wildcard technique can bypass the .php extension 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

Sources

SourceLink
github.comgithub.com/PeiQi0/PeiQi-WIKI-Book/blob/main/docs/wiki/cms/%E9%BD%90%E5%8D%9ACMS/%E9%BD%90%E5%8D%9ACMS%20V7%20job.php%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E8%AF%BB%E5%8F%96%E6%BC%8F%E6%B4%9E.md
github.comgithub.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/qibocms-file-download.yaml
github.comgithub.com/qingchenhh/qc_poc/blob/main/Goby/qibo_CMS_V7_job.php_file_read.go
vulncheck.comvulncheck.com/advisories/qibocms-v7-arbitrary-file-download-via-job-php-download-endpoint

Frequently asked

questions

The described endpoint is request-accessible, and the report states that attackers do not need to authenticate. Exposure depends on whether the endpoint is reachable.

No authenticated access is described as required; the attacker needs to be able to send a request to the download endpoint.

Map requests to explicitly approved files, and verify canonical paths remain inside an allowed directory rather than trusting extension checks.

Reduce trust in client-supplied file references, enforce allowlists and authorization where appropriate, and limit the application's filesystem permissions.

Find out what's already
exploitable in your codebase.