CVE-2022-31514

The Caoyongqi912/Fan_Platform repository through 2021-04-20 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 vulnerable call to Flask's send_file function is opening the door to potential chaos! Imagine a restaurant that allows patrons to order any dish simply by describing it, without verifying if it's actually on the menu — that’s how this absolute path traversal works, letting unauthorized files be served up! An attacker could craft a request to access any file on the server, potentially exposing sensitive data and configuration files. It’s like handing out the keys to the vault without even checking who's asking!

Put simply

Imagine a restaurant that allows patrons to order any dish simply by describing it, without verifying if it's actually on the menu — that’s how this absolute path traversal works, letting unauthorized files be served up! This vulnerability arises from using Flask's send_file function unsafely, allowing absolute path traversal, which means attackers can access files outside the intended directory structure.

What to do

An attacker could craft a request to access any file on the server, potentially exposing sensitive data and configuration files. It’s like handing out the keys to the vault without even checking who's asking! To mitigate this risk, ensure that the send_file function is used with proper file path validation. It's also wise to update to a version of the library that addresses this issue and conduct a thorough review of your file-serving logic. You've got this! Take these steps to patch things up and keep your data safe! 🛡️

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 Caoyongqi912/Fan_Platform repository through 2021-04-20 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5