fix: guard all browser subresources against SSRF and fail closed
The CDP Fetch interceptor only paused main-frame Document requests, so a scraped page's <img>/fetch()/XHR subresources to internal targets (169.254.169.254, postgres:5432, RFC1918) reached those hosts unguarded. Drop the ResourceType::Document constraint so every request runs through is_blocked. Also make open_page fail-closed: if the guard can't install, close the blank page and return the error instead of navigating unguarded. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mangalord"
|
||||
version = "0.124.13"
|
||||
version = "0.124.14"
|
||||
edition = "2021"
|
||||
default-run = "mangalord"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user