CVE-2010-4638 : Detail

CVE-2010-4638

SQL Injection
A03-Injection
0.08%V3
Network
2010-12-30
20h00 +00:00
2024-09-16
17h23 +00:00
Notifications for a CVE
Stay informed of any changes for a specific CVE.
Notifications manage

CVE Descriptions

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.

CVE Informations

Related Weaknesses

CWE-ID Weakness Name 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.

Metrics

Metrics Score Severity CVSS Vector Source
V2 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P nvd@nist.gov

EPSS

EPSS is a scoring model that predicts the likelihood of a vulnerability being exploited.

EPSS Score

The EPSS model produces a probability score between 0 and 1 (0 and 100%). The higher the score, the greater the probability that a vulnerability will be exploited.

EPSS Percentile

The percentile is used to rank CVE according to their EPSS score. For example, a CVE in the 95th percentile according to its EPSS score is more likely to be exploited than 95% of other CVE. Thus, the percentile is used to compare the EPSS score of a CVE with that of other CVE.

Exploit information

Exploit Database EDB-ID : 15466

Publication date : 2010-11-08 23h00 +00:00
Author : Salvatore Fresta
EDB Verified : 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 *

    References

    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