OpenSSL CVE-2014-0224 中间人攻击利用演示。
作者:@bluerust
博客:http://hi.baidu.com/bluerust/item/bf2ab031bbadcf09cfb9fe41
版本:1.1
描述:
仅适用于 OpenSSL 1.0.1*,仅测试了 RC4-SHA 加密套件。
a. 服务器
openssl s_server -debug -accept 443 -cert server.crt -certform PEM -key server.key -cipher RC4-SHA
此处不讨论如何生成证书。
b. 客户端
openssl s_client -connect 127.0.0.1:9999 -debug -cipher RC4-SHA
c. 中间人代理
go run proxy_all.go -host=127.0.0.1 -port 443 -listen_port=9999
--------------------------
参考:
[1] 早期 ChangeCipherSpec 攻击(2014年6月5日)
https://www.imperialviolet.org/2014/06/05/earlyccs.html
[2] SSL/TLS 中间人漏洞 (CVE-2014-0224)
http://www.openssl.org/news/secadv_20140605.txt
[3] 我是如何发现 CCS 注入漏洞 (CVE-2014-0224) 的
http://ccsinjection.lepidum.co.jp/blog/2014-06-05/CCS-Injection-en/index.html