Live data from Hacker News

iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

gitlab.com

91–100 of 114 posts

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#91
post #57

I hardly go a day without using iTerm2. Don't worry George your responsiveness more than makes up for an honest mistake. To everyone else: I would highly recommend if you make money on a daily basis using iTerm2 that you support his efforts: https://www.patreon.com/gnachman/posts Before you ask, yes I'm a patreon for George, his work inspires me.

I recently switched back to Terminal.app due to poor performance in iTerm 2. Keystrokes were lagging to the point it got frustrating. Then a few days ago someone pointed out that I should try the iTerm 2 nightly build, and sure enough the lag is gone, so I'm now back on iTerm 2 again.

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#93

Given the level of concern, I will change the default and release a new version right away.

This is done. A summary of the issue and apology can be found here: https://gitlab.com/gnachman/iterm2/wikis/dnslookupissue

Hooray!

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#94
post #23

It's horrifying to watch your own DNS traffic. All sorts of mysterious domains show up. (On a typical macbook on WiFi, this will do it:) sudo tcpdump -i en0 -s 5000 -n port 53 On mine, these get resolved every 30 seconds (probably some Adobe updater): scss-prod-ue1-notif-39.adobesc.com. Several servers get lookups of names long enough to be exfiltrating data: r3---sn-nvopjoxu-25ve.gvt1.com. (Google) gzunified-ecselas…

Little Snitch is a fun program to run to see what software is connecting to where. So many connections to Google Analytics...

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#95

Given the level of concern, I will change the default and release a new version right away.

This is done. A summary of the issue and apology can be found here: https://gitlab.com/gnachman/iterm2/wikis/dnslookupissue

Thank you ! iTerm2 is amazing and this quick fix only proves it !

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#96
post #85
post #83

Earlier quoted context omitted.

Why didn’t you do this two years ago, when the first bug report about this was made? ( https://gitlab.com/gnachman/iterm2/issues/3688 ) Or a year ago, when a second report was made? ( https://gitlab.com/gnachman/iterm2/issues/5303 ) Note that the first bug report explicitly mentions the leaking of passwords. Was it really all about the “ level of concern ”, as you say, and you wouldn’t have changed this without the e…

This is a deeply unkind thing to say to someone who donates their free time to provide a public good. George apologized for his oversight and fixed the problem. Take him at his word and thank him.

Please don't call this "oversight".

He was (made) aware of the problem and chose to keep the default.

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#97
post #83

Earlier quoted context omitted.

This is done. A summary of the issue and apology can be found here: https://gitlab.com/gnachman/iterm2/wikis/dnslookupissue

Why didn’t you do this two years ago, when the first bug report about this was made? ( https://gitlab.com/gnachman/iterm2/issues/3688 ) Or a year ago, when a second report was made? ( https://gitlab.com/gnachman/iterm2/issues/5303 ) Note that the first bug report explicitly mentions the leaking of passwords. Was it really all about the “ level of concern ”, as you say, and you wouldn’t have changed this without the e…

Uhh, to be fair both reports were answered with appropriate concerns.

First made it sound like a very specific issue for that one user, and was given a way to disable it for him.

Second made it sound like an entire class of users would need it off, and an option switch was provided.

What do you think is more probable, that he intentionally left that hole open despite not directly benefitting from it, or simply that when he answered both original reports and provided an appropriate solution, he didn't fully think about the details and implications of what those issues meant?

Have you really never have a closed issue come back to you "went from bad to worse, abort!“ ?

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#98
post #81

Earlier quoted context omitted.

Er, that's just saying "you got lucky and the root nameserver you hit was fast". Looking up any valid .com requires that plus a 2nd level lookup.

oh wow, what would that make it, 50ms? that's almost enough time to blink!

Compare to the rest of the operations your terminal do, it's crazy slow though.

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#99

Given the level of concern, I will change the default and release a new version right away.

This is done. A summary of the issue and apology can be found here: https://gitlab.com/gnachman/iterm2/wikis/dnslookupissue

Fastest fix ever.

Re: iTerm2: Please disable 'Perform DNS lookups to check if URLs are valid'

#100
post #80

Earlier quoted context omitted.

Come on, it's doing domain lookups, it's not sending social security numbers to Russia. The amount of hyperbole regarding this misfeature is absurd. It was something that maybe should have been better expressed but this is not some kind of massive security failure.

It doesn’t matter what the code intends to do. Sure, looking up strings that look like domains seems harmless. But it means that every string that looks like a domain is transmitted unencrypted over the internet. If your software deals with private user data, you must consider the side effects of every API you are calling. You can’t just transmit data somewhere and hope that everyone will do the right thing. Network…

It absolutely matters what the code intends to do. If it intends to do a DNS lookup, and does that, that's working properly, eepecially if it's doing an DNS lookup on what its regex says looks like a clickable URL. If it means to store an SSN in an encrypted DB and accidentally writes it to plaintext or sends it to twitter, that's a security flaw. If that same app is following the system standard method of doing DNS resolutions, what else should it do? Are you really suggesting that it should somehow encrypt a DNS lookup? Why should this app be held to a higher standard than every single other application that does DNS lookups? This is the absurdity I'm talking about.

I completely agree that one must take into account how that feature fits with your product, user expectations, and privacy, but none of that means a feature that works as intended is a security flaw.

As others have said, prefetching pages has been done for years. Checking to see if it's a valid domain isn't an unreasonable feature for iTerm's URL highlighting, and for those who would prefer it not, he's changed that behavior, but let's not pretend that it was some absurd use of data that no one could have reasonably predicted.

And lastly, let's also stop clutching our pearls about "transmitting data". IT did a DNS lookup, and while technically that means there was a transmission, it wasn't taking what people traditionally call user data and transmitting it to a foreign third party. It's perfectly reasonable to check a domain name against a DNS server. Maybe unwanted, yes, but not even remotely irrational or irresponsible.

Post reply on HN