in reply to How to avoid Null Byte Injection?
Once you've done that, make sure the pattern you use to untaint doesn't allow null characters. For example:
my $filename; if ($param('select') =~ /^(\w+)$/) { $filename = $1; } else { die "Illegal filename!\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to avoid Null Byte Injection?
by Nik (Initiate) on Oct 08, 2006 at 09:17 UTC | |
by sgifford (Prior) on Oct 08, 2006 at 20:25 UTC | |
by Nik (Initiate) on Oct 09, 2006 at 07:34 UTC | |
by sgifford (Prior) on Oct 09, 2006 at 15:24 UTC | |
by Nik (Initiate) on Oct 09, 2006 at 17:30 UTC | |
| |
by Anonymous Monk on Oct 09, 2006 at 07:59 UTC | |
|