CVE-2022-31571

The akashtalole/python-flask-restful-api repository through 2019-09-16 on GitHub allows absolute path traversal because the Flask send_file function is used…

published July 11, 2022

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

⚠️ This Flask API has a sneaky path traversal vulnerability that lets attackers access files they shouldn’t! 🤯 Think of it like a delivery driver who can read any package label just because they were handed a generic delivery receipt — a small slip that could lead to big leaks! 📦 An attacker could potentially pull sensitive files from the server, exposing user data or configuration files. If exploited, it can lead to unauthorized access or data leakage, which could be absolutely devastating for your application security!

Put simply

Think of it like a delivery driver who can read any package label just because they were handed a generic delivery receipt — a small slip that could lead to big leaks! 📦 This vulnerability stems from how the Flask send_file function is used without proper sanitation, allowing for absolute path traversal. Essentially, it enables an attacker to craft a request that can read files outside the intended directory.

What to do

An attacker could potentially pull sensitive files from the server, exposing user data or configuration files. If exploited, it can lead to unauthorized access or data leakage, which could be absolutely devastating for your application security! To secure your application, ensure you are using the Flask send_file function correctly by validating file paths and restricting access to only authorized directories. Consider updating your codebase and thoroughly testing it for any path traversal issues before deploying. You've got this! With a few adjustments, you can lock down your API and make it stronger than ever! 🛡️

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 akashtalole/python-flask-restful-api repository through 2019-09-16 on GitHub allows absolute path traversal because the Flask send_file function is used…
    cvelistv5