CVE-2022-31528

The bonn-activity-maps/bam_annotation_tool repository through 2021-08-31 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

🚨 A sneaky absolute path traversal vulnerability is hiding in the bonn-activity-maps/bam_annotation_tool repository! 🔥 Think of this like a restaurant where the waiter doesn't check your order and just assumes you want anything off the menu. This vulnerability lets an attacker request any file on the server without proper checks, potentially exposing sensitive information. If exploited, an attacker could gain access to any file the application can read, leading to data leaks or even the exposure of sensitive server configurations. This could be absolutely devastating for the integrity of your application and the security of your users.

Put simply

Think of this like a restaurant where the waiter doesn't check your order and just assumes you want anything off the menu. This vulnerability lets an attacker request any file on the server without proper checks, potentially exposing sensitive information. This vulnerability arises from the unsafe use of the Flask `send_file` function, allowing attackers to traverse directories and access files outside of the intended directory scope.

What to do

If exploited, an attacker could gain access to any file the application can read, leading to data leaks or even the exposure of sensitive server configurations. This could be absolutely devastating for the integrity of your application and the security of your users. To remediate this issue, validate all file paths before using them with `send_file`, and consider using a safe whitelist of acceptable file locations. It's also a good idea to review your application's file handling practices to ensure they adhere to security best practices. You've got this! With a few adjustments, you can patch this up and keep your application secure. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 · 71.0th percentile
Published
2022-07-11T00:56Z
EPSS history
Timeline
  • 11 JUL 00:56Z
    The bonn-activity-maps/bam_annotation_tool repository through 2021-08-31 on GitHub allows absolute path traversal because the Flask send_file function is used…
    cvelistv5