CVE-2022-31582

The shaolo1/VideoServer repository through 2019-09-21 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely

published July 11, 2022

CVSS
โ€”
EPSS
1%
Percentile
72.1
In the wild
Unconfirmed
What it is

โš ๏ธ A path traversal vulnerability lurking in the shaolo1/VideoServer means an attacker could potentially access any file on your server! Think of this as a delivery driver who follows a poorly written address โ€” instead of just dropping off packages in the designated area, they could end up rifling through your entire office! ๐Ÿ“ฆ This flaw allows unauthorized users to access sensitive files on the server, leading to potential data exposure, unauthorized access, or even the ability to manipulate files. An attacker could exploit this weakness to gain vital information that should be kept private. ๐Ÿšจ

Put simply

Think of this as a delivery driver who follows a poorly written address โ€” instead of just dropping off packages in the designated area, they could end up rifling through your entire office! ๐Ÿ“ฆ The issue arises from the unsafe use of the Flask `send_file` function, which permits absolute path traversal, effectively letting attackers specify paths outside the intended directories.

What to do

This flaw allows unauthorized users to access sensitive files on the server, leading to potential data exposure, unauthorized access, or even the ability to manipulate files. An attacker could exploit this weakness to gain vital information that should be kept private. ๐Ÿšจ Developers should update their implementation to validate input paths securely and ensure that only intended files are accessible. Review and refactor the code to use safer file handling mechanisms within Flask. ๐Ÿ”’ You can tackle this! With the right fixes, you'll have your application locked down and secure in no time. ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01392 ยท 72.1th percentile
Published
2022-07-11T01:01Z
EPSS history
Timeline
  • 11 JUL 01:01Z
    The shaolo1/VideoServer repository through 2019-09-21 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely
    cvelistv5