External Control of File Name or Path
Opened this issue · 0 comments
Description:
This call to processLogin() contains a path manipulation flaw. The argument to the function is a filename constructed using untrusted input. If an attacker is allowed to specify all or part of the filename, it may be possible to gain unauthorized access to files on the server, including those outside the webroot, that would be normally be inaccessible to end users. The level of exposure depends on the effectiveness of input validation routines, if any. The tainted data originated from an earlier call to AnnotationVirtualController.vc_annotation_entry.
Validate all untrusted input to ensure that it conforms to the expected format, using centralized data validation routines when possible. When using blocklists, be sure that the sanitizing routine performs a sufficient number of iterations to remove all instances of disallowed characters.
- Veracode issue ID: 231
- Severity: Medium
- Location: com/veracode/verademo/controller/UserController.java:230
- Issue found on build: 11171357
- Issue first found at: Tue, 05 Jan 2021 04:12:30 GMT
- Scanner: Veracode Static Application Security Testing