{"id":727,"date":"2014-07-24T11:38:08","date_gmt":"2014-07-24T03:38:08","guid":{"rendered":"http:\/\/ixyzero.com\/blog\/?p=727"},"modified":"2017-06-09T11:27:51","modified_gmt":"2017-06-09T03:27:51","slug":"owasp-top-10-%e5%ad%a6%e4%b9%a0%e5%a4%8d%e4%b9%a0%e5%9b%9e%e9%a1%be","status":"publish","type":"post","link":"https:\/\/ixyzero.com\/blog\/archives\/727.html","title":{"rendered":"OWASP Top 10 \u5b66\u4e60\/\u590d\u4e60\/\u56de\u987e"},"content":{"rendered":"<h3><b>OWASP Top10 2013<\/b><\/h3>\n<div style=\"color: #000000;\"><a style=\"color: #0b0080;\" title=\"OWASP 2013-Top 10\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-Top_10\" target=\"_blank\">Top 10<\/a><\/p>\n<dl>\n<dd>\n<dl>\n<dd><a style=\"color: #0b0080;\" title=\"Top 10 2013-A1-Injection\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A1-Injection\" target=\"_blank\">A1-Injection<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A2-Broken Authentication and Session Management\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A2-Broken_Authentication_and_Session_Management\" target=\"_blank\">A2-Broken Authentication and Session Management<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A3-Cross-Site Scripting (XSS)\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A3-Cross-Site_Scripting_(XSS)\" target=\"_blank\">A3-Cross-Site Scripting (XSS)<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A4-Insecure Direct Object References\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A4-Insecure_Direct_Object_References\" target=\"_blank\">A4-Insecure Direct Object References<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A5-Security Misconfiguration\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A5-Security_Misconfiguration\" target=\"_blank\">A5-Security Misconfiguration<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A6-Sensitive Data Exposure\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A6-Sensitive_Data_Exposure\" target=\"_blank\">A6-Sensitive Data Exposure<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A7-Missing Function Level Access Control\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A7-Missing_Function_Level_Access_Control\" target=\"_blank\">A7-Missing Function Level Access Control<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A8-Cross-Site Request Forgery (CSRF)\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A8-Cross-Site_Request_Forgery_(CSRF)\" target=\"_blank\">A8-Cross-Site Request Forgery (CSRF)<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A9-Using Components with Known Vulnerabilities\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A9-Using_Components_with_Known_Vulnerabilities\" target=\"_blank\">A9-Using Components with Known Vulnerabilities<\/a><br \/>\n<a style=\"color: #0b0080;\" title=\"Top 10 2013-A10-Unvalidated Redirects and Forwards\" href=\"https:\/\/www.owasp.org\/index.php\/Top_10_2013-A10-Unvalidated_Redirects_and_Forwards\" target=\"_blank\">A10-Unvalidated Redirects and Forwards<\/a><\/dd>\n<\/dl>\n<\/dd>\n<\/dl>\n<\/div>\n<div style=\"color: #000000;\">\n<h4><strong><span style=\"color: #ff0000; font-size: large;\">2013 Top 10 List<\/span><\/strong><\/h4>\n<table border=\"1\" width=\"100%;\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA1-Injection<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">Injection flaws, such as SQL, OS, and LDAP injection occur when untrusted data is sent to an interpreter as part of a command or query. The attacker\u2019s hostile data can trick the interpreter into executing unintended commands or accessing data without proper authorization.\uff08\u6ce8\u5165\u653b\u51fb\u6f0f\u6d1e\uff0c\u4f8b\u5982\uff1aSQL\u3001OS\u4ee5\u53caLDAP\u6ce8\u5165\u3002\u8fd9\u4e9b\u653b\u51fb\u53d1\u751f\u5728<span style=\"color: #ff0000;\">\u5f53\u4e0d\u53ef\u4fe1\u7684\u6570\u636e\u4f5c\u4e3a\u547d\u4ee4\u6216\u8005\u67e5\u8be2\u8bed\u53e5\u7684\u4e00\u90e8\u5206\uff0c\u88ab\u53d1\u9001\u7ed9\u89e3\u91ca\u5668<\/span>\u7684\u65f6\u5019\u3002<b><span style=\"color: #ff0000;\">\u653b\u51fb\u8005\u53d1\u9001\u7684\u6076\u610f\u6570\u636e\u53ef\u4ee5\u6b3a\u9a97\u89e3\u91ca\u5668\uff0c\u4ee5\u6267\u884c\u8ba1\u5212\u5916\u7684\u547d\u4ee4\u6216\u8005\u5728\u672a\u88ab\u6070\u5f53\u6388\u6743\u65f6\u8bbf\u95ee\u6570\u636e<\/span><\/b>\u3002\uff09<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA2-Broken Authentication and Session Management<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">Application functions related to authentication and session management are often not implemented correctly, allowing attackers to compromise passwords, keys, or session tokens, or to exploit other implementation flaws to assume other users\u2019 identities.{\u4e0e\u8eab\u4efd\u8ba4\u8bc1\u548c\u4f1a\u8bdd\u7ba1\u7406\u76f8\u5173\u7684\u5e94\u7528\u7a0b\u5e8f\u529f\u80fd\u5f80\u5f80\u5f97\u4e0d\u5230\u6b63\u786e\u7684\u5b9e\u73b0\uff0c\u8fd9\u5c31\u5bfc\u81f4\u4e86\u653b\u51fb\u8005\u7834\u574f\u5bc6\u7801\u3001\u5bc6\u94a5\u3001\u4f1a\u8bdd\u4ee4\u724c\u6216\u653b\u51fb\u5176\u4ed6\u7684\u6f0f\u6d1e\u53bb\u5192\u5145\u5176\u4ed6\u7528\u6237\u7684\u8eab\u4efd\u3002{<span style=\"color: #ff0000;\">\u4f7f\u8eab\u4efd\u4f2a\u9020\u6210\u4e3a\u53ef\u80fd<\/span>}}<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA3-Cross-Site Scripting (XSS)<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">XSS flaws occur whenever an application takes untrusted data and sends it to a web browser without proper validation or escaping. XSS allows attackers to execute scripts in the victim\u2019s browser which can hijack user sessions, deface web sites, or redirect the user to malicious sites.{<span style=\"color: #ff0000;\"><b>\u5f53\u5e94\u7528\u7a0b\u5e8f\u63a5\u6536\u5230\u542b\u6709\u4e0d\u53ef\u4fe1\u7684\u6570\u636e\uff0c\u5728\u6ca1\u6709\u8fdb\u884c\u9002\u5f53\u7684\u9a8c\u8bc1\u548c\u8f6c\u4e49\u7684\u60c5\u51b5\u4e0b\uff0c\u5c31\u5c06\u5b83\u53d1\u9001\u7ed9\u4e00\u4e2a\u7f51\u9875\u6d4f\u89c8\u5668\uff0c\u8fd9\u5c31\u4f1a\u4ea7\u751f\u8de8\u7ad9\u811a\u672c\u653b\u51fb(XSS)\u3002<\/b><\/span>XSS\u5141\u8bb8\u653b\u51fb\u8005\u5728\u53d7\u5bb3\u8005\u7684\u6d4f\u89c8\u5668\u4e0a\u6267\u884c\u811a\u672c\uff0c\u4ece\u800c\u52ab\u6301\u7528\u6237\u4f1a\u8bdd\u3001\u5371\u5bb3\u7f51\u7ad9\u3001\u6216\u8005\u5c06\u7528\u6237\u8f6c\u81f3\u6076\u610f\u7f51\u7ad9\u3002}<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA4-Insecure Direct Object References<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">A direct object reference occurs when a developer exposes a reference to an internal implementation object, such as a file, directory, or database key. Without an access control check or other protection, attackers can manipulate these references to access unauthorized data.{\u5f53\u5b89\u5168\u4eba\u5458\u66b4\u9732\u4e00\u4e2a\u5bf9\u5185\u90e8\u5b9e\u73b0\u5bf9\u8c61\u7684\u5f15\u7528\u65f6\uff0c\u4f8b\u5982\uff1a\u4e00\u4e2a\u6587\u4ef6\u3001\u76ee\u5f55\u6216\u8005\u6570\u636e\u5e93\u5bc6\u94a5\uff0c\u5c31\u4f1a\u4ea7\u751f\u4e00\u4e2a\u4e0d\u5b89\u5168\u7684\u76f4\u63a5\u5bf9\u8c61\u5f15\u7528\u3002\u5728\u6ca1\u6709\u8bbf\u95ee\u63a7\u5236\u68c0\u6d4b\u6216\u5176\u4ed6\u4fdd\u62a4\u65f6\uff0c\u653b\u51fb\u8005\u4f1a\u64cd\u63a7\u8fd9\u4e9b\u5f15\u7528\u53bb\u8bbf\u95ee\u672a\u6388\u6743\u6570\u636e\u3002}\uff08<span style=\"color: #ff0000;\">\u5c06\u672c\u6765\u4e0d\u8be5\u88ab\u5916\u90e8\u77e5\u9053\u7684\u6587\u4ef6\u540dor\u76ee\u5f55\u540dor\u6570\u636e\u5e93\u8fde\u63a5\u4fe1\u606f\u66b4\u9732\u4e86\u51fa\u53bb\uff0c\u6bd4\u5982\u5728\u7ed9\u5907\u4efd\u6587\u4ef6\u8d77\u540d\u5b57\u65f6\u8981\u975e\u5e38\u6ce8\u610f\uff01<\/span>\uff09<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA5-Security Misconfiguration<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">Good security requires having a secure configuration defined and deployed for the application, frameworks, application server, web server, database server, and platform. Secure settings should be defined, implemented, and maintained, as defaults are often insecure. Additionally, software should be kept up to date.{\u597d\u7684\u5b89\u5168\u9700\u8981\u5bf9\u5e94\u7528\u7a0b\u5e8f\u3001\u6846\u67b6\u3001\u5e94\u7528\u7a0b\u5e8f\u670d\u52a1\u5668\u3001Web\u670d\u52a1\u5668\u3001\u6570\u636e\u5e93\u670d\u52a1\u5668\u548c\u5e73\u53f0\u5b9a\u4e49\u548c\u6267\u884c\u5b89\u5168\u914d\u7f6e\u3002\u7531\u4e8e\u8bb8\u591a\u8bbe\u7f6e\u7684\u9ed8\u8ba4\u503c\u5e76\u4e0d\u662f\u5b89\u5168\u7684\uff0c\u56e0\u6b64\uff0c\u5fc5\u987b\u5b9a\u4e49\u3001\u5b9e\u65bd\u548c\u7ef4\u62a4\u8fd9\u4e9b\u8bbe\u7f6e\u3002\u8fd9<span style=\"color: #ff0000;\">\u5305\u542b\u4e86\u5bf9\u6240\u6709\u7684\u8f6f\u4ef6\u4fdd\u6301\u53ca\u65f6\u7684\u66f4\u65b0\uff0c\u5305\u62ec\u6240\u6709\u5e94\u7528\u7a0b\u5e8f\u7684\u5e93\u6587\u4ef6\u3002<\/span>}{<b><span style=\"color: #ff0000;\">\u5c31\u6bd4\u5982\u8bf4\u90a3\u4e2a\uff1acgi.fix_pathinfo\u9ed8\u8ba4\u914d\u7f6e\u5bfc\u81f4\u7684nginx\u89e3\u6790\u6f0f\u6d1e<\/span><\/b>}<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA6-Sensitive Data Exposure<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">Many web applications do not properly protect sensitive data, such as credit cards, tax IDs, and authentication credentials. Attackers may steal or modify such weakly protected data to conduct credit card fraud, identity theft, or other crimes. Sensitive data deserves extra protection such as encryption at rest or in transit, as well as special precautions when exchanged with the browser.\uff08\u8bb8\u591aWeb\u5e94\u7528\u7a0b\u5e8f\u6ca1\u6709\u6b63\u786e\u4fdd\u62a4\u654f\u611f\u6570\u636e\uff0c\u5982\u4fe1\u7528\u5361\u3001\u7a0e\u52a1ID\u548c\u8eab\u4efd\u9a8c\u8bc1\u51ed\u636e\u3002\u653b\u51fb\u8005\u53ef\u80fd\u4f1a\u7a83\u53d6\u6216\u7be1\u6539\u8fd9\u4e9b\u5f31\u4fdd\u62a4\u7684\u6570\u636e\u4ee5\u8fdb\u884c\u4fe1\u7528\u5361\u8bc8\u9a97\u3001\u8eab\u4efd\u7a83\u53d6\uff0c\u6216\u8005\u5176\u4ed6\u72af\u7f6a\u3002<span style=\"color: #ff0000;\">\u654f\u611f\u6570\u636e\u503c\u5f97\u989d\u5916\u7684\u4fdd\u62a4\uff0c\u6bd4\u5982\u5728\u5b58\u653e\u6216\u5728\u4f20\u8f93\u8fc7\u7a0b\u4e2d\u7684\u52a0\u5bc6\uff0c\u4ee5\u53ca\u5728\u4e0e\u6d4f\u89c8\u5668\u4ea4\u6362\u65f6\u8fdb\u884c\u7279\u6b8a\u7684\u9884\u9632\u63aa\u65bd\u3002<\/span>\uff09<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA7-Missing Function Level Access Control<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\"><span style=\"color: #ff0000;\">Most web applications verify function level access rights before making that functionality visible in the UI<\/span>. However, applications need to perform the same access control checks on the server when each function is accessed. If requests are not verified, attackers will be able to forge requests in order to access functionality without proper authorization.{\u5927\u591a\u6570Web\u5e94\u7528\u7a0b\u5e8f\u5728\u7528\u6237\u901a\u8fc7\u6743\u9650\u8ba4\u8bc1\u4e4b\u524d\u662f\u4e0d\u4f1a\u5c06\u6240\u6709\u7684\u529f\u80fd\u5168\u90e8\u653e\u5728\u53ef\u89c1\u7684UI\u4e0a\u7684\u3002\u4f46\u662f\uff0c\u5e94\u7528\u7a0b\u5e8f\u9700\u8981\u5728\u6bcf\u4e2a\u529f\u80fd\u88ab\u8bbf\u95ee\u65f6\u5728\u670d\u52a1\u5668\u7aef\u6267\u884c\u76f8\u540c\u7684\u8bbf\u95ee\u63a7\u5236\u68c0\u67e5\u3002\u5982\u679c\u8bf7\u6c42\u6ca1\u6709\u88ab\u9a8c\u8bc1\uff0c\u653b\u51fb\u8005\u80fd\u591f\u4f2a\u9020\u8bf7\u6c42\u4ee5\u5728\u672a\u7ecf\u9002\u5f53\u6388\u6743\u65f6\u8bbf\u95ee\u8be5\u529f\u80fd\u3002}{<span style=\"color: #ff0000;\">\u5c31\u597d\u6bd4\uff1a\u5df2\u767b\u5f55\u7528\u6237\u7684\u9875\u9762\u4e0a\u4f1a\u51fa\u73b0\u6dfb\u52a0\/\u5220\u9664\u529f\u80fd\u7684\u6309\u94ae\uff0c\u800c\u672a\u767b\u5f55\u7528\u6237\u7684\u9875\u9762\u4e0a\u53ea\u80fd\u8fdb\u884c\u6d4f\u89c8\uff0c\u4f46\u5982\u679c\u653b\u51fb\u8005\u81ea\u884c\u6784\u9020\u67d0\u4e00\u529f\u80fd\u7684\u6570\u636e\u5305\u6ca1\u6709\u88ab\u68c0\u67e5\uff0c\u5219\u53ef\u80fd\u4f1a\u5f15\u8d77\u6743\u9650\u63a7\u5236\u7ed5\u8fc7\u7684\u6f0f\u6d1e<\/span>}<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA8-Cross-Site Request Forgery (CSRF)<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">A CSRF attack forces a logged-on victim\u2019s browser to send a forged HTTP request, including the victim\u2019s session cookie and any other automatically included authentication information, to a vulnerable web application. This allows the attacker to force the victim\u2019s browser to generate requests the vulnerable application thinks are legitimate requests from the victim.{\u4e00\u4e2a\u8de8\u7ad9\u8bf7\u6c42\u4f2a\u9020\u653b\u51fb\u8feb\u4f7f\u767b\u5f55\u7528\u6237\u7684\u6d4f\u89c8\u5668\u5c06\u4f2a\u9020\u7684HTTP\u8bf7\u6c42\uff0c\u5305\u62ec\u8be5\u7528\u6237\u7684\u4f1a\u8bddcookie\u548c\u5176\u5b83\u8ba4\u8bc1\u4fe1\u606f\uff0c\u53d1\u9001\u5230\u4e00\u4e2a\u5b58\u5728\u6f0f\u6d1e\u7684Web\u5e94\u7528\u7a0b\u5e8f\u3002\u8fd9\u5c31<span style=\"color: #ff0000;\">\u5141\u8bb8\u653b\u51fb\u8005\u8feb\u4f7f\u7528\u6237\u6d4f\u89c8\u5668\u5411\u5b58\u5728\u6f0f\u6d1e\u7684\u5e94\u7528\u7a0b\u5e8f\u53d1\u9001\u8bf7\u6c42\uff0c\u800c\u8fd9\u4e9b\u8bf7\u6c42\u4f1a\u88ab\u5e94\u7528\u7a0b\u5e8f\u8ba4\u4e3a\u662f\u7528\u6237\u7684\u5408\u6cd5\u8bf7\u6c42\u3002<\/span>}<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA9-Using Components with Known Vulnerabilities<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">Components, such as libraries, frameworks, and other software modules, almost always run with full privileges. If a vulnerable component is exploited, such an attack can facilitate serious data loss or server takeover. Applications using components with known vulnerabilities may undermine application defenses and enable a range of possible attacks and impacts.{\u7ec4\u4ef6\uff0c\u6bd4\u5982\uff1a\u5e93\u6587\u4ef6\u3001\u6846\u67b6\u548c\u5176\u4ed6\u8f6f\u4ef6\u6a21\u5757\uff0c\u51e0\u4e4e\u603b\u662f\u4ee5\u5168\u90e8\u7684\u6743\u9650\u8fd0\u884c\u3002\u5982\u679c\u4e00\u4e2a\u5e26\u6709\u6f0f\u6d1e\u7684\u7ec4\u4ef6\u88ab\u5229\u7528\uff0c\u8fd9\u79cd\u653b\u51fb\u53ef\u4ee5\u9020\u6210\u66f4\u4e3a\u4e25\u91cd\u7684\u6570\u636e\u4e22\u5931\u6216\u670d\u52a1\u5668\u63a5\u7ba1\u3002\u5e94\u7528\u7a0b\u5e8f\u4f7f\u7528\u5e26\u6709\u5df2\u77e5\u6f0f\u6d1e\u7684\u7ec4\u4ef6\u4f1a\u7834\u574f\u5e94\u7528\u7a0b\u5e8f\u9632\u5fa1\u7cfb\u7edf\uff0c\u5e76\u4f7f\u4e00\u7cfb\u5217\u53ef\u80fd\u7684\u653b\u51fb\u548c\u5f71\u54cd\u6210\u4e3a\u53ef\u80fd\u3002}{<span style=\"color: #ff0000;\">\u4f8b\u5982\u4e4b\u524d\u51fa\u73b0\u7684Struts2\u6f0f\u6d1e\u548cOpenSSL\u6f0f\u6d1e\u7684\u5f71\u54cd\u662f\u6781\u5e7f\u7684\uff01<\/span>}<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA10-Unvalidated Redirects and Forwards<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">Web applications frequently redirect and forward users to other pages and websites, and use untrusted data to determine the destination pages. Without proper validation, attackers can redirect victims to phishing or malware sites, or use forwards to access unauthorized pages.{Web\u5e94\u7528\u7a0b\u5e8f\u7ecf\u5e38\u5c06\u7528\u6237\u91cd\u5b9a\u5411\u548c\u8f6c\u53d1\u5230\u5176\u4ed6\u7f51\u9875\u548c\u7f51\u7ad9\uff0c\u5e76\u4e14\u5229\u7528\u4e0d\u53ef\u4fe1\u7684\u6570\u636e\u53bb\u5224\u5b9a\u76ee\u7684\u9875\u9762\u3002\u5982\u679c\u6ca1\u6709\u5f97\u5230\u9002\u5f53\u7684\u9a8c\u8bc1\uff0c\u653b\u51fb\u8005\u53ef\u4ee5\u91cd\u5b9a\u5411\u53d7\u5bb3\u7528\u6237\u5230\u9493\u9c7c\u8f6f\u4ef6\u6216\u6076\u610f\u7f51\u7ad9\uff0c\u6216\u8005\u4f7f\u7528\u8f6c\u53d1\u53bb\u8bbf\u95ee\u672a\u6388\u6743\u7684\u9875\u9762\u3002}{\u4f8b\u5982\uff1aQQ\u90ae\u7bb1\u5728\u6bcf\u6b21\u70b9\u51fb\u5916\u90e8URL\u7684\u65f6\u5019\u90fd\u4f1a\u63d0\u793a\u4e0d\u8981\u8f7b\u6613\u8f93\u5165\u7528\u6237\u540d\u5bc6\u7801}{\u8fd8\u6709\u5c31\u662f\uff1a\u91cd\u7f6e\u5bc6\u7801\u7684URL\u5728\u7528\u8fc7\u4e861\u6b21\u4e4b\u540e\u5c31\u5e94\u8be5\u7acb\u5373\u4f7f\u5176\u5931\u6548\uff0c\u5426\u5219\u4e5f\u4f1a\u5f15\u8d77\u4e00\u4e9b\u5b89\u5168\u95ee\u9898}<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h4><span style=\"color: #ff0000; font-size: large;\">OWASP Top10\u6f0f\u6d1e\u7684\u9884\u9632\u63aa\u65bd<\/span><\/h4>\n<div>\n<table border=\"1\" width=\"100%;\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA1-Injection<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u6839\u672c\u65b9\u6cd5\u5c31\u662f&#8212;\u6570\u636e\u548c\u4ee3\u7801\u76f8\u5206\u79bb\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">1.\u4f7f\u7528\u5b89\u5168\u7684API<\/span><\/p>\n<p><span style=\"font-size: medium;\">2.\u5c42\u5c42\u8fc7\u6ee4<\/span><\/p>\n<p><span style=\"font-size: medium;\">3.\u767d\u540d\u5355\u7b56\u7565<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA2-Broken Authentication and Session Management<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u4f1a\u8bdd\u52ab\u6301\u6f0f\u6d1e\u7684\u9632\u5fa1\u624b\u6bb5\/\u65b9\u6cd5\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">\u4e00\u5957\u5f3a\u5927\u7684\u8ba4\u8bc1\u548c\u4f1a\u8bdd\u7ba1\u7406\u63a7\u5236\u7cfb\u7edf\uff1b\u540c\u65f6\u907f\u514d\u56e0\u4e3a\u522b\u7684\u6f0f\u6d1e(\u5982XSS)\u800c\u5bfc\u81f4\u4fe1\u606f\u6cc4\u9732\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA3-Cross-Site Scripting (XSS)<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u9632\u6b62XSS\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">\u5c06\u4e0d\u53ef\u4fe1\u6570\u636e\u4e0e\u52a8\u6001\u7684\u6d4f\u89c8\u5668\u5185\u5bb9\u533a\u5206\u5f00<\/span><\/p>\n<p><span style=\"font-size: medium;\">1.\u8fc7\u6ee4\u3001\u8f6c\u4e49\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">2.\u767d\u540d\u5355(\u548c\u5177\u4f53\u7684\u529f\u80fd\u9700\u6c42\u606f\u606f\u76f8\u5173)\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">3.\u8003\u8651\u7528CSP(\u5185\u5bb9\u5b89\u5168\u7b56\u7565)\u6765\u62b5\u5fa1\u6574\u7ad9\u7684\u8de8\u7ad9\u811a\u672c\u653b\u51fb\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA4-Insecure Direct Object References<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u9884\u9632\u4e0d\u5b89\u5168\u7684\u76f4\u63a5\u5bf9\u8c61\u5f15\u7528\u6f0f\u6d1e\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">\u4f7f\u7528\u57fa\u4e8e\u7528\u6237\u6216\u8005\u4f1a\u8bdd\u7684\u95f4\u63a5\u5bf9\u8c61\u5f15\u7528{\u4f8b\u5982\uff1atoken\u8ba4\u8bc1}\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">\u68c0\u67e5\u8bbf\u95ee\u3001\u8bbf\u95ee\u63a7\u5236\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA5-Security Misconfiguration<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u9884\u9632\u5b89\u5168\u914d\u7f6e\u9519\u8bef\u6f0f\u6d1e\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">1.\u4e00\u4e2a\u7ecf\u8fc7\u9a8c\u8bc1\u7684\u81ea\u52a8\u5316\u5b89\u5168\u52a0\u56fa\u6d41\u7a0b\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">2.\u80fd\u53ca\u65f6\u8fdb\u884c\u8865\u4e01\u66f4\u65b0\u7684\u81ea\u52a8\u5316\u6d41\u7a0b\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">3.\u5b89\u5168\u7684\u67b6\u6784\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">4.\u5468\u671f\u6027\u7684\u6f0f\u6d1e\u626b\u63cf\u548c\u5ba1\u8ba1\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA6-Sensitive Data Exposure<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u9884\u9632\u654f\u611f\u4fe1\u606f\u6cc4\u9732\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">1.\u4fe1\u606f\u52a0\u5bc6\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">2.\u4e34\u65f6\u6587\u4ef6\u53ca\u65f6\u6e05\u9664{\u5982\uff1avim\u7684\u81ea\u52a8\u5907\u4efd\u6587\u4ef6\/.bak\u540e\u7f00\u7684\u6587\u4ef6}\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">3.\u5408\u9002\u7684\u7b97\u6cd5\u4ee5\u53ca\u5f3a\u58ee\u7684\u5bc6\u94a5\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">4.\u7981\u7528\u81ea\u52a8\u5b8c\u6210\u7b49\u53ef\u80fd\u4f1a\u5f15\u8d77\u654f\u611f\u6570\u636e\u6536\u96c6\u7684\u529f\u80fd\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA7-Missing Function Level Access Control<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"color: #ff0000; font-size: medium;\">\u9884\u9632\u529f\u80fd\u7ea7\u8bbf\u95ee\u63a7\u5236\u7f3a\u5931\uff1a<\/span><\/p>\n<p><span style=\"color: #ff0000; font-size: medium;\">\u4e0e\u4e1a\u52a1\u903b\u8f91\u5c42\u6709\u4e9b\u5173\u7cfb\uff1b\u7136\u540e\u5728\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u5e94\u8be5\u62d2\u7edd\u6240\u6709\u7684\u8bbf\u95ee\uff1b\u5bf9\u4e8e\u6bcf\u4e2a\u529f\u80fd\u7684\u8bbf\u95ee\uff0c\u9700\u8981\u660e\u786e\u7279\u5b9a\u89d2\u8272\u7684\u8bbf\u95ee\u6743\u9650&#8211;\u8d23\u4efb\u5230\u5bb6\u5236\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA8-Cross-Site Request Forgery (CSRF)<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u9884\u9632CSRF\u6f0f\u6d1e\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">1.\u4e0d\u53ef\u9884\u6d4b&amp;\u552f\u4e00\u7684token\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">2.\u907f\u514dtoken\u88ab\u8f7b\u6613\u6536\u96c6&amp;\u5206\u6790\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">3.\u5bf9\u654f\u611f\u64cd\u4f5c\u8fdb\u884c\u91cd\u65b0\u8ba4\u8bc1\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA9-Using Components with Known Vulnerabilities<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u4f7f\u7528\u542b\u6709\u5df2\u77e5\u6f0f\u6d1e\u7684\u7ec4\u4ef6\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">1.\u53ca\u65f6\u66f4\u65b0\u8f6f\u4ef6\/\u914d\u7f6e\u6587\u4ef6\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">2.\u5728\u53ef\u80fd\u7684\u60c5\u51b5\u4e0b\u8fdb\u884c\u4e8c\u6b21\u5b89\u5168\u5f00\u53d1\/\u5c01\u88c5\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<div style=\"font-weight: bold;\"><span style=\"font-size: medium;\"><br \/>\nA10-Unvalidated Redirects and Forwards<\/span><\/div>\n<\/td>\n<td>\n<div>\n<p><span style=\"font-size: medium;\">\u672a\u9a8c\u8bc1\u7684\u91cd\u5b9a\u5411\u548c\u8f6c\u53d1\u6f0f\u6d1e\uff1a<\/span><\/p>\n<p><span style=\"font-size: medium;\">1.\u5c3d\u91cf\u907f\u514d\u4f7f\u7528\u91cd\u5b9a\u5411\u548c\u8f6c\u53d1\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">2.\u5728\u9700\u8981\u8fdb\u884c\u91cd\u5b9a\u5411\u548c\u8f6c\u53d1\u65f6\u8fdb\u884c\u4e00\u4e9b\u7528\u6237\u4fe1\u606f\u7684\u7ed1\u5b9a\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">3.\u5229\u7528\u7f51\u4e0a\u7684\u767d\u540d\u5355\u8fdb\u884c\u9a8c\u8bc1\uff1b<\/span><\/p>\n<p><span style=\"font-size: medium;\">4.\u5728\u4e00\u6b21\u4f7f\u7528\u4e4b\u540e\u53ca\u65f6\u8fdb\u884c\u9500\u6bc1{\u4e2a\u4eba\u89c9\u5f97\u975e\u5e38\u91cd\u8981}\u3002<\/span><\/p>\n<\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<h6><span style=\"color: #ff0000;\">\u770b\u300a\u767d\u5e3d\u5b50\u8bb2Web\u5b89\u5168\u300b\u7684\u8fc7\u7a0b\u4e2d\u603b\u7ed3\/\u63d0\u53d6\u51fa\u7684\u4e00\u4e9b\u7ecf\u9a8c\uff1a<\/span><\/h6>\n<h6>\u6570\u636e\u4e0e\u4ee3\u7801\u5206\u79bb\u539f\u5219<\/h6>\n<p>\u8fd9\u4e00\u539f\u5219\u5e7f\u6cdb\u9002\u7528\u4e8e\u7531\u201c\u6ce8\u5165\u201d\u800c\u5f15\u53d1\u7684\u5b89\u5168\u95ee\u9898\u7684\u573a\u666f<\/p>\n<h6>\u4e0d\u53ef\u9884\u6d4b\u6027\u539f\u5219<\/h6>\n<p>\u5373\u4f7f\u65e0\u6cd5\u4fee\u590dcode\uff0c\u4f46\u662f\u5982\u679c\u80fd\u591f\u4f7f\u5f97\u653b\u51fb\u7684\u65b9\u6cd5\u65e0\u6548\uff0c\u90a3\u4e48\u4e5f\u53ef\u4ee5\u7b97\u662f\u6210\u529f\u7684\u9632\u5fa1\uff08\u5728\u8bbe\u8ba1token\u7684\u65f6\u5019\u5c31\u5e94\u8be5\u8003\u8651\u5230\u8fd9\u4e00\u70b9\uff09<\/p>\n<h6>XSS\u7684\u9632\u5fa1\uff1a<\/h6>\n<p>HttpOnly\uff1a\u5bf9\u91cd\u8981\u7684cookie\u8bbe\u7f6ehttponly\u6807\u5fd7<br \/>\n\u8f93\u5165\u68c0\u67e5\uff1a{\u5982\uff1aXSS Filter}<br \/>\n\u8f93\u51fa\u68c0\u67e5\uff1a{\u5982\uff1aHTMLEncode JavaScriptEncode URLEncode}<br \/>\n\u6807\u7b7e\u3001\u5c5e\u6027\u3001\u4e8b\u4ef6\u7b49\u7684\u9009\u62e9\u5c3d\u91cf\u4f7f\u7528\u767d\u540d\u5355\uff0c\u4e0d\u8981\u4f7f\u7528\u9ed1\u540d\u5355\u3002<\/p>\n<h6>CSRF\u7684\u9632\u5fa1<\/h6>\n<p>1.\u9a8c\u8bc1\u7801<br \/>\n2.referer check<br \/>\n3.anti-csrf-token<br \/>\n\u8db3\u591f\u968f\u673a\uff0c\u5b89\u5168\u968f\u673a\u6570\u751f\u6210token<br \/>\n\u751f\u6210\u591a\u4e2a\u6709\u6548\u7684token\uff0c\u591a\u9875\u9762\u5171\u5b58<br \/>\n\u907f\u514dtoken\u66dd\u9732\uff0c\u5c06token\u9690\u85cf\u5728\u8868\u5355\u4e2d\uff0cPOST\u65b9\u5f0f\u63d0\u4ea4<\/p>\n<h6>\u6ce8\u5165\u653b\u51fb<\/h6>\n<p>{<span style=\"color: #ff0000;\">\u6ce8\u5165\u653b\u51fb\u7684\u672c\u8d28\u662f\u628a\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u5f53\u4f5c\u4ee3\u7801\u6267\u884c<\/span>\uff0c\u8fd9\u91cc\u6709\u4e24\u4e2a\u5173\u952e\u6761\u4ef6\uff1a<span style=\"color: #ff0000;\"><strong>1.\u7528\u6237\u80fd\u591f\u63a7\u5236\u8f93\u5165<\/strong><\/span>\uff1b<span style=\"color: #ff0000;\"><strong>2.\u539f\u672c\u7a0b\u5e8f\u8981\u6267\u884c\u7684\u4ee3\u7801\uff0c\u62fc\u63a5\u4e86\u7528\u6237\u8f93\u5165\u7684\u6570\u636e<\/strong><\/span>\u3002}{\u6570\u636e\u4e0e\u4ee3\u7801\u5206\u79bb}<\/p>\n<p><span style=\"color: #0000ff;\"><strong>SQL\u6ce8\u5165\u7684\u9632\u5fa1<\/strong><\/span>{\u9664\u4e86\u4e0b\u9762\u7684\u63aa\u65bd\u8fd8\u8981\u6ce8\u610f\uff1a\u6700\u5c0f\u6743\u9650\u539f\u5219+\u529f\u80fd\u6027\u9650\u5236}\uff1a<\/p>\n<p style=\"padding-left: 30px;\">1.\u4f7f\u7528\u9884\u7f16\u8bd1\u8bed\u53e5<br \/>\n2.\u4f7f\u7528\u5b89\u5168\u7684\u5b58\u50a8\u8fc7\u7a0b\uff1b<br \/>\n3.\u68c0\u6d4b\u6570\u636e\u7c7b\u578b\uff1b<br \/>\n4.\u4f7f\u7528\u5b89\u5168\u51fd\u6570\u3002<\/p>\n<p><span style=\"color: #0000ff;\"><strong>XML\u6ce8\u5165<\/strong><\/span>{\u5bf9\u7528\u6237\u8f93\u5165\u7684\u6570\u636e\u8fdb\u884c\u8f6c\u4e49}<\/p>\n<p><span style=\"color: #0000ff;\"><strong>\u4ee3\u7801\u6ce8\u5165<\/strong><\/span>{\u4e3b\u8981\u7531\u4e00\u4e9b\u4e0d\u5b89\u5168\u7684\u51fd\u6570\u6216\u65b9\u6cd5\u5f15\u8d77\uff0c\u5982\uff1aeval\/system}<\/p>\n<p><span style=\"color: #0000ff;\"><strong>CRLF\u6ce8\u5165<\/strong><\/span>{\u5904\u7406\u597d&#8221;r&#8221;\u548c&#8221;n&#8221;\u8fd9\u4e24\u4e2a\u7279\u6b8a\u5b57\u7b26\u5373\u53ef\uff0c\u5c24\u5176\u662f\u90a3\u4e9b\u4f7f\u7528\u6362\u884c\u7b26\u4f5c\u4e3a\u5206\u9694\u7b26\u7684\u5e94\u7528}<\/p>\n<h6>\u5e94\u7528\u5c42DDOS<\/h6>\n<p>CC\u653b\u51fb{\u5728\u9ed1\u6d1eCollapasar\u7684\u9632\u5fa1\u4e0b\u4ecd\u80fd\u6709\u6548\u5b8c\u6210\u62d2\u7edd\u670d\u52a1\u653b\u51fb}{\u5176\u539f\u7406\u975e\u5e38\u7b80\u5355\uff0c\u5c31\u662f<span style=\"color: #ff0000;\">\u9488\u5bf9\u4e00\u4e9b\u6d88\u8017\u8d44\u6e90\u8f83\u5927\u7684\u5e94\u7528\u9875\u9762\u4e0d\u65ad\u53d1\u8d77\u6b63\u5e38\u7684\u8bf7\u6c42\uff0c\u4ee5\u8fbe\u5230\u6d88\u8017\u670d\u52a1\u5668\u7aef\u8d44\u6e90\u7684\u76ee\u7684<\/span>\u3002\u800c<span style=\"color: #ff0000;\"><strong>\u5728Web\u5e94\u7528\u4e2d\uff0c\u67e5\u8be2\u6570\u636e\u5e93\u3001\u8bfb\/\u5199\u786c\u76d8\u6587\u4ef6\u7b49\u64cd\u4f5c\uff0c\u8d44\u6e90\u6d88\u8017\u76f8\u5bf9\u8f83\u5927<\/strong><\/span>}{\u5e94\u7528\u5c42ddos\u653b\u51fb\u662f\u9488\u5bf9\u670d\u52a1\u5668\u6027\u80fd\u7684\u4e00\u79cd\u653b\u51fb\uff0c\u6240\u4ee5\u4f18\u5316\u670d\u52a1\u5668\u6027\u80fd\u7684\u65b9\u6cd5\u90fd\u6216\u591a\u6216\u5c11\u7684\u80fd\u51cf\u7f13\u6b64\u79cd\u653b\u51fb}<span style=\"color: #ff0000;\">\u9650\u5236\u5ba2\u6237\u7aef\u7684\u8bbf\u95ee\u9891\u7387<\/span><\/p>\n<h6>PHP\u5b89\u5168<\/h6>\n<ul>\n<li>\u6587\u4ef6\u5305\u542b\u6f0f\u6d1e<\/li>\n<li>\u53d8\u91cf\u8986\u76d6\u6f0f\u6d1e<\/li>\n<li>\u4ee3\u7801\u6267\u884c\u6f0f\u6d1e{\u7981\u7528\u4e00\u4e9b\u5371\u9669\u7684\u51fd\u6570\uff1apopen\/system\/passthru\/exec\/eval}<\/li>\n<\/ul>\n<h6>\u4e00\u4e2acookie\u7684\u4f7f\u7528\u8fc7\u7a0b\u5982\u4e0b\uff1a<\/h6>\n<p>1.\u6d4f\u89c8\u5668\u5411\u670d\u52a1\u5668\u53d1\u9001\u8bf7\u6c42\uff0c\u8fd9\u65f6\u5019\u6ca1\u6709cookie\uff1b<br \/>\n2.\u670d\u52a1\u5668\u8fd4\u56de\u65f6\u53d1\u9001set-cookie\u5934\uff0c\u5411\u5ba2\u6237\u7aef\u6d4f\u89c8\u5668\u5199\u5165cookie\uff1b<br \/>\n3.\u5728\u8be5cookie\u5230\u671f\u524d\uff0c\u6d4f\u89c8\u5668\u8bbf\u95ee\u8be5\u57df\u4e0b\u7684\u6240\u6709\u9875\u9762\uff0c\u90fd\u5c06\u53d1\u9001\u8be5cookie\u3002<\/p>\n<p>HTTPONLY\u5c31\u662f\u5728set-cookie\u65f6\u6807\u8bb0\u7684\uff0c\u5bf9\u4e8e\u6709\u591a\u4e2acookie\u7684\u60c5\u51b5\uff0c\u670d\u52a1\u5668\u5e94\u5bf9\u6240\u6709\u91cd\u8981\u7684cookie\u90fd\u52a0\u4e0aHTTPONLY\u6807\u8bb0\u3002<\/p>\n<p>\u6d4f\u89c8\u5668\u6240\u6301\u6709\u7684cookie\u5206\u4e3a2\u79cd\uff1a\u4e00\u79cd\u662f\u201csession cookie\u201d\uff0c\u53c8\u79f0\u201c\u4e34\u65f6cookie\u201d\uff1b\u53e6\u4e00\u79cd\u662f\u201cThird-party cookie\u201d\uff0c\u4e5f\u79f0\u4e3a\u201c\u7b2c\u4e09\u65b9\/\u672c\u5730cookie\u201d\u3002<br \/>\n\u4e24\u8005\u7684\u533a\u522b\u5728\u4e8esession cookie\u6ca1\u6709\u88ab\u8bbe\u7f6eExpire\u65f6\u95f4\uff0c\u5728\u6d4f\u89c8\u5668\u88ab\u5173\u95ed\u540esession cookie\u5931\u6548\uff1b\u800cThird-party cookie\u662f\u5728\u5230\u4e86Expire\u65f6\u95f4\u540e\u5c31\u5931\u6548\u4e86\u3002<br \/>\n\u5728\u6d4f\u89c8\u7f51\u7ad9\u7684\u8fc7\u7a0b\u4e2d\uff0c\u82e5\u662f\u4e00\u4e2a\u7f51\u7ad9\u8bbe\u7f6e\u4e86session cookie\uff0c\u90a3\u4e48\u5728\u6d4f\u89c8\u5668\u8fdb\u7a0b\u7684\u751f\u547d\u5468\u671f\u5185\uff0c\u5373\u4f7f\u6d4f\u89c8\u5668\u65b0\u6253\u5f00\u4e86Tab\u9875\u9762\uff0csession cookie\u4e5f\u662f\u6709\u6548\u7684\uff0c\u56e0\u4e3asession cookie\u4fdd\u5b58\u5728\u6d4f\u89c8\u5668\u8fdb\u7a0b\u7684\u5185\u5b58\u7a7a\u95f4\u4e2d\uff0csession cookie\u6ca1\u6709\u88ab\u6307\u5b9aExpire\u65f6\u95f4\uff0c\u5728\u6d4f\u89c8\u5668\u88ab\u5173\u95ed\u540e\uff0csession cookie\u5c31\u5931\u6548\u4e86\uff1b<br \/>\nThird-party cookie\u662f\u670d\u52a1\u5668\u5728set-cookie\u65f6\u6307\u5b9a\u4e86Expire\u65f6\u95f4\uff0c\u53ea\u6709\u5230\u4e86Expire\u65f6\u95f4\u4e4b\u540eThird-party cookie\u624d\u4f1a\u5931\u6548\uff0c\u6240\u4ee5\u8fd9\u79cdcookie\u4f1a\u4fdd\u5b58\u5728\u672c\u5730\u3002<\/p>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>OWASP Top10 2013 Top 10 A1-Injection A2-Broken Authenti [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,25],"tags":[265],"class_list":["post-727","post","type-post","status-publish","format-standard","hentry","category-knowledgebase-2","category-security","tag-owasp_top_10"],"views":9353,"_links":{"self":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/comments?post=727"}],"version-history":[{"count":1,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/727\/revisions"}],"predecessor-version":[{"id":3346,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/posts\/727\/revisions\/3346"}],"wp:attachment":[{"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/media?parent=727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/categories?post=727"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ixyzero.com\/blog\/wp-json\/wp\/v2\/tags?post=727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}