I have 15 applications (some of them are developed in ASP.NET and some of them are developed in ASP.NET MVC) and are running under IIS 7.5. These applications strongly depend on 3rd party services to process business logic.
Recently 3rd party services added firewall at their end to filter from vulnerabilities(SQL injections, XSS-Cross-site scripting, CSRF.. etc). If they receive any request with these vulnerabilities then they are blocking at their firewall.
We have already handled XSS and CSRF vulnerabilities. But now we need to handle/filter SQL injections also. I know it not a good idea to filter/detect SQL injections for user inputs using RegEx but I don't have any option at the moment.. :(
Can anyone advise me what is the best way to detect SQL injections for all incoming requests? so that I can add it in global filter at entry level and check for SQL injections.
Before I post this question, I have gone through too many discussion in online. some of them are:
Thank you
UPDATE
I know its a duplicate that's why I have mentioned previous question links in my question above.
I am not worried about my database calls in my application since all are handled with entity framework. The only worry is 3rd part API calls.