Unsanitized User Input in File Path Traversal
Overview
Description
Remediation Guidelines
var sanitizedPath = userInput.replace(/^(\.\.(\/|\\|$))+/, '');if (userInput.indexOf('\0') !== -1) { // Handle or reject the input }
References
Configuration
Last updated