Closed Bug 1678978 Opened 4 years ago Closed 4 years ago

Setting proxy through `proxy.onRequest` API and working with `browser.dns` API will cause DNS leaks

Categories

(Core :: Networking, defect, P2)

Firefox 85
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: nayinain, Unassigned)

References

Details

(Whiteboard: [necko-triaged])

Attachments

(1 file, 1 obsolete file)

764 bytes, application/x-zip-compressed
Details
Attached file webext-DNSLeaksTest.zip (obsolete) —

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:85.0) Gecko/20100101 Firefox/85.0

Steps to reproduce:

  1. Setting a socks5 proxy software to listen on 127.0.0.1:10808.
  2. Load webext-DNSLeaksTest as a temporary extension.
  3. Using the DNS leaks test service like:

Actual results:

You can find the "DNS leaks" exposed your location.

Expected results:


Sorry for my bad English.

Has STR: --- → yes
See Also: → 1618271

:nayinain, if you think that's a regression, then could you try to find a regression range in using for example mozregression?

Attachment #9189457 - Attachment is obsolete: true

So, looking at the code in nsDNSService::DNSForbiddenByActiveProxy, it's obvious that we didn't handle the case when proxyDNS is set by an extension.

Severity: -- → S3
Priority: -- → P2
Whiteboard: [necko-triaged]

Actually, I think this bug should be resolved as INVALID or WONTFIX.
Setting proxyDNS to true only indicates the DNS resolution for this web request should be done by the proxy. Therefore, it should not affect other requests globally.

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: