CVE-2022-31508

The idayrus/evoting repository before 2022-05-08 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

⚠️ Unchecked paths are lurking here! This absolute path traversal vulnerability in the idayrus/evoting repository means an attacker could navigate your server’s directory like a tour guide with an unrestricted map. 🔍 Think of it as a restaurant where patrons can access the kitchen and dining areas just by asking the staff to open any door — a recipe for disaster! In this case, the Flask send_file function acts like a door without a lock, allowing unauthorized access to sensitive server files. An intruder could potentially read or download any file on the server, leading to exposure of sensitive information or even server configuration details. This could compromise the entire application, putting user data and system integrity at risk.

Put simply

Think of it as a restaurant where patrons can access the kitchen and dining areas just by asking the staff to open any door — a recipe for disaster! In this case, the Flask send_file function acts like a door without a lock, allowing unauthorized access to sensitive server files. This vulnerability arises from the unsafe use of the Flask send_file function, which allows attackers to manipulate the file paths and access files outside the intended directory. Without proper validation, this opens the door to absolute path traversal attacks.

What to do

An intruder could potentially read or download any file on the server, leading to exposure of sensitive information or even server configuration details. This could compromise the entire application, putting user data and system integrity at risk. To remediate this vulnerability, update the idayrus/evoting repository to the latest version (post-2022-05-08). Ensure that file path inputs are validated and sanitized to prevent unauthorized access. Consider implementing additional security measures such as directory restrictions and logging access attempts. You've got this! With a few adjustments, you'll secure your server and keep those pesky intruders at bay. 🛡️

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