Difference between revisions of "Little Bobby Tables"

From Wiki @ Karl Jones dot com
Jump to: navigation, search
(Full name)
(Image)
Line 5: Line 5:
 
== Image ==
 
== Image ==
  
(TO DO: image.)
+
Source: [http://xkcd.com/ Exploits of a Mom]
 +
 
 +
http://karljones.com/karljones.com/images/wiki/exploits_of_a_mom.png
  
 
== Dialog ==
 
== Dialog ==

Revision as of 04:15, 23 September 2015

Little Bobby Tables is the nickname of a character from xkcd, a webcomic by Randall Munroe.

The character represents a cautionary tale about the importance of sanitizing user inputs, in this case against SQL injection attacks.

Image

Source: Exploits of a Mom

exploits_of_a_mom.png

Dialog

School: Hi, this is your son's school. We're having some computer trouble.

Mom: Oh, dear -- Did he break something?

School: In a way. Did you really name your son Robert'); DROP TABLE Students; --?

Mom: Oh. Yes. Little Bobby Tables we call him.

School: Well, we've lost this year's student records. I hope you're happy.

Mom: And I hope you've learned to sanitize your database inputs.

Full name

Robert'); DROP TABLE Students;

Results of SQL statement

In the comic, the school has entered Robert'); DROP TABLE Students; into the database, resulting in the deletion of all student records.

Sanitize your inputs

It's worth repeating several times: sanitize your database inputs.

More generally: sanitize all your inputs, whatever the purpose.

See also

External links