NormanWenzelWSS / WebGoat

WebGoat is a deliberately insecure application
https://owasp.org/www-project-webgoat/
Other
0 stars 1 forks source link

Fixed SQL Injection #31

Open NormanWenzelWSS opened 2 years ago

NormanWenzelWSS commented 2 years ago

This is an automatic PR that will fix the following vulnerability in your custom code:

File Vulnerability CWE Severity
SqlInjectionLesson5b.java SQL Injection 89 High

Remediation Description: Using static code analysis and information from the detection file we select the relevant user provided input to be sanitized. To remediate this vulnerability we use a technique called parameterization in which the query structure is built without the user provided input that is being inserted into the query afterwards. Parameterization prevents the option of changing the sql query structure using special characters that can be inserted by the user. For more information see https://cheatsheetseries.owasp.org/cheatsheets/Query_Parameterization_Cheat_Sheet.html.

Feedback: WhiteSource Cure is currently in beta program. We need your help to improve our remediation experience. In case you close the PR, please add one of the following numbers to the comment so that we understand the reasons why you did not accept the change:

  1. Suggestion was incorrect
  2. Suggestion needs manual adaptation
  3. Not interested in automatic remediation

We will also look forward for any additional feedback, so feel free to add further comments. When you want to get involved in the beta program, please contact cure@whitesourcesoftware.com.

Thank you for your help, WhiteSource Cure team