CVE-2022-31560

The uncleYiba/photo_tag repository through 2020-08-31 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

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

โš ๏ธ An unsafe call to the Flask `send_file` function opens the door to absolute path traversal in the uncleYiba/photo_tag repository on GitHub! ๐Ÿ“‚ Think of it like a pizza delivery where the driver follows an incorrect address and ends up at the wrong house โ€” your sensitive files could be delivered to any location the attacker specifies instead! This vulnerability could allow an attacker to access sensitive files on the server, potentially exposing private data or configuration files. While this isn't a critical flaw, it could still lead to some seriously unwanted surprises if exploited!

Put simply

Think of it like a pizza delivery where the driver follows an incorrect address and ends up at the wrong house โ€” your sensitive files could be delivered to any location the attacker specifies instead! This flaw arises from the unsafe use of Flask's `send_file` function, which fails to properly validate the file paths, enabling absolute path traversal and unauthorized access to files on the server.

What to do

This vulnerability could allow an attacker to access sensitive files on the server, potentially exposing private data or configuration files. While this isn't a critical flaw, it could still lead to some seriously unwanted surprises if exploited! To protect against this, validate all inputs to `send_file` and ensure that paths are properly sanitized. Consider updating to a secure version or applying patches as they become available in the repository. ๐Ÿ›ก๏ธ You've got this! By following these steps, you can keep your application safe and sound! ๐Ÿš€

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01245 ยท 69.1th percentile
Published
2022-07-11T00:59Z
EPSS history
Timeline
  • 11 JUL 00:59Z
    The uncleYiba/photo_tag repository through 2020-08-31 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5