You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For <a download="filename" href="blob:..."> to work properly, download attribute/property must be set BEFORE href attribute/property for blob:... URL is set
The text was updated successfully, but these errors were encountered:
[Vulnerability] Documents with blob URLs can bypass Service Worker
Root Cause
Reproducible Code
Fix
Element.setAttribute()
, etc.MutationObserver
to track DOM mutations for URL auditing<a download="filename.ext" href="blob:...">Download Link</a>
is allowed<img src="blob:...">
is permissive as wellhook.parameters.mutationObserver = new MutationObserver(callback)
hook.parameters.mutationObserverConfig = configForObserverObserve
Tips for Fix
<a download="filename" href="blob:...">
to work properly,download
attribute/property must be set BEFOREhref
attribute/property forblob:...
URL is setThe text was updated successfully, but these errors were encountered: