OpenSSL vulnerabilities: the Heartbleed Bug and Cupid


  • Andrei-Sorin Jerca


Buffer Overflow, OpenSSL, Heartbeat Extension, EAP, The Heartbleed Bug, Cupid, Ethical Hacking Exercise


In this paper we expose the importance of information security in today's context of fast technological evolution. Our main objective is to study one of the most recent security issue, discovered in the well-known OpenSSL cryptographic software library, named “the Heartbleed Bug”. This is a serious vulnerability of the Heartbeat Extension for the transport layer security protocols (TLS/DTLS) implementation in OpenSSL. This weakness allows remote attackers to obtain sensitive information (secret keys used for X.509 certificates, user credentials, instant messages, emails and other critical documents and communication) for applications such as web, email, instant messaging and some virtual private networks, which should be protected, under normal conditions, by the SSL/TLS encryption. Further, “Cupid”, shows that the bug can be used, with the same effect, against any device which implies Extensible Authentication Protocol (EAP) authentication mechanisms and a vulnerable version of OpenSSL. In addition we present guidelines, fixes and methods for preventing and managing possible attacks against vulnerable systems.


EC-Council, Ethical Hacking and Countermeasures CEH v8, 2013

Codenomicon Ltd., The Heartbleed Bug,, April 2014

CVE-2014-0160,, 2014

OpenSSL Security Advisory,,April 2014

Seggelmann R., Tuexen M., Williams M., RFC6520 - Transport Layer Security (TLS) and Datagram Transport Layer Security (DTLS) Heartbeat Extension, IETF,, February 2012

Dierks T., Rascorla E., RFC5246 – The Transport Layer Security (TLS) Protocol Version 1.2, IETF,, August 2008

Rescorla E., Modadugu N., RFC6347 – Datagram Transport Layer Security Version 1.2, IETF,, January 2012

Williams C., Anatomy of OpenSSL’s Heartbleed: Just for bytes trigger horror bug,, April 2014

Ducklin P., Anatomy of a data leakage bug – the OpenSSL “heartbleed” buffer overflow,, April 2014

Heartbleed OpenSSL – Information Leak Exploit,, April 2014

Stevens D., Heartbleed Packet Capture and Heartbleed Packet Capture – Full TLS,, April 2014

Grangeia L., Heartbleed, Cupid and Wireless,, May 2014

Grangeia L., Heartbleed && Wireless,, May 2014

Wikipedia, Extensible Authentication Protocol,, 2014

Wikipedia, hostapd,, 2014

Wikipedia, wpa_supplicant,, 2014

Goodin D., Meet “Cupid,” the Heartbleed attack that spawns “evil” Wi-Fi networks,, June 2014




How to Cite

Jerca, A.-S. (2014). OpenSSL vulnerabilities: the Heartbleed Bug and Cupid. Journal of Mobile, Embedded and Distributed Systems, 6(3), 122-128. Retrieved from