{"id":1525,"date":"2012-09-16T12:24:16","date_gmt":"2012-09-16T04:24:16","guid":{"rendered":"http:\/\/me.doucl.com\/?p=1525"},"modified":"2012-09-16T12:24:16","modified_gmt":"2012-09-16T04:24:16","slug":"web-security-summary","status":"publish","type":"post","link":"https:\/\/blog.vimge.com\/archives\/architecture\/web-security-summary.html","title":{"rendered":"Web\u5b89\u5168\u5a01\u80c1\u4e0e\u9632\u8303\u5de5\u4f5c\u603b\u7ed3"},"content":{"rendered":"
WEB\u5f00\u53d1\u4e2d\u7531\u4e8e\u9879\u76ee\u89c4\u6a21\u548c\u9700\u6c42\u7684\u89c4\u8303\u6027\uff0c\u5b89\u5168\u95ee\u9898\u53ef\u80fd\u5e76\u4e0d\u662f\u6240\u6709\u7684\u65f6\u5019\u90fd\u80fd\u5f15\u8d77\u8db3\u591f\u7684\u5173\u6ce8\uff0c\u5927\u591a\u6570\u65f6\u5019\u6280\u672f\u4eba\u5458\u6839\u636e\u7ecf\u9a8c\u548c\u4e60\u60ef\u4f5c\u4e00\u4e9b\u5904\u7406\uff0c\u4e00\u4e9b\u76f8\u5bf9\u6bd4\u8f83\u4e25\u683c\u548c\u82db\u523b\u7684\u95ee\u9898\uff0c\u5f80\u5f80\u90fd\u662f\u51fa\u73b0\u95ee\u9898\u4ee5\u540e\u624d\u4e34\u65f6\u89e3\u51b3\u3002\u5c0f\u89c4\u6a21\u5e94\u7528\u51fa\u73b0\u72b6\u51b5\u7684\u60c5\u51b5\u6bd4\u8f83\u5c11\uff0c\u800c\u4e14\u5904\u7406\u8d77\u6765\u4e5f\u53ef\u4ee5\u6bd4\u8f83\u8fc5\u901f\uff0c\u4f46\u662f\u5e94\u7528\u8fbe\u5230\u4e00\u5b9a\u89c4\u6a21\u4ee5\u540e\uff0c\u5982\u679c\u524d\u671f\u6ca1\u6709\u505a\u597d\u8db3\u591f\u7684\u5de5\u8bfe\uff0c\u540e\u671f\u8865\u6f0f\u6d1e\u7684\u4ee3\u4ef7\u5c31\u6bd4\u8f83\u9ad8\u4e86\u3002\u6240\u4ee5\u5728\u6761\u4ef6\u5141\u8bb8\u7684\u60c5\u51b5\u4e0b\uff0c\u628a\u5b89\u5168\u95ee\u9898\u653e\u5728\u9996\u8981\u4f4d\u7f6e\uff0c\u6216\u8bb8\u662f\u4e00\u4e2a\u6bd4\u8f83\u660e\u667a\u7684\u9009\u62e9\u3002\u4e0b\u9762\u662f\u672c\u4eba\u603b\u7ed3\u7684\u51e0\u70b9WEB\u5b89\u5168\u76f8\u5173\u77e5\u8bc6\uff0c\u5907\u4ee5\u5e38\u53c2\u3002\u5e0c\u671b\u5bf9\u5927\u5bb6\u719f\u6089WEB\u653b\u51fb\u539f\u7406\u4e0e\u5904\u7406\uff0c\u63d0\u9ad8\u9ad8\u8d28\u91cf\u4ee3\u7801\u4ea7\u51fa\u7387\u548c\u5a34\u719f\u5e94\u5bf9\u5b89\u5168\u5a01\u80c1\u6709\u6240\u5e2e\u52a9\uff0c<\/p>\n
\/* \u5b9e\u4f8b\u4ee3\u7801 *\/
$id = $_COOKIE[‘id’];
$sql = “SELECT id,login FROM users WHERE id=$id”;
$result = mysql_db_query($mysql_database, $sql,$conn);
$row = mysql_fetch_row($result);<\/p><\/blockquote>\n\u4e0a\u8ff0\u4ee3\u7801\u4e2d\u53d8\u91cf$id,\u63a5\u53d7COOKIE\u65b9\u5f0f\u4f20\u9012\u7684\u6570\u636e\uff0c\u5e76\u672a\u5bf9\u5371\u9669\u5b57\u7b26\u505a\u8fc7\u6ee4\uff0c\u5047
\u5982\u5ba2\u6237\u7aef\u63d0\u4ea4\u201c-999 UNION SELECT users(),version()\u201d,\u5c06\u4f1a\u8f93\u51faMysql\u7684\u7528
\u6237\u540d\u4ee5\u53ca\u6570\u636e\u5e93\u7248\u672c\u3002
\n\u901a\u5e38\u5ba2\u6237\u7aef\u63d0\u4ea4\u65b9\u5f0f\u5305\u542bGET\u3001POST\u3001COOKIE\u3001User-Agent\u3001Referer\u3001Accept-Language\u7b49.\u00a0<\/strong><\/li>\n- Mhtml\u534f\u8bae\u8de8\u7ad9\u811a\u672c\u653b\u51fb
\n\u5728IE\u4e2d\uff0c\u5f53\u5d4c\u5165\u8d44\u6e90\u7684URL\u7684\u534f\u8bae\u4e3aMHTML\u65f6\uff0cIE\u5c06\u8c03\u7528MHTML Protocol\u00a0Handler\uff0c\u628a\u8be5\u8d44\u6e90\u5f53\u4f5cMHTML\u683c\u5f0f\u6587\u4ef6\u89e3\u6790\u5904\u7406\u3002MHTML Protocol Handler\u89e3\u6790MHTML\u683c\u5f0f\u6587\u4ef6\uff0c\u5176\u7ed3\u679c\u4ea4\u7ed9IE\u6e32\u67d3\uff0cMHTML Protocol Handler\u6839\u636eContent-Location\u503c\u627e\u5230\u5bf9\u5e94\u7684\u6570\u636e\u5757\uff0c\u518d\u6839\u636eContent-Transfer-Encoding\u503c\u5bf9\u4e00\u4e0b\u8fd9\u6bb5base64\u6570\u636e\u89e3\u7801\uff0c\u5982\u679cbase64\u6570\u636e\u4e2d\u5305\u542b\u7cbe\u5fc3\u6784\u9020\u7684\u8de8\u7ad9\u811a\u672c\u4ee3\u7801\uff0c\u90a3\u5c31\u4f1a\u88ab\u6267\u884c\u3002\u4e0b\u8fb9PHP\u4ee3\u7801\u4e3a\u4f8b\uff0c\u505a\u7b80\u8981\u7684\u5206\u6790\u3002<\/p>\n\/* \u5b9e\u4f8b\u4ee3\u7801 *\/
$str = $_GET[‘name’];
echo $str;<\/p><\/blockquote>\n\u4e0a\u8ff0\u4ee3\u7801\u4e2d\u53d8\u91cf$str,\u63a5\u53d7GET\u65b9\u5f0f\u4f20\u9012\u7684\u6570\u636e\uff0c\u5e76\u672a\u5bf9\u5371\u9669\u5b57\u7b26\u505a\u8fc7\u6ee4\uff0c\u5047\u5982\u5ba2\u6237\u7aef\u63d0\u4ea4\u201cx\\\\nContent-Type:multipart\/related;boundary=x\\\\nContent-Location:x\\\\nContent-Transfer-Encoding:base64\\\\r\\\\n\\\\r\\\\nPHNjcmlwdD5hbGVydCgxKTs8L3NjcmlwdD4=–\\\\n!x\u201d,\u5176\u4e2d\u201cPHNjcmlwdD5hbGVydCgxKTs8L3NjcmlwdD4=\u201d\u662f<script>alert(1);<\/script>\u5b57\u7b26\u4e32\u7684base64\u7f16\u7801\u5f62\u5f0f\u3002\u90a3\u4e48alert\u51fd\u6570\u5c06\u5728\u6d4f\u89c8\u5668\u5185\u6267\u884c\u3002
\nMhtml\u534f\u8bae\u8de8\u7ad9\u811a\u672c\u653b\u51fb\u4e3b\u8981\u5371\u5bb3\u5305\u62ec\uff1a
[1]\u83b7\u53d6\u5176\u4ed6\u7528\u6237Cookie\u4e2d\u7684\u654f\u611f\u6570\u636e\u3002
[2]\u5c4f\u853d\u9875\u9762\u7279\u5b9a\u4fe1\u606f\u3002
[3]\u4f2a\u9020\u9875\u9762\u4fe1\u606f\u3002
[4]\u62d2\u7edd\u670d\u52a1\u653b\u51fb\u3002
[5]\u7a81\u7834\u5916\u7f51\u5185\u7f51\u4e0d\u540c\u5b89\u5168\u8bbe\u7f6e\u3002
[6]\u4e0e\u5176\u5b83\u6f0f\u6d1e\u7ed3\u5408\uff0c\u4fee\u6539\u7cfb\u7edf\u8bbe\u7f6e\uff0c\u67e5\u770b\u7cfb\u7edf\u6587\u4ef6\uff0c\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u7b49\u3002<\/li>\n- \u8de8\u7ad9\u811a\u672c\u653b\u51fb\uff08XSS\uff09
\nXSS\u53c8\u53ebCSS\u00a0 (Cross Site Script) \uff0c\u8de8\u7ad9\u811a\u672c\u653b\u51fb\u3002\u5b83\u6307\u7684\u662f\u6076\u610f\u653b\u51fb\u8005\u5f80Web\u9875\u9762\u91cc\u63d2\u5165\u6076\u610fhtml\u4ee3\u7801\uff0c\u5f53\u7528\u6237\u6d4f\u89c8\u8be5\u9875\u4e4b\u65f6\uff0c\u5d4c\u5165\u5176\u4e2dWeb\u91cc\u9762\u7684html\u4ee3\u7801\u4f1a\u88ab\u6267\u884c\uff0c\u6076\u610f\u4ee3\u7801\u4f1a\u88ab\u6267\u884c\u6216\u8005\u901a\u8fc7\u7ed9\u7ba1\u7406\u5458\u53d1\u4fe1\u606f\u7684\u65b9\u5f0f\u8bf1\u4f7f\u7ba1\u7406\u5458\u6d4f\u89c8\uff0c\u4ece\u800c\u83b7\u5f97\u7ba1\u7406\u5458\u6743\u9650\u8fbe\u5230\u6076\u610f\u7528\u6237\u7684\u7279\u6b8a\u76ee\u7684\u3002XSS\u5c5e\u4e8e\u88ab\u52a8\u5f0f\u7684\u653b\u51fb\uff0c\u56e0\u4e3a\u5176\u88ab\u52a8\u4e14\u4e0d\u597d\u5229\u7528\uff0c\u6240\u4ee5\u8bb8\u591a\u4eba\u5e38\u547c\u7565\u5176\u5371\u5bb3\u6027\u3002<\/a><\/p>\n\u793a\u4f8b\u4ee3\u7801\uff1a
http:\/\/www.yes.com\/shlm\/?app=shop&keyword=1parameter: keyword=1, xss: *\/–>'”><\/iframe><\/script>\/style><\/title><\/textarea><script>alert(\/Webscan5\/)<\/script><\/p><\/blockquote>\n<\/li>\n- \u5bbd\u5b57\u7b26\u96c6\u8de8\u7ad9\u811a\u672c
\n\u5728GBK\u5b57\u7b26\u96c6\u4e2d\uff0c0xbf27\u4e0d\u4f5c\u4e3a\u591a\u5b57\u8282\u5b57\u7b26\uff0c\u800c0xbf5c\u662f\u591a\u5b57\u8282\u5b57\u7b26\u3002\u5f53\u6ce8\u5165\u5b57
\u7b26\u6bd4\u59820xbf27\u65f6\uff0c\u56e0\u4e3a0x27\u4e3a’\uff0c\u6240\u4ee5php\u8bed\u8a00\u4e2daddslashes()\u572827\u524d\u52a0
\u4e0a5c,\u628a0xbf27\u4fee\u6539\u4e3a0xbf5c27\u3002\u800c0xbf5c27\u76840xbf5c\u88ab\u8ba4\u4e3a\u65f6\u4e00\u4e2a\u591a\u5b57\u8282\u5b57
\u7b26\uff0c\u6240\u4ee5\u540e\u9762\u76840x27\u5c31\u6709\u53ef\u80fd\u95ed\u5408\u524d\u8fb9\u4ee3\u7801\u4e2d\u7684\u5355\u5f15\u53f7\uff0c\u5f53\u7136\u4e0e\u5355\u5f15\u53f7\u673a\u5236\u76f8
\u540c\u7684\u8fd8\u6709\u53cc\u5f15\u53f7\uff0c\u8fd9\u6837\u5c31\u4e3a\u672a\u95ed\u5408\u8de8\u7ad9\u811a\u672c\u7684\u4ee3\u7801\u63d0\u4f9b\u4e86\u53ef\u80fd\u3002\u4e0b\u8fb9PHP\u4ee3\u7801\u4e3a
\u4f8b\uff0c\u505a\u7b80\u8981\u7684\u5206\u6790\u3002<\/p>\n\/* \u5b9e\u4f8b\u4ee3\u7801 *\/
parameter: keyword=1, xss: *\/–>%cf”%d5′><\/iframe><\/script><\/style><\/title><\/textarea><script>alert(\/Webscan5\/)<\/script>\u00a0
<?php
$str = $_GET[‘name’];
echo ‘”‘.addslashes($a).'”‘;
?><\/p><\/blockquote>\n\u4e0a\u8ff0\u4ee3\u7801\u4e2d\u53d8\u91cf$str,\u63a5\u53d7GET\u65b9\u5f0f\u4f20\u9012\u7684\u6570\u636e\uff0c\u5047\u5982\u5ba2\u6237\u7aef\u63d0\u4ea4\u201c%cf\\”%d5′<script>alert(1)<\/script>\u201d,\u90a3\u4e48\u5c31\u95ed\u5408\u4ee3\u7801\u4e2d$str\u53d8\u91cf\u524d\u8fb9\u7684\u5355\u5f15\u53f7\u3001\u53cc\u5f15\u53f7,alert\u51fd\u6570\u5c06\u5728\u6d4f\u89c8\u5668\u5185\u6267\u884c\u3002<\/p>\n
\u4e3b\u8981\u5371\u5bb3\u5305\u62ec\uff1a
[1]\u83b7\u53d6\u5176\u4ed6\u7528\u6237Cookie\u4e2d\u7684\u654f\u611f\u6570\u636e\u3002
[2]\u5c4f\u853d\u9875\u9762\u7279\u5b9a\u4fe1\u606f\u3002
[3]\u4f2a\u9020\u9875\u9762\u4fe1\u606f\u3002
[4]\u62d2\u7edd\u670d\u52a1\u653b\u51fb\u3002
[5]\u7a81\u7834\u5916\u7f51\u5185\u7f51\u4e0d\u540c\u5b89\u5168\u8bbe\u7f6e\u3002
[6]\u4e0e\u5176\u5b83\u6f0f\u6d1e\u7ed3\u5408\uff0c\u4fee\u6539\u7cfb\u7edf\u8bbe\u7f6e\uff0c\u67e5\u770b\u7cfb\u7edf\u6587\u4ef6\uff0c\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u7b49\u3002<\/li>\n- \u8de8\u7ad9\u8bf7\u6c42\u4f2a\u9020(CSRF)
\nCSRF\uff08Cross-site request forgery\uff09\uff0c\u4e2d\u6587\u540d\u79f0\uff1a\u8de8\u7ad9\u8bf7\u6c42\u4f2a\u9020\uff0c\u4e5f\u88ab\u79f0\u4e3a\uff1aone click attack\/session riding\uff0c\u7f29\u5199\u4e3a\uff1aCSRF\/XSRF\u3002
\u4f60\u8fd9\u53ef\u4ee5\u8fd9\u4e48\u7406\u89e3CSRF\u653b\u51fb\uff1a\u653b\u51fb\u8005\u76d7\u7528\u4e86\u4f60\u7684\u8eab\u4efd\uff0c\u4ee5\u4f60\u7684\u540d\u4e49\u53d1\u9001\u6076\u610f\u8bf7\u6c42\u3002CSRF\u80fd\u591f\u505a\u7684\u4e8b\u60c5\u5305\u62ec\uff1a\u4ee5\u4f60\u540d\u4e49\u53d1\u9001\u90ae\u4ef6\uff0c\u53d1\u6d88\u606f\uff0c\u76d7\u53d6\u4f60\u7684\u8d26\u53f7\uff0c\u751a\u81f3\u4e8e\u8d2d\u4e70\u5546\u54c1\uff0c\u865a\u62df\u8d27\u5e01\u8f6c\u8d26\u2026\u2026\u9020\u6210\u7684\u95ee\u9898\u5305\u62ec\uff1a\u4e2a\u4eba\u9690\u79c1\u6cc4\u9732\u4ee5\u53ca\u8d22\u4ea7\u5b89\u5168\u3002<\/a>
\n\u4ece\u4e0a\u56fe\u53ef\u4ee5\u770b\u51fa\uff0c\u8981\u5b8c\u6210\u4e00\u6b21CSRF\u653b\u51fb\uff0c\u53d7\u5bb3\u8005\u5fc5\u987b\u4f9d\u6b21\u5b8c\u6210\u4e24\u4e2a\u6b65\u9aa4\uff1a1.\u767b\u5f55\u53d7\u4fe1\u4efb\u7f51\u7ad9A\uff0c\u5e76\u5728\u672c\u5730\u751f\u6210Cookie\u30022.\u5728\u4e0d\u767b\u51faA\u7684\u60c5\u51b5\u4e0b\uff0c\u8bbf\u95ee\u5371\u9669\u7f51\u7ad9B\u3002\u770b\u5230\u8fd9\u91cc\uff0c\u4f60\u4e5f\u8bb8\u4f1a\u8bf4\uff1a\u201c\u5982\u679c\u6211\u4e0d\u6ee1\u8db3\u4ee5\u4e0a\u4e24\u4e2a\u6761\u4ef6\u4e2d\u7684\u4e00\u4e2a\uff0c\u6211\u5c31\u4e0d\u4f1a\u53d7\u5230CSRF\u7684\u653b\u51fb\u201d\u3002\u662f\u7684\uff0c\u786e\u5b9e\u5982\u6b64\uff0c\u4f46\u4f60\u4e0d\u80fd\u4fdd\u8bc1\u4ee5\u4e0b\u60c5\u51b5\u4e0d\u4f1a\u53d1\u751f\uff1a1.\u4f60\u4e0d\u80fd\u4fdd\u8bc1\u4f60\u767b\u5f55\u4e86\u4e00\u4e2a\u7f51\u7ad9\u540e\uff0c\u4e0d\u518d\u6253\u5f00\u4e00\u4e2atab\u9875\u9762\u5e76\u8bbf\u95ee\u53e6\u5916\u7684\u7f51\u7ad9\u3002<\/p>\n2.\u4f60\u4e0d\u80fd\u4fdd\u8bc1\u4f60\u5173\u95ed\u6d4f\u89c8\u5668<\/a>\u4e86\u540e\uff0c\u4f60\u672c\u5730\u7684Cookie\u7acb\u523b\u8fc7\u671f\uff0c\u4f60\u4e0a\u6b21\u7684\u4f1a\u8bdd\u5df2\u7ecf\u7ed3\u675f\u3002\uff08\u4e8b\u5b9e\u4e0a\uff0c\u5173\u95ed\u6d4f\u89c8\u5668\u4e0d\u80fd\u7ed3\u675f\u4e00\u4e2a\u4f1a\u8bdd\uff0c\u4f46\u5927\u591a\u6570\u4eba\u90fd\u4f1a\u9519\u8bef\u7684\u8ba4\u4e3a\u5173\u95ed\u6d4f\u89c8\u5668\u5c31\u7b49\u4e8e\u9000\u51fa\u767b\u5f55\/\u7ed3\u675f\u4f1a\u8bdd\u4e86\u2026\u2026\uff09<\/p>\n
3.\u4e0a\u56fe\u4e2d\u6240\u8c13\u7684\u653b\u51fb\u7f51\u7ad9\uff0c\u53ef\u80fd\u662f\u4e00\u4e2a\u5b58\u5728\u5176\u4ed6\u6f0f\u6d1e\u7684\u53ef\u4fe1\u4efb\u7684\u7ecf\u5e38\u88ab\u4eba\u8bbf\u95ee\u7684\u7f51\u7ad9\u3002<\/p>\n
\u4e0a\u9762\u5927\u6982\u5730\u8bb2\u4e86\u4e00\u4e0bCSRF\u653b\u51fb\u7684\u601d\u60f3\uff0c\u4e0b\u9762\u6211\u5c06\u7528\u51e0\u4e2a\u4f8b\u5b50\u8be6\u7ec6\u8bf4\u8bf4\u5177\u4f53\u7684CSRF\u653b\u51fb\uff0c\u8fd9\u91cc\u6211\u4ee5\u4e00\u4e2a\u94f6\u884c\u8f6c\u8d26\u7684\u64cd\u4f5c\u4f5c\u4e3a\u4f8b\u5b50\uff08\u4ec5\u4ec5\u662f\u4f8b\u5b50\uff0c\u771f\u5b9e\u7684\u94f6\u884c\u7f51\u7ad9\u6ca1\u8fd9\u4e48\u50bb:>\uff09<\/p>\n
\u793a\u4f8b\uff1a<\/strong><\/p>\n
\u94f6\u884c\u7f51\u7ad9A\uff0c\u5b83\u4ee5GET\u8bf7\u6c42\u6765\u5b8c\u6210\u94f6\u884c\u8f6c\u8d26\u7684\u64cd\u4f5c\uff0c\u5982\uff1ahttp:\/\/www.mybank.com\/Transfer.php?toBankId=11&money=1000<\/a><\/p>\n
\u5371\u9669\u7f51\u7ad9B\uff0c\u5b83\u91cc\u9762\u6709\u4e00\u6bb5HTML\u7684\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n
\n<img src=http:\/\/www.mybank.com\/Transfer.php?toBankId=11&money=1000><\/pre>\n<\/div>\n\u9996\u5148\uff0c\u4f60\u767b\u5f55\u4e86\u94f6\u884c\u7f51\u7ad9A\uff0c\u7136\u540e\u8bbf\u95ee\u5371\u9669\u7f51\u7ad9B\uff0c\u5662\uff0c\u8fd9\u65f6\u4f60\u4f1a\u53d1\u73b0\u4f60\u7684\u94f6\u884c\u8d26\u6237\u5c11\u4e861000\u5757\u2026<\/p>\n
\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\u5462\uff1f\u539f\u56e0\u662f\u94f6\u884c\u7f51\u7ad9A\u8fdd\u53cd\u4e86HTTP\u89c4\u8303\uff0c\u4f7f\u7528GET\u8bf7\u6c42\u66f4\u65b0\u8d44\u6e90\u3002\u5728\u8bbf\u95ee\u5371\u9669\u7f51\u7ad9B\u7684\u4e4b\u524d\uff0c\u4f60\u5df2\u7ecf\u767b\u5f55\u4e86\u94f6\u884c\u7f51\u7ad9A\uff0c\u800cB\u4e2d\u7684<img>\u4ee5GET\u7684\u65b9\u5f0f\u8bf7\u6c42\u7b2c\u4e09\u65b9\u8d44\u6e90\uff08\u8fd9\u91cc\u7684\u7b2c\u4e09\u65b9\u5c31\u662f\u6307\u94f6\u884c\u7f51\u7ad9\u4e86\uff0c\u539f\u672c\u8fd9\u662f\u4e00\u4e2a\u5408\u6cd5\u7684\u8bf7\u6c42\uff0c\u4f46\u8fd9\u91cc\u88ab\u4e0d\u6cd5\u5206\u5b50\u5229\u7528\u4e86\uff09\uff0c\u6240\u4ee5\u4f60\u7684\u6d4f\u89c8\u5668\u4f1a\u5e26\u4e0a\u4f60\u7684\u94f6\u884c\u7f51\u7ad9A\u7684Cookie\u53d1\u51faGet\u8bf7\u6c42\uff0c\u53bb\u83b7\u53d6\u8d44\u6e90\u201chttp:\/\/www.mybank.com\/Transfer.php?toBankId=11&money=1000\u201d\uff0c\u7ed3\u679c\u94f6\u884c\u7f51\u7ad9\u670d\u52a1\u5668\u6536\u5230\u8bf7\u6c42\u540e\uff0c\u8ba4\u4e3a\u8fd9\u662f\u4e00\u4e2a\u66f4\u65b0\u8d44\u6e90\u64cd\u4f5c\uff08\u8f6c\u8d26\u64cd\u4f5c\uff09\uff0c\u6240\u4ee5\u5c31\u7acb\u523b\u8fdb\u884c\u8f6c\u8d26\u64cd\u4f5c\u2026\u2026<\/li>\n<\/ul>\n
WEB\u5b89\u5168\u9632\u5fa1\u548c\u81ea\u68c0\u51e0\u70b9\u5efa\u8bae<\/p>\n
\n
- \u4f7f\u7528\u53c2\u6570\u5316\u7684\u8fc7\u6ee4\u6027\u8bed\u53e5
\n\u8981\u9632\u5fa1SQL\u6ce8\u5165\uff0c\u7528\u6237\u7684\u8f93\u5165\u5c31\u7edd\u5bf9\u4e0d\u80fd\u76f4\u63a5\u88ab\u5d4c\u5165\u5230SQL\u8bed\u53e5\u4e2d\u3002\u6070\u6070\u76f8\u53cd\uff0c\u7528\u6237\u7684\u8f93\u5165\u5fc5\u987b\u8fdb\u884c\u8fc7\u6ee4\uff0c\u6216\u8005\u4f7f\u7528\u53c2\u6570\u5316\u7684\u8bed\u53e5\u3002\u53c2\u6570\u5316\u7684\u8bed\u53e5\u4f7f\u7528\u53c2\u6570\u800c\u4e0d\u662f\u5c06\u7528\u6237\u8f93\u5165\u5d4c\u5165\u5230\u8bed\u53e5\u4e2d\u3002\u5728\u591a\u6570\u60c5\u51b5\u4e2d\uff0cSQL\u8bed\u53e5\u5c31\u5f97\u4ee5\u4fee\u6b63\u3002\u7136\u540e\uff0c\u7528\u6237\u8f93\u5165\u5c31\u88ab\u9650\u4e8e\u4e00\u4e2a\u53c2\u6570\u3002<\/li>\n- \u751f\u4ea7\u73af\u5883\u907f\u514d\u66b4\u9732\u9519\u8bef\u6d88\u606f
\n\u751f\u4ea7\u73af\u5883\u5e94\u8be5\u907f\u514d\u66b4\u9732\u9519\u8bef\u6d88\u606f\u663e\u793a\uff0c\u5c24\u5176\u662fSQL\u7965\u7ec6\u9519\u8bef\u4fe1\u606f<\/li>\n- \u4f7f\u7528\u4e13\u4e1a\u7684\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177
\n\u50cfCode Review\u4e00\u6837\uff0c\u7528\u5de5\u5177\u626b\u63cf\u4e00\u4e0b\u5e94\u7528\u53ef\u4ee5\u907f\u514d\u5927\u90e8\u5206\u5e38\u89c4\u6027\u6f0f\u6d1e\u3002\u4e00\u4e2a\u5b8c\u5584\u7684\u6f0f\u6d1e\u626b\u63cf\u7a0b\u5e8f\u4e0d\u540c\u4e8e\u7f51\u7edc\u626b\u63cf\u7a0b\u5e8f\uff0c\u5b83\u4e13\u95e8\u67e5\u627e\u7f51\u7ad9\u4e0a\u7684SQL\u6ce8\u5165\u5f0f\u6f0f\u6d1e\u3002\u6280\u672f\u4eba\u5458\u7684\u77e5\u8bc6\u66f4\u65b0\u843d\u540e\u4e8e\u6700\u65b0\u653b\u51fb\u6280\u672f\u662f\u5f88\u6b63\u5e38\u7684\uff0c \u5229\u7528\u6700\u65b0\u7684\u6f0f\u6d1e\u626b\u63cf\u7a0b\u5e8f\u53ef\u4ee5\u67e5\u627e\u6700\u65b0\u53d1\u73b0\u7684\u6f0f\u6d1e\u3002<\/li>\n- \u5f00\u53d1\u8fc7\u7a0b\u4e2d\u6240\u6709\u9636\u6bb5\u5b9e\u65bd\u4ee3\u7801\u5b89\u5168\u68c0\u67e5
\n\u5728\u90e8\u7f72Web\u5e94\u7528\u4e4b\u524d\u5b9e\u65bd\u5b89\u5168\u6d4b\u8bd5\uff0c\u8fd9\u79cd\u63aa\u65bd\u7684\u610f\u4e49\u6bd4\u4ee5\u524d\u66f4\u5927\u3001\u66f4\u6df1\u8fdc\u3002\u56e2\u961f\u8fd8\u5e94\u5f53\u5728\u90e8\u7f72\u4e4b\u540e\u7528\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177\u548c\u7ad9\u70b9\u76d1\u89c6\u5de5\u5177\u5bf9\u7f51\u7ad9\u8fdb\u884c\u6d4b\u8bd5\u3002<\/li>\n<\/ol>\n\u5f53\u7136\uff0c\u8fd9\u662f\u5f88\u7406\u60f3\u72b6\u6001\u4e86\uff0c\u5c31\u50cf\u6587\u7ae0\u5f00\u5934\u6240\u8bf4\u7684\u90a3\u6837\uff0c\u5927\u591a\u6570\u65f6\u5019\uff0c\u7531\u4e8e\u89c4\u6a21\u3001\u9700\u6c42\u548c\u9879\u76ee\u8fdb\u5ea6\u95ee\u9898\uff0c\u4e00\u4e9b\u5b89\u5168\u95ee\u9898\u53ef\u80fd\u5e76\u4e0d\u662f\u6240\u6709\u65f6\u5019\u90fd\u4f1a\u88ab\u90a3\u4e48\u91cd\u89c6\uff0c\u6240\u4ee5\u589e\u5f3a\u5b89\u5168\u610f\u8bc6\uff0c\u63d0\u9ad8\u9ad8\u8d28\u91cf\u4ee3\u7801\u4ea7\u51fa\u7387\u6216\u8bb8\u662f\u6700\u6709\u6548\uff0c\u4e5f\u662f\u6700\u53ef\u884c\u7684\u65b9\u6848\u4e86\u3002SO\uff0c\u8981\u60f3\u9879\u76ee\u4e0a\u7ebf\u540e\uff0c\u4e0d\u81f3\u4e8e\u51fa\u73b0\u56e0\u4e3a\u5b89\u5168\u95ee\u9898\u800c\u88ab\u4ec0\u4e48\u4ec0\u4e48\u7684\u5c34\u5c2c\uff0c\u8fd8\u662f\u5148\u7ec3\u7ec3\u5185\u529f\u5427 \ud83d\ude42<\/p>\n
\u53e6\u5916\u5206\u4eab\u4e00\u6bb5\u5b89\u5168\u8fc7\u6ee4\u4ee3\u7801\uff0c\u7ecf\u8fc7\u751f\u4ea7\u73af\u5883\u6d4b\u8bd5\u548c\u591a\u6b3e\u5b89\u5168\u626b\u63cf\u5de5\u5177\u626b\u63cf\uff0c\u80fd\u89e3\u51b3\u5927\u90e8\u5206\u5e38\u89c1\u5b89\u5168\u95ee\u9898\uff0c\u4ec5\u4f9b\u5b66\u4e60\u53c2\u8003\u3002\u731b\u51fb\u8fd9\u91cc:)<\/a><\/p>\n
–EOF–<\/p>\n
\u5f15\u7528\u8d44\u6599\uff1a<\/strong><\/p>\n
\n
- \u00a0http:\/\/blog.jobbole.com\/23911\/<\/li>\n
- http:\/\/bbs.ctocio.com.cn\/thread-7837688-1-1.html<\/li>\n
- http:\/\/security.ctocio.com.cn\/websec2009\/<\/li>\n
- IE\u4e0bMHTML\u534f\u8bae\u5e26\u6765\u7684\u8de8\u57df\u5371\u5bb3<\/a><\/li>\n
- \u5206\u4eab\u4e00\u6bb5\u9884\u9632SQL\u6ce8\u5165\u548c\u8de8\u7ad9\u653b\u51fb\u4ee3\u7801<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"
WEB\u5f00\u53d1\u4e2d\u7531\u4e8e\u9879\u76ee\u89c4\u6a21\u548c\u9700\u6c42\u7684\u89c4\u8303\u6027\uff0c\u5b89\u5168\u95ee\u9898\u53ef\u80fd\u5e76\u4e0d\u662f\u6240\u6709\u7684\u65f6\u5019\u90fd\u80fd\u5f15\u8d77\u8db3\u591f\u7684\u5173\u6ce8\uff0c\u5927\u591a\u6570\u65f6\u5019\u6280\u672f\u4eba\u5458\u6839\u636e […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[9,5],"tags":[83,84,79,82,81],"_links":{"self":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1525"}],"collection":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/comments?post=1525"}],"version-history":[{"count":3,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1525\/revisions"}],"predecessor-version":[{"id":1528,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/posts\/1525\/revisions\/1528"}],"wp:attachment":[{"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/media?parent=1525"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/categories?post=1525"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vimge.com\/wp-json\/wp\/v2\/tags?post=1525"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}