A not-so-smart programmer could use (.*) as a regexp and then the data $1 would be untainted but insecure.#!/bin/perl -wT use strict; my $taintedVar = $ARGV[0]; if ($taintedVar =~ m/^([0-9]+)$/) { my $UNtaintedVar = $1; }
In reply to Re: Re: Re: script-security / custom nagios-check
by Jaap
in thread script-security / custom nagios-check
by Tomte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |