Skip to content
Visual explainer 2h 30m to learn 4 steps

Injection vulnerabilities (concepts)

Explain why injection happens across SQL, command and template contexts and how to prevent it.

By Invicly Tech, , in Ethical Hacking & Penetration Testing. About 3 minutes to read.

Topic 17 of 32

In short

Injection vulnerabilities share one root cause across SQL, command and template contexts: untrusted data is interpreted as code. The prevention is always to keep data and code separate with parameterisation, allowlists and least privilege.

Press Play on a diagram to walk through it one step at a time.

MapInjection family
Injection
  • SQL injection
    • Database queries
  • Command injection
    • OS commands
  • Template injection
    • Template engines
  • LDAP injection
    • Directory queries

Learn it in 4 short steps

About 40m each. Track them with a timer in your plan.

  1. 1
    Explain untrusted data meeting an interpreter~40m
  2. 2
    Compare SQL, command and template injection~40m
  3. 3
    Explain parameterisation and allowlists~40m
  4. 4
    Explain least-privilege service accounts~40m

Key points

  • All injection shares the same root cause.
  • Untrusted data must never be interpreted as code.
  • Parameterisation and allowlists prevent injection.
  • Least-privilege service accounts limit the damage.

Key terms

Tap a card to flip it. 0/4 known

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Go deeper

ShareXLinkedInWhatsApp