SQL Injection --> is an attack technique used to exploit web sites that construct SQL statements from user-supplied input.
SQL Injection --> adalah satu teknik serangan digunakan untuk mengeksploitasi laman web yang bentuk kenyataan-kenyataan SQL daripada pengguna membekalkan input
dlm ms 2 hari sy telah berjaya menjumpai kelemahan dlm 3 laman web...
How to protect from SQL injection?
1. hacker gn p'bagai cr utk ceroboh webite org lain...so kalo kt nak pangkah ciap2 u/name yg ade kod 1' or '1'='1' kt perlu letak security kt bhg login..
cth:
letak arahan if sblm arahan SQL
if($name=="1' or '1' = '1") { break;} or
==" ' " ) {break;}
$SQL = "Select nama_penyelia, tahap_penyelia,id_penyelia from penyelia where username = '$name' and password = '$ pass';
ape tujuan kt bt benda nih?
1. check $name contain " ' " ;
2. reject kalo ade single code(kalo true;)
No comments:
Post a Comment