Back to front pageView on Hacker News (opens in a new tab)Show HN: Big List of Naughty Strings for testing user-input data (opens in a new tab)github.com514 pointsby minimaxir (on Hacker News)11 years agogithub.com (opens in a new tab)GitHub - minimaxir/big-list-of-naughty-strings: The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data.The Big List of Naughty Strings is a list of strings which have a high probability of causing issues when used as user-input data. - minimaxir/big-list-of-naughty-stringsComments (79) 27 threadsShow all commentsShowing thread 2 of 27[-]jsat11 years ago4 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?[-]jleader11 years ago3 replies#Some would argue that if you're testing on a system you can't recreate easily/quickly, you're doing devops wrong.[-]pavel_lishin11 years ago1 reply#And I'd agree, but this would be a pretty disproportionate punishment for the crime of doing devops wrong :PDonHopkins11 years ago#It's two crimes: doing devops wrong, and having a huge security hole.xtreme11 years ago#The problem is not restoring the system, but the time lost in figuring out what caused it without any logs.rattray11 years ago#A lot of people do devops wrong... and I don't want to make those people even more scared to test things.minimaxir11 years ago#Accepted a pull request which is nicer.[-]cowls11 years ago1 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[-]ckv42811 years ago1 reply#Why would you test in a prod environment?cowls11 years ago#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.MertsA11 years ago#it also won't work as most systems are going to require --no-preserve-root for that to do anything.
Show HN: Big List of Naughty Strings for testing user-input data (opens in a new tab)github.com514 pointsby minimaxir (on Hacker News)11 years ago
jsat11 years ago4 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?
jleader11 years ago3 replies#Some would argue that if you're testing on a system you can't recreate easily/quickly, you're doing devops wrong.
pavel_lishin11 years ago1 reply#And I'd agree, but this would be a pretty disproportionate punishment for the crime of doing devops wrong :P
xtreme11 years ago#The problem is not restoring the system, but the time lost in figuring out what caused it without any logs.
rattray11 years ago#A lot of people do devops wrong... and I don't want to make those people even more scared to test things.
cowls11 years ago1 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
cowls11 years ago#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.
MertsA11 years ago#it also won't work as most systems are going to require --no-preserve-root for that to do anything.
Comments (79) 27 threads
Show all comments
Showing thread 2 of 27
/dev/null; rm -rf /*; echo " That's a little aggressive for testing no?
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
So someone may test against prod if they didn't really know what these things could do.