.. / CVE-2021-40978

Exploit for MKdocs 1.2.2 - Directory Traversal (CVE-2021-40978)

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.

Nuclei Template

View the template here CVE-2021-40978.yaml

Validate with Nuclei

echo "$URL" | nuclei -t ~/nuclei-templates/http/cves/2021/CVE-2021-40978.yaml
Copy

References:

https://github.com/mkdocs/mkdocs/pull/2604
https://nvd.nist.gov/vuln/detail/CVE-2021-40978
https://github.com/nisdn/CVE-2021-40978
https://github.com/mkdocs/mkdocs
https://github.com/mkdocs/mkdocs/issues/2601