Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Full Disclosure: Full-Disclosure
PHP Array and Null Bytes
 

Index | Next | Previous | View Flat


steve01 at chello

Nov 10, 2006, 4:27 AM


Views: 1048
Permalink
PHP Array and Null Bytes

Hi guys,

some questions to NULL Bytes within PHP Arrays.

Let us assume there exist a php script with the following code.

$erg=$_GET['show']

if(!isset($arr[$erg]) $erg="something";

$arr is a predefined variable but with "register globals on" it would be
possible to set your own Array Key. This means when you set

$erg=test
$arr[test]

you could deliver almost every chars you want. My problem is that
i want to deliver a content like that.

$erg=index.html%00
$arr[index.html%00]

The problem is that the Null Byte within the array destroy the array.
My question is if there exist a way to avoid the Null Byte within
the array. For example (im not really familiar with charsets)
to create the Null Byte with the help of f.e. UTF-7 encoded
chars.

If someone has an idea please let me know.

Best regards

Steve
Attachments: steve01.vcf (0.15 KB)

Subject User Time
PHP Array and Null Bytes steve01 at chello Nov 10, 2006, 4:27 AM
    Re: PHP Array and Null Bytes upbupb at gmail Nov 11, 2006, 10:05 AM
    Re: PHP Array and Null Bytes steve01 at chello Nov 11, 2006, 12:06 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.