Security

SQL injection in plain words, how one field leaks the whole database

SQL injection in plain words, how one field leaks the whole database

Your website talks to a database non-stop: at login, during searches, when a form is sent. SQL injection means that an attacker smuggles their own command into that conversation and the database runs it.

How it works (no jargon)

Picture a search field. Instead of a word, the attacker types a crafted string that the database reads not as text to find but as a command: "show all logins and passwords". If the site does not separate data from commands, the database dutifully hands over the contents.

The result can be dire: leaked accounts, passwords (even hashed ones, later cracked offline), customer data, and sometimes content tampering or the creation of an administrator account.

This is not theory

SQL injection is behind many high-profile break-ins to WordPress and Joomla sites, usually through a vulnerable plugin or extension, not the core itself. The well-known flaw in Joomla 3.7 (2017) was exactly an SQL injection accessible without logging in.

What protects you

  • Updates. Most such flaws are bugs in a specific plugin; the patch closes them.
  • A web application firewall (WAF). It filters out common, automated attempts before they reach the database.
  • The principle of least privilege for the database account, so any break-in has a smaller reach.
  • Backups: in case someone messes with the data.

You will not write a patch for someone else's plugin yourself, but you can make sure everything is up to date and shielded. That is what we do as part of our care service, get in touch.

Related articles

Related services

Free security audit

Do not wait for the site to go down

Send us your website address through the form. We will check it for threats and performance, and you get concrete recommendations plus a free security quote.

Request a free audit →

No obligation · Contact via the form · Reply within 1 business day

Looking for a fresh start? We will build your site from scratch, fast and secure. See the MP WebSolutions offer.