Skip to content

Extension crashes after update to 1.0.5 #7

@z3r0privacy

Description

@z3r0privacy

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:

  • The error page chrome/edge shows in the extension overview
    downloadblocker_errorpage

  • The line at fault in the debugger window with some context. I see that there is a .referrer property in the downloadItem object, maybe it's only a wrong property-name?
    downloadblocker_crash

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions