in reply to Re^3: On being 'critical'
in thread On being 'critical'
And if the user decides to type '|rm -rf' as an argument to a perl script, they could just as easily type 'rm -rf' at that same command line.
What about when the script runs as a different user than the one calling the script? This could be used to run a command with greater priviledge than one normally has.
For example, given mysetuid.pl
print <>;
An attack:
mysetuid.pl 'cat /etc/shadow |'
Well, at least taint catches this problem:
Insecure dependency in piped open while running with -T switch
Update: Oops, I guess just /etc/shadow would have worked in this case!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: On being 'critical'
by BrowserUk (Patriarch) on Dec 15, 2006 at 01:21 UTC | |
by pjf (Curate) on Dec 17, 2006 at 06:55 UTC | |
by Sartak (Hermit) on Dec 15, 2006 at 07:22 UTC | |
by BrowserUk (Patriarch) on Dec 15, 2006 at 07:58 UTC | |
by sauoq (Abbot) on Dec 15, 2006 at 20:29 UTC | |
by Sartak (Hermit) on Dec 15, 2006 at 08:30 UTC | |
by BrowserUk (Patriarch) on Dec 15, 2006 at 09:20 UTC |