CVE-2022-31584

The stonethree/s3label repository through 2019-08-14 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
โ€”
EPSS
1%
Percentile
72.1
In the wild
Unconfirmed
What it is

โš ๏ธ A sneaky path traversal vulnerability is hiding in the stonethree/s3label repository! It allows unauthorized file access due to improper usage of the Flask send_file function. ๐Ÿšจ Think of it like a restaurant serving a delicious dish without checking what's in the chef's pantry first โ€” if the server accepts any request for food, a crafty diner could request a dish made from ingredients they'd rather keep hidden! An attacker could potentially access any file on the server that the application can read, exposing sensitive information or even altering important configurations. This could lead to data leaks or service disruptions!

Put simply

Think of it like a restaurant serving a delicious dish without checking what's in the chef's pantry first โ€” if the server accepts any request for food, a crafty diner could request a dish made from ingredients they'd rather keep hidden! This vulnerability arises from unsafe use of the Flask send_file function, allowing attackers to exploit absolute path traversal and access files outside the intended directories.

What to do

An attacker could potentially access any file on the server that the application can read, exposing sensitive information or even altering important configurations. This could lead to data leaks or service disruptions! To fix this, ensure that the send_file function is properly secured by validating file paths and restricting access to only the intended directories. Consider updating to a newer version if available, and review your application code for similar vulnerabilities. You've got this! With a little attention to detail, you can secure your application and keep your data safe! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01392 ยท 72.1th percentile
Published
2022-07-11T01:02Z
EPSS history
Timeline
  • 11 JUL 01:02Z
    The stonethree/s3label repository through 2019-08-14 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5