CVE-2022-31529

The cinemaproject/monorepo repository through 2021-03-03 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

⚠️ An unsafe call to the Flask send_file function makes absolute path traversal a possibility in the cinemaproject/monorepo repository — like a delivery person wandering off-route to drop off the wrong package! Imagine a delivery driver who doesn’t verify the address and ends up delivering your package to the wrong house, which is what happens here when the application doesn’t check the file paths properly. An attacker could easily trick the system into revealing sensitive files by manipulating the file path. If exploited, this vulnerability could allow attackers to access any file on the server that the application can read, potentially exposing sensitive information and putting users at risk. The consequences could lead to data leaks or unauthorized access to critical system files, which can be absolutely devastating.

Put simply

Imagine a delivery driver who doesn’t verify the address and ends up delivering your package to the wrong house, which is what happens here when the application doesn’t check the file paths properly. An attacker could easily trick the system into revealing sensitive files by manipulating the file path. This vulnerability arises from the improper use of the Flask send_file function, allowing attackers to traverse directories and access files outside of the intended scope by crafting malicious requests.

What to do

If exploited, this vulnerability could allow attackers to access any file on the server that the application can read, potentially exposing sensitive information and putting users at risk. The consequences could lead to data leaks or unauthorized access to critical system files, which can be absolutely devastating. Developers should patch the application by validating user inputs and ensuring that file paths do not allow for traversal outside the intended directories. Additionally, consider upgrading to a secure version that addresses this flaw, if available. You've got this! With a few adjustments, you can enhance security and ensure your application is safe. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 · 71.0th percentile
Published
2022-07-11T00:56Z
EPSS history
Timeline
  • 11 JUL 00:56Z
    The cinemaproject/monorepo repository through 2021-03-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5