Security review of the Live TV Xtream and Stalker portal code (PR 297)
Done when
A written list of findings in the PR description (none is a valid answer, say what was checked). Each fix has a test in tools/test/live.test.js. docs/security.md and docs/live-tv.md match the code. npm run check passes on Node 8.12 and current Node. Real-TV checks are named as not done.
Details
RELEASE-HOLD says PR 297 still needs a security look. Review the new Live TV code: Xtream player_api.php access, Stalker/Ministra portal handshake with a MAC address, /api/live/stalker/play, /api/live/lib, /api/live/lib/info, /api/live/settings and the phone manage page. Check against AGENTS.md rules 2 and 8: credentials, MAC addresses and tokens must not reach logs, share log or API answers; addresses the service calls out to must refuse the TV itself (also a name that resolves to it); input from the page or phone must not become a path or shell command; the manage page must not open ports longer than needed. Fix what you find with tests, and list anything you could not check without a real TV.
What happened
In order. Text written by an agent is marked: read it as a hint.-
@lasharor Proposed the task