Netscape FastTrack server remote exploit (long GET)
2 Jan. 2000
Summary
Vulnerability in Netscape FastTrack 2.01a allows any remote attacker to execute commands as the user running the httpd daemon. This service is running by default on any standard UnixWare 7.1 installation.
Credit:
The information was provided by: Brock Tellier.
By default , the FastTrack httpd will listen on TCP port 457 for incoming HTTP requests. With the particular configuration file that this httpd instance uses, we can browse the SCO help documents repository as well as man pages and so on.
A long GET /aaaaa request will cause the httpd daemon to crash. At 367 bytes after the "/", we have completely overwritten EIP, allowing us to run arbitrary commands.
Exploit:
This exploit executes the command of your choice. This has only been compiled and tested on a UnixWare box attacking a UnixWare box, but it should be fairly portable. This is not a root shell, since httpd runs as user 'nobody' (but now you get to try out all those local exploits!).
---uwhelp.c---
/** uwhelp.c - remote exploit for UnixWare's Netscape FastTrack
** 2.01a scohelp http service
**
** Runs the command of your choice with uid of the http daemon
** (probably nobody). If there are spaces in your command, use
** ${IFS} instead of a space. httpd handles execve's strangely,
** so your best bet is to just exec an xterm as I've done below.
** Obviously, change the command below to suit your needs.
**
** Compile on UW7.1: cc -o uwhelp uwhelp.c -lnsl -lsocket
** run: ./uwhelp hostname <offset> <size>
**
**
** Brock Tellier btellier@usa.net
**
**/