The culprit appears to be $mode being passed to chmod unchecked. The method which get's $mode uses an Open2 call to get remote file stats. stat* doesn't appear to be taint checked after it's returned from the system.
In reply to Re: Passing taint checked scalars
by mnology
in thread Passing taint checked scalars
by mnology
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |