﻿{"id":423,"date":"2011-10-24T13:50:00","date_gmt":"2011-10-24T13:50:00","guid":{"rendered":""},"modified":"2011-11-18T16:33:51","modified_gmt":"2011-11-18T08:33:51","slug":"423","status":"publish","type":"post","link":"http:\/\/zerobox.org\/notes\/423.html","title":{"rendered":"\u5173\u4e8eBEAST\u653b\u51fb"},"content":{"rendered":"<p>\u4e91\u8212<\/p>\n<p>http:\/\/icylife.net\/yunshu\/show.php?id=815<\/p>\n<p>BEAST\u653b\u51fb\u7ec6\u8282\u5728http:\/\/www.educatedguesswork.org\/2011\/09\/security_impact_of_the_rizzodu.html\uff0c\u653b\u51fb\u7684\u672c\u8d28\u539f\u56e0\u67092\u4e2a\u3002 \u7b2c\u4e00\u4e2a\u662f\u57fa\u4e8eCBC\u7684\u52a0\u5bc6\u65b9\u5f0f\uff0c\u5757\u52a0\u5bc6\u7684\u7b2c\u4e00\u4e2ablock\uff0cC0 = E(Key, IV \u2295 M0)\uff0cC0\u662f\u5bc6\u6587\uff0cKey\u662f\u5bc6\u94a5\uff0cIV\u662f\u521d\u59cb\u5316\u5411\u91cf\uff0cM0\u662f\u660e\u6587\u3002\u4e4b\u540e\u7684block\uff0cCi = E(Key, Ci-1 \u2295 Mi)\uff0c\u524d\u9762\u7684\u52a0\u5bc6\u4f1a\u5f71\u54cd\u540e\u9762\u7684\u52a0\u5bc6\uff0c\u5f62\u6210\u8fde\u9501\u53cd\u5e94\u3002\u8fd9\u79cd\u8bbe\u8ba1\u672c\u6765\u662f\u4e3a\u4e86\u52a0\u5f3a\u5b89\u5168\uff0c\u89e3\u51b3\u540c\u660e\u6587\u540c\u5bc6\u6587\u7684\u95ee\u9898\u7684\uff0c\u7ed3\u679c\u53cd\u800c\u5e26\u6765\u4e00\u4e9b\u95ee\u9898\uff0c\u524d\u4e0d\u4e45\u7684Padding Oracle Attack\u4e5f\u548c\u8fd9\u4e2a\u6709\u5173\u3002 \u7b2c\u4e8c\u4e2a\u539f\u56e0\u662fHTTP\u662f\u591a\u8bf7\u6c42\u7684\uff0c\u4e00\u4e2aSSL\u901a\u9053\u5185\u6709\u591a\u6b21HTTP\u901a\u4fe1\u3002\u800cSSL v3\u548cTLS1.0\u8bbe\u8ba1\u7684\u65f6\u5019\uff0c\u5c06\u591a\u4e2a\u8bf7\u6c42\u5f53\u6210\u4e00\u4e2a\u6570\u636e\u6d41\u6765\u5206\u5757\u52a0\u5bc6\uff0c\u591a\u6b21\u8bf7\u6c42\u4e2d\u7684IV\u548cKEY\u90fd\u7ef4\u6301\u4e0d\u53d8\u3002 \u5047\u8bbe\u5df2\u77e5block i\u4e2d\u5305\u542b\u654f\u611f\u4fe1\u606fM\uff0c\u540c\u65f6\u5047\u8bbe\u4e0b\u4e00\u4e2ablock\u7684\u521d\u59cb\u5316\u5411\u91cfX\u3002\u90a3\u4e48\uff0c\u653b\u51fb\u8005\u7528\u5b9a\u5236\u7684P\u4ee3\u6362\u6389M\uff0c\u5728\u8fd9\u4e2a\u5305\u542b\u654f\u611f\u4fe1\u606f\u7684block\u52a0\u5bc6\u53d1\u9001\u540e\u63d2\u5165\u4e00\u4e2a\u660e\u6587\u4e3aX \u2295 Ci-1 \u2295 P\u7684block\uff0c\u7531CBC\u52a0\u5bc6\u516c\u5f0f\u53ef\u77e5\u63d2\u5165\u7684\u660e\u6587\u52a0\u5bc6\u540e\u4e3aE(Key, X \u2295 X \u2295 Ci-1 \u2295 P)\u5373E(Key, Ci-1 \u2295 P)\u3002\u540c\u65f6\uff0c\u6b63\u786e\u7684\u660e\u6587\u52a0\u5bc6\u540e\u4e3aE(Key, Ci-1 \u2295 M)\u3002\u5982\u679c\u6b63\u5e38\u63d0\u4ea4\u7684\u90a3\u4e2a\u6570\u636e\u5305\u5bc6\u6587\u548c\u63d2\u5165\u7684\u90a3\u4e2a\u6570\u636e\u5305\u5bc6\u6587\u4e00\u81f4\uff0c\u90a3\u4e48\u53ef\u77e5P\u7b49\u4e8eM\uff0c\u4e5f\u5c31\u662f\u8bf4\u4f60\u731c\u5bf9\u4e86\u90a3\u4e2a\u654f\u611f\u4fe1\u606f\u3002\u770b\u6765\uff0c\u53ea\u8981\u77e5\u9053X\u5c31\u53ef\u4ee5\u731c\u89e3\u654f\u611f\u4fe1\u606f\u4e86\uff0c\u4f46\u662f\u8fd9\u4e2aX\u4e0d\u77e5\u9053\u554a\u3002\u4e0d\u8fc7\u4ed4\u7ec6\u60f3\u60f3\uff0cX\u771f\u7684\u4e0d\u77e5\u9053\u4e48\uff1f\u57fa\u4e8eCBC\u7684\u94fe\u5f0f\u7ed3\u6784\uff0c\u5b83\u5c31\u662f\u6765\u81ea\u4e8e\u4e0a\u4e00\u4e2a\u5305\u7684\u5bc6\u6587\u554a\uff0c\u4e8e\u662f\u653b\u51fb\u8005\u53ef\u4ee5\u901a\u8fc7\u6ce8\u5165\u6570\u636e\u800c\u66b4\u529b\u731c\u89e3SSL\u52a0\u5bc6\u901a\u9053\u4e2d\u7684\u67d0\u4e9b\u6570\u636e\u4e86\u3002 \u4e0d\u8fc7\u5982\u679c\u662f\u5f88\u957f\u7684\u6570\u636e\uff0c\u66b4\u529b\u51fa\u6765\u53ef\u80fd\u6027\u4e0d\u5927\uff0c\u4f46\u662f\u641eSQL\u6ce8\u5165\u7684\u77e5\u9053\uff0c\u521a\u5174\u8d77\u6ce8\u5165\u7684\u65f6\u5019\u5c31\u662f\u7528left\u4e4b\u7c7b\u7684\u51fd\u6570\u4e00\u4e2a\u5b57\u63a5\u4e00\u4e2a\u5b57\u8282\u7684\u731c\uff0c\u5f88\u660e\u786e\u7684\u77e5\u9053\u6700\u591a\u9700\u8981\u731c\u89e3\u591a\u5c11\u6b21\u3002\u5728BEAST\u653b\u51fb\u4e2d\uff0c\u5982\u679c\u6070\u5f53\u7684\u6784\u9020\u6570\u636e\u5206\u7ec4\uff0c\u90a3\u4e48\u4e5f\u53ef\u4ee5\u4e00\u4e2a\u5b57\u63a5\u4e00\u4e2a\u5b57\u8282\u7684\u731c\u89e3\u654f\u611f\u4fe1\u606f\u4e86\u3002 \u6587\u7ae0\u540e\u9762\u662f\u5229\u7528WebSockets\u548cjava applet\u6765\u505a\u653b\u51fb\uff0c\u5c31\u4e0d\u770b\u4e86\uff0c\u4e0d\u64c5\u957f\u3002\u653b\u51fb\u96be\u5ea6\u6bd4\u8f83\u5927\uff0c\u4e0d\u8fc7\u89e3\u51b3\u65b9\u6cd5\u5f88\u7b80\u5355\uff0c\u5728\u670d\u52a1\u7aef\u505a\u8bbe\u7f6e\uff0c\u5f3a\u5236\u6bcf\u4f20\u8f93\u4e86\u591a\u5c11\u5b57\u8282\u6216\u8005\u591a\u5c11\u65f6\u95f4\u5c31\u53d8\u66f4\u4e00\u6b21KEY\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e91\u8212 http:\/\/icylife.net\/yunshu\/show.php?id &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/zerobox.org\/notes\/423.html\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[42],"class_list":["post-423","post","type-post","status-publish","format-standard","hentry","tag-beast"],"views":850,"_links":{"self":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/423","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/comments?post=423"}],"version-history":[{"count":0,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/423\/revisions"}],"wp:attachment":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/media?parent=423"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/categories?post=423"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/tags?post=423"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}