OWASP Vulnerabilities · interview question
How does the Spring Security filter chain protect against SQL Injection?
Multiple choiceMediumchapter-17-curatedpremiumowasp-vulnerabilitiessql-injection
Answer and explanation
Correct answer
A. Automatically converting all queries to use PreparedStatements
Why
The Spring Security filter chain can integrate with data access layers to enforce the use of PreparedStatements, which prevent SQL injection by safely handling input parameters.
Test yourself on OWASP Vulnerabilities
A free test with instant, explained results. No account needed.
More OWASP Vulnerabilities questions
- How would you explain a potential consequence of not using prepared statements in SQL queries in an interview?
- In the context of JWTs, what is the risk of not validating the 'alg' field in the header?
- Why is it important to validate the 'exp' claim in a JWT?
- How would you explain a potential risk of not using CSRF tokens in web applications in an interview?
- What does 'stateless' imply in the context of JWT?
- How would you explain a critical step in preventing stored XSS attacks in a Java-based web application in an interview?