3 ms·
Thanks for the tips. Can you say which SQL tip is bad, someone has already picked up the Stored procedure comment -- really meant prepared statements. Regardin
by aeronautic 9y ago
Thanks for the tips. Can you say which SQL tip is bad, someone has already picked up the Stored procedure comment -- really meant prepared statements.
Regarding regexp. You can do very precise regexp for many patterns. I agree some are harder, but I wouldn't say "rarely" in our experience.
The point about port 22 is that if you have it open, many people tend to use it more than they should. Effective automation should eliminate / greatly reduce the need for it.
If using AWS/cloud, then you can apply a security group to open when you need, but otherwise keep it closed at the network level at least. I agree it does seem to get people all hot an bothered.
- slackingoff2017 9y agoA lot of Regex is a hint that you shouldn't be using regex. Regex is a bad parser and poor sanitizer. I would wager that more than 50% of XSS vulnerabilities are due to bad regex when you should be using HTML or URI escape
- _cereal 9y agoHi, about port 22, you can use ssh keys and disable password access, see: https://aws.amazon.com/articles/1233/ https://aws.amazon.com/articles/1233/