in reply to Re: Re: script-security / custom nagios-check
in thread script-security / custom nagios-check
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; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re*4: script-security / custom nagios-check
by Tomte (Priest) on Jan 30, 2003 at 12:06 UTC |