{"id":7519,"date":"2015-07-06T06:27:29","date_gmt":"2015-07-06T11:27:29","guid":{"rendered":"httpss:\/\/www.powenko.com\/wordpress\/?p=7519"},"modified":"2015-07-06T06:47:36","modified_gmt":"2015-07-06T11:47:36","slug":"xss%e6%94%bb%e6%93%8a","status":"publish","type":"post","link":"https:\/\/www.powenko.com\/wordpress\/?p=7519","title":{"rendered":"XSS\u653b\u64ca"},"content":{"rendered":"<p><span style=\"font-family: 'Arial Unicode MS';\">\u8de8\u7db2\u7ad9\u8173\u672c\uff08<\/span>Cross-site scripting<span style=\"font-family: 'Arial Unicode MS';\">\uff0c\u901a\u5e38\u7c21\u7a31\u70ba<\/span>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u6216\u8de8\u7ad9\u8173\u672c\u6216\u8de8\u7ad9\u8173\u672c\u653b\u64ca\uff09\u662f\u200b\u200b\u4e00\u7a2e\u7db2\u7ad9\u61c9\u7528\u7a0b\u5e8f\u7684\u5b89\u5168\u6f0f\u6d1e\u653b\u64ca\uff0c\u662f\u4ee3\u78bc\u6ce8\u5165\u7684\u4e00\u7a2e\u3002\u5b83\u5141\u8a31\u60e1\u610f\u7528\u6236\u5c07\u4ee3\u78bc\u6ce8\u5165\u5230\u7db2\u9801\u4e0a\uff0c\u5176\u4ed6\u7528\u6236\u5728\u89c0\u770b\u7db2\u9801\u6642\u5c31\u6703\u53d7\u5230\u5f71\u97ff\u3002\u9019\u985e\u653b\u64ca\u901a\u5e38\u5305\u542b\u4e86<\/span>HTML<span style=\"font-family: 'Arial Unicode MS';\">\u4ee5\u53ca\u7528\u6236\u7aef\u8173\u672c\u8a9e\u8a00\u3002<\/span><\/p>\n<p>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u653b\u64ca\u901a\u5e38\u6307\u7684\u662f\u901a\u904e\u5229\u7528\u7db2\u9801\u958b\u767c\u6642\u7559\u4e0b\u7684\u6f0f\u6d1e\uff0c\u901a\u904e\u5de7\u5999\u7684\u65b9\u6cd5\u6ce8\u5165\u60e1\u610f\u6307\u4ee4\u4ee3\u78bc\u5230\u7db2\u9801\uff0c\u4f7f\u7528\u6236\u52a0\u8f09\u4e26\u57f7\u884c\u653b\u64ca\u8005\u60e1\u610f\u88fd\u9020\u7684\u7db2\u9801\u7a0b\u5e8f\u3002\u9019\u4e9b\u60e1\u610f\u7db2\u9801\u7a0b\u5e8f\u901a\u5e38\u662f<\/span>JavaScript<span style=\"font-family: 'Arial Unicode MS';\">\uff0c\u4f46\u5be6\u969b\u4e0a\u4e5f\u53ef\u4ee5\u5305\u62ec<\/span>Java<span style=\"font-family: 'Arial Unicode MS';\">\uff0c <\/span>VBScript<span style=\"font-family: 'Arial Unicode MS';\">\uff0c <\/span>ActiveX<span style=\"font-family: 'Arial Unicode MS';\">\uff0c <\/span>Flash <span style=\"font-family: 'Arial Unicode MS';\">\u6216\u8005\u751a\u81f3\u662f\u666e\u901a\u7684<\/span>HTML<span style=\"font-family: 'Arial Unicode MS';\">\u3002\u653b\u64ca\u6210\u529f\u5f8c\uff0c\u653b\u64ca\u8005\u53ef\u80fd\u5f97\u5230\u66f4\u9ad8\u7684\u6b0a\u9650\uff08\u5982\u57f7\u884c\u4e00\u4e9b\u64cd\u4f5c\uff09\u3001\u79c1\u5bc6\u7db2\u9801\u5167\u5bb9\u3001\u6703\u8a71\u548c<\/span>cookie<span style=\"font-family: 'Arial Unicode MS';\">\u7b49\u5404\u7a2e\u5167\u5bb9\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u80cc\u666f\u548c\u73fe\u72c0<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u7576\u7db2\u666f\uff08<\/span>Netscape<span style=\"font-family: 'Arial Unicode MS';\">\uff09\u6700\u521d\u63a8\u51fa<\/span>JavaScript<span style=\"font-family: 'Arial Unicode MS';\">\u8a9e\u8a00\u6642\uff0c\u4ed6\u5011\u4e5f\u5bdf\u89ba\u5230\u51c6\u8a31\u7db2\u9801\u670d\u52d9\u5668\u767c\u9001\u53ef\u904b\u884c\u7684\u4ee3\u78bc\u7d66\u4e00\u500b\u700f\u89bd\u5668\u7684\u5b89\u5168\u98a8\u96aa\uff08\u5373\u4f7f\u50c5\u662f\u5728\u4e00\u500b\u700f\u89bd\u5668\u7684\u6c99\u76d2\u88e1\uff09\u3002\u5b83\u6240\u9020\u6210\u7684\u4e00\u500b\u95dc\u9375\u7684\u554f\u984c\u5728\u65bc\u7528\u6236\u540c\u6642\u6253\u958b\u591a\u500b\u700f\u89bd\u5668\u8996\u7a97\u6642\uff0c\u5728\u67d0\u4e9b\u4f8b\u5b50\u88e1\uff0c\u7db2\u9801\u88e1\u7684\u7247\u65b7\u4ee3\u78bc\u88ab\u5141\u8a31\u5f9e\u53e6\u4e00\u500b\u7db2\u9801\u6216\u5c0d\u8c61\u53d6\u51fa\u6578\u64da\uff0c\u800c\u56e0\u70ba\u60e1\u610f\u7684\u7db2\u7ad9\u53ef\u4ee5\u7528\u9019\u500b\u65b9\u6cd5\u4f86\u5617\u8a66\u7aca\u53d6\u6a5f\u5bc6\u4fe1\u606f\uff0c\u6240\u4ee5\u5728\u67d0\u4e9b\u60c5\u5f62\uff0c\u9019\u61c9\u662f\u5b8c\u5168\u88ab\u7981\u6b62\u7684\u3002\u70ba\u4e86\u89e3\u6c7a\u9019\u500b\u554f\u984c\uff0c\u700f\u89bd\u5668\u63a1\u7528\u4e86\u540c\u6e90\u6c7a\u7b56\u2014\u2014\u50c5\u5141\u8a31\u4f86\u81ea\u76f8\u540c\u57df\u540d\u7cfb\u7d71\u548c\u4f7f\u7528\u76f8\u540c\u5354\u8b70\u7684\u5c0d\u8c61\u8207\u7db2\u9801\u4e4b\u9593\u7684\u4efb\u4f55\u4ea4\u4e92\u3002\u9019\u6a23\u4e00\u4f86\uff0c\u60e1\u610f\u7684\u7db2\u7ad9\u4fbf\u7121\u6cd5\u85c9\u7531<\/span>JavaScript<span style=\"font-family: 'Arial Unicode MS';\">\u5728\u53e6\u4e00\u500b\u700f\u89bd\u5668\u7aca\u53d6\u6a5f\u5bc6\u6578\u64da\u3002\u6b64\u5f8c\uff0c\u70ba\u4e86\u4fdd\u8b77\u7528\u6236\u514d\u53d7\u60e1\u610f\u7684\u5371\u5bb3\uff0c\u5176\u4ed6\u7684\u700f\u89bd\u5668\u8207\u670d\u52d9\u7aef\u6307\u4ee4\u8a9e\u8a00\u63a1\u7528\u4e86\u985e\u4f3c\u7684\u8a2a\u554f\u63a7\u5236\u6c7a\u7b56\u3002<\/span><\/p>\n<p>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u6f0f\u6d1e\u53ef\u4ee5\u8ffd\u6eaf\u5230<\/span>1990<span style=\"font-family: 'Arial Unicode MS';\">\u5e74\u4ee3\u3002\u5927\u91cf\u7684\u7db2\u7ad9\u66fe\u906d\u53d7<\/span>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u6f0f\u6d1e\u653b\u64ca\u6216\u88ab\u767c\u73fe\u6b64\u985e\u6f0f\u6d1e\uff0c\u5982<\/span>Twitter[1] <span style=\"font-family: 'Arial Unicode MS';\">\uff0c<\/span>Facebook[2]<span style=\"font-family: 'Arial Unicode MS';\">\uff0c<\/span>MySpace <span style=\"font-family: 'Arial Unicode MS';\">\uff0c<\/span>Orkut[3][4] ,<span style=\"font-family: 'Arial Unicode MS';\">\u65b0\u6d6a\u5fae\u535a<\/span>[5]<span style=\"font-family: 'Arial Unicode MS';\">\u548c\u767e\u5ea6\u8cbc\u5427\u3002\u7814\u7a76\u8868\u660e<\/span>[6] <span style=\"font-family: 'Arial Unicode MS';\">\uff0c\u6700\u8fd1\u5e7e\u5e74<\/span>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u5df2\u7d93\u8d85\u904e\u7de9\u885d\u5340\u6ea2\u51fa\u6210\u70ba\u6700\u6d41\u884c\u7684\u653b\u64ca\u65b9\u5f0f\uff0c\u6709<\/span>68%<span style=\"font-family: 'Arial Unicode MS';\">\u7684\u7db2\u7ad9\u53ef\u80fd\u906d\u53d7\u6b64\u985e\u653b\u64ca\u3002\u6839\u64da\u958b\u653e\u7db2\u9801\u61c9\u7528\u5b89\u5168\u8a08\u5283\uff08<\/span>Open Web Application Security Project<span style=\"font-family: 'Arial Unicode MS';\">\uff09\u516c\u4f48\u7684<\/span>2010<span style=\"font-family: 'Arial Unicode MS';\">\u5e74\u7d71\u8a08\u6578\u64da\uff0c\u5728<\/span>Web<span style=\"font-family: 'Arial Unicode MS';\">\u5b89\u5168\u5a01\u8105\u524d<\/span>10<span style=\"font-family: 'Arial Unicode MS';\">\u4f4d\u4e2d\uff0c<\/span>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u6392\u540d\u7b2c<\/span>2<span style=\"font-family: 'Arial Unicode MS';\">\uff0c\u50c5\u6b21\u65bc\u4ee3\u78bc\u6ce8\u5165\uff08<\/span>Injection<span style=\"font-family: 'Arial Unicode MS';\">\uff09\u3002 <\/span>[7]<\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u7e2e\u5beb<\/span><\/p>\n<p>Cross-site scripting<span style=\"font-family: 'Arial Unicode MS';\">\u7684\u7e2e\u5beb\u662f<\/span>CSS<span style=\"font-family: 'Arial Unicode MS';\">\uff0c\u4f46\u56e0\u70ba<\/span>CSS<span style=\"font-family: 'Arial Unicode MS';\">\u5728\u7db2\u9801\u8a2d\u8a08\u9818\u57df\u5df2\u7d93\u88ab\u5ee3\u6cdb\u6307\u5c64\u758a\u6a23\u5f0f\u8868\uff08<\/span>Cascading Style Sheets<span style=\"font-family: 'Arial Unicode MS';\">\uff09\uff0c\u6240\u4ee5\u5c07<\/span>Cross<span style=\"font-family: 'Arial Unicode MS';\">\u6539\u4ee5\u767c\u97f3\u76f8\u8fd1\u7684<\/span>X<span style=\"font-family: 'Arial Unicode MS';\">\u505a\u70ba\u7e2e\u5beb\u3002\u4f46\u65e9\u671f\u7684\u6587\u4ef6\u9084\u662f\u6703\u4f7f\u7528<\/span>CSS<span style=\"font-family: 'Arial Unicode MS';\">\u8868\u793a<\/span>Cross-site scripting<span style=\"font-family: 'Arial Unicode MS';\">\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u6aa2\u6e2c\u65b9\u6cd5<\/span>[<span style=\"font-family: 'Arial Unicode MS';\">\u7de8\u8f2f<\/span>]<\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u901a\u5e38\u6709\u4e00\u4e9b\u65b9\u5f0f\u53ef\u4ee5\u6e2c\u8a66\u7db2\u7ad9\u662f\u5426\u6709\u6b63\u78ba\u8655\u7406\u7279\u6b8a\u5b57\u5143\uff1a<\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&gt;&lt;script&gt;alert(document.cookie)&lt;\/script&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">=&#8217;&gt;&lt;script&gt;alert(document.cookie)&lt;\/script&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&#8220;&gt;&lt;script&gt;alert(document.cookie)&lt;\/script&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&lt;script&gt;alert(document.cookie)&lt;\/script&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&lt;script&gt;alert(vulnerable)&lt;\/script&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">%3Cscript%3Ealert(&#8216;XSS&#8217;)%3C\/script%3E<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&lt;script&gt;alert(&#8216;XSS&#8217;)&lt;\/script&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&lt;img src=&#8221;javascript:alert(&#8216;XSS&#8217;)&#8221;&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&lt;img src=&#8221;httpss:\/\/xxx.com\/yyy.png&#8221; onerror=&#8221;alert(&#8216;XSS&#8217;)&#8221;&gt;<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&lt;div style=&#8221;height:expression(alert(&#8216;XSS&#8217;),1)&#8221; \/&gt;<\/span><\/span><span style=\"font-family: \u6977\u4f53, monospace;\"><span style=\"font-size: small;\"><span lang=\"zh-CN\">\uff08\u9019\u500b\u50c5\u9650<\/span><\/span><\/span><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">IE <\/span><\/span><span style=\"font-family: \u6977\u4f53, monospace;\"><span style=\"font-size: small;\"><span lang=\"zh-CN\">\u6709\u6548\uff09<\/span><\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u653b\u64ca\u624b\u6bb5\u548c\u76ee\u7684<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u653b\u64ca\u8005\u4f7f\u88ab\u653b\u64ca\u8005\u5728\u700f\u89bd\u5668\u4e2d\u57f7\u884c\u8173\u672c\u5f8c\uff0c\u5982\u679c\u9700\u8981\u6536\u96c6\u4f86\u81ea\u88ab\u653b\u64ca\u8005\u7684\u6578\u64da\uff08\u5982<\/span>c\u200b\u200bookie<span style=\"font-family: 'Arial Unicode MS';\">\u6216\u5176\u4ed6\u654f\u611f\u4fe1\u606f\uff09\uff0c\u53ef\u4ee5\u81ea\u884c\u67b6\u8a2d\u4e00\u500b\u7db2\u7ad9\uff0c\u8b93\u88ab\u653b\u64ca\u8005\u901a\u904e<\/span>JavaScript<span style=\"font-family: 'Arial Unicode MS';\">\u7b49\u65b9\u5f0f\u628a\u6536\u96c6\u597d\u7684\u6578\u64da\u4f5c\u70ba\u53c3\u6578\u63d0\u4ea4\uff0c\u96a8\u5f8c\u4ee5\u6578\u64da\u5eab\u7b49\u5f62\u5f0f\u8a18\u9304\u5728\u653b\u64ca\u8005\u81ea\u5df1\u7684\u670d\u52d9\u5668\u4e0a\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5e38\u7528\u7684<\/span>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u653b\u64ca\u624b\u6bb5\u548c\u76ee\u7684\u6709\uff1a<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u76dc\u7528 <\/span>cookie <span style=\"font-family: 'Arial Unicode MS';\">\uff0c\u7372\u53d6\u654f\u611f\u4fe1\u606f\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5229\u7528\u690d\u5165<\/span>Flash <span style=\"font-family: 'Arial Unicode MS';\">\uff0c\u901a\u904e<\/span>crossdomain <span style=\"font-family: 'Arial Unicode MS';\">\u6b0a\u9650\u8a2d\u7f6e\u9032\u4e00\u6b65\u7372\u53d6\u66f4\u9ad8\u6b0a\u9650\uff1b\u6216\u8005\u5229\u7528<\/span>Java<span style=\"font-family: 'Arial Unicode MS';\">\u7b49\u5f97\u5230\u985e\u4f3c\u7684\u64cd\u4f5c\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5229\u7528<\/span>iframe<span style=\"font-family: 'Arial Unicode MS';\">\u3001<\/span>frame<span style=\"font-family: 'Arial Unicode MS';\">\u3001<\/span>XMLHttpRequest<span style=\"font-family: 'Arial Unicode MS';\">\u6216\u4e0a\u8ff0<\/span>Flash<span style=\"font-family: 'Arial Unicode MS';\">\u7b49\u65b9\u5f0f\uff0c\u4ee5\uff08\u88ab\u653b\u64ca\uff09\u7528\u6236\u7684\u8eab\u4efd\u57f7\u884c\u4e00\u4e9b\u7ba1\u7406\u52d5\u4f5c\uff0c\u6216\u57f7\u884c\u4e00\u4e9b\u4e00\u822c\u7684\u5982\u767c\u5fae\u535a\u3001\u52a0\u597d\u53cb\u3001\u767c\u79c1\u4fe1\u7b49\u64cd\u4f5c\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5229\u7528\u53ef\u88ab\u653b\u64ca\u7684\u57df\u53d7\u5230\u5176\u4ed6\u57df\u4fe1\u4efb\u7684\u7279\u9ede\uff0c\u4ee5\u53d7\u4fe1\u4efb\u4f86\u6e90\u7684\u8eab\u4efd\u8acb\u6c42\u4e00\u4e9b\u5e73\u6642\u4e0d\u5141\u8a31\u7684\u64cd\u4f5c\uff0c\u5982\u9032\u884c\u4e0d\u7576\u7684\u6295\u7968\u6d3b\u52d5\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5728\u8a2a\u554f\u91cf\u6975\u5927\u7684\u4e00\u4e9b\u9801\u9762\u4e0a\u7684<\/span>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u53ef\u4ee5\u653b\u64ca\u4e00\u4e9b\u5c0f\u578b\u7db2\u7ad9\uff0c\u5be6\u73fe<\/span>DDoS<span style=\"font-family: 'Arial Unicode MS';\">\u653b\u64ca\u7684\u6548\u679c\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u6f0f\u6d1e\u7684\u9632\u79a6\u548c\u5229\u7528<\/span>[<span style=\"font-family: 'Arial Unicode MS';\">\u7de8\u8f2f<\/span>]<\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u904e\u6ffe\u7279\u6b8a\u5b57\u7b26<\/span>[<span style=\"font-family: 'Arial Unicode MS';\">\u7de8\u8f2f<\/span>]<\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u907f\u514d<\/span>XSS<span style=\"font-family: 'Arial Unicode MS';\">\u7684\u65b9\u6cd5\u4e4b\u4e00\u4e3b\u8981\u662f\u5c07\u7528\u6236\u6240\u63d0\u4f9b\u7684\u5167\u5bb9\u9032\u884c\u904e\u6ffe\uff0c\u8a31\u591a\u8a9e\u8a00\u90fd\u6709\u63d0\u4f9b\u5c0d<\/span>HTML<span style=\"font-family: 'Arial Unicode MS';\">\u7684\u904e\u6ffe\uff1a<\/span><\/p>\n<ul>\n<li>PHP<span style=\"font-family: 'Arial Unicode MS';\">\u7684<\/span>htmlentities()<span style=\"font-family: 'Arial Unicode MS';\">\u6216\u662f<\/span>htmlspecialchars()<span style=\"font-family: 'Arial Unicode MS';\">\u3002<\/span><\/li>\n<li>Python<span style=\"font-family: 'Arial Unicode MS';\">\u7684<\/span>cgi.escape()<span style=\"font-family: 'Arial Unicode MS';\">\u3002<\/span><\/li>\n<li>ASP<span style=\"font-family: 'Arial Unicode MS';\">\u7684<\/span>Server.HTMLEncode()<span style=\"font-family: 'Arial Unicode MS';\">\u3002<\/span><\/li>\n<li>ASP.NET<span style=\"font-family: 'Arial Unicode MS';\">\u7684<\/span>Server.HtmlEncode()<span style=\"font-family: 'Arial Unicode MS';\">\u6216\u529f\u80fd\u66f4\u5f37\u7684<\/span>Microsoft Anti-Cross Site Scripting Library<\/li>\n<li>Java<span style=\"font-family: 'Arial Unicode MS';\">\u7684<\/span>xssprotect(Open Source Library)<span style=\"font-family: 'Arial Unicode MS';\">\u3002<\/span><\/li>\n<li>Node.js<span style=\"font-family: 'Arial Unicode MS';\">\u7684<\/span>node-validator<span style=\"font-family: 'Arial Unicode MS';\">\u3002<\/span><\/li>\n<\/ul>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u4f7f\u7528<\/span>HTTP<span style=\"font-family: 'Arial Unicode MS';\">\u982d\u6307\u5b9a\u985e\u578b<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5f88\u591a\u6642\u5019\u53ef\u4ee5\u4f7f\u7528<\/span>HTTP<span style=\"font-family: 'Arial Unicode MS';\">\u982d\u6307\u5b9a\u5167\u5bb9\u7684\u985e\u578b\uff0c\u4f7f\u5f97\u8f38\u51fa\u7684\u5167\u5bb9\u907f\u514d\u88ab\u4f5c\u70ba<\/span>HTML<span style=\"font-family: 'Arial Unicode MS';\">\u89e3\u6790\u3002\u5982\u5728<\/span>PHP<span style=\"font-family: 'Arial Unicode MS';\">\u8a9e\u8a00\u4e2d\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u78bc\uff1a<\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">&lt;?php<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\">\u00a0\u00a0\u00a0<span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">header(&#8216;Content-Type: text\/javascript; charset=utf-8&#8217;);<\/span><\/span><\/span><\/p>\n<p lang=\"en-US\"><span style=\"color: #000000;\"><span style=\"font-family: 'Times New Roman', serif;\"><span style=\"font-size: small;\">?&gt;<\/span><\/span><\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5373\u53ef\u5f37\u884c\u6307\u5b9a\u8f38\u51fa\u5167\u5bb9\u70ba\u6587\u672c<\/span>\/JavaScript<span style=\"font-family: 'Arial Unicode MS';\">\u8173\u672c\uff08\u9806\u4fbf\u6307\u5b9a\u4e86\u5167\u5bb9\u7de8\u78bc\uff09\uff0c\u800c\u975e\u53ef\u4ee5\u5f15\u767c\u653b\u64ca\u7684<\/span>HTML<span style=\"font-family: 'Arial Unicode MS';\">\u3002<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u7528\u6236\u65b9\u9762<\/span><\/p>\n<p><span style=\"font-family: 'Arial Unicode MS';\">\u5305\u62ec<\/span>Internet Explorer<span style=\"font-family: 'Arial Unicode MS';\">\u3001<\/span>Mozilla Firefox<span style=\"font-family: 'Arial Unicode MS';\">\u5728\u5167\u7684\u5927\u591a\u6578\u700f\u89bd\u5668\u7686\u6709\u95dc\u9589<\/span>JavaScript<span style=\"font-family: 'Arial Unicode MS';\">\u7684\u9078\u9805\uff0c\u4f46\u95dc\u9589\u529f\u80fd\u4e26\u975e\u662f\u6700\u597d\u7684\u65b9\u6cd5\uff0c\u56e0\u70ba\u8a31\u591a\u7db2\u7ad9\u90fd\u9700\u8981\u4f7f\u7528<\/span>JavaScript<span style=\"font-family: 'Arial Unicode MS';\">\u8a9e\u8a00\u624d\u80fd\u6b63\u5e38\u904b\u4f5c\u3002\u901a\u5e38\u4f86\u8aaa\uff0c\u4e00\u500b\u7d93\u5e38\u6709\u5b89\u5168\u66f4\u65b0\u63a8\u51fa\u7684\u700f\u89bd\u5668\uff0c\u5728\u4f7f\u7528\u4e0a\u6703\u6bd4\u5f88\u4e45\u90fd\u6c92\u6709\u66f4\u65b0\u7684\u700f\u89bd\u5668\u66f4\u70ba\u5b89\u5168\u3002<\/span><\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u53c3\u8003\u8cc7\u6599\uff1a<\/p>\n<p><a href=\"httpsss:\/\/zh.wikipedia.org\/wiki\/%E8%B7%A8%E7%B6%B2%E7%AB%99%E6%8C%87%E4%BB%A4%E7%A2%BC\">httpsss:\/\/zh.wikipedia.org\/wiki\/%E8%B7%A8%E7%B6%B2%E7%AB%99%E6%8C%87%E4%BB%A4%E7%A2%BC<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8de8\u7db2\u7ad9\u8173\u672c\uff08Cross-site scripting\uff0c\u901a\u5e38\u7c21\u7a31\u70baXSS\u6216\u8de8\u7ad9\u8173\u672c\u6216\u8de8\u7ad9\u8173\u672c\u653b\u64ca\uff09\u662f\u200b\u200b\u4e00\u7a2e\u7db2\u7ad9 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":7514,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[276],"tags":[],"class_list":["post-7519","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ch10-"],"_links":{"self":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7519"}],"collection":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7519"}],"version-history":[{"count":2,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7519\/revisions"}],"predecessor-version":[{"id":7521,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/7519\/revisions\/7521"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/7514"}],"wp:attachment":[{"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.powenko.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}