proxychains-ng icon indicating copy to clipboard operation
proxychains-ng copied to clipboard

dnsleak with brave browser

Open cr8351 opened this issue 10 months ago • 9 comments

I have dns leak with both brave browser and chromium but not in firefox. dnsleaktest.com shows both my real ip and proxy ip for socks5 proxies

cr8351 avatar Apr 19 '24 13:04 cr8351

probably using wrong proxy config then, or no proxy_dns at all

rofl0r avatar Apr 20 '24 12:04 rofl0r

It uses proxy_dns and default config with tor removed and socks5 proxy added

cr8351 avatar Apr 20 '24 13:04 cr8351

if it uses proxy_dns, and brave is correctly hooked, then the DNS lookup is done on the proxy. of course, if your proxy runs on localhost, that won't help you not leaking your ip.

rofl0r avatar Apr 20 '24 17:04 rofl0r

The proxy doesn't have the same ip as my real ip so how did it leak if it is done on the proxy?

cr8351 avatar Apr 20 '24 23:04 cr8351

that's for you to find out. i'd propose to start wireshark and see what actually happens.

rofl0r avatar Apr 21 '24 10:04 rofl0r

I am not sure what to look for in wireshark to find the cause but I am pretty sure it can be reproduced easily on any computer if you open a chromium browser with proxychains

cr8351 avatar Apr 23 '24 17:04 cr8351

i'd look for DNS requests accompanying your website accesses. if there are none, proxychains works as expected. btw if you're using http proxies you don't control, they may add x-forwarded-for and similar privacy-defeating headers and reveal your source ip.

rofl0r avatar Apr 25 '24 23:04 rofl0r

There are DNS requests and they are socks5 proxies and also same leak with tor only. This only happens in chromium browsers and brave browser and not firefox

cr8351 avatar Apr 28 '24 04:04 cr8351

well if that is so then chromium (which i dont use nor have) probably crafts its own DNS UDP packets and does the lookups without involving libc, i.o.w. it can't be hooked. the only mitigation proxychains could provide is to entirely block all UDP related functionality in libc, but then the app could still circumvent it by using raw syscalls.

rofl0r avatar Apr 28 '24 09:04 rofl0r