Skip to main content

Glossary

What Is SQL Injection

SQL injection is an attack where malicious database commands are inserted through input fields. Plain-English definition for business owners.

Definition

SQL injection is a type of cyberattack where an attacker inserts malicious database commands into an input field (a login form, search bar, or URL parameter) that the website passes directly to its database without proper validation. If the application does not sanitise the input, the database executes the attacker's commands as though they were legitimate. This can allow the attacker to read, modify, or delete data, bypass authentication, or even take control of the database server entirely.

Why It Matters

SQL injection has been one of the most damaging web vulnerabilities for over two decades, and it is still responsible for major data breaches today. Any website or application that stores information in a database and accepts user input is a potential target. For a business owner, a successful SQL injection attack could mean customer data being stolen, orders being tampered with, or your entire database being wiped. The fix is well understood: parameterised queries and input validation remove the vulnerability entirely, so a modern application has no excuse for being exposed. If your development team is not testing for SQL injection, that is a serious red flag.

Example

Your website has a login form. Instead of entering a normal username, an attacker types a specially crafted string that manipulates the database query behind the login. Without proper input handling, the database interprets the string as a command and grants access without a valid password. The attacker now has access to your admin panel, customer records, and order data. A properly built login form treats the input as plain text and never allows it to alter the underlying database query. SQL injection is closely related to cross-site scripting (XSS), another common input-based attack, and both vulnerabilities are typically caught during penetration testing. More security definitions are in the glossary.

Portrait of Alexander De Sousa, founder of Digital Royalty
Founder-led
“I’ve put everything I know into how this company works — the standards, the method, the care on every project. It runs through the whole team, and I hold us all to it.”

Alexander De Sousa · Founder LinkedIn

Featured on BBC Radio Solent

Get started

Tell us what you need

A few quick questions, then a straight answer from a real person — usually within a few hours.

Tell us what you're working on

Whether it's a new site, a platform, or a process that shouldn't be manual any more — we'll tell you honestly if we can help.