CVE-2022-31501

The ChaoticOnyx/OnyxForum repository before 2022-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
—
EPSS
2%
Percentile
74.2
In the wild
Unconfirmed
What it is

⚠️ Watch out for misrouted deliveries! The OnyxForum repository has a sneaky absolute path traversal flaw that lets someone access files outside the intended area. 🔥 Think of this like a delivery driver taking a wrong turn and accidentally dropping off packages at the neighbor’s house instead of your own. If the driver doesn't check the address, all sorts of unintended deliveries could happen! An attacker could exploit this vulnerability to access sensitive files on the server, leading to data exposure that could compromise user data or configuration files. It's a serious oversight, as it provides a potential doorway to unauthorized access and information leakage.

Put simply

Think of this like a delivery driver taking a wrong turn and accidentally dropping off packages at the neighbor’s house instead of your own. If the driver doesn't check the address, all sorts of unintended deliveries could happen! The vulnerability exists because the Flask `send_file` function is utilized without proper validation, allowing for absolute path traversal where an attacker can manipulate file paths to access restricted files on the server.

What to do

An attacker could exploit this vulnerability to access sensitive files on the server, leading to data exposure that could compromise user data or configuration files. It's a serious oversight, as it provides a potential doorway to unauthorized access and information leakage. To secure your application, patch to versions released after May 4, 2022. Review your file serving logic and ensure that proper checks are in place to validate file paths, preventing any unauthorized access. Don't forget to implement an allowlist for accessible directories! You've got this! With a few tweaks, you'll lock this down in no time. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01506 · 74.2th percentile
Published
2022-07-11T00:52Z
EPSS history
Timeline
  • 11 JUL 00:52Z
    The ChaoticOnyx/OnyxForum repository before 2022-05-04 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5