CVE-2022-31568

The Rexians/rex-web repository through 2022-06-05 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

⚠️ Watch out for path traversal! The Rexians/rex-web repository is letting absolute paths slip through the cracks like a delivery driver ignoring the correct address. 📦 Think of a shop with a flimsy entry policy, where a door is wide open, allowing anyone to wander into the back room without showing ID. That's what happens here with the Flask send_file function being misused—an invite for unwanted visitors! An attacker could potentially access any file on the server, allowing them to read sensitive data or even modify files. It's like giving someone the master key to your storage room—absolutely devastating!

Put simply

Think of a shop with a flimsy entry policy, where a door is wide open, allowing anyone to wander into the back room without showing ID. That's what happens here with the Flask send_file function being misused—an invite for unwanted visitors! This vulnerability stems from improper validation when using the Flask send_file function, which permits absolute path traversal, enabling unauthorized file access.

What to do

An attacker could potentially access any file on the server, allowing them to read sensitive data or even modify files. It's like giving someone the master key to your storage room—absolutely devastating! To secure your application, ensure you are using version 1.0.0 or later of the rex-web repository. Review your file handling code to implement proper validation and restrict access to only permitted paths. Don't leave the door wide open! You've got this! Follow these steps, and you’ll have your application safer than ever. 🛡️

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