|
|||||||||||
|
RE: Can System() of Perl be bypassed?
From: NESTING, DAVID M (SBCSI) <dn3723(at)sbc.com>
Date: Wed Jan 22 2003 - 16:30:17 EST
system("/path/some-command", $user_data); Passing $user_data and the command name in a single string (the single-argument form of system()) causes the shell to parse and interpret the data, which means shell metacharacters in the user's data will be interpreted. Read through perlsec for this and other gotchas. Taint mode in Perl will help you avoid them, but don't rely exclusively on it. It will catch some stupid mistakes, but it isn't a cure for not knowing what you're doing. Good luck, David
-----Original Message-----
Hi All,
Thanks. Sandeep Giri Received on Wed Jan 22 17:29:06 2003 This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:45 EDT |
||||||||||
|
|||||||||||