Skip to content

DNS leak (HTTPS RR / SVCB) with WebExtension Proxy in Firefox #487

@cindymao56

Description

@cindymao56

Description

When using proxy in Firefox using a WebExtension-based proxy manager, a DNS leak occurs. I've tried SmartProxy / ZeroOmega.
Specifically, the domain names of the websites visited leak via type65 DNS queries to the system's local DNS server. (type65 is HTTPS RR / SVCB)

This issue does not occur when the proxy is configured using Firefox's built-in proxy settings

Steps to Reproduce

  1. On a Linux machine, run the following command to monitor DNS traffic:
    sudo tcpdump -l -i any -n 'dst port 53 and (udp)'
  2. Perform the following tests with Firefox (I use v140):
    • No Proxy Set: You will observe A, AAAA, and type65 queries being sent to the local DNS server.
    • Using Firefox's Built-in Proxy Settings: No DNS queries will be visible in the TCP dump.
    • Using a WebExtension-based Proxy: type65 queries are visibly leaking to the local DNS server.

Notes:

  1. In Firefox settings, setting DNS over HTTPS to Off may help reproducing the issue
  2. Firefox doesn't do the HTTPS RR DNS query for every website. Try several different websites to reproduce
  3. Use new profile. You may need to clear all caches and datas and restart, in case of the HTTP RR data is cached locally, which prevent you from reproducing

Which browsers did you test this on?

Firefox

Affected browser versions

140

Affected SmartProxy versions

latest

Screenshots of the problems or steps to reproduce

No response

Any additional context

  • The issue only occurs with WebExtension-based proxy managers.
  • The DNS queries being leaked are specifically of type65, which corresponds to HTTPS RR / SVCB. More on HTTPS RR: MDN: HTTPS Resource Record.

When using a WebExtension-based proxy manager with a full proxy, DNS queries (including type65) should be routed exclusively through the proxy, not leaked to the local DNS server.

Please investigate the handling of type65 queries when using WebExtension-based proxy configurations. Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type-bugBug in code or behaviour

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions