CVE-2022-31502

The operatorequals/wormnest repository through 0.4.7 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

⚠️ An absolute path traversal is hiding here! The operatorequals/wormnest repository allows attackers to sneak in and access files outside its intended directory, thanks to an unsafely used Flask function. 🔥 Think of it like a restaurant where the chef, trusting an overly vague order, inadvertently delivers dishes meant for the VIP room to the wrong table. This vulnerability lets attackers 'order' files at will from anywhere on the server! This could lead to unauthorized access to sensitive files on the server, which can expose configuration settings, user data, or even critical application files. The consequences can be absolutely devastating if malicious actors exploit this vulnerability to gain insights into the system's architecture.

Put simply

Think of it like a restaurant where the chef, trusting an overly vague order, inadvertently delivers dishes meant for the VIP room to the wrong table. This vulnerability lets attackers 'order' files at will from anywhere on the server! The issue arises from the use of Flask's send_file function without proper safeguards, allowing attackers to manipulate file paths and access files outside the designated directory.

What to do

This could lead to unauthorized access to sensitive files on the server, which can expose configuration settings, user data, or even critical application files. The consequences can be absolutely devastating if malicious actors exploit this vulnerability to gain insights into the system's architecture. To secure your application, upgrade the operatorequals/wormnest repository to version 0.4.8 or later. Additionally, implement strict path validation to ensure only intended files are accessible through the send_file function. You've got this! Fixing this vulnerability will make your application stronger and more secure. 🛡️

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