SQL injection and input attacks
Inserting malicious code through input fields to manipulate a database or application.
Attackers put commands into inputs that the application passes to the database unchecked. Defences are parameterised queries, input validation, least-privilege database accounts and secure coding reviews. Cross-site scripting (XSS) is a related attack on web pages.
On the exam
The root fix is secure coding (parameterised queries and input validation), not a firewall alone.
Related terms
- Input and validation controlsChecks that data entered is complete, accurate and valid.
- Penetration testingSimulating an attack to see if weaknesses can actually be exploited.
CISA Practise CISA questions on this and every other topic, each with all four options explained, in the CISA Question Hub, or take the free CISA diagnostic.
Test yourself with today’s question of the day.
