CVE-2022-31574

The deepaliupadhyay/RealEstate repository through 2018-11-30 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
—
EPSS
1%
Percentile
72.1
In the wild
Unconfirmed
What it is

⚠️ A sneaky absolute path traversal is lurking in the deepaliupadhyay/RealEstate repo! The Flask send_file function is being used in a way that could open the door to unwanted access. 🚪 Think of it like a delivery driver who, instead of checking the address, just follows any instruction given, leading them to the wrong house and handing over packages that shouldn’t be delivered there. That's how the unsafe use of send_file can leak sensitive files. An attacker could exploit this flaw to access any file on the server, potentially revealing sensitive information or even altering critical system files. This could lead to data breaches or manipulation of the application, making it an alarming risk for anyone using the affected code.

Put simply

Think of it like a delivery driver who, instead of checking the address, just follows any instruction given, leading them to the wrong house and handing over packages that shouldn’t be delivered there. That's how the unsafe use of send_file can leak sensitive files. This path traversal vulnerability arises from the improper handling of file paths in the send_file function of a Flask application, allowing attackers to request any file outside the intended directory.

What to do

An attacker could exploit this flaw to access any file on the server, potentially revealing sensitive information or even altering critical system files. This could lead to data breaches or manipulation of the application, making it an alarming risk for anyone using the affected code. To secure your application, ensure that you validate and sanitize any file paths before they are handled by the send_file function. Additionally, consider updating to the latest version of the repository where this issue may be resolved, and audit your code for similar flaws. You've got this! Take these steps, and you'll be well on your way to fortifying your application against this sneaky vulnerability. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01392 · 72.1th percentile
Published
2022-07-11T01:01Z
EPSS history
Timeline
  • 11 JUL 01:01Z
    The deepaliupadhyay/RealEstate repository through 2018-11-30 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5