Java : Unsafe external file inclusion in JSP
Classification
Overview
Data from an untrusted source is used to dynamically include files into JSP. This may lead to malicious code execution.
Modern scripting languages allow to dynamically include code from third-party files, which promotes code reuse. This mechanism is often used to maintain the uniform appearance of pages, for code division into smaller units, and similar tasks. File inclusion vulnerabilities occur when the path to the included file is defined based on data from an untrusted source, e.g., user input.
DerScanner Severity Score
Check your Java code for this vulnerability, free
Request a free pilot of DerScanner. We give you access and help with the first scan. It works in the cloud and on-premise.
Try it on your code, free
By submitting this form, I acknowledge that DerScanner may process my personal data I provided above for purposes explained above. More details about the processing.
