Open sweep-ai[bot] opened 8 months ago
src/main/java/org/owasp/webgoat/lessons/sql_injection/introduction/SqlInjectionLesson10.java
✓
Check src/main/java/org/owasp/webgoat/lessons/sql_injection/introduction/SqlInjectionLesson10.java with contents:
Ran GitHub Actions for 70ee60bfb32c7bb76b2a6daf106c73f1ad1b199c:
PR Feedback (click)
Description
This pull request fixes a SQL injection vulnerability in the
SqlInjectionLesson10.java
file of the WebGoat project. The query used to retrieve data from theaccess_log
table is now parameterized, preventing potential SQL injection attacks.Summary
SqlInjectionLesson10.java
:access_log
table is now parameterized using a prepared statement.setString
method of the prepared statement.finally
block to ensure proper resource cleanup.Fixes #15.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: