CVE-2022-31513

The BolunHan/Krypton repository through 2021-06-03 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

🚨 An unsafe use of the Flask send_file function lets attackers sneak out files from anywhere on the server's filesystem! ⚠️ Think of it like a restaurant where the chef blindly follows orders, delivering food from anywhere in the building, even from the mysterious 'staff only' areas. If someone requests a rare dish without proper checks, they might just get a whole platter of confidential recipes instead! This absolute path traversal vulnerability could allow a crafty attacker to grab any file on the server, including sensitive configuration files or user data. Imagine if they could access your secret sauce recipe—devastating for a business's integrity and trust!

Put simply

Think of it like a restaurant where the chef blindly follows orders, delivering food from anywhere in the building, even from the mysterious 'staff only' areas. If someone requests a rare dish without proper checks, they might just get a whole platter of confidential recipes instead! The flaw stems from how the BolunHan/Krypton repository uses the Flask send_file function, failing to impose necessary checks on the file paths provided, enabling potential file access without proper authorization.

What to do

This absolute path traversal vulnerability could allow a crafty attacker to grab any file on the server, including sensitive configuration files or user data. Imagine if they could access your secret sauce recipe—devastating for a business's integrity and trust! Developers should patch their application immediately to rectify this vulnerability. Implement strict input validation for file paths and ensure that the send_file function is used with secure practices to avoid unintended access. Always review your code for similar vulnerabilities! You've got this! By taking these steps, you'll strengthen your defenses and keep your server safe. 🛡️

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