CVE-2022-31504

The ChangeWeDer/BaiduWenkuSpider_flaskWeb repository before 2021-11-29 on GitHub allows absolute path traversal because the Flask send_file function is used…

published July 11, 2022

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

⚠️ An absolute path traversal vulnerability lurks in the shadows! This sneaky flaw in the ChangeWeDer/BaiduWenkuSpider_flaskWeb repository allows attackers to access files outside of the intended directory. 🔥 Think of it like a waiter at a restaurant who doesn't check orders properly and accidentally delivers someone else's dessert to your table — ideal for a surprise but not for your privacy! An attacker could potentially access sensitive files on the server, leading to data exposure or even a breach of private information. This could compromise user data and pose a significant risk to the integrity of the system.

Put simply

Think of it like a waiter at a restaurant who doesn't check orders properly and accidentally delivers someone else's dessert to your table — ideal for a surprise but not for your privacy! This vulnerability arises due to the unsafe use of Flask's `send_file` function, allowing attackers to navigate the file system and access files outside the designated paths by manipulating URLs.

What to do

An attacker could potentially access sensitive files on the server, leading to data exposure or even a breach of private information. This could compromise user data and pose a significant risk to the integrity of the system. To mitigate this issue, update the ChangeWeDer/BaiduWenkuSpider_flaskWeb repository to the latest version if available. Additionally, ensure proper validation of file paths in the `send_file` function to restrict access to intended directories only. You've got this! By taking these steps, you'll be safeguarding your application like a pro! 🛡️

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 ChangeWeDer/BaiduWenkuSpider_flaskWeb repository before 2021-11-29 on GitHub allows absolute path traversal because the Flask send_file function is used…
    cvelistv5