mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-03-12 01:45:56 -05:00
[PR #2921] [MERGED] Prevent DNS leak when icon regex is configured #6827
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/2921
Author: @BlackDex
Created: 11/14/2022
Status: ✅ Merged
Merged: 11/27/2022
Merged by: @dani-garcia
Base:
main← Head:issue-2909📝 Commits (1)
0d2399dPrevent DNS leak when icon regex is configured📊 Changes
2 files changed (+14 additions, -11 deletions)
View changed files
📝
src/api/icons.rs(+14 -11)📝
src/static/images/fallback-icon.png(+0 -0)📄 Description
When a icon blacklist regex was configured to not check for a domain, it still did a DNS lookup first. This could cause a DNS leakage for these regex blocked domains.
This PR resolves this issue by first checking the regex, and afterwards the other checks.
Fixes #2909
Also updated the fallback icon to the latest version used by Bitwarden it self.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.