Improper Privilege Management
The V8 inspector intentionally allows arbitrary code execution within the Workers sandbox for debugging. wrangler dev would previously start an inspector server listening on all network interfaces. This would allow an attacker on the local network to connect to the inspector and run arbitrary code. Additionally, the inspector server does not validate Origin/Host headers, granting an attacker that can trick any user on the local network into opening a malicious …