CVE-2021-35397

A path traversal vulnerability in the static router for Drogon from 1.0.0-beta14 to 1.6.0 could allow an unauthenticated, remote attacker to arbitrarily read files. The vulnerability is due to lack of proper input validation for requested path. An attacker could exploit this vulnerability by sending crafted HTTP request with specific path to read. Successful exploitation could allow the attacker to read files that should be restricted.
Configurations

Configuration 1 (hide)

OR cpe:2.3:a:drogon:drogon:*:*:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:-:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta14:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta15:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta16:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta17:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta18:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta19:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta20:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta21:*:*:*:*:*:*

History

11 Aug 2021, 23:33

Type Values Removed Values Added
References (MISC) https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67 - (MISC) https://github.com/an-tao/drogon/blob/834e3eabdd0441ad2bc80c02e8bbfc3b8312c213/lib/src/StaticFileRouter.cc#L62-L67 - Exploit, Third Party Advisory
References (MISC) https://github.com/an-tao/drogon - (MISC) https://github.com/an-tao/drogon - Third Party Advisory
References (MISC) https://github.com/an-tao/drogon/wiki/ENG-02-Installation - (MISC) https://github.com/an-tao/drogon/wiki/ENG-02-Installation - Third Party Advisory
References (MISC) https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site - (MISC) https://github.com/an-tao/drogon/wiki/ENG-03-Quick-Start#Static-Site - Third Party Advisory
CPE cpe:2.3:a:drogon:drogon:1.0.0:beta17:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta15:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:*:*:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:-:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta18:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta14:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta20:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta19:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta21:*:*:*:*:*:*
cpe:2.3:a:drogon:drogon:1.0.0:beta16:*:*:*:*:*:*
CVSS v2 : unknown
v3 : unknown
v2 : 5.0
v3 : 7.5
CWE CWE-22

04 Aug 2021, 11:15

Type Values Removed Values Added
New CVE

Information

Published : 2021-08-04 11:15

Updated : 2023-12-10 13:55


NVD link : CVE-2021-35397

Mitre link : CVE-2021-35397

CVE.ORG link : CVE-2021-35397


JSON object : View

Products Affected

drogon

  • drogon
CWE
CWE-22

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')