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.
@stale
Copy link

stale bot commented Dec 18, 2025

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 18, 2025
@WGH-
Copy link
Author

WGH- commented Dec 18, 2025

Bump

@stale stale bot removed the wontfix This will not be worked on label Dec 18, 2025
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