CVE Professor
/
All CVEs
CVE-2026-144914

CVE-2026-144914 — Youzan ZanProxy — CWE-22

HIGH CVSS 7.3 NVD

A vulnerability has been found in Youzan ZanProxy 5.0.0/5.1.0. Impacted is the function getDataFilePath of the file src/core/services/mock.ts of the component Mock Data Service. The manipulation of the argument ID leads to path traversal. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

A vulnerability has been found in Youzan ZanProxy 5.0.0/5.1.0. Impacted is the function getDataFilePath of the file src/core/services/mock.ts of the component Mock Data Service. The manipulation of the argument ID leads to path traversal. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality Low C:L
Integrity Low I:L
Availability Low A:L
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Technical flaw
The getDataFilePath function in src/core/services/mock.ts of Youzan ZanProxy (v5.0.0 / 5.1.0) concatenates the user‑supplied ID argument directly into a file‑system path without any sanitisation, canonicalisation, or base‑directory enforcement.
Because the function is exposed via a public HTTP endpoint, an unauthenticated attacker can supply a crafted ID that contains directory‑traversal sequences (../, URL‑encoded %2e%2e%2f, etc.). The server then resolves the path relative to the working directory and reads the file, returning its contents (or a reference to it) to the client.

CWE‑22 – Path Traversal
The missing check is a path‑normalisation guard. The code should either:

1. Reject any ID containing . or / characters, or
2. Resolve the path with a safe base directory and reject any result that escapes that base.

Because the function is called by a remote API, the vulnerability is exploitable without authentication or UI interaction.


⚡ Attack Chain

NOTE: The exact URI and parameter names are not disclosed in the CVE text. The example below uses a plausible REST endpoint (/api/mock/data) and a query parameter (id). It is an illustrative payload that demonstrates the class of attack.

1. Discovery & Reconnaissance

StepTechniqueTool / Command
Identify targetScan for known ZanProxy servicesnmap -p 80,443 --script http-enum <target>
Verify versionProbe /version or User‑Agent headercurl -sI http://<target>/api/version
Locate vulnerable endpointEnumerate /api/mock/* endpointsdirsearch -u http://<target>/api/mock/ -e php,js,ts

If the service responds with a JSON payload containing an id field or a documented API reference, the attacker can proceed.

2. Exploitation

PoC (illustrative)

# Target: http://example.com
# Vulnerable endpoint (illustrative): /api/mock/data
# Parameter: id
curl -s "http://example.com/api/mock/data?id=../../../../etc/passwd" \
     -H "Accept: application/json" \
     -o /dev/null -w "%{http_code}\n"

What happens?

  • The server concatenates the supplied id into a path like ./data/../../../../etc/passwd.

  • The OS resolves this to /etc/passwd (or another file, depending on the working directory).

  • The service reads the file and returns its contents (or a reference) to the client.
  • Alternative payloads

  • URL‑encoded: id=%2e%2e%2f%2e%2e%2f%2e%2e%2fetc%2fpasswd

  • Double‑encoding: id=%252e%252e%252fetc%252fpasswd
  • If the API returns the file content directly, the attacker can capture it with curl -s. If the API only returns a file path, the attacker can then request that path (if the service exposes it) or use the path in a subsequent request.

    3. Post‑exploitation

    GoalHow it can be achieved
    Data exfiltrationRead sensitive configuration files (config.yaml, secrets.json), environment variables, or credential stores (.env, application.properties).
    Privilege escalationIf the service runs as a privileged user (e.g., root), reading /etc/shadow or /etc/passwd can provide hashed passwords.
    RCE via file inclusionIf the application later includes the read file (e.g., via a templating engine), the attacker could inject malicious code.
    PersistenceIf the service allows writing files (not mentioned in the CVE), the attacker could upload a webshell or modify configuration files to maintain access.

    Because the CVSS vector indicates low confidentiality, integrity, and availability impact, the immediate damage is limited to data exposure. However, the data exposed can be leveraged for further attacks (credential stuffing, lateral movement, etc.).


    🌍 Real World Impact

    ImpactCVSS ValuePractical consequence
    Confidentiality (C:L)0.3Arbitrary files can be read, exposing secrets, credentials, or sensitive logs.
    Integrity (I:L)0.3If the application later processes the file, tampering could lead to data corruption or code injection.
    Availability (A:L)0.3Repeated traversal attempts could cause I/O load or crash the service if the file system is exhausted.

    Overall CVSS score: 7.3 (High)
    The vulnerability is remote (AV:N), low attack complexity (AC:L), no privilege or UI required (PR:N, UI:N), and unchanged scope (S:U). The high score reflects the ease of exploitation and the potential for data exfiltration.


    🛡️ Remediation & Mitigation

    Affected Versions

  • Youzan ZanProxy 5.0.0
  • Youzan ZanProxy 5.1.0
  • Upgrade to any release that patches src/core/services/mock.ts (the vendor has not yet released a fix; monitor the official repository or issue tracker for a patch).

    Workarounds

    1. Input Validation
    - Reject any ID containing . or / characters.
    - Accept only a whitelist of allowed characters (e.g., alphanumerics, underscore).

    if (!/^[a-zA-Z0-9_]+$/.test(id)) {
           throw new Error('Invalid ID');
       }

    2. Path Normalisation
    - Resolve the path relative to a fixed base directory and verify that the resolved path starts with that base.

    const base = path.resolve(__dirname, 'data');
       const target = path.resolve(base, id);
       if (!target.startsWith(base)) {
           throw new Error('Path traversal detected');
       }

    3. WAF / ModSecurity Rule

    SecRule ARGS:id "@rx \.\./" \
           "phase:2,deny,status:403,msg:'Path traversal attempt',id:1001"

    4. Access Restrictions
    - If the endpoint is not required publicly, restrict it to internal networks or authenticated users.
    - Use network ACLs or VPN to limit exposure.

    5. Disable the Mock Data Service
    - If the service is not needed in production, comment out or remove the route entirely.

    Detection

    Log PatternDescription
    Query string contains ../ or %2e%2e%2fLikely traversal attempt
    Repeated 200/404 responses for the same id valueAutomated probing
    Access to /api/mock/data from external IPsUnusual traffic

    Sample WAF log entry

    [2026-12-05 12:34:56] [modsecurity] [client 203.0.113.45] [id "1001"] [msg "Path traversal attempt"] [uri "/api/mock/data"] [args "id=../../../../etc/passwd"]

    ⚠️ Urgency

  • CVSS 7.3 (High) – Remote, unauthenticated exploitation with low effort.
  • No CISA KEV – The vulnerability is not yet in the KEV list, but the public disclosure and lack of vendor response increase risk.
  • Exploit Complexity – Low (simple HTTP request).
Priority: Critical for any environment that exposes the vulnerable endpoint to the internet or untrusted networks. Recommended action: 1. Patch immediately once a vendor fix is available. 2. Implement the above workarounds if patching cannot be performed in the short term. 3. Monitor logs for traversal patterns and block offending IPs. 4. Verify that the endpoint is no longer reachable from the public internet (e.g., via nmap or a web‑application firewall).

By addressing the path‑traversal flaw promptly, you eliminate the risk of arbitrary file disclosure and the downstream attacks that could arise from the stolen data.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)
CVSS Score
7.3 / 10 · CVSS HIGH
Weakness Types (CWE)
References & Advisories (5)
Related CVEs
5.3
CVE-2026-144915
A vulnerability was found in Youzan ZanProxy up to 5.1.0. The affected element is the function fetchRemoteRule
4.3
CVE-2026-144913
A flaw has been found in Youzan ZanProxy 5.0/5.1.0. This issue affects the function init of the file src/core/
9.9
CVE-2026-77526
FacturaScripts is an open source accounting and invoicing software. From version 2025 to before version 2026.3
9.8
CVE-2026-145055
PraisonAI pip praisonai before 4.8.0, praisonaiagents and npm praisonai before 1.8.0, and praisonai-bot, prais
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
9.4
CVE-2026-64883
Path traversal in the WebDAV interface (DotWebdavHelper and the WebDAV temporary-file COPY and MOVE handling)
8.6
CVE-2026-115524
Path traversal in the push-publish bundle receiver (BundlePublisherResource, /api/bundlePublisher/publish) in