zap-hud
zap-hud copied to clipboard
Firefox Issue: CSP errors
To reproduce:
- Start ZAP on one machine
- Configure ZAP (and machine) to accept remote requests
- Configure browser on 2nd machine to proxy through ZAP
- Proxy to target, HUD will probably work
on step 4, looking at the console I'm seeing a bunch of errors like so:

Those CSP errors are being thrown by callback URLs such as:
https://zap//zapCallBackUrl/6223563515382454344?name=drawer.html https://zap//zapCallBackUrl/6223563515382454344?name=growlerAlerts.html
Weird thing is, checking the network requests I see the CSP policy set correctly:

For clarity the CSP in the screenshot is:
default-src 'none'; script-src 'self' 'unsafe-eval'; connect-src https://zap wss://zap; frame-src 'self'; img-src 'self' data:; font-src 'self' data:; style-src 'self' 'unsafe-inline'
This of course is showing the HUD but nothing works... More details:
- starting FF from within ZAP i.e. from the "Launch Browser" button in the quick start, doesn't produce these issues
- chrome doesn't have these issues (both manual start and "Launch Browser")
- HUD options setup:

The above issue is on Ubuntu LTS 18.04, FF 62.0.3 (64-bit)