Comment on HTTP Headers For Fun & ProfitComments−citricsquid13ycurl -I www.reddit.com HTTP/1.1 200 OK Content-Type: text/html; charset=UTF-8 Server: '; DROP TABLE servertypes; -- Date: Fri, 07 Dec 2012 10:30:26 GMT Connection: keep-alive−cpsales13yHaha, brilliant!−Selfcommit13yI don't get it - What am I missing?−citricsquid13y Server: '; DROP TABLE servertypes; -- It's a mysql injection. If someone was scraping headers and logging them and wasn't validating the input -- and their database was named "servertypes" -- it would delete the database.
Comments
curl -I www.reddit.com
Haha, brilliant!
I don't get it - What am I missing?