wtfe²日本語

xkcd #327

Exploits of a Mom

by Randall MunroePublished: License: CC BY-NC 2.5

Comic: Exploits of a Mom (xkcd #327). Transcript below.

Exploits of a Mom © Randall Munroe · xkcd · CC BY-NC 2.5

Hover textHer daughter is named Help I'm trapped in a driver's license factory.

Why it lands

The son's name closes the string, ends the statement, drops the Students table and comments out the rest, so a school that builds its SQL by concatenation deletes its own records. "Little Bobby Tables" became shorthand for SQL injection, and bobby-tables.com is a whole site on how to avoid it.

Transcript

  1. HI, THIS IS YOUR SON'S SCHOOL. WE'RE HAVING SOME COMPUTER TROUBLE.
  2. OH, DEAR - DID HE BREAK SOMETHING?
  3. IN A WAY—
  4. DID YOU REALLY NAME YOUR SON Robert'); DROP TABLE Students;-- ?
  5. OH. YES. LITTLE BOBBY TABLES, WE CALL HIM.
  6. WELL, WE'VE LOST THIS YEAR'S STUDENT RECORDS. I HOPE YOU'RE HAPPY.
  7. AND I HOPE YOU'VE LEARNED TO SANITIZE YOUR DATABASE INPUTS.

Credits

Original
Exploits of a Mom — Randall Munroe, xkcd

The English page shows the original image unmodified. The Japanese page shows an adaptation by wtfe²: the lettering was erased from the art and replaced with a Japanese translation. The adaptation is shared under the same license as the original.