1.6.7

Structured Query Language (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.1Data Representation

1.2Data Transmission

1.3Hardware

1.4Software

1.5The Internet & its Uses

1.6Cyber Security

1.7Automated & Emerging Technologies

2Algorithms, Programming & Logic

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium