How to do local services safely
How to do local services safely
Posted Jun 11, 2025 21:18 UTC (Wed) by fraetor (subscriber, #161147)In reply to: How to do local services safely by mathstuf
Parent article: Covert web-to-app tracking via localhost on Android
In the case of this specific proposal, perhaps you don't mind facebook.com in your browser talking to the Facebook app, but would for other origins.
Various cross-site request forgery prevention mechanism exist to prevent a random site from affecting another site, but in this case the localhost server wants to be affected, which means you would have to prevent the entire request.
A static permission on the app sounds like a sensible step, as it would allow app store review to catch malicious code while still allowing origins to opt-in.
