Home / 

In this blog, we will discuss vulnerabilities found in Microsoft ASP.NET that are specific to Local File Inclusion and SQL Injection, and learn about how we can mitigate them.

The Local File Inclusion (LFI) vulnerability occurs in ASP.NET when a web application allows a user to read any file from the web server irrespective of its extension. It may lead to information disclosure vulnerability, allowing a malicious user to gain complete control of the web server when used in conjunction with other vulnerabilities, like remote execution.

SQL Injection vulnerability occurs when a user’s input is not sanitized and is sent as a parameter to SQL statements. Finding a chance, a malicious user may alter the data that can lead to session hijacking (account takeover) or injection of harmful scripts in the data to install malware (malicious software) on the end-user system when they visit the website. One of the major consequences of SQL Injection vulnerability in a web application is that the malicious user may take control of the entire web server or leak data to the public to bring down the business of an organization and hurt them financially.

Developers must be trained in coding standards so that they can securely write code. Code review procedures must be in place so that such vulnerabilities can be identified early during the development/testing phase. The testing phase must also include security checks to ensure that applications are secure from such vulnerabilities.

SQL Injection in ASP.NET Web Applications