How it works · 20 of 34 Core

What are injection attacks like SQL injection?

When data is read as a command

Injection: Injection happens when a program builds a command out of text a visitor typed, so text written to look like an instruction gets carried out; the fix is to keep data in a separate slot that is never read as a command.

Loading the animation…

Say it like this Injection is when a program glues what you typed into a command, so typed words get carried out; keep visitors' text in a separate slot, like a parameterised query, and it can only ever be data.

Under the hood — for builders
Real example: the slip as a database query, run here
A login form looks up a name. Glued: the typed text becomes part of the SQL (the database's command language). Parameterised: the query has a "?" slot and the text is sent separately:
Same mistake, many languages
Wherever a program glues typed text into something another program will run:
How common: OWASP's data
OWASP Top 10:2021 ranks injection third of all web risks, from testing data that companies contributed:
In our paper: why blocklists lose
n8n tried to block dangerous words in its formulas instead of keeping data apart. Pillar Security broke it three times in three months:
Ask a vendor
Is any user text ever pasted into a query, a shell command or a formula? Show us the parameterised calls.
Watch out
"We filter bad characters" is a blocklist; it loses to the next trick. Separate data, then also validate it.
Sources
OWASP Top 10:2021 A03 · our workflow-automation paper (Pillar Security, 2026) · SQLite run for this card.

What happens in the injection animation, step by step?

  1. A program is a clerk who reads an order slip aloud and does what it says. Your name goes in the box.
  2. Type a name, and the clerk pays that person. So far, so good.
  3. Your turn: drag words into the name box. What you type becomes part of the order. Try making the clerk do something else.
  4. The clerk can't tell your name from the order around it. Text that reads like an instruction gets carried out: injection.
  5. The fix: put what visitors type in a sealed envelope the clerk files, never reads aloud as an order. In databases: parameterised queries.
  6. Not every break is a misread order. Some programs write past the edge of the box they were given. Next: memory-safety bugs.

What everyday example explains injection?

A bank clerk who reads each order slip aloud and does exactly what it says. Write "Ravi, and open the safe" in the name box, and the clerk walks to the safe.

Why should a team care about injection?

You will review a vendor or your own app; ask whether any user text is ever pasted into a database query, a shell command or a formula, and require parameterised queries and an allow-list.