CVE-2022-31552

The project-anuvaad/anuvaad-corpus repository through 2020-11-23 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

🚨 Who knew a simple function could let unwanted guests in? The Flask send_file function in the anuvaad-corpus repository is allowing absolute path traversal! ⚡ Think of it like a restaurant that serves you a dish based on an order—without checking if the order is genuine. An attacker can slip in a dodgy request that grabs files from anywhere on the server, like serving a dish that was never really ordered. This vulnerability could allow an attacker to read any file the server can access, exposing sensitive data or configurations. Imagine someone rifling through your office files just because they found a way to get in through a back door—yikes!

Put simply

Think of it like a restaurant that serves you a dish based on an order—without checking if the order is genuine. An attacker can slip in a dodgy request that grabs files from anywhere on the server, like serving a dish that was never really ordered. The issue arises because the Flask send_file function is used unsafely, permitting requests to specify absolute file paths without proper validation.

What to do

This vulnerability could allow an attacker to read any file the server can access, exposing sensitive data or configurations. Imagine someone rifling through your office files just because they found a way to get in through a back door—yikes! To secure your application, review and update the anuvaad-corpus repository to ensure that path traversal checks are enforced. It's essential to validate and sanitize any file paths before use. Stay vigilant and audit your code regularly! You've got this! With these steps, you can tighten up your security and keep those unwanted guests out! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 · 71.0th percentile
Published
2022-07-11T00:58Z
EPSS history
Timeline
  • 11 JUL 00:58Z
    The project-anuvaad/anuvaad-corpus repository through 2020-11-23 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5