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"; }
In reply to Re: How to avoid Null Byte Injection?
by sgifford
in thread How to avoid Null Byte Injection?
by Nik
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |