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

Description#

User input from HTTP requests is being passed directly to path.join or path.resolve when building file paths in Express applications. This can allow attackers to manipulate file paths and access or overwrite files outside the intended directory.

Impact#

If exploited, an attacker could read, modify, or overwrite sensitive files on the server by crafting special input (like ‘../’). This can lead to data breaches, application compromise, or service disruption.