docs / models / 50A6Q / V0000.09.61B.Q0721

Findings 12 β€” Hisense 50A6Q (NT72690 / 09.61B): first probe of the Novatek lane

First entry for a Novatek SoC and a 09.61B build; neither is in the inventory yet. Community model: 50A6Q (EU/intl naming; TV self-reports 50A60QXVT / 50A6QX). Probe: launcher/recon-a6q.html (read-only v1), 2026-11-04, TV on LAN , server on :8770.

Fingerprint

Field Value Source
Model 50A6Q (50A60QXVT per UA) UA string
Firmware V0000.09.61B.Q0721 (build 2026-07-20) user + UA
VIDAA OS U09.61 Hisense_GetOSVersion()
SoC NT72690 (Novatek) Hisense_GetChipSetName()
Arch aarch64 UA (X11; Linux aarch64)
Browser Odin Chromium 111.5563.5.1 UA
transport_protocol 3290 SSDP modelDescription
region 4 SSDP
MACs eth <MAC_ETH_NOCOLON>, wifi <MAC_WIFI_NOCOLON> SSDP

Modern MQTT pairing (cert + dynamic creds, "modern" profile) already worked on this set 2026-11-03 β€” transport_protocol=3290 as predicted.

Bridge probes (read-only)

What this means

  1. Classic otaTest chain: dead on arrival (traversal closed β†’ no write outside /APPS bases regardless of write permissions).
  2. Novatek is a new lane. Every root in the inventory is MTK or MT53xx-class; the NT72690 firmware is a different build lineage. The 09.60V gate findings (identity gate on fileWrite) may or may not carry over β€” fileWrite is untested on this set.
  3. aarch64, not armv7 β€” toolchain retarget: aarch64-linux-musl via zig cc. V8 pointer compression (and possibly the V8 sandbox) is likely ON here, unlike the armv7 units β€” the "favorable N-day target" note in the playbook weakens for this arch.
  4. Next probes (recon v2): fileRead of websdk/Appinfo.json (in-base read), a button-gated fileWrite marker into an allowed base (write-gate test), and the deviceCode action (security-code forge precondition).

Operational notes

Recon v2–v6 (Nov 4, evening): the array-path bypass and the factory lane

The validator, from its own source (in-base reads of /APPS/pkgs/.../services/hiutils/)

fileOperation.js β€” fullPath = pathList[mode] + path, then if (params.path.includes('../')) return cb(false, ...) β€” .includes() on an attacker-controlled non-string. path: ["../etc/passwd"] (JSON array) fails the substring check (array element equality) and string-concats to /APPS/../etc/passwd. Proven live (recon v4): arbitrary fileRead as phoenix (uid 314, CapEff 000…80 a.a.). writeFile has the same flaw. Raw API on localhost:9009/service/hiutils is unauthenticated (no identifier needed); validator runs server-side (shim bypass N/A). /etc/shadow β†’ EACCES (boundary real). No /etc/rc.local; busybox init, ::sysinit:/etc/init.d/rcS β†’ S??* loop. Kernel 5.4.283 aarch64, armhf (ELF32) userland.

The factory lane (recon v6) β€” root exec candidate, no traversal needed

Open questions (next session)

  1. Who invokes OEMfacstart.sh (which S??* script) and does its 30 s window overlap phoenix's start? /etc/init.d/ can't be listed (EISDIR oracle only) β€” no dir-read API.
  2. Does /tmp persist across a real reboot (fstab has no /tmp entry; root is ext2 rw,noauto!)? Persistence test: write marker β†’ power-cycle β†’ read back.
  3. secure_exec's match_process config (dynamic_permission / libsecure-processid.so / cJSON) β€” does the cvtefac label pass? The flow is shipped, so presumably yes.
  4. fileWrite bypass untested (recon v2 button was never pressed). Root is rw per fstab β€” test whether /etc/... takes a write (EROFS oracle) before assuming squashfs-ro.
  5. Write-test β†’ stage payload+trigger β†’ real power-cycle β†’ check root exec. 42-partition dump + OTA freeze should happen before the first reboot that matters.

Server note: a stale second vidaa_server (port 8767, ~/firm/firm) squatted the MQTT session for ~20 h and caused intermittent /api/open failures β€” killed; one server per TV.

Write primitive and the root-door hunt (Nov 4, late evening)

Capabilities gained (all as phoenix uid 314)

Root-exec doors examined (all blocked so far)

Next step (staged, pending go): sandboxed code exec via tilesService

