CVE-2022-31554

The rohitnayak/movie-review-sentiment-analysis repository through 2017-05-07 on GitHub allows absolute path traversal because the Flask send_file function is…

published July 11, 2022

CVSS
—
EPSS
1%
Percentile
71.0
In the wild
Unconfirmed
What it is

🛡️ A sneaky absolute path traversal flaw in the rohitnayak/movie-review-sentiment-analysis repository can let attackers peek into files they shouldn’t! 🚨 Think of it like a delivery driver who, instead of following your specific instructions, just opens the garage door and grabs whatever’s inside — no questions asked! If exploited, a malicious user could access sensitive files on the server, potentially compromising data integrity and confidentiality. This could lead to revealing critical information that should remain protected, like user data or application secrets.

Put simply

Think of it like a delivery driver who, instead of following your specific instructions, just opens the garage door and grabs whatever’s inside — no questions asked! The vulnerability arises from the unsafe use of Flask's send_file function, allowing attackers to navigate the file system through crafted input and access files outside the intended directory.

What to do

If exploited, a malicious user could access sensitive files on the server, potentially compromising data integrity and confidentiality. This could lead to revealing critical information that should remain protected, like user data or application secrets. To mitigate this, make sure to validate and sanitize any file paths before using them in the send_file function. Additionally, consider implementing strict access controls and using an allowlist for any accessible files. You've got this! Follow these steps, and you'll have a shield over your application in no time! 💪✨

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01337 · 71.0th percentile
Published
2022-07-11T00:59Z
EPSS history
Timeline
  • 11 JUL 00:59Z
    The rohitnayak/movie-review-sentiment-analysis repository through 2017-05-07 on GitHub allows absolute path traversal because the Flask send_file function is…
    cvelistv5