in reply to Remove or Identify Shell Commands In A Form
Your better strategy is to avoid exposure by never feeding user input to the shell. If you must give arguments to utilities, use the list form of system, magic open, or exec so that no shell interpretation of the command line is done.
You'd need an accurate combination html/shell parser to sanitize shell constructs from html fragments. Why bother, if the text never gets shell-interpreted? Your users might discuss shell programming without any ill intent.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Remove or Identify Shell Commands In A Form
by rongoral (Beadle) on Nov 26, 2004 at 16:30 UTC | |
by kappa (Chaplain) on Nov 26, 2004 at 18:58 UTC |