CVE-2022-31563

The whmacmac/vprj repository through 2022-04-06 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

⚠️ This vulnerability allows absolute path traversal in the whmacmac/vprj repository, a surprisingly sneaky flaw that could expose sensitive files on your server! Think of it like a postal worker misdelivering packages because the address label is ignored. Instead of just dropping off the mail at the right house, they wander through the neighborhood, delivering parcels wherever they please! If exploited, an attacker could potentially access any file the server can read, opening the door to sensitive information — imagine the chaos of someone rifling through your files without permission! This could lead to data leaks or unauthorized access, posing a real risk to your security.

Put simply

Think of it like a postal worker misdelivering packages because the address label is ignored. Instead of just dropping off the mail at the right house, they wander through the neighborhood, delivering parcels wherever they please! The issue stems from the unsafe use of Flask's send_file function, which fails to properly validate file paths, allowing attackers to manipulate them and request files outside the intended directory.

What to do

If exploited, an attacker could potentially access any file the server can read, opening the door to sensitive information — imagine the chaos of someone rifling through your files without permission! This could lead to data leaks or unauthorized access, posing a real risk to your security. To mitigate this vulnerability, ensure you're using the latest version of the repository and implement proper path validation in your Flask application. Also, review your use of the send_file function to restrict access to only authorized files. You've got this! With some updates and careful coding, your application will be as safe as houses! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01245 · 69.1th percentile
Published
2022-07-11T01:00Z
EPSS history
Timeline
  • 11 JUL 01:00Z
    The whmacmac/vprj repository through 2022-04-06 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5