CVE-2022-31518

The JustAnotherSoftwareDeveloper/Python-Recipe-Database repository through 2021-03-31 on GitHub allows absolute path traversal because the Flask send_file…

published July 11, 2022

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

⚠️ A sneaky absolute path traversal could expose sensitive files! The Flask `send_file` function is unwittingly playing the role of a careless delivery driver, taking requests without checking if the package is legitimate. 🔥 Picture this: a delivery driver who hands over packages without verifying the address – that’s what happens here! An attacker could request a file from anywhere on the server, as the system doesn’t properly limit access. It’s like a restaurant that serves any dish you ask for, regardless of whether you actually ordered it. If exploited, an attacker could access sensitive files on the server, leading to possible information leaks or unauthorized access to critical data. Imagine the chaos of having your secret recipe book shared with everyone—yikes!

Put simply

Picture this: a delivery driver who hands over packages without verifying the address – that’s what happens here! An attacker could request a file from anywhere on the server, as the system doesn’t properly limit access. It’s like a restaurant that serves any dish you ask for, regardless of whether you actually ordered it. This vulnerability arises from the unsafe use of the Flask `send_file` function, which allows attackers to specify absolute paths, bypassing intended access controls.

What to do

If exploited, an attacker could access sensitive files on the server, leading to possible information leaks or unauthorized access to critical data. Imagine the chaos of having your secret recipe book shared with everyone—yikes! To mitigate this issue, you should restrict the paths that can be accessed by the `send_file` function. Implement checks to ensure that only safe, predefined paths are allowed, and consider upgrading to the latest version of the affected software, if applicable. You’ve got this! By tightening up those path controls, you’ll keep your files safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 · 71.0th percentile
Published
2022-07-11T00:55Z
EPSS history
Timeline
  • 11 JUL 00:55Z
    The JustAnotherSoftwareDeveloper/Python-Recipe-Database repository through 2021-03-31 on GitHub allows absolute path traversal because the Flask send_file…
    cvelistv5