iTerm2 3.x before 3.1.1 allows remote attackers to discover passwords by reading DNS queries. A new (default) feature was added to iTerm2 version 3.0.0 (and unreleased 2.9.x versions such as 2.9.20150717) that resulted in a potential information disclosure. In an attempt to see whether the text under the cursor (or selected text) was a URL, the text would be sent as an unencrypted DNS query. This has the potential to result in passwords and other sensitive information being sent in cleartext without the user being aware.
https://news.ycombinator.com/item?id=15286956
https://gitlab.com/gnachman/iterm2/wikis/dnslookupissue
https://gitlab.com/gnachman/iterm2/issues/6068
https://gitlab.com/gnachman/iterm2/issues/5303
https://gitlab.com/gnachman/iterm2/issues/3688
https://github.com/gnachman/iTerm2/commit/e4eb1063529deb575b75b396138d41554428d522
https://github.com/gnachman/iTerm2/commit/33ccaf61e34ef32ffc9d6b2be5dd218f6bb55f51