Skip to content

Latest commit

 

History

History
19 lines (13 loc) · 661 Bytes

03-03-sql-injection.md

File metadata and controls

19 lines (13 loc) · 661 Bytes

SQL Injection

Example

Who's on First?

In "Who's on first?", Abbott names the players on a baseball team for Costello, but their names confuse Costello because they are also English words that could be part of his questions or Abbott's answers.

For example, the player on first base is "Who", then when asking "Who's on first" it could mean either "Is the person on first base named Who?" or "What is the name of the person in first base?".

Explanation

A SQL Injection works by introducing a term in a statement that changes its meaning for the reader from what the writer actually meant.