docs / models / 75UR9S / V0000.09.60W.Q0624 / findings

01 β€” OS exploration: /usrlocal inventory, vendor backdoor, service surface

Measured 2026-11-07 over the root SSH lane. Read-only pass: no TV state changed. Companion to the model README.

1. System overview

Item Value
SoC / build id MT9655, SYS_MODEL_NAME=hisense_mt9655_linux_fde, SYS_VERSION=Debug (per /etc/profile)
Root FS erofs ro (dm-4 ← p53) at /mnt/tvroot, dm-verity; /usr/local β†’ /mnt/tvroot/usrlocal symlink
Writable /APPS (4 GB), /var/local (1.4 GB), /data, /var/tvservice, /OAD (chmod 777 by security-dac-OTA), /Customer, /vendor/uuenv, /certificate, tmpfs /var/run, /var/log, /var/crash
SELinux Enforcing
Serial console getty -L ttyS0 115200 running; root's login shell is /etc/rootlogin.sh (/etc/passwd)
/bin mostly symlinks into //openbox/bin (toybox); the real vendor binaries live in /usr/local/bin
Vendor canonical PATH /etc/profile line 28: /usr/local/bin/openssh/sbin:/usr/local/bin:/usr/local/scripts:/basic/bin:/bin:/usr/bin:/sbin:/usrbin:/3rd/bin/wpa_supplicant/common

2. /usrlocal/bin (119 entries) β€” the useful ones

3. /usrlocal/scripts (149 entries) β€” highlights

4. Other measured areas

5. Exploit-potential assessment

  1. Vendor backdoor (biggest find): rootlogin.sh dummy-login β†’ root shell over serial. The USB-key scheme is md5(vid+pid+model) filename; the key file lives on the USB stick β€” check_usb_key's content check is the next thing to reverse (no physical USB needed if it's bypassable).
  2. superwatch surface is wider than we use: login.sh shows ops 12 (export package) and 13 (import package) via /var/run/superwatch as a file. Package import = postinst-as-root: a second, simpler entry point to our existing privilege lane.
  3. setkprop/kprop β€” full property system readable/writable as root; init.rc on property: triggers mean boot-phase services can be driven on demand.
  4. inputkeyevent/inputtext β€” programmatic UI control from the shell (no remote needed; complements the launcher lane).
  5. ipk-decrypt + enctool/dectool + inithitast β€” the OEM/VIDAA content-encryption toolchain runs as root; usable to inspect/decrypt app packages and OEM zips offline.
  6. keystore/bin_guardian + /opt/key/hashkey.sign β€” the signature/MD5 guard for tools; tells us which binaries the TV will refuse to run (relevant when deploying new binaries outside /APPS).
  7. Matter/Control4/AirPlay/DIAL/MQTT β€” a dozen LAN-facing IoT services; each is a potential unauthenticated LAN attack surface (worth a later port-scan + protocol probe pass from the PC).
  8. /OAD is 777 and rescueOTA/rcotatool/bspatchtool live there β€” the OTA lane is fully scriptable from the shell (A/B slot switching via the libbootctrl.so-based tools).

6. SSH session environment β€” final design (2026-11-08)

Design. Mirror the vendor's own serial login (/etc/rootlogin.sh does source /etc/profile; /bin/sh): the uid-0 login shell is a wrapper script, /APPS/.re_sshd/sh (written by the IPK postinst, make_installer.py):

#!/bin/sh
. /etc/profile >/dev/null 2>&1
exec /bin/bash "$@"

/etc/profile is the single source of truth for the vendor environment: PATH, LD_LIBRARY_PATH (this TV has no /etc/ld.so.cache β€” dynamic vendor binaries like jq/opkg/kprop resolve only via it), DTO_CHIP, UTOPIA_LINUX. No per-variable dropbear patching, and it stays correct across firmware updates without recompiling.

Banner suppression (2026-11-10). The profile's stdout is a login banner, not environment: line 1 echo "Loading /etc/profile..." and, near the bottom, cat /basic/build.macro | grep 2102 which prints the USB_UPG_VERSION=... and VERSION=... lines. Those two are display-only β€” VERSION/ USB_UPG_VERSION are never exported (verified: they are absent from the session env). The original wrapper redirected only stderr (2>/dev/null), so the banner leaked into every remote/one-shot session. Sinking stdout (>/dev/null 2>&1) removes all three lines while every real export is unaffected β€” and it stays correct if a future firmware adds more echoes. Remaining side effects are harmless (stty, umask, sourcing init_coredump.rc). Verified on TV 2026-11-10: clean one-shot and ssh -tt PTY sessions, full PATH/LD_LIBRARY_PATH, jq/opkg/kprop run unmodified.

Build recipe (tools/ur9s/scripts/build_dropbear_a7k.sh): identical to the U7Q parent (tools/u7q/scripts/build_dropbear_a7k.sh), differing only in the shell paths:

Build trap (do not "improve" the recipe). A rebuild combining all four of -O0, PIE (-static without -no-pie), the --disable-pam/shadow/ pututline/pututxline configure extras, and PUBKEY_AUTH 1 + CLIENT 0 corrupts ed25519 verification (Permission denied (publickey)); dropping any one of the four fixes it. The U7Q recipe (three of the four, with -Os) is the proven-safe corner β€” verified on TV 2026-11-08.

Verified on TV (2026-11-08): pubkey auth OK, CapEff 000001ffffffffff, full vendor PATH and LD_LIBRARY_PATH, jq/opkg (0.7.0)/kprop run unmodified, ssh -tt PTY sessions work.