fix(sec/d24): PDF render hardening — strict CSP + request interception
Red-team XSS/rendering finding (public-share renders our HTML in Chromium): - Both letterhead templates get a strict CSP meta (default-src none; img-src data:; style-src unsafe-inline; base-uri/form-action none) — permits the inline CSS + data: logo the templates actually use, blocks all script execution and every outbound/file fetch. Identical in preview + PDF, so the byte-for-byte preview-fidelity golden test still passes. - renderPdf aborts every non-data: network request at the browser layer. Together an esc() miss becomes a harmless rendering glitch instead of an SSRF/exfiltration/RCE-adjacent vector. Template + fidelity tests green. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>feat/client-detail-redesign
parent
aaad1e7a3a
commit
4cf513d528
Loading…
Reference in New Issue