Lurker News

Comments (79) 27 threads

Show all comments

Showing thread 2 of 27

jsat4 replies#
" # Server Code Injection # # Strings which can cause user to run code on server as a privileged user (c.f. https://news.ycombinator.com/item?id=7665153)

/dev/null; rm -rf /*; echo " That's a little aggressive for testing no?

jleader3 replies#
Some would argue that if you're testing on a system you can't recreate easily/quickly, you're doing devops wrong.
pavel_lishin1 reply#
And I'd agree, but this would be a pretty disproportionate punishment for the crime of doing devops wrong :P
DonHopkins#
It's two crimes: doing devops wrong, and having a huge security hole.
xtreme#
The problem is not restoring the system, but the time lost in figuring out what caused it without any logs.
rattray#
A lot of people do devops wrong... and I don't want to make those people even more scared to test things.
minimaxir#
Accepted a pull request which is nicer.
cowls1 reply#
Likewise:

1;DROP TABLE users 1'; DROP TABLE users--
Seems a bit hairy to have that in there in case someone tries to run these tests on their prod environment

ckv4281 reply#
Why would you test in a prod environment?
cowls#
Well the sample was testing against twitter (obviously prod).

So someone may test against prod if they didn't really know what these things could do.

MertsA#
it also won't work as most systems are going to require --no-preserve-root for that to do anything.