CVE-2022-31511

The AFDudley/equanimity repository through 2014-04-23 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

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

โš ๏ธ A simple call to send a file is the gateway! The Flask `send_file` function here is used in a way that allows absolute path traversal, making it surprisingly easy for an attacker to reach sensitive files. ๐Ÿ” Think of it like a delivery driver who doesn't check the address and just takes any package, leading them to deliver sensitive documents to the wrong person. This path traversal vulnerability lets unauthorized users peek inside the server's private folders! An attacker could exploit this flaw to access any file on the server they can name, potentially exposing sensitive information or critical configurations. They could gain the keys to the kingdom, snooping through data that should be securely locked away!

Put simply

Think of it like a delivery driver who doesn't check the address and just takes any package, leading them to deliver sensitive documents to the wrong person. This path traversal vulnerability lets unauthorized users peek inside the server's private folders! This vulnerability arises from improper use of the Flask `send_file` function, which can be manipulated to bypass directory restrictions, allowing attackers to traverse to arbitrary filesystem locations.

What to do

An attacker could exploit this flaw to access any file on the server they can name, potentially exposing sensitive information or critical configurations. They could gain the keys to the kingdom, snooping through data that should be securely locked away! To address this issue, ensure you're using the `send_file` function securely by validating and sanitizing file paths. Implement checks to prevent access to sensitive directories and consider updating to the latest version of the repository, if available. ๐Ÿ› ๏ธ You've got this! By tightening up your file access controls, you'll make your application much safer. ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 ยท 71.0th percentile
Published
2022-07-11T00:54Z
EPSS history
Timeline
  • 11 JUL 00:54Z
    The AFDudley/equanimity repository through 2014-04-23 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5