CVE-2022-31558

The tooxie/shiva-server repository through 0.10.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
—
EPSS
1%
Percentile
69.8
In the wild
Unconfirmed
What it is

⚠️ Watch out! An absolute path traversal vulnerability lurks in the tooxie/shiva-server repository up to version 0.10.0, thanks to an unsafe use of the Flask send_file function. 🕵️‍♂️ Think of it like a restaurant where the chef gives out the master recipe book without checking who’s asking. Anyone can walk in and whip up any dish, even if they’re not supposed to! An attacker could exploit this vulnerability to access sensitive files on your server, potentially leading to unauthorized data exposure or even system compromise. Imagine a well-guarded vault suddenly offering an open door to anyone with a curious mind — that's the risk!

Put simply

Think of it like a restaurant where the chef gives out the master recipe book without checking who’s asking. Anyone can walk in and whip up any dish, even if they’re not supposed to! This vulnerability arises because the send_file function in Flask is misconfigured, allowing attackers to use path traversal sequences (like '../') to access files outside of the intended directory.

What to do

An attacker could exploit this vulnerability to access sensitive files on your server, potentially leading to unauthorized data exposure or even system compromise. Imagine a well-guarded vault suddenly offering an open door to anyone with a curious mind — that's the risk! To mitigate this risk, update to the latest version of the tooxie/shiva-server repository that addresses this issue. Additionally, review your file handling methods to ensure proper validation and restrictions on file paths. 🚀 You've got this! Stay vigilant and fix this vulnerability to keep your server secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01282 · 69.8th percentile
Published
2022-07-11T00:59Z
EPSS history
Timeline
  • 11 JUL 00:59Z
    The tooxie/shiva-server repository through 0.10.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5