gwhittemore-veracode / Veracode-GW-training

2 stars 0 forks source link

Information Exposure Through an Error Message [VID:209:WEB-INF/views/login.jsp:58] #272

Open github-actions[bot] opened 1 year ago

github-actions[bot] commented 1 year ago

https://github.com/gwhittemore-veracode/Veracode-GW-training/blob/3e6598b8340cfd817470866404f9c90179a22e60/WEB-INF/views/login.jsp#L53-L63

Filename: WEB-INF/views/login.jsp

Line: 58

CWE: 209 (Information Exposure Through an Error Message)

The application calls the javax.servlet.jsp.JspWriter.print() function, which may expose information about the application logic or other details such as the names and versions of the application container and associated components. This information can be useful in executing other attacks and can also enable the attacker to target known vulnerabilities in application components. The first argument to print() contains data from an error message (possibly containing untrusted data) from the variable error. The data from an error message (possibly containing untrusted data) originated from earlier calls to AnnotationVirtualController.vc_annotation_entry, java.lang.Throwable.getMessage, and java.lang.Throwable.printStackTrace. The data from an error message (possibly containing untrusted data) is directed into an output stream returned by javax.servlet.jsp.JspWriter. Ensure that error codes or other messages returned to end users are not overly verbose. Sanitize all messages of any sensitive information that is not absolutely necessary. References: CWE

github-actions[bot] commented 1 year ago

Veracode issue link to PR: https://github.com/gwhittemore-veracode/Veracode-GW-training/pull/189