I have a spring MVC web application and am running ZAP Active scan on it.
I noticed that ZAP will modify URL , and add additional parameter named query
and value query+AND+1%3D1+--+
to test SQL Injection. And in my case, it raise HIGH MEDIUM SQL Injection.
The application is not even reading the parameter query
and hence am sure the response is always the same, with or without this parameter. So my question is
What is the logic behind testing SQL Injection by adding a parameter which is not read by application and raising it as SQL Injection alert? I could understand when value of a parameter that is read in application is changed but not this. This has raised false positive SQL Injection in web applications that I work on.
This is related to a question that I have asked in Stackoverflow but havent found solution yet . https://stackoverflow.com/questions/51874818/false-positive-sql-injection-by-zap-in-spring-mvc
I hope to hear something in security forum.