Many organizations use static code analyzers like Fortify Source Code Analyzer to find security flaws in applications. But to many developers, reports from Fortify Source Code Analyzer are viewed to create additional work by revealing vulnerabilities (both real ones and false positives), while offering no solution to advance their remediation. Who fixes the vulnerabilities in the report?
SQL injection is a serious security threat that can compromise the data and functionality of your web applications. It occurs when an attacker injects malicious SQL statements into user input fields, such as forms or URLs, that are then executed by the underlying database. SQL injection can allow an attacker to access, modify, or delete sensitive data, execute commands on the server, or even take over the database.
How to remediate SQL injection depends on the programming language and database, but here are some general guidelines:
Here are some examples of fixing SQL injection vulnerabilities:
var username = Request.Form["username"]; var password = Request.Form["password"]; var sql = "SELECT * FROM Users WHERE Username = @username AND Password = @password"; var command = new SqlCommand(sql, connection); command.Parameters.Add(new SqlParameter("@username", username)); command.Parameters.Add(new SqlParameter("@password", password)); command.ExecuteNonQuery();
String username = request.getParameter("username"); String password = request.getParameter("password"); String query = "SELECT * FROM Users WHERE Username = ? AND Password = ?"; PreparedStatement statement = connection.prepareStatement(query); statement.setString(1, username); statement.setString(2, password); statement.execute();
Lucent Sky AVM works like to a static code analyzer to pinpoint vulnerabilities, and then offers Instant Fixes - code-based remediation that can be immediately placed in source code to fix the common vulnerabilities like cross-site scripting (XSS), SQL injection and path manipulation.
For .NET (C# and VB.NET) and Java applications, Lucent Sky AVM can fix up to 90% of the vulnerabilities it finds.
While SAST tools like Fortify Source Code Analyzer only tell you where vulnerabilities are, Lucent Sky AVM will tell you where they are and how to fix them (and actually do it for you, if you like). SAST tools like Fortify Source Code Analyzer was designed to be used by security professionals, and calibrated to find large number of results, then relying on security experts to fine-tune it to weed out false positives. Lucent Sky AVM focuses on finding vulnerabilities that will cause real impact on the application's security, and only fix what can be fixed with confidence, based on settings set by you as well as your development and security teams. You can learn more about Lucent Sky AVM's remediation process.
If your organization's compliance requires the remediation of all results found by Fortify Source Code Analyzer (or results that fit a certain criteria, critical and high, for example), Lucent Sky AVM can be customized to find the same results while providing additional functional value - automatically fixing those vulnerabilities.
Many static code analysers are designed for and to be used by security professionals. This means they require expert users, and their assessments and outputs aren't developer friendly. Lucent Sky AVM offers clear reporting that caters to both security professionals and developers, providing both analysis results and Instant Fixes (code-based remediation to common vulnerabilities like cross-site scripting and SQL injection) that a non-expert can use to secure their code.
For organizations needing compliance reporting, Lucent Sky can help teams pass Fortify Source Code Analyzer scans and cut out the noise of false positives, while drastically reducing the time and effort required to secure an application.
Download a report comparison between Lucent Sky AVM and SAST tools to see the difference.
Request a demo and see Lucent Sky AVM in action yourself. To learn more about how Lucent Sky AVM can be used in combination with Fortify Source Code Analyzer in your environment, get in touch!Contact us