Every finding tells the full story
Summary, affected code, a recorded proof of concept, and a fix checklist in one view. Validate it, comment on it, or hand it straight to a fix review.
- Impact context on every issue
- PoC code with highlighted lines and terminal replay
- Fix-ready recommendations
Spoofed Control UI locality silently mints persistent admin device tokens
Summary
Same-LAN or shared-token caller can spoof Control UI locality, silently pair an admin device, and retain admin authority after shared-token rotation.
Proof of concept
const config = { gateway: { bind: "lan", auth: { mode: "token", token }, controlUi: { enabled: true, allowedOrigins: [`http://localhost:${port}`], }, }, }; Recommendation
Verify the immediate peer before trusting proxy headers; derive scopes from stored paired device records.