Search code examples
sqlasp.netasp.net-mvc-4sql-injection

Need information on SQL Injection in ASP.Net MVC 4


enter image description here

I have a report generated by IBM appscanner tool. It scanned my mvc application and on some urls it gave me high alerts.
I'm trying to figure out how to perform parameter manipulation on my page like above information provided in the report to find the issue.
Example of the link on which the above report is based : localhost:46887/Myproject/country/edit/1


Solution

  • As a rule of a thumb: Aways cast the values (provided through Request) to concrete type which are you using in the application logic. If you are using ORM/ODM to access the data storage you recieve built in SQL injection protection :). This tool may be examins only the the query string and just assumes that injection is possible.