﻿{"id":833,"date":"2012-08-01T22:10:09","date_gmt":"2012-08-01T14:10:09","guid":{"rendered":"http:\/\/notes.zerobox.org\/?p=833"},"modified":"2012-08-01T22:10:09","modified_gmt":"2012-08-01T14:10:09","slug":"%e4%bb%8e%e5%af%b9%e4%b8%80%e4%b8%aa%e5%ae%89%e5%85%a8%e4%ba%a7%e5%93%81%e7%9a%84%e6%b5%8b%e8%af%95%e7%9c%8b%e4%ba%a7%e5%93%81%e6%9e%b6%e6%9e%84%e5%ae%89%e5%85%a8","status":"publish","type":"post","link":"http:\/\/zerobox.org\/notes\/833.html","title":{"rendered":"\u4ece\u5bf9\u4e00\u4e2a\u5b89\u5168\u4ea7\u54c1\u7684\u6d4b\u8bd5\u770b\u4ea7\u54c1\u67b6\u6784\u5b89\u5168"},"content":{"rendered":"<p><strong>\u535a\u6587\u4f5c\u8005\uff1axti9er[TSRC]<\/strong><\/p>\n<p><strong>\u53d1\u5e03\u65e5\u671f\uff1a2012-07-03<\/strong><\/p>\n<p><strong>\u535a\u6587\u5185\u5bb9\uff1a<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div>\n<p><strong>\u8f6c\u8f7d\u8bf7\u6ce8\u660e\u51fa\u5904\u53ca\u4f5c\u8005\u00a0<a href=\"http:\/\/security.tencent.com\/index.php\/blog\/msg\/2\">http:\/\/security.tencent.com\/index.php\/blog\/msg\/2<\/a>\u00a0\u00a0\u00a0<strong>xti9er [TSRC]<\/strong><\/strong><\/p>\n<p><strong><\/strong><\/p>\n<p><strong>\u524d\u8a00<\/strong><\/p>\n<p>\u7531\u4e8e\u4e4b\u524d\u5de5\u4f5c\u9700\u8981\uff0c\u7b14\u8005\u7ecf\u5e38\u63a5\u89e6\u4e00\u4e9b\u4e1a\u754c\u5b89\u5168\u4ea7\u54c1\uff0c\u5bf9\u5176\u6027\u80fd\u3001\u5b89\u5168\u6027\u7b49\u7b49\u7684\u5206\u6790\u81ea\u7136\u662f\u5173\u6ce8\u7684\u91cd\u70b9\u3002\u597d\u7684\u5730\u65b9\u81ea\u7136\u8981\u5b66\u4e60\uff0c\u5982\u679c\u6709\u7f3a\u9677\u7684\u5730\u65b9\u5219\u503c\u5f97\u6211\u4eec\u81ea\u7701\uff0c\u770b\u81ea\u5df1\u7684\u7cfb\u7edf\u548c\u4ea7\u54c1\u662f\u5426\u4e5f\u4f1a\u6709\u8fd9\u4e9b\u95ee\u9898\u5462\uff1f<\/p>\n<p>\u9274\u4e8e\u5546\u4e1a\u4ea7\u54c1\u7684\u4fdd\u5bc6\u6027\uff0c\u5c06\u9690\u53bb\u90e8\u5206\u654f\u611f\u5185\u5bb9\u3002<\/p>\n<p><strong><\/strong><\/p>\n<p><strong>\u4ea7\u54c1\u5206\u6790<\/strong><\/p>\n<p><strong>\u00a0\u4ea7\u54c1\u7b80\u4ecb<\/strong><\/p>\n<p>\u67d0\u5b89\u5168\u4ea7\u54c1<\/p>\n<p><strong>\u4ea7\u54c1\u67b6\u6784<\/strong><\/p>\n<p>\u7a0b\u5e8f\uff1aWeb\u7ba1\u7406\u754c\u9762+\u540e\u53f0\u670d\u52a1\u3002<\/p>\n<p>\u7f51\u7edc\uff1a\u53ef\u4e32\u8054\u6216\u5e76\u8054\u4e8e\u7f51\u7edc\u4e2d\uff0c\u7ba1\u7406\u901a\u8fc7web\u63a5\u53e3\u6216\u81ea\u5b9a\u4e49\u7684console<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/security.tencent.com\/uploadimg_dir\/201207\/c5cd5cb4af23a8a8c3715412fb69147e.png\" alt=\"\" \/><\/p>\n<p><strong>\u63a2\u6d4b\u5206\u6790<\/strong><\/p>\n<p>\u901a\u8fc7\u7b80\u5355\u7684\u626b\u63cf\u5206\u6790\uff0c\u5176web\u524d\u7aef\u91c7\u7528\u7684\u662fApache+php+DB\u00a0\u67b6\u6784\u3002<\/p>\n<p><strong><br \/>\n<\/strong><\/p>\n<p><strong>\u5b89\u5168\u6027\u6d4b\u8bd5<\/strong><\/p>\n<p><strong>\u00a0\u00a0\u00a0 \u5e10\u6237\u5b89\u5168<\/strong><\/p>\n<p>\u867d\u7136\u6b64\u4ea7\u54c1\u6211\u4eec\u80fd\u89c1\u5230\u7684\u53ea\u662f\u4e00\u4e2a\u2018\u94c1\u76d2\u5b50\u2019\uff0c\u4f46\u901a\u5e38\u80fd\u731c\u6d4b\u5230\uff0c\u5b83\u5176\u5b9e\u5c31\u662f\u4e00\u4e2alinux\u7cfb\u7edf\u52a0\u81ea\u7814\u7684\u5b89\u5168\u4ea7\u54c1\u7684\u5f62\u5f0f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5b83\u63d0\u4f9b\u4e86console\u6a21\u5f0f\u7684\u7ba1\u7406\uff0cweb\u7ba1\u7406\u7528\u6237\u548cconsole\u8d26\u6237\u662f\u540c\u4e00\u4e2a\uff0c\u6211\u4eec\u53d1\u73b0\u5982\u679c\u6dfb\u52a0\u7684\u8d26\u6237\u540d\u4e3aroot\u4f1a\u5931\u8d25\uff0c\u57fa\u672c\u4e0a\u80fd\u8bc1\u660e\u4ed6\u662flinux\u7cfb\u7edf\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u9664root\u4e4b\u5916\u7684\u666e\u901a\u7528\u6237\u767b\u9646\u540e\uff0c\u51fa\u73b0\u7684\u662f\u4e00\u4e2a\u81ea\u5b9a\u4e49\u7684console\u754c\u9762\uff0c\u4e0d\u662fbash\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5728\u8fd9\u91cc\u7ed9\u5927\u5bb6\u63d0\u4e2a\u9192\uff1a\u7c7b\u4f3c\u7684\u94c1\u76d2\u5b50(\u5b89\u5168\u4ea7\u54c1)\uff0c<strong>root\u8d26\u6237\u548c\u5bc6\u7801\u662f\u6ca1\u6709\u63d0\u4f9b\u7ed9\u7528\u6237\u7684\uff0c\u4e5f\u5c31\u662f\u8bf4\u5f00\u53d1\u5546\u77e5\u9053\u4f60\u7684\u4ea7\u54c1\u7684root\u5bc6\u7801<\/strong>\uff0c\u5982\u679c\u5c06\u5176\u67b6\u8bbe\u5728\u4e00\u4e2a\u5916\u90e8\u7528\u6237\u80fd\u8bbf\u95ee\u7684\u5730\u65b9\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u5f00\u53d1\u5546\u6709\u673a\u4f1a\u767b\u9646\u4f60\u7684\u7cfb\u7edf\u3002\u5c31\u7b97\u5f00\u53d1\u5546\u5f88\u6709\u826f\u77e5\uff0c\u5458\u5de5\u4e0d\u4f1a\u8fdd\u53cd\u804c\u4e1a\u9053\u5fb7\uff0c\u4e5f\u4e0d\u6392\u9664\u5b83\u540c\u7c7b\u4ea7\u54c1root\u5bc6\u7801\u53ef\u80fd\u4e00\u81f4\uff0c\u6b64\u5546\u5bb6\u7684\u5176\u4ed6\u7528\u6237\u83b7\u77e5\u6b64\u5bc6\u7801\u7528\u4e8e\u5c1d\u8bd5\u60a8\u7684\u7cfb\u7edf\u7684\u53ef\u80fd\u6027\u3002<strong>\u6240\u4ee5\u6b64\u4ea7\u54c1\u6216\u7ba1\u7406\u7aef\u53e3\uff0c\u5fc5\u987b\u8bbe\u7f6e\u4e3a\u5916\u7f51\u4e0d\u80fd\u8bbf\u95ee\uff0c\u4e14\u5185\u90e8\u5458\u5de5\u4ec5\u6709\u6709\u9650\u7684\u8bbf\u95ee\u6743\u9650<\/strong>\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>web\u5b89\u5168<\/strong><\/p>\n<p>\u6b64\u4ea7\u54c1\u63d0\u4f9bweb\u7ba1\u7406\u754c\u9762\uff0cweb\u7c7b\u5b89\u5168\u95ee\u9898\u5e38\u89c1\u7684\u662f2\u79cd\uff1a1\u3001\u6ce8\u5165\uff1b2\u3001xss\u8de8\u7ad9\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Sql\u6ce8\u5165\u81ea\u4e0d\u5fc5\u8bf4\uff0c\u53ef\u4fee\u6539DB\u00a0\u6570\u636e\u3002\u4e00\u4e2a\u4f9d\u8d56DB\u6570\u636e\u8fdb\u884c\u8fd0\u8f6c\u7684\u7cfb\u7edf\u6765\u8bf4\uff0csql\u6ce8\u5165\u7684\u5371\u5bb3\u5df2\u7ecf\u662f\u975e\u5e38\u5927\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u547d\u4ee4\u6ce8\u5165\u662f\u6307\u67d0\u4e9b\u9700\u8981\u5c06\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u4f5c\u4e3a\u547d\u4ee4\u7684\u4e00\u90e8\u5206\u65f6\uff0c\u672a\u5bf9\u6570\u636e\u7684\u5408\u6cd5\u6027\u4f5c\u6821\u9a8c\uff0c\u5bfc\u81f4\u6076\u610f\u7528\u6237\u53ef\u4ee5\u968f\u610f\u6784\u9020\u547d\u4ee4\u6267\u884c\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>Xss\u8de8\u7ad9\u95ee\u9898\uff0c\u5927\u5bb6\u89c9\u5f97\u5728\u4e00\u4e2a\u540e\u53f0\u7ef4\u62a4\u7c7b\u7cfb\u7edf\u4e0a\u95ee\u9898\u4e0d\u5927\u3002\u5176\u5b9e\u4e0d\u7136\uff0c\u5982\u679c\u4e00\u4e2a\u4f4e\u7aef\u7528\u6237(\u6765\u5bbe\u8bbf\u95ee\u3001\u5382\u5546\u4f8b\u884c\u67e5\u9a8c)\u5229\u7528XSS\u00a0\u7684ajax\u65b9\u5f0f\uff0c\u53ef\u5c06\u81ea\u8eab\u7684\u6743\u9650\u63d0\u5347\u81f3\u53d7\u5bb3\u8005\u7528\u6237\u4e00\u6837\u7684\u6743\u9650\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u901a\u8fc7\u7b80\u5355\u7684\u6d4b\u8bd5\uff0c\u53d1\u73b0\u4e00\u5904\u5f88\u660e\u663e\u7684sqlinject\u6f0f\u6d1e\uff1a<\/p>\n<p>&nbsp;<\/p>\n<p>GET\u00a0\/server\/ip_edit.php?id=1;select\u00a0version();<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u4ece\u67b6\u6784\u7f3a\u9677\u5230\u7cfb\u7edf\u6743\u9650<\/strong><\/p>\n<p>\u5982\u679c\u4ec5\u505c\u7559\u5728web\u6f0f\u6d1e\u4e0a\uff0c\u5927\u5bb6\u663e\u7136\u89c9\u5f97\u4e0d\u8fc7\u763e\u3002\u4e0b\u4e00\u6b65\u6211\u4eec\u6765\u770b\u5982\u4f55\u5f97\u5230\u6574\u4e2a\u7cfb\u7edf\u7684\u6743\u9650\u3002\u663e\u7136\u7528linux\u7cfb\u7edfexploit\u4e0d\u592a\u53ef\u80fd\uff0c\u5382\u5546\u7684\u8865\u4e01\u9f50\u5168\uff0c\u4e14\u65e0gcc\u73af\u5883\u3002\u53ea\u80fd\u6539\u7531\u5176\u4ed6\u9014\u5f84\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u5bf9\u4e8e\u67b6\u6784\u7684\u601d\u8003\uff1a\u4e00\u4e2aweb\u7cfb\u7edf\uff0c\u901a\u8fc7\u6dfb\u52a0web\u8d26\u6237\uff0c\u80fd\u4f7f\u5176\u8d26\u6237\u4e5f\u6dfb\u52a0\u5230\u7cfb\u7edf\u8d26\u6237\u4e2d\u53bb\uff0c\u4ed6\u662f\u5982\u4f55\u505a\u5230\u7684\u5462\uff1f<\/p>\n<p>&nbsp;<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/security.tencent.com\/uploadimg_dir\/201207\/c77683bd1d27715cab959a76f72c1d31.png\" alt=\"\" \/><br \/>\n\u6211\u4eec\u6682\u4e14\u4f5c2\u4e2a\u5047\u8bbe\uff0c\u7136\u540e\u505a\u76f8\u5e94\u7684\u5c1d\u8bd5\u548c\u63a2\u7d22\uff0c\u6216\u8bb8\u80fd\u7ed5\u8fc7\u5b89\u5168\u9632\u8303\u83b7\u5f97root\u6743\u9650\uff1a<\/p>\n<p>&nbsp;<\/p>\n<p>a)\u00a0webserver\u00a0\u662froot\u00a0\u6743\u9650<\/p>\n<p>b)\u00a0\u901a\u8fc7db\u6570\u636e\u6216\u5176\u4ed6\u5a92\u4ecb\uff0c\u8ba9\u4e00\u4e2a\u5177\u6709root\u00a0\u6743\u9650\u7684\u540e\u53f0\u7a0b\u5e8f\u6765\u81ea\u52a8\u5b8c\u6210\u6dfb\u52a0\u64cd\u4f5c\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u524d\u9762\u7684sql\u6ce8\u5165\u6f0f\u6d1e\uff0c\u4f7f\u6211\u4eec\u5df2\u7ecf\u80fd\u8bbf\u95ee\u5176\u6587\u4ef6\u7cfb\u7edf\u548c\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u3002\u901a\u8fc7\u8bfb\u53d6\u6b64\u4ea7\u54c1\u7684\u540e\u53f0\u7cfb\u7edf\u4ee3\u7801\u3002\u53d1\u73b0\u4e86\u786e\u5b9e\u662f\u4e0a\u8ff0\u7684\u7b2c\u4e8c\u4e2a\u731c\u60f3\u3002<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/security.tencent.com\/uploadimg_dir\/201207\/2f733df5aad9fc1f24ec8766fcce59aa.png\" alt=\"\" \/><br \/>\n\u6211\u4eec\u5728\u540e\u53f0\u7cfb\u7edf\u4ee3\u7801\u4e2d\u53d1\u73b0\u547d\u4ee4\u6ce8\u5165\u6f0f\u6d1e\uff0c\u800c\u540e\u53f0\u8fdb\u7a0b\u662froot\u6743\u9650\u542f\u52a8\u7684\uff0c\u901a\u8fc7sql\u6ce8\u5165\u6f0f\u6d1e\u7ed3\u5408\u67d0\u6765\u81f3db\u7684\u53c2\u6570\u7684\u547d\u4ee4\u6ce8\u5165\u6f0f\u6d1e\uff0c\u7ee7\u627f\u4e86\u540e\u53f0\u8fdb\u7a0b\u7684root\u6743\u9650\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>So\uff0c\u4e00\u5207\u90fd\u7ed3\u675f\u4e86\u3002<\/p>\n<p>&nbsp;<\/p>\n<p><strong><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u603b\u7ed3\u4e0e\u601d\u8003<\/strong><\/p>\n<p>\u5bf9\u4e8e\u4ee5\u4e0a\u4ea7\u54c1\u7684\u5206\u6790\uff0c\u6211\u4eec\u603b\u7ed3\u4e00\u4e0b\u5b83\u7684\u95ee\u9898\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/security.tencent.com\/uploadimg_dir\/201207\/1f75e08e402cac6eb85a7dc121258f7c.png\" alt=\"\" width=\"639\" height=\"353\" \/><\/p>\n<p>\u5229\u7528sql\u6ce8\u5165\u6f0f\u6d1e\uff0c\u653b\u51fb\u8005\u83b7\u5f97\u7ee7\u627f\u4e86webserver\u6743\u9650<\/p>\n<p>\u5229\u7528\u540e\u53f0\u7cfb\u7edf\u547d\u4ee4\u6ce8\u5165\u6f0f\u6d1e\uff0c\u653b\u51fb\u8005\u83b7\u5f97\u7ee7\u627f\u4e86\u540e\u53f0\u7cfb\u7edf\u7684root\u6743\u9650<\/p>\n<p>\u7531\u6b64\u53ef\u770b\u51fa\uff0c\u8981\u60f3<strong>\u5efa\u8bbe<\/strong><strong>\u4e00\u4e2a\u5b89\u5168\u7684\u4ea7\u54c1\u548c\u7cfb\u7edf\uff0c\u6743\u9650\u7684\u9694\u79bb\u662f\u5173\u952e<\/strong>\u3002\u4f46\u5982\u4f55\u80fd\u505a\u5230\u6743\u9650\u9694\u79bb\u5462\uff0c\u4ece\u4ee5\u4e0b\u51e0\u4e2a\u65b9\u9762\uff1a<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\u7f51\u7edc\u9694\u79bb\u3002<\/strong>\u518dNB\u7684\u7cfb\u7edf\u4ed6\u90fd\u6216\u591a\u6216\u5c11\u6709\u4e9b\u6bdb\u75c5\uff0c\u66f4\u4f55\u51b5\u662f\u4e00\u4e9b\u8fd0\u7ef4\u7c7b\u9ad8\u654f\u611f\u7cfb\u7edf\u3002\u505a\u597d\u9694\u79bb\uff0c\u53ef\u4ee5\u6700\u5927\u9650\u5ea6\u7684\u5c06\u53ef\u80fd\u5b58\u5728\u7684\u98ce\u9669\u964d\u4f4e\u5230\u6700\u5c0f\u3002<\/p>\n<p><strong>\u00a0\u4e25\u683c\u6821\u9a8c\u6570\u636e\u8f93\u5165\u3002<\/strong>\u4e25\u683c\u6821\u9a8c\u6570\u636e\u8f93\u5165\u5e94\u8be5\u662f\u5f00\u53d1\u4eba\u5458\u7684\u5e38\u8bc6\uff0c\u5bf9\u4efb\u610f\u4e00\u6761\u6570\u636e\u6765\u6e90\u90fd\u8981\u5047\u8bbe\u4ed6\u662f\u2018\u4e0d\u53ef\u9760\u2019\u7684\uff0c\u5373\u4f7f\u5b83\u6765\u81f3\u5185\u90e8\u7cfb\u7edf\u3002<\/p>\n<p><strong>\u6700\u5c0f\u6743\u9650\u539f\u5219<\/strong>\u00a0\u3002\u6700\u5c0f\u6743\u9650\u539f\u5219\u4e5f\u662f\u4e00\u79cd\u9694\u79bb\u7684\u601d\u60f3\uff0c\u5047\u8bbe\u4f60\u7684\u7cfb\u7edf\u4e5f\u4e0d\u662f\u5b8c\u7f8e\u4e86\uff0c\u53ef\u80fd\u4f1a\u51fa\u73b0\u7455\u75b5\u548c\u6f0f\u6d1e\u3002\u5982\u679c\u5b83\u8fd0\u884c\u5728\u8f83\u4f4e\u6743\u9650\uff0c\u5c31\u7b97\u51fa\u73b0\u4efb\u4f55\u5b89\u5168\u95ee\u9898\uff0c\u4e5f\u4e0d\u4f1a\u5bfc\u81f4\u7cfb\u7edf\u6700\u9ad8\u6743\u9650\u88ab\u5165\u4fb5\u8005\u62ff\u5230\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u76f8\u4fe1\u4ece\u7f51\u7edc\u3001\u4e3b\u673a\u3001\u4ee3\u7801\u4e09\u4e2a\u5c42\u9762\u7684\u7eb5\u6df1\u9632\u5fa1\uff0c\u60a8\u7684\u7cfb\u7edf\u5c06\u66f4\u52a0\u5b89\u5168\u53ef\u9760\u3002<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u535a\u6587\u4f5c\u8005\uff1axti9er[TSRC] \u53d1\u5e03\u65e5\u671f\uff1a2012-07-03 \u535a\u6587\u5185\u5bb9\uff1a  &hellip;<\/p>\n<p class=\"read-more\"><a href=\"http:\/\/zerobox.org\/notes\/833.html\">\u7ee7\u7eed\u9605\u8bfb &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[202],"class_list":["post-833","post","type-post","status-publish","format-standard","hentry","tag-202"],"views":765,"_links":{"self":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/833","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=833"}],"version-history":[{"count":0,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/posts\/833\/revisions"}],"wp:attachment":[{"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/media?parent=833"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/categories?post=833"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zerobox.org\/notes\/wp-json\/wp\/v2\/tags?post=833"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}