Untrusted data can be prevented by validation

Software ResiliencyCode Reliability

Why you should care

Transactions are vital in SQL as one of them is the representation of one or more changes to the database. For instance, anytime a record is created, updated or deleted in the database, a transaction is performed in that database.

Therefore, it is recommended to manage transactions as they ensure data integrity and handle database errors as well.

Business Impacts

More often than not, Code is plagued with insecurities. These security risks can be prevented by having data validated so that the program can be healthy and secure.

Production Risk
5362

How we detect

This code insight shows how JSP scriplets can deal with data coming from HTTP queries.  Since malicious users can easily modify these data using various methods, these data should always be tested before being used.

5362

About CAST and Highlight’s Code Insights

Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.

See featuresHow it works