Closed
Bug 1454850
Opened 7 years ago
Closed 6 months ago
Mislabelled options relating to SOCKS4, SOCKS5 and server-side DNS resolution
Categories
(Core :: Networking: Proxy, defect, P3)
Tracking
()
RESOLVED
FIXED
128 Branch
People
(Reporter: adrien, Assigned: manuel)
References
(Blocks 1 open bug)
Details
(Whiteboard: [necko-triaged])
Attachments
(1 file)
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
Steps to reproduce:
used about:config to enable server-side dns resolution for SOCKS.
Set FF to use SOCKS4.
Actual results:
FF used SOCKS4a, DNS resolution still occured on SOCKS server.
Expected results:
using SOCKS4a is kinda cool, however it's not what is advertised.
Some SOCKS servers don't support SOCKS4a, only SOCKS4 and/or SOCKS5. The user is possibly unaware of this unadvertised side-effect.
In the proxy config UI, the checkbox (disabled) which reflects the configuration point states it only applies for SOCKS5, which is incorrect.
I'd suggest taking out the SOCKS5 reference, and making it explicit that if the option is set that SOCKS4a will be used not SOCKS4 if SOCKS4 is selected.
Comment 1•7 years ago
|
||
Based on other similar reports I think the correct component would be Core::Networking. Please change if this is not the right component.
Comment 2•7 years ago
|
||
Maybe we should ignore network.proxy.socks_remote_dns when using SOCK4 protocol. The comment even says that we don't use it: https://searchfox.org/mozilla-central/rev/8f06c1b9a080b84435a2906e420fe102e1ed780b/netwerk/base/nsProtocolProxyService.cpp#1312.
At the first look the code seems to be incorrect and there should be IMO (type == kProxyType_SOCKS && mSOCKSProxyRemoteDNS) instead.
And at other places we ignore socks version completely:
https://searchfox.org/mozilla-central/rev/8f06c1b9a080b84435a2906e420fe102e1ed780b/netwerk/base/nsProtocolProxyService.cpp#2326
https://searchfox.org/mozilla-central/rev/8f06c1b9a080b84435a2906e420fe102e1ed780b/netwerk/base/nsProtocolProxyService.cpp#2364
Priority: -- → P3
Whiteboard: [necko-triaged]
Reporter | ||
Comment 3•7 years ago
|
||
Why not just change the label and retain the ability to use SOCKS4a?
Anyone using 4a and relying on this won't thank you for removing the ability just because it's labelled wrong and comments don't match. It's actually useful. Just fix the label, it's less risky as well.
Run onto this bug. Checkbox says that DNS resolution will happen only if SOCKS5 proxy, yet FF tries to do that with SOCKS4 too.
SOCKS4 proxies don't support that mode of operation and reject such requests and FF thinks that there is no internet connection.
Related case (FF does try to "connect" to address 0.0.0.1): https://bugzilla.mozilla.org/show_bug.cgi?id=761181
Comment 6•4 years ago
|
||
Do you still see this when using a current version?
Yes. Steps to reproduce:
- Navigate to "Connection Settings" options screen
- choose SOCKS5 proxy
- check the "Proxy DNS when using SOCKS5"
- choose SOCKS4 proxy
Note that "Proxy DNS..." checkbox is still checked. - Try to connect to SOCKS4 proxy
- Connection fails with FF trying to connect to 0.0.0.1:443
Expected behaviour: FF doesn't try to proxy DNS if SOCKS4 proxy is selected.
Flags: needinfo?(itsuart)
Comment 8•3 years ago
|
||
istuart, Thanks for the update
(adrien appears to be gone)
Flags: needinfo?(adrien)
Reporter | ||
Comment 9•3 years ago
|
||
(In reply to Wayne Mery (:wsmwk) from comment #8)
istuart, Thanks for the update
(adrien appears to be gone)
still lurking
Updated•2 years ago
|
Severity: normal → S3
Assignee | ||
Updated•9 months ago
|
Component: Networking → Networking: Proxy
Assignee | ||
Comment 10•6 months ago
|
||
With Bug 1741375 this is a separate config variable.
Updated•6 months ago
|
Assignee: nobody → manuel
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Comment 11•6 months ago
|
||
Pushed by mbucher@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f4e4ed8628bc
Add "Proxy DNS when using SOCKS v4" option to proxy preferences r=necko-reviewers,fluent-reviewers,settings-reviewers,bolsson,Gijs,valentin
Comment 12•6 months ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
status-firefox128:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
You need to log in
before you can comment on or make changes to this bug.
Description
•