r/talesfromtechsupport • u/seraph77 chown -R us /base • Jul 21 '13
A typical sysadmin's day (2)
A follow-up from the first
- another case of SQL injection
C: my website has been hacked!
M: yep, looks like you've been compromised by some form of SQL injection. They also imbedded some iframe objects that are probably XSS'ing all your visitors.
C: WHAT?! incoherent rage/lawsuit/manager/etc
M: You really need to sanitize all user-submitted data before passing it to the db. Have you talked to your web guy? This should be fairly easy to implement.
C: He hasn't been with us for 5 years. Why should we need to do that? We have a firewall!
M: A firewall isn't a magic anti-hacker device. Unless you want to throw big money at a DPI/IDS device, this level of security needs to come from the site code. Most likely this attack came in on port 80 like every other web/http request and would never have been detected by the firewall.
C: well, can we block port 80 then?
M: malicious grin
Spongebob 10 minutes later
C: All my websites are down!!
M: Yes, that's a common result of blocking port 80 to your server.
56
u/hak8or Jul 21 '13
Can someone explain this? Can you really throw lots of money at a box which will be able to prevent SQL injects and other forms of attacks?
266
u/[deleted] Jul 21 '13
Not warning a client that blocking 80 will take the website down is kind of awful.
I mean, yes, the client's obviously an idiot, but smilingly implementing their request when you know they don't really want what they say they want, crosses the line from BOFH territory into "fire this guy, he clearly doesn't like money"
21
u/juror_chaos I Am Not Good With Computer Jul 21 '13
Yeah, this is what happens when you drive away all your talent. The machines keep running until they break and then you go from "everything is fine and we're saving all this money" to "close the business and sell the furniture"
Like everything else, I suppose this has a solution that will be probably 2-3x more than they would've paid otherwise.
5
u/Viper007Bond Jul 21 '13
Amazing stuff. More please!
Oh god, I can't help but hear the narrator's voice now for that.
8
u/markekraus LART bat wielder Jul 21 '13
Law 10 of the Immutable Laws of Security: "Technology is not a panacea"
10
u/djimbob Jul 21 '13
This is a very good intro to SQLi for that idiot user:
http://security.stackexchange.com/questions/25684/how-can-i-explain-sql-injection-without-technical-jargon/25710#25710
3
u/[deleted] Jul 21 '13
Please start a blog/tumblr/Twitter account of these. I cannot get enough.
3
u/markevens I see stupid people Jul 22 '13
I like these. Perfect length. Malicious grins. I want more.
3
u/shirohama Aug 08 '13
Your malicious grin made me grin xD
2
u/Do_you_even_triforce A computer is dumb, as it always does what you tell it to. Jul 22 '13
Use port 60 instead? can we do that?
3
u/303MkVII Jul 22 '13
Relevant xkcd
1
u/amatos Jul 21 '13
MOAR!
1
u/Guyag PICNIC error Jul 22 '13
Love these short stories - please, continue!
1
u/technoangel Jul 22 '13
Welcome to all of my phone calls..... from sysadmins/network admins/pen testers that get paid SUBSTANTIALLY MORE THAN I DO....
I work for a network security and pen testing software company - that shall go nameless - supporting our product.
1
u/insomniafox 100 toolbars just isn't enough Jul 22 '13
This sums up 99% of calls at my last job.
1
u/nickateen Jul 24 '13
Holy fuck my sides
1
u/Iggy_2539 PEBKAC Jul 24 '13
Close enough... (Source)
0
u/[deleted] Jul 22 '13
[deleted] — view deleted comment
0
u/[deleted] Jul 21 '13
[deleted] — view deleted comment
0
u/[deleted] Jul 21 '13
[deleted] — view deleted comment