Here’s a oneliner to check if a remote server might be vulnerable by checking if it advertises the Heartbeat TLS extention during connection negotiation.
$ openssl version
OpenSSL 1.0.1e-freebsd 11 Feb 2013
$ < /dev/null openssl s_client -connect example.com:443 -tlsextdebug 2>&1 | grep -i heartbeat
TLS server extension "heartbeat" (id=15), len=1
It’s important that the local OpenSSL version supports the extension, otherwise it will not be listed during the negotiation.
Better yet, grab Heartbleed test tool
$ go get github.com/FiloSottile/Heartbleed
$ ${GOPATH}/bin/Heartbleed example.com:443
2014/04/08 14:12:31 ([]uint8) {
00000000 02 00 79 68 65 61 72 74 62 6c 65 65 64 2e 66 69 |..yheartbleed.fi|
00000010 6c 69 70 70 6f 2e 69 6f 59 45 4c 4c 4f 57 20 53 |lippo.ioYELLOW S|
00000020 55 42 4d 41 52 49 4e 45 02 6d 00 00 b3 de ab 6c |UBMARINE.m.....l|
00000030 71 ac cd 71 a9 63 74 36 8f ac 49 7d 32 36 48 00 |q..q.ct6..I}26H.|
00000040 00 00 16 00 14 00 00 00 00 00 00 00 00 00 00 00 |........example.|
00000050 00 00 00 00 00 00 00 00 00 00 05 00 05 01 00 00 |com.............|
00000060 00 00 00 0a 00 08 00 06 00 17 00 18 00 19 00 0b |................|
00000070 00 02 01 00 00 0d 00 0a 00 08 04 01 8d 71 65 6d |.............qem|
00000080 27 9d 51 a8 01 37 02 50 63 67 ca db |'.Q..7.Pcg..|
}
2014/04/08 14:12:31 example.com:443 - VULNERABLE
Recent articles
- Docker, SELinux, Consul, Registrator
(Wednesday, 04. 29. 2015 – No Comments) - ZFS performance on FreeBSD
(Tuesday, 09. 16. 2014 – No Comments) - Controlling Exim SMTP behaviour from Dovecot password data
(Wednesday, 09. 3. 2014 – No Comments) - Heartbleed OpenSSL vulnerability
(Tuesday, 04. 8. 2014 – No Comments)
Archives
- April 2015
- September 2014
- April 2014
- September 2013
- August 2013
- March 2013
- April 2012
- March 2012
- September 2011
- June 2011
- February 2011
- January 2011
- October 2010
- September 2010
- February 2010
- September 2009
- August 2009
- January 2009
- September 2008
- August 2008
- July 2008
- May 2008
- April 2008
- February 2008
- January 2008
- November 2007
- October 2007
- September 2007
- August 2007
- December 2006
- November 2006
- August 2006
- June 2006
- May 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005