docs / models / 50A51HUV / 09.01O.P0813 / findings

alvidaa findings — the bridge is a local HTTP API (recon §10.1–10.3, 10.5)

Split from the original FINDINGS.md lab notebook. Canonical record; the blog and STORY.md draw from these.

10. Recon deep-dive (Oct 2026): the bridge is a local HTTP API

Probed live with launcher/recon.html (v1→v5), which self-reports to the server's /api/recon endpoint. Per-run snapshots: server/recon-report-v*.json. The page POSTs its report incrementally after every section — needed, because the bridge backend can die mid-run (§10.3).

10.1 Device identity

10.2 The JS bridge is three layers

  1. Page JS: ~81 Hisense_* functions + HiUtils_createRequest — enumerable with Object.getOwnPropertyNames(window). They are plain JS shims.
  2. The shims POST JSON to http://localhost:9009/service/hiutils (file ops and utility APIs) and /service/tvinfo (Hisense_Get* info), with body {"api":"<name>","args":{...}} and a header identifier: <base64 16-byte token> that rotates on every request. Response shape: {"ret":bool,"msg":...,"session":-1}. Wrong api names get a clean {"ret":false,"msg":"Not supported api"} — a perfect fuzzing oracle.
  3. The backend is phoenix — a Node.js server: /opt/pkgs/tv.vidaa.app.phoenix/bin/phoenix (Node flags incl. --report-uncaught-exception --report-on-fatalerror, report to /var/local/log.phoenix.report) running /APPS/pkgs/tv.vidaa.jsservice.basic/CHA/phoenix.server.js — i.e. the file bridge's own source lives on the writable /APPS partition.

10.3 The file sandbox — and the hole in it

10.5 Raw API probing

The hiutils service, decoded (Oct 30 — from the p41 extract)

tv.vidaa.jsservice.basic/CHA/services/hiutils/ — index.js + fileOperation.js + hiSecurity.js. The full authoritative API table and both "security" layers.

The "sandbox" is a mode-indexed prefix list, not a sandbox

const path_list = [
    '/tmp/',                               // mode 0  ← the UART-key tmpfs
    '/APPS/varlocal/applications/UI/',     // mode 1
    '/APPS/channelA/',                     // mode 2  ← the stock home UI
    '/APPS/varlocal/',                     // mode 3
    '/data/',                              // mode 4
    '/vddt/',                              // mode 5
    '/APPS/',                              // mode 6  ← our Appinfo lane
    '/OAD/'                                // mode 7  ← OTA staging
]
const full_path = path_list[params.mode] + params.path

The mode parameter is a base-directory selector with eight whitelisted mounts on the tested 09.01 firmware, including the stock home UI, OTA staging and the console-gate tmpfs. The ../ escape was unfiltered concatenation. A mode base can make a path addressable without traversal, but that does not prove it is writable on other firmware: the 09.60 EU_A report observed a separate fileWrite permission gate. Do not write to /OAD.

The full supported API table (authoritative)

fileRead, fileWrite, installApplication, hiSdkSignCreate, hiSdkSignCreateSoundbar, hiSdkJsonVerifyHeap, writeTvRunLog, createRandomString, getDefaultCDNInfo, securityEncrypt, securityDecrypt, setDebugPort, getDebugPort, deviceCode, checkAccessCode, getVersionStatus, getFrameTvSupport, getUIVersion, getOSVersion, openModuleLog, getDabTool, setDabTool, setDns — plus serviceinfo.json parsing. Notables: setDns (remote DNS rewrite from a page), setDebugPort (Chromium devtools switch), securityEncrypt/Decrypt (vendor crypto via the native lib).

The security-code system, forged

hiSecurity.js — the successor to the "05328087" serial-console era:

Impact on patched firmware (MTK9603 report)

The mode list and debug-code behavior above were decoded on 09.01, not verified on 09.60. The 09.60 EU_A report found a separate API-level write gate, including on in-sandbox paths. The mode list alone does not bypass it. Whether the debug-code behavior carries over is also untested; an accepted code on the older TV does not establish root on a newer one. See the community playbook.

Static pass over the archived jsservice.basic IPK (2026-11-04)

Source: apps/opt-pkgs/backup/tv.vidaa.jsservice.basic_1.0.0-d20250813o_mtk9602.ipk in the pristine vendor tree (Forgejo seed) — the vendor's own backup copy of the JS-service framework package. Control block: Phase: debug, PackageType: Property, Persistent: true, DualChannel: true, Architecture: mtk9602, version 1.0.0-d20250813o. It may drift from the copy actually running on the TV; the fileRead/fileWrite behavior below is what the archived build does, and it matches the live probe results recorded above.