-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Hi, since the update to 1.0.5 the extension seems to be crashing on my client.
- Version: 1.0.5
- Native Messaging Host: is not installed
- Configuration:
{"rules": [{"ruleName": "Audit non-local Downloads", "bannedExtensions": ["*"], "urlScheme": ["file", "http", "https"], "origin": "any", "action": "audit"}, {"ruleName": "Log local HTML Smuggling", "bannedExtensions": ["*"], "urlScheme": ["file"], "origin": "local", "action": "audit"}], "alertConfig": {"url": "https://***", "headers": {}, "method": "POST", "sendAsJson": true, "postData": {"redacted": "redacted"}}}
The problem seems to be here:
| var urlScheme = new URL(downloadItem.referringPage).protocol.slice(0, -1).toLowerCase(); // e.g. file, http, https instead of file:, http:, https: |
The .referringPage is undefined, in both cases (regular and data/blob download). This causes the function to crash and the download is not logged/audited. I attached a few screenshots from debugging:
Metadata
Metadata
Assignees
Labels
No labels

