fetch("https://example.org/fetch-image?url=http://localhost:443/admin/org.png");Server Side Request Forgery (SSRF) / notebook
Server Side Request Forgery (SSRF)
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.
fetch("https://example.org/fetch-image?url=file:///etc/passwd");fetch("https://example.org/fetch-image?url=https://evilexample.org/redirect");const ALLOWED_DOMAINS = ["https://api.example.com", "https://cdn.example.com"];