Skip to content

Conversation

WGH-
Copy link

@WGH- WGH- commented Sep 8, 2025

Currently, frontend loads device images from third-party domain https://www.zigbee2mqtt.io/, leaking potentially sensitive information, as the address might be externally routable IPv6 address, etc.

We need to remove crossorigin="anonymous" to stop sending Origin header, and add referer="no-referer" referrer policy to stop sending Origin header. Note that as <image> elements don't support refererpolicy attribute, we have to add document-wide policy. Which is a good idea, as it also prevents leaks when following links.

Fixes #2708

Currently, frontend loads device images from third-party domain
https://www.zigbee2mqtt.io/, leaking potentially sensitive information,
as the address might be externally routable IPv6 address, etc.

We need to remove crossorigin="anonymous" to stop sending Origin header,
and add referer="no-referer" referrer policy to stop sending Origin
header. Note that as <image> elements don't support refererpolicy
attribute, we have to add document-wide policy. Which is a good idea,
as it also prevents leaks when following links.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Referrer leaks
1 participant