Property
Languagegeneric
Severitymedium
CWECWE-22: Improper Limitation of a Pathname to a Restricted Directory (‘Path Traversal’)
OWASPA05:2017 - Broken Access Control
Confidence LevelMedium
Impact LevelMedium
Likelihood LevelMedium

Description#

The code uses untrusted user input from request parameters to specify the file path in a render call. This allows attackers to control which local files are rendered and potentially exposed.

Impact#

An attacker could exploit this to read sensitive files from the server, such as application configuration, credentials, or other private data. This can lead to data breaches and compromise of system security.