{"id":870,"date":"2016-05-31T02:40:59","date_gmt":"2016-05-31T02:40:59","guid":{"rendered":"http:\/\/www.inforsec.org\/wp\/?p=870"},"modified":"2016-05-31T02:42:38","modified_gmt":"2016-05-31T02:42:38","slug":"certshim-%e5%88%a9%e7%94%a8%e5%8a%a8%e6%80%81%e9%93%be%e6%8e%a5%e5%b7%a9%e5%9b%bassl%e8%af%81%e4%b9%a6%e9%aa%8c%e8%af%81","status":"publish","type":"post","link":"http:\/\/202.112.238.40\/wp\/?p=870","title":{"rendered":"CertShim: \u5229\u7528\u52a8\u6001\u94fe\u63a5\u5de9\u56faSSL\u8bc1\u4e66\u9a8c\u8bc1"},"content":{"rendered":"<p>\u4f5c\u8005\uff1aJing Tian (University of Florida)<\/p>\n<p>\u6700\u8fd1\u53d1\u73b0\u7684\u4e00\u7cfb\u5217SSL\u8f6f\u4ef6\u6808(OpenSSL\/GnuTLS)\u7684\u6f0f\u6d1e\u4e25\u91cd\u5a01\u80c1\u5230\u4e92\u8054\u7f51\u901a\u4fe1\u7684\u5b89\u5168\u3002\u5176\u4e2d\u6700\u4e3a\u663e\u8457\u7684\u6f0f\u6d1e\u662f\u5ba2\u6237\u7aef\u65e0\u6cd5\u6b63\u786e\u5730\u9a8c\u8bc1\u670d\u52a1\u5668\u7aef\u7684SSL\u8bc1\u4e66\u3002\u8fd9\u4e9b\u6f0f\u6d1e\u6216\u8005\u662f\u5e93\u51fd\u6570\u5b9e\u73b0\u672c\u8eab\u7684\u95ee\u9898\uff0c\u6216\u8005\u662f\u7531\u8f6f\u4ef6\u5de5\u7a0b\u5e08\u7684\u9519\u8bef\u5e94\u7528\u800c\u9020\u6210[1]\u3002\u867d\u7136\u5404\u79cd\u5b89\u5168\u8865\u4e01\u548c\u65b9\u6848\u88ab\u63d0\u51fa\u6765\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5b9e\u9645\u7684\u5b89\u88c5\u548c\u5e94\u7528\u5374\u5dee\u5f3a\u4eba\u610f\u3002\u7528\u6237\u6216\u8005\u9700\u8981\u5f7b\u5e95\u66ff\u6362\u73b0\u6709\u7684\u5e93\u51fd\u6570\u5b9e\u73b0\uff0c\u6216\u8005\u9700\u8981\u7b49\u5f85\u7b2c\u4e09\u65b9\u7684\u8f6f\u4ef6\u63d0\u4f9b\u5546\u6765\u589e\u5f3a\u73b0\u6709\u7684\u5e94\u7528\u7248\u672c\u6765\u5e94\u5bf9\u6f5c\u5728\u7684\u653b\u51fb\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u672c\u6587\u63d0\u51fa\u4e00\u79cd\u65b0\u7684\u89e3\u51b3\u65b9\u6848(CertShim)\u6765\u9488\u5bf9\u5982\u4f55\u6b63\u786e\u7684\u9a8c\u8bc1\u670d\u52a1\u5668\u7aef\u7684SSL\u8bc1\u4e66\u3002CertShim\u7684\u4f18\u52bf\u5728\u4e8e\u7528\u6237\u4e0d\u9700\u8981\u66ff\u6362\u73b0\u6709\u7684\u5e93\u51fd\u6570\u5b9e\u73b0\uff0c\u6216\u8005\u5347\u7ea7\u73b0\u6709\u7684\u5e94\u7528, \u5373\u53ef\u968f\u65f6\u7ea0\u6b63\u73b0\u6709\u8f6f\u4ef6\u6808\u6f0f\u6d1e\u3002<\/p>\n<p>CertShim\u7684\u57fa\u672c\u601d\u60f3\u662f\u5229\u7528\u8f6f\u4ef6\u5e93\u7684\u52a8\u6001\u94fe\u63a5\u6765\u968f\u65f6\u6539\u53d8\u6838\u5fc3\u51fd\u6570\u7684\u884c\u4e3a\uff0c\u4ece\u800c\u5b9e\u73b0\u6839\u636e\u6700\u65b0\u7684\u5b89\u5168\u5206\u6790\u6765\u968f\u65f6\u66f4\u65b0\u672c\u5730\u5b9e\u73b0\u800c\u4e0d\u9700\u8981\u6539\u53d8\u4e0a\u5c42\u5e94\u7528\u3002\u5982\u56fe\u4e00\u6240\u793a\uff0cCertShim\u4f4d\u4e8eSSL\u5e93\u51fd\u6570\u548cSSL\u5e94\u7528\u4e2d\u95f4\uff0c\u76f8\u5f53\u4e8e\u4e00\u4e2a\u4e2d\u95f4\u5c42\u3002\u6240\u6709SSL\u5e94\u7528\u5bf9SSL\u5e93\u51fd\u6570\u7684\u5b9e\u73b0\u90fd\u4f1a\u5148\u7ecf\u8fc7CertShim\u3002<\/p>\n<p><a href=\"http:\/\/www.inforsec.org\/wp\/wp-content\/uploads\/2016\/05\/11-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-873 aligncenter\" src=\"http:\/\/www.inforsec.org\/wp\/wp-content\/uploads\/2016\/05\/11-1.png\" alt=\"11\" width=\"550\" height=\"332\" srcset=\"http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/11-1.png 550w, http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/11-1-300x181.png 300w, http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/11-1-248x150.png 248w, http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/11-1-150x91.png 150w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">\u56fe\u4e00<\/p>\n<p>\u4f5c\u4e3a\u4e00\u4e2a\u4e2d\u95f4\u5c42\uff0cCertShim\u4e3b\u8981\u8d773\u4e2a\u4f5c\u7528\uff1a<\/p>\n<p>1.\u7ea0\u6b63\u5e94\u7528\u5c42\u5bf9SSL\u5b9e\u73b0\u5c42\u7684\u9519\u8bef\u8c03\u7528\uff0c\u4f8b\u5982\uff0c\u901a\u8fc7\u6539\u53d8\u5e94\u7528\u51fd\u6570\u8c03\u7528\u7684\u53c2\u6570\u6765\u786e\u6700\u57fa\u672c\u7684\u5b89\u5168\u68c0\u67e5\u88ab\u5f00\u542f\u800c\u4e0d\u662f\u88ab\u5173\u95ed\u3002<\/p>\n<p>2.\u63d0\u4f9b\u5176\u5b83\u5b89\u5168\u8ba4\u8bc1\u7b56\u7565\u548c\u65b9\u6848\u3002\u4f8b\u5982\uff0c\u7528\u6237\u53ef\u4ee5\u6839\u636e\u4e0d\u540c\u7684\u5e94\u7528\u6765\u8bbe\u7f6e\u4e0d\u540c\u7684\u5b89\u5168\u7b56\u7565\u548c\u65b9\u6848\u3002CertShim\u65e2\u652f\u6301Covergence[2]\uff0c\u4e5f\u652f\u6301DANE[3]\u3002<\/p>\n<p>3.\u652f\u6301\u5e93\u51fd\u6570\u7684\u52a8\u6001\u8865\u4e01\u3002\u4f8b\u5982\uff0c\u7528\u6237\u53ef\u4ee5\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7684\u4e3b\u673a\u540d\u9a8c\u8bc1\u6765\u589e\u5f3a\u539f\u51fd\u6570\u529f\u80fd\u3002<\/p>\n<p>\u76ee\u524d\u7248\u672c\u7684CertShim\u4e3b\u8981\u5b9e\u73b0\u4e86\u4ee5\u4e0b\u5e93\u51fd\u6570\u8c03\u7528\u7684hook\uff1a<\/p>\n<p><a href=\"http:\/\/www.inforsec.org\/wp\/wp-content\/uploads\/2016\/05\/22-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-874 aligncenter\" src=\"http:\/\/www.inforsec.org\/wp\/wp-content\/uploads\/2016\/05\/22-1.png\" alt=\"22\" width=\"550\" height=\"344\" srcset=\"http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/22-1.png 550w, http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/22-1-300x188.png 300w, http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/22-1-240x150.png 240w, http:\/\/202.112.238.40\/wp\/wp-content\/uploads\/2016\/05\/22-1-150x94.png 150w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><\/p>\n<p>\u9664\u4e86C\/C++\u5e38\u7528\u7684libssl\uff0clibgnutls\uff0cCertShim\u4e5f\u63d0\u4f9b\u5bf9JDK6\/7\u7684\u652f\u6301\u3002\u4eceSSL\u5e93\u51fd\u6570\u5b9e\u73b0\u770b\uff0cCertShim\u6db5\u76d6\u4e86OpenSSL\uff0cGnuTLS\u548cJSSE\u3002\u4ece\u6570\u636e\u4f20\u8f93\u5e93\u51fd\u6570\u5b9e\u73b0\u770b\uff0cCertShim\u4e5f\u6db5\u76d6\u4e86\u5bf9\u5176\u5b83\u8bed\u8a00\u7684\u652f\u6301\uff0c\u5176\u4e2d\u5305\u62eccURL\uff0curllib\uff0curllib2\uff0chttplib\u548cpython ssl\u7b49\u3002\u4ece\u5e94\u7528\u7a0b\u5e8f\u770b\uff0cCertShim\u652f\u6301Ubuntu\u5e38\u7528\u8f6f\u4ef6\u4e2d\u7684\u768495%\u3002\u540e\u7eed\u7248\u672c\u9664\u4e86\u4f1a\u6db5\u76d6\u5176\u5b83SSL\u5e93\u51fd\u6570\u5b9e\u73b0\uff0c\u4e5f\u4f1a\u6dfb\u52a0\u5bf9JDK8\u7684\u652f\u6301\u3002<\/p>\n<p>\u8be6\u7ec6\u5b9e\u73b0\u548c\u8bba\u8bc1\uff0c\u8bf7\u53c2\u9605\u53d1\u8868\u8bba\u6587\uff1a<\/p>\n<p><a href=\"https:\/\/github.com\/daveti\/daveti\/raw\/master\/paper\/ccs14\/ccs14a.pdf\">https:\/\/github.com\/daveti\/daveti\/raw\/master\/paper\/ccs14\/ccs14a.pdf<\/a><\/p>\n<p><strong>\u53c2\u8003\u6587\u732e<\/strong><\/p>\n<p>[1] Georgiev, M., Iyengar, S., Jana, S., Anubhai, R., Boneh, D., and Shmatikov, V. The Most Dangerous Code in the World: Validating SSL Certificates in Non-Browser Software. In Proceedings of the 2012 ACM conference on Computer and communications security (Raleigh, NC, USA, 2012), CCS \u201912, ACM, pp. 38\u201349<\/p>\n<p>[2] <a href=\"http:\/\/convergence.io\/\">http:\/\/convergence.io\/<\/a><\/p>\n<p>[3] <a href=\"https:\/\/datatracker.ietf.org\/wg\/dane\/documents\/\">https:\/\/datatracker.ietf.org\/wg\/dane\/documents\/<\/a><\/p>\n<p><strong>\u4f5c\u8005\u7b80\u4ecb<\/strong><\/p>\n<p>Dave (Jing) Tian,working on system security\u00a0member of Florida Institute for Cybersecurity (FICS)<\/p>\n<p>root@davejingtian.org<\/p>\n<p>http:\/\/davejingtian.org<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f5c\u8005\uff1aJing Tian (University of Florida) \u6700\u8fd1\u53d1\u73b0\u7684\u4e00\u7cfb\u5217SSL\u8f6f\u4ef6&#8230; <a class=\"continue-reading-link\" href=\"http:\/\/202.112.238.40\/wp\/?p=870\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-870","post","type-post","status-publish","format-standard","hentry","category-research"],"_links":{"self":[{"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=\/wp\/v2\/posts\/870","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=870"}],"version-history":[{"count":5,"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=\/wp\/v2\/posts\/870\/revisions"}],"predecessor-version":[{"id":879,"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=\/wp\/v2\/posts\/870\/revisions\/879"}],"wp:attachment":[{"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=870"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=870"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/202.112.238.40\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=870"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}