From e3ad63f3000693d799747ee10f35c97ecce08078 Mon Sep 17 00:00:00 2001 From: Antawari Date: Wed, 27 May 2026 16:32:47 -0600 Subject: [PATCH] front door: drop google fonts CDN @import + add security headers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two-defect convergence on the host-only Front Door: 1. ui.html imported a stylesheet from fonts.googleapis.com, sending the user's browser fingerprint + IP + Referer to Google on every scan. The Front Door is bound to 127.0.0.1 precisely because the page exposes scraped local state; the third-party font fetch contradicted that posture. 2. _process_request returned only Content-Type on the HTML response — no Content-Security-Policy, no X-Frame-Options, no Referrer-Policy, no X-Content-Type-Options. Drive-by visit to http://127.0.0.1: while a scan was running could render the page in an iframe inside an attacker tab, and any third-party subresource fetch would leak the referrer. Shipping both as one PR — CSP and the @import removal are the two halves of "the page makes no third-party network requests." Add the @import back later and CSP refuses to load it; remove it without CSP and the next contributor can re-introduce it silently. ## Changes src/bonfire/onboard/ui.html - Removed @import url('https://fonts.googleapis.com/...') from the