Nik has asked for the wisdom of the Perl Monks concerning the following question:
Is there a way to avoid the above? Icant understand this becaus i sue the following code:http://nikos.no-ip.org/cgi-bin/index.pl/?select=../../cgi-bin/index.pl +%00
There is a .txt suffic after the variable $passage so the null byte injection shouldn't work.my $passage = param('select') || "Αρχική + Σελίδα!"; Encode::from_to($passage, "utf8", "ISO-8859-7") if param(); if ( param('select') ) { open(FILE, "<../data/text/$passage.txt") or die $!; local $/; $data = <FILE>; close(FILE);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to avoid Null Byte Injection
by chargrill (Parson) on Oct 07, 2006 at 23:28 UTC | |
|
Re: How to avoid Null Byte Injection?
by sgifford (Prior) on Oct 08, 2006 at 06:02 UTC | |
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 Anonymous Monk on Oct 09, 2006 at 07:59 UTC | |
| |
|
Re: How to avoid Null Byte Injection
by Joost (Canon) on Oct 07, 2006 at 23:21 UTC | |
by Nik (Initiate) on Oct 08, 2006 at 00:05 UTC | |
by Joost (Canon) on Oct 08, 2006 at 00:23 UTC | |
by Nik (Initiate) on Oct 08, 2006 at 08:53 UTC | |
by chromatic (Archbishop) on Oct 08, 2006 at 20:58 UTC | |
|