CVE-2022-31526

The ThundeRatz/ThunderDocs repository through 2020-05-01 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
โ€”
EPSS
1%
Percentile
71.1
In the wild
Unconfirmed
What it is

โš ๏ธ Uh-oh, a sneaky absolute path traversal! The ThundeRatz/ThunderDocs repository on GitHub lets attackers access files outside the intended directory due to an unsafe use of Flask's send_file function. ๐Ÿ”ฅ Think of it as a delivery service that accepts any address, even if it leads to a restricted area โ€” a recipe for unauthorized access to sensitive documents! ๐Ÿ“ฆ An attacker could potentially reach and download any file the server can access, exposing confidential information and creating chaos! Imagine the damage if private files land in the wrong hands โ€” that could be absolutely devastating!

Put simply

Think of it as a delivery service that accepts any address, even if it leads to a restricted area โ€” a recipe for unauthorized access to sensitive documents! ๐Ÿ“ฆ This vulnerability arises from the Flask send_file function being misconfigured, allowing attackers to manipulate file paths and traverse directories unexpectedly.

What to do

An attacker could potentially reach and download any file the server can access, exposing confidential information and creating chaos! Imagine the damage if private files land in the wrong hands โ€” that could be absolutely devastating! To mitigate this, ensure the Flask send_file function is used safely by restricting the paths it can access. Consider implementing input validation and updating your codebase to a secure version as soon as possible. You've got this! By taking these steps, you'll keep your files secured and maintain your hero status in the security realm! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 ยท 71.1th percentile
Published
2022-07-11T00:55Z
EPSS history
Timeline
  • 11 JUL 00:55Z
    The ThundeRatz/ThunderDocs repository through 2020-05-01 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5