fetchFile can replace services/tilesService/index.js (system jsservice β€” NOT the bridge process). Patch = original + 137-byte delta: try { require('./a6q_boot.js') } catch {} inside start(). a6q_boot.js (syntax-validated, on the box) = recon only: uid/groups, readdir of /etc/init.d, /usr/local/*, /proc walk (all root processes + cmdlines), SUID scan; reports via HTTP POST to the box. Broken payload = caught = service continues. Original JS kept on the box for instant restore. Then one power-cycle.

Main-hook deployed; tvinfo regression; deadlock (Nov 4, night)

What works

The regression

Exit ladders

  1. Factory reset wipes /APPS + /data + /var/local + /tmp β†’ guaranteed stock (hook lives only there); verified boot untouched throughout.
  2. restorephoenix.sh would reinstall jsservice pkgs from backup IPKs if its trigger fires (caller not yet identified).

THE CASCADE (Nov 5, ~00:30): full gated-API breach via in-process ISC

The unlock: the boot payload runs INSIDE phoenix β€” serviceCallAPI (ISC) hits checkRequestPermission with origintype='service' β†’ return true β€” NO PERMISSION CHECK. The HTTP identifier gate is irrelevant for in-process callers.

Chain (all from the boot payload, a6q_boot.js v3.2d): 1. getTVAPI('deviceCode') β†’ <MAC_WIFI> (wifi MAC! β€” key names are swapped vs intuition) 2. getTVAPI('macAddress') β†’ <MAC_ETH> (ethernet MAC) 3. device_code = md5(deviceCode)[:6] = <dc6> (the MD5 step is mandatory β€” first attempt used the raw MAC β†’ 30004) 4. security code = "0" + "9999" + auth8 + "9" + "0" + "00" where auth8 = HMAC-SHA1(key=base64(dc6), msg=mac+"2015-01-01"+"9") weird-hex-arithmetic % 1e8 β€” ACCEPTED by checkAccessCode β†’ security_level = 9 in the live hiutils instance 5. setDebugPort(1) β†’ devtoolSwitch = 2 β€” develop DevTools enabled on the TV browser (port binds on browser restart; the EULA firewall blocks it externally β€” needs an ACCEPT rule or localhost access) 6. ISC fileWrite: success β€” in-process writes need no identifier at all

Notes: - The identifier/HTTP gate became moot: ISC is the cleaner bypass for everything in-process. - The security code is STABLE for this device (deviceCode/mac are static; valid 9999 days). - Gotchas: service state 2 ("wrong state") after listeners drop β€” OOM-reload via huge fileRead (the 100MB node binary into a 9MB heap) restores state 1 reliably; the fetcher's 30MB fetchResponse does NOT kill the process (faa streams); payload markers must be renamed per run (they self-write even on error paths); TV clock skews after cold boots (cosmetic). - Keys extracted in-process (v3 report): IDENTIFIER_KEY (32b), SERVER_PRIVATE_KEY (RSA 1676b), IPK_KEY (32-char value redacted).

The IPK lane (Nov 5, 02:00–03:00): pkgmgr.debugInstall β†’ superwatch (root) β€” install succeeds, extraction unresolved

The chain, verified from source + live

Live results

Open questions (next session)

  1. Where does this opkg extract data? (dest config not at /etc/opkg.conf, /usr/local/etc/opkg.conf, /APPS/pkgs/opkgmeta/opkg.conf; status DB not at /usr/lib/opkg/status; the opkg binary uses libarchive)
  2. Does this opkg build run maintainer scripts (postinst) at all?
  3. Capture the result file content: a 200 ms poller during the install, or make superwatch write it and read before pkgmgr's rm (direct socket path has no rm by pkgmgr β€” check again after a run).
  4. Full opkg binary dump (the 8 KB/60 KB slices truncated β€” read in chunks via the payload) for the dest/conf strings and the maintainer-script logic.
  5. --force-reinstall may be dropped by superwatch's arg handling β†’ same-version reinstall may no-op (explains code 0 with nothing extracted on the second+ runs; the FIRST run's extraction still unexplained).

πŸ”΄ ROOT CONFIRMED (Nov 5, ~02:15): the PFM/eval chain

The complete chain, every step verified live: 1. fetchFile (ISC, ungated) delivers /var/local/pfmParse/PFMCheck (eval payload) + Data/platform.txt (control vars) + /var/local/DebugPowerup (the gate flag) 2. Cold boot β†’ start-kilby (root) β†’ [ -f DebugPowerup ] && pfmDebug β†’ PFMCheck exists β†’ bash pfm-manager.sh & (root, background) 3. pfmAutorun β†’ getPFMCheck β†’ eval "$line" per line of PFMCheck β†’ uid=0 execution 4. Proof: /var/local/.a6q_root/proof.txt = uid=0(root) gid=0(root) on Linux NT72690 aarch64

The three files persist across reboots β€” this is boot-persistent root code execution.

The self-cleanup: PFMCheck sets runCount=99, platform.txt sets runMaxCount=1 β†’ pfmAutorun hits the runCount >= runMaxCount branch β†’ rm -rf pfmParse + DebugPowerup β†’ self-cleaning. Re-plant all three via fetchFile for the next boot.

The debug framework: Hisense's own PFM (Performance Monitoring) boot-time debug hook, gated by DebugPowerup, driven by eval'd config files β€” a root exec primitive left in production firmware.

Gotchas (all hit live)

The dropbear war (Nov 5, evening–night): four boots, four distinct walls

Root exec is stable; the fight was getting SSH listening on 2222. Each boot exposed one wall.

Wall 1 β€” the -r flag bug (v9/v10 era, fixed)

The eval line used -r /var/local/.a6q_authorized_keys. In dropbear, -r = host key file, not authorized_keys. Feeding it a pubkey file β†’ dropbear exits silently (stderr was 2>/dev/null). Fix: -r /var/local/.a6q_host_ed25519 + -R (auto-generates host keys into a writable path β€” the rootfs is ro, so -R alone targeting /etc/dropbear_* would fail). authorized_keys belongs in /root/.ssh/authorized_keys (the eval already copies it there).

Wall 2 β€” the vendor firewall (mapped at boot #4)

Wall 3 β€” dropbear ENOENT/Permission-denied at boot (partially explained)

The v15 state (deployed + verified Nov 5 ~00:40)

PFMCheck v15 (live + .a6q_PFMCheck_backup) = v12 boot block (md5 check, keys, iptables retry Γ—40, dropbear attempts, full logging to .a6q_root/v12.log) + three eternal root loops: 1. every 15 s: ensure ACCEPT for 2222 at INPUT 1 + delete the FIREWALL_IN_EULAON jump + dump firewall state (fw_now.txt) + if port 2222 not bound and /var/local/dropbear exists: chmod 755 + start it (fw_loop.log records every start) 2. every 30 s: touch /var/local/DebugPowerup (a periodic watchdog DELETES this flag during runtime β€” verified twice live; gate only needs existence at boot) 3. tail at boot+5 s: restore PFMCheck + platform.txt from backups + touch DebugPowerup

Expected boot timeline: +0 eval fires (root) β†’ +45 s v9 redelivers clean dropbear β†’ +~60 s the 15 s loop starts it β†’ firewall already neutralized β†’ 2222 open. Validation: nc <TV_IP> 2222 β†’ expect SSH-2.0-dropbear banner; then ssh -p 2222 root@<TV_IP> (keys: /var/local/.a6q_authorized_keys, both Mac + box pubkeys).

Tooling notes

πŸ”΄ ROOT SSH ACHIEVED (Nov 6, ~01:50): the dropbear gauntlet β€” five locks, all mapped

ssh -p 2222 root@<TV_IP> β†’ uid=0(root) root shell on NT72690 aarch64. The same five-lock gauntlet the upstream author documented for MTK applies to Novatek, lock for lock:

# Lock Evidence Fix (all deployed + persistent)
1 FIREWALL_IN_EULAON netfilter chain (allowlist + final DROP all; created by a vendor daemon AFTER early-boot) boot #2/#4 dumps eternal root loop: -I INPUT 1 ACCEPT 2222 + -D INPUT -j FIREWALL_IN_EULAON every 15 s (proven: chain β†’ 0 references)
2 root's home is / (RO rootfs) β†’ mkdir /root/.ssh silently EROFS, authorized_keys never existed boot #9 ENOENT wrapper v4 (root): mkdir /var/local/roothome + cp keys + dropbear -D /var/local/roothome
3 /etc/shells check: root's shell /etc/rootlogin.sh not listed β†’ "invalid shell, rejected" boot #8 db.log patched out (goto goodshell) in svr-auth.c; string dead-code-eliminated from binary
4 checkpubkeyperms: /var/local is world-writable by vendor design β†’ keys dir under it rejected boot #11 db.log patched out (return DROPBEAR_SUCCESS) in svr-authpubkey.c
5 root shell = factory USB-gate script (/etc/rootlogin.sh) /etc/passwd get_user_shell() forced to return /bin/sh in common-session.c

Additional findings (all hit live)

Current persistent state (all self-healing, survives reboots)

Teardown: delete /var/local/{.a6q_*,dropbear,pfmParse,DebugPowerup,roothome}, restore services/hiutils/package.json (original in pkg_current.json), remove a6q_boot.js β€” factory reset is the nuclear option.