in reply to Re^6: Taint problems
in thread Taint problems
Um, yeah, bad example, I was only trying to show how easy it is to manipulate $0.
In C it's easy to manipulate argv[0] with the exec family. There are rather more sophisticated attacks as well. I learned a long time ago that you can't trust argv[0] or names in the process table.
In any case, $0 isn't reliable and there's plenty of reasons to taint it, even if cp isn't the reason. I do, however, feel much better knowing that FindBin isn't as unsafe as I first thought.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^8: Taint problems
by ikegami (Patriarch) on Dec 11, 2008 at 20:01 UTC | |
by rowdog (Curate) on Dec 14, 2008 at 18:58 UTC | |
by ikegami (Patriarch) on Dec 14, 2008 at 22:30 UTC |