Recub Version 1.0

RECUB Features.
1 RC4 Encripted Reverce connect Shell for XP,2k,2003.
2 Bypass Firewalls by starting new instance of Internet explorer and injecting code
 

And Many More
 

Download (Win32 Version)
 

For Unix Version : Click Here

 

Date: 7/10/03
Product : ltrace 0.3.10-12 on RedHat Linux 8 (2.4.18-14)
Discovered By : Abhisek Datta abhisek [at] linuxmail.org
Security Tracker : http://www.securitytracker.com/alerts/2003/Oct/1007896.html


 

 

===========================================================
Advisory by Eye On Security Research Group - India www.eos-india.net
===========================================================


 

Vulnerability:
==============
A heap based buffer overrun bug is identified in ltrace 'Library Call Tracer' utility version 0.3.10-12 which allows execution of arbitrarty code by corrupting the heap.

Affected Versions:
=================
So far now only tested version 0.3.10-12 on RedHat Linux 8 (2.4.18-14) seems to be vulnerable to this approach.


Description:
============
There seems to exists a heap based buffer overflow vulenrability in ltrace utility version 0.3.10-12. Based on my research so far, I think the bug is in static char *search_for_command(char * filename) function in options.c .
[root@localhost codes]# rpm -qa |grep ltrace
ltrace-0.3.10-12
[root@localhost codes]# ltrace -V
ltrace version 0.3.11.
Copyright (C) 1997-1999 Juan Cespedes <cespedes@debian.org>.
This is free software; see the GNU General Public Licence
version 2 or later for copying conditions. There is NO warranty.
[root@localhost codes]# cp `which ltrace` ltrace
[root@localhost codes]# ltrace ./ltrace `perl -e 'print "A"x6000'`
__libc_start_main(0x08049a40, 2, 0xbfff7f84, 0x08048f30, 0x08057644 <unfinished ...>
getpid() = 2487
__cxa_atexit(0x08049cf0, 0, 0, 0x0805b860, 0x420aedf0) = 0
signal(2, 0x08049c10) = NULL
signal(15, 0x08049c10) = NULL
getopt_long(2, 0xbfff7f84, "+dfiLSrthVCa:s:o:u:p:e:", 0x0805b060, 0xbfff6f08) = -1
strchr("AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"..., '/') = NULL
getenv("PATH") = "/usr/local/sbin:/usr/local/bin:/"...
strchr("/usr/local/sbin:/usr/local/bin:/"..., ':') = ":/usr/local/bin:/sbin:/bin:/usr/"...
strncpy(0x0805b880, "/usr/local/sbin", 15) = 0x0805b880
strcpy(0x0805b890, "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"... <unfinished ...>
--- SIGSEGV (Segmentation fault) ---
+++ killed by SIGSEGV +++


ltrace 0.3.11 src
==================
options.c :
static char *search_for_command(char * filename)
{
static char pathname[1024];
char *path;
int m, n;
if (strchr(filename, '/')) {
return filename;
for (path = getenv("PATH"); path && *path; path += m) {
if (strchr(path, ':')) {
n = strchr(path, ':') - path;
m = n + 1;
} else {
m = n = strlen(path);
strncpy(pathname, path, n);
if (n && pathname[n - 1] != '/') {
pathname[n++] = '/';
strcpy(pathname + n, filename); /* Possible buffer overrun */
if (!access(pathname, X_OK)) {
return pathname;
return filename;
}
Seems like there is no bound checking for the length of filename which is passed as parameter to the function.Version 0.3.20 implements bound checking before for(path = getenv("PATH"); path && *path; path += m) and hence cannot be exploited this way. The exploitation of this bug doesnt appear to be a simple one and conventional heap based overrun exploitation techniques probably wont work.


by
Abhisek Datta
abhisek[at]linuxmail[dot]org

 

Cross Site Scripting vulnerability in bb_func_usernfo.php

 

XSS Bug in XOOPS 1.0.5.1

Mambo Open Source 4.0.14 Webserver SQL injection.
Ltrace buffer overrun bug.

 

 

 

 

06.05.2004: Pound <=1.5 remote format string exploit (public version)
 

01.05.2004: X-Chat 1.8.0 - 2.0.8 Remote Exploit

 

06.04.2004: Monit <= 4.2 Basic Authentication - Username overflow remote root exploit

 

28.03.2004: Ethereal 0.10.0-0.10.2 IGAP Dissector Message Overflow Remote Root Exploit

 

02.3.2004: PSO-Proxy 0.9 PoC Remote Exploit