1.4.7

SQL Injection

Test yourself

Structured Query Language (SQL) Injection

Almost all websites today are powered by databases on the server. Structured Query Language (SQL) injection is an attack which exploits these databases.

Illustrative background for The attackIllustrative background for The attack ?? "content

The attack

  • Structured Query Language (SQL) is a language used to access databases.
  • SQL injection is a form of active attack that exploits SQL execution on web servers.
  • Attackers 'inject' specially formatted code into fields in the website, which when run on the server allow them to bypass login screens or damage the data kept on the server.
Illustrative background for Protection against SQL injectionIllustrative background for Protection against SQL injection ?? "content

Protection against SQL injection

  • Input validation sets username and password rules that don't permit the character needed to write SQL code.
  • Input sanitation inspects the user's input and removes SQL command words from the input before it is processed.
  • User access levels can be set up to prevent the web server from altering the contents of the database.

Jump to other topics

1Computer Systems

1.1Systems Architecture

1.2Memory & Storage

1.3Computer Networks, Connections & Protocols

1.4Network Security

1.5Systems Software

1.6Ethical, Legal, Cultural & Environmental Concern

2Computational Thinking, Algorithms and Programming

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson