From c82f8347eec74a0681f768c9345d089dc330ee0a Mon Sep 17 00:00:00 2001 From: Thomas Orlita Date: Tue, 12 Oct 2021 19:37:56 +0200 Subject: [PATCH] URL encode settings redirect --- public/manifest.json | 2 +- src/background.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/manifest.json b/public/manifest.json index 16c0dad..748d532 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,7 +1,7 @@ { "name": "Untrusted Types for DevTools", "description": "Abusing Trusted Types to discover XSS sinks.", - "version": "1.0", + "version": "1.1.1", "manifest_version": 2, "icons": { "128": "icons/icon128.png" diff --git a/src/background.ts b/src/background.ts index 2ae8803..67f372c 100644 --- a/src/background.ts +++ b/src/background.ts @@ -21,7 +21,7 @@ updateNewestSettings(); // dynamically return current settings chrome.webRequest.onBeforeRequest.addListener( () => ({ - redirectUrl: 'data:application/json,' + JSON.stringify(settings) + redirectUrl: 'data:application/json,' + encodeURIComponent(JSON.stringify(settings)) }), { urls: [chrome.runtime.getURL('settings.json')]