CVE-2022-31572

The ceee-vip/cockybook repository through 2015-04-16 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 sneaky absolute path traversal vulnerability could let attackers access files they shouldn't! Imagine a delivery person following an incorrect address, delivering packages all over the neighborhood instead of to the right house! 📦 This flaw is like a restaurant that accepts orders without checking if the table number is valid; a single mistake could lead the server to deliver someone else's meal right to your guests' table! If exploited, attackers could gain unauthorized access to sensitive files on the server, potentially exposing critical data or system configurations. It's a clear risk that could lead to information leaks or even further attacks, putting the entire application at risk!

Put simply

This flaw is like a restaurant that accepts orders without checking if the table number is valid; a single mistake could lead the server to deliver someone else's meal right to your guests' table! The issue arises due to the unsafe use of Flask's send_file function, which allows for absolute path traversal, enabling an attacker to read arbitrary files on the server by manipulating the file path.

What to do

If exploited, attackers could gain unauthorized access to sensitive files on the server, potentially exposing critical data or system configurations. It's a clear risk that could lead to information leaks or even further attacks, putting the entire application at risk! To remediate this vulnerability, ensure you validate and sanitize all file paths before using them with the send_file function. Upgrade the application and closely review any code that handles user input related to file access. You've got this! Fixing this issue will enhance your application's security 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-11T01:00Z
EPSS history
Timeline
  • 11 JUL 01:00Z
    The ceee-vip/cockybook repository through 2015-04-16 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5