CVE-2010-4638 : Détail

CVE-2010-4638

SQL Injection
A03-Injection
0.08%V3
Network
2010-12-30
20h00 +00:00
2024-09-16
17h23 +00:00
Notifications pour un CVE
Restez informé de toutes modifications pour un CVE spécifique.
Gestion des notifications

Descriptions du CVE

SQL injection vulnerability in the submitSurvey function in controller.php in JQuarks4s (com_jquarks4s) component 1.0.0 for Joomla!, when magic_quotes_gpc is disabled, allows remote attackers to execute arbitrary SQL commands via the q parameter in a submitSurvey action to index.php.

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

Date de publication : 2010-11-08 23h00 +00:00
Auteur : Salvatore Fresta
EDB Vérifié : Yes

JQuarks4s Joomla Component 1.0.0 Blind SQL Injection Vulnerability Name JQuarks4s Vendor http://www.iptechinside.com/labs/projects/list_files/jquarks-for-surveys Versions Affected 1.0.0 Author Salvatore Fresta aka Drosophila Website http://www.salvatorefresta.net Contact salvatorefresta [at] gmail [dot] com Date 2010-11-08 X. INDEX I. ABOUT THE APPLICATION II. DESCRIPTION III. ANALYSIS IV. SAMPLE CODE V. FIX I. ABOUT THE APPLICATION ________________________ A Joomla 1.5 free and open source tool for online surveys and statistical analysis. II. DESCRIPTION _______________ A parameter is not properly sanitised before being used in a SQL query. III. ANALYSIS _____________ Summary: A) Blind SQL Injection A) Blind SQL Injection _______________________ Input passed to the "q" parameter in when "option" is set to "com_jquarks4s" and "task" to "submitSurvey" is not properly verified before being used in a SQL query. This can be exploited to manipulate SQL queries by injecting arbitrary SQL code. The following is the vulnerable code (controller.php): function submitSurvey() { // get post data $data = JRequest::get('post'); ... $questions = $data['q']; // debug //var_dump($data);exit; foreach ($questions as $question_id => $question) : $type_id = (int)$question['type_id']; switch ($type_id) : ... case 4: // recuperer les row_id du question_id $rowsDB = $sessionModel->getRows($question_id); So, $question_id is a key of the array "q" and type_id his value. Therefore the injection is possibile by inserting arbitrary SQL code as the key of the array and 4 as his value. IV. SAMPLE CODE _______________ A) Blind SQL Injection Try to send the following packet to your test server. Ensure that magic_quotes_gpc is set to off in order to use the following test. POST /path/index.php HTTP/1.1 Host: target Content-Type: application x-www-form-urlencoded Content-Length: 97 option=com_jquarks4s&task=submitSurvey&q[-1 UNION SELECT 0x414141 INTO OUTFILE '/tmp/trycopy' ]=4 Note that if you want to use the '=' character, you must covert it in URL encode format (%3D), otherwise the value 4 needed for the injection cannot be read. V. FIX ______ No fix.

Products Mentioned

Configuraton 0

Iptechinside>>Com_jquarks4s >> Version 1.0.0

    Joomla>>Joomla\! >> Version *

    Références

    http://secunia.com/advisories/42164
    Tags : third-party-advisory, x_refsource_SECUNIA
    http://www.exploit-db.com/exploits/15466
    Tags : exploit, x_refsource_EXPLOIT-DB