News for hackers. Stuff that matters.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by jakobegger on Tuesday September 19, 2017 @02:35PM (#15287507)
It never ceases to amaze me how otherwise intelligent people think it‘s a good idea to send unencrypted user data to random servers on the internet in the background.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by burnte on Wednesday September 20, 2017 @02:00AM (#15291171)
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.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by jakobegger on Wednesday September 20, 2017 @03:21AM (#15291484)
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 traffic is monitored on lots of networks. Unless the data is encrypted and you have reason to trust the receiver, don’t send it.

And whatever you do, don’t send private data without user action. Users expect web requests to be made when clicking a link. They do not expect data to be transmitted when hovering the mouse over URLs.

Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by burnte on Wednesday September 20, 2017 @12:33PM (#15295645)
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.

Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by jakobegger on Thursday September 21, 2017 @03:17AM (#15301172)
Most major security breaches are not caused by explicit back doors — they are caused by accidental vulnerabilities.

If you leak user data accidentally, saying “that wasn’t my intent” doesn’t help much.

The important thing that you don’t understand is that there is a difference between a search field / url box, and a Terminal.

I absolutely expect my browser to make DNS queries for stuff I paste into the URL box.

I don’t expect my terminal emulator to make DNS queries for random strings displayed on screen that happen to match a regex.

Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by burnte on Thursday September 21, 2017 @03:54PM (#15306793)
This wasn't an accident, it deliberately looked up domain looking string against a DNS server. Don't patronize me, going by your twitter picture, I've been at a command shell longer than you've been alive, I damn well know the difference. I also know that doing DNS lookups (the the user's chosen DNS server, rather than some secret one) on domain-name looking data isn't evil or completely unreasonable. He should have made it clear and opt-in rather than opt-out as it was, but by no means was this a vulnerability. If the user can't trust their domain server for domain-like data, they shouldn't use that server.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by jakobegger on Friday September 22, 2017 @09:32AM (#15311968)
Let me quote the original issue report on Github:

> What happened: iTerm sent various things (including passwords) in plain text to my ISP's DNS server

iTerm was accidentally transmitting passwords in plain text via the network.

I'm pretty sure transmitting passwords in plain text isn't "working as intended".

Sure, you can go blame the user for not knowing that iTerm makes DNS queries when you hold down the command key.

But if you want to make secure software, you can't just tell the user it's their fault. You need to make sure that accidentally disclosing private information is not something that easily happens.

Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by burnte on Saturday September 23, 2017 @03:43AM (#15318687)
You're purposefully putting intent on software. It didn't send passwords, it sent strings that looked like a domain to a regex. It did not send a message to a DNS server "Hey DNS server, this is a password!" The user happened to want to use that string for a password.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by jakobegger on Sunday September 24, 2017 @01:49AM (#15323516)
OK, you win. I can’t follow your arguments anymore. I must be too young and unexperienced.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by JadeNB on Tuesday September 19, 2017 @04:01PM (#15288280)
It makes me scared to be an iTerm2 user, frankly. Because I am an idiot, it never occurred to me that I'd have to wonder about the security implications of my choice of terminal emulator. Does it otherwise have a good reputation for security?
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by bluedino on Tuesday September 19, 2017 @08:59PM (#15289975)
I used to use it religiously but recently went back to Terminal on my last two Macs and don’t really miss anything
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by problems on Tuesday September 19, 2017 @04:06PM (#15288329)
Just ditch it - clearly the author has no regard for privacy.

I cringe just thinking about implementing something like that.

Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by mw6621 on Tuesday September 19, 2017 @04:11PM (#15288360)
iTerm2 is great and George is absolutely responsive with any issue I've ever brought up. I am personally going to give him the benefit of the doubt here, I'm sure he'll fix things ASAP.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by derimagia on Tuesday September 19, 2017 @06:09PM (#15289245)
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by 0culus on Tuesday September 19, 2017 @04:17PM (#15288410)
I don't think it's worth throwing the baby out with the bathwater. But this should at a minimum be an opt-in feature, and not opt-out. Better yet, it's probably not needed. I've almost never needed to interact with URLs in a clickable way via a terminal.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by joosters on Tuesday September 19, 2017 @05:22PM (#15288935)
Clickable URLs are very convenient. I have plenty of code that runs on remote machines and generates data that I'd like to view in my browser. Print the URL out, and I can click on it to open it up.

n.b. for me, in iTerm2, I have to press cmd to make the links highlight before I can click on them - so there's little danger of accidentally opening something you didn't want to.

Doing any DNS before clicking on the links seems like overkill, though. My browser can tell me if the URL is garbage or not.

Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by sametmax on Tuesday September 19, 2017 @04:46PM (#15288655)
I do but I always know if they are valid before I click on them, so I don't see the appeal of the DNS lookup. Plus that must be freaking slow.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by JosephRedfern on Tuesday September 19, 2017 @05:16PM (#15288885)
Not necessarily slow, DNS Lookups are generally pretty fast:

    ~  dig somerandomurlimadeup.com | grep 'Query time: '
    ;; Query time: 23 msec
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by greglindahl on Tuesday September 19, 2017 @06:57PM (#15289488)
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.
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by JosephRedfern on Thursday September 21, 2017 @04:35AM (#15301548)
I tried on several domain names (that I had not, to my knowledge, recently visited), and they were all around the 25ms mark.

I'm not saying that this is the case universally, but for many the typical lookup time will be very fast.

Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by alanh on Wednesday September 20, 2017 @02:02AM (#15291178)
oh wow, what would that make it, 50ms? that's almost enough time to blink!
Re:iTerm2: Please disable 'Perform DNS lookups to check if U... by sametmax on Wednesday September 20, 2017 @08:44AM (#15293086)
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 U... by exikyut on Tuesday September 19, 2017 @08:58PM (#15289972)
The author has fixed it, and clearly this has been an educational experience. Considering the professionalness of the rest of the app, I get the impression that the author is likely going to factor security considerations into the picture in a big way in the future.