TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

iTerm2 critical security release

671 pointsby tjwds5 months ago

29 comments

Kwpolska5 months ago
Looks like a case of print() debugging making it into production:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;gnachman&#x2F;iTerm2&#x2F;commit&#x2F;63ec2bb0b95078a97abbb94cf28c4a42d1b67f23">https:&#x2F;&#x2F;github.com&#x2F;gnachman&#x2F;iTerm2&#x2F;commit&#x2F;63ec2bb0b95078a97a...</a> <a href="https:&#x2F;&#x2F;github.com&#x2F;gnachman&#x2F;iTerm2&#x2F;blame&#x2F;5db0f74bf647f6d53ea33d2491f9b8e4972c2e03&#x2F;OtherResources&#x2F;framer.py#L28">https:&#x2F;&#x2F;github.com&#x2F;gnachman&#x2F;iTerm2&#x2F;blame&#x2F;5db0f74bf647f6d53ea...</a>
评论 #42580532 未加载
评论 #42580359 未加载
评论 #42579635 未加载
mattpavelle5 months ago
&gt; A bug in the SSH integration feature caused input and output to be logged to a file on the remote host. This file, &#x2F;tmp&#x2F;framer.txt, may be readable by other users on the remote host.<p>Oof. This is nasty. Some folks may not have access to some machines that they&#x27;ve SSH&#x27;d into anymore where files like this may or may not exist.
评论 #42579631 未加载
评论 #42586233 未加载
locusofself4 months ago
I just want to sing some praises for iterm2. I&#x27;ve been using it for work and fun for many years now and will continue to use it and send a donation again as I did once before.
评论 #42584594 未加载
kelnos5 months ago
&gt; <i>I deeply regret this mistake and will take steps to ensure it never happens again.</i><p>I always get a little... sigh-y when I read statements like these. <i>What</i> steps? I&#x27;m not even sure what I would do to ensure something like that wouldn&#x27;t happen again. Build some automated tooling to run the software that exercises every single feature it has, and capture system calls to ensure that it never opens or writes to files? That sounds like a very difficult thing to do (to the point that I wouldn&#x27;t even try, especially for a GUI app), but anything less doesn&#x27;t feel like you can ensure it won&#x27;t happen again.
评论 #42581467 未加载
评论 #42580305 未加载
评论 #42580356 未加载
评论 #42580704 未加载
评论 #42581169 未加载
评论 #42582735 未加载
评论 #42581973 未加载
评论 #42582655 未加载
评论 #42580577 未加载
评论 #42581144 未加载
评论 #42580364 未加载
评论 #42580801 未加载
jcalx5 months ago
I know it&#x27;s largely personal preference but are there any strongly compelling reasons to use iTerm2 over stock Terminal on macOS in 2025? Despite recommendations, I&#x27;ve been wary of security and privacy issues much like this SSH bug.
评论 #42580868 未加载
评论 #42581023 未加载
评论 #42580875 未加载
评论 #42579810 未加载
评论 #42581460 未加载
评论 #42579789 未加载
评论 #42579828 未加载
评论 #42579838 未加载
评论 #42579859 未加载
评论 #42581470 未加载
评论 #42580866 未加载
评论 #42581611 未加载
评论 #42580515 未加载
评论 #42580997 未加载
评论 #42580129 未加载
评论 #42584251 未加载
评论 #42584261 未加载
评论 #42582628 未加载
评论 #42582921 未加载
评论 #42581027 未加载
评论 #42580974 未加载
评论 #42579996 未加载
评论 #42583480 未加载
评论 #42579800 未加载
评论 #42579858 未加载
teruakohatu5 months ago
I feel deeply for the developer who develops iTerm for relatively very little money, and already took a lot of criticism for the AI integration, far more than was warranted.<p>I am also also deeply concerned about my use of iTerm now.<p>I access HPC environments where I may have access for a short period of time. I am expected to take responsibility to clear out my data after use and don&#x27;t expect there to be any data leakage. If I had been manipulating PII research data in the past year and using iTerm&#x27;s SSH integration I would be in a bit of a bind and have to send some really embarrassing emails asking sysadmins to see if these logs exist, and if they belong to me, followed by disclosing data had been leaked.<p>I use some of the more advanced features but at this point wonder if I should be using any features beyond the basic, and then I may as well be using another terminal. I haven&#x27;t found a cross-platform editor that feels as native on MacOS as iTerm, ghostty included.
评论 #42581683 未加载
评论 #42592434 未加载
评论 #42582248 未加载
评论 #42581698 未加载
评论 #42585843 未加载
评论 #42582206 未加载
评论 #42582191 未加载
xucheng5 months ago
Many years ago, I reported an issue where iTerm2 leaks sensitive search history to preference files [1]. The issue was quickly fixed. But until this day, I can still find people unintentionally leak their search history in public dotfiles repos [2].<p>[1]: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;gnachman&#x2F;iterm2&#x2F;-&#x2F;issues&#x2F;8491" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;gnachman&#x2F;iterm2&#x2F;-&#x2F;issues&#x2F;8491</a><p>[2]: <a href="https:&#x2F;&#x2F;github.com&#x2F;search?q=NoSyncSearchHistory+path%3A*.plist&amp;type=code">https:&#x2F;&#x2F;github.com&#x2F;search?q=NoSyncSearchHistory+path%3A*.pli...</a>
johnsonalpha5 months ago
I’m a bit confused by the suggestion to &quot;Just don’t use iTerm2.&quot; The reality is that this type of issue could happen with any project, and switching tools doesn’t provide meaningful protection. If anything, incidents like this often lead to stronger security practices. It’s like the old joke about firing an engineer after a mistake, and the manager responding, &quot;Why would I fire them? They’ve just learned a lesson they won’t forget.&quot; Based on iTerm2’s track record, it doesn’t seem like they’ve had frequent critical security issues, and I doubt they’ll repeat this mistake. If they do, then it’s fair to reassess.<p>As for the MacOS Terminal app, it might seem like a lower-risk option because it’s simpler and updates less frequently. However, being closed-source makes it impossible to audit, which brings its own risks. Ultimately, every tool has tradeoffs, and choosing the right one depends on balancing your needs with the potential risks.
评论 #42582228 未加载
jey5 months ago
iTerm2 increasingly seems too complex and bloated to me, with too many security issues. I haven&#x27;t shopped for a new terminal emulator on macOS in a long time, but perhaps it&#x27;s now time.<p>I should also get around to switching to tmux, now that GNU Screen seems to be stagnant...
评论 #42579642 未加载
评论 #42579729 未加载
评论 #42580471 未加载
评论 #42580375 未加载
评论 #42580670 未加载
评论 #42579681 未加载
评论 #42580003 未加载
评论 #42579636 未加载
评论 #42581093 未加载
评论 #42579741 未加载
评论 #42579863 未加载
评论 #42580082 未加载
评论 #42580313 未加载
评论 #42579622 未加载
loeg5 months ago
This was only for the SSH integration, not if you just ran &quot;ssh&quot; in iTerm? I don&#x27;t see these &#x2F;tmp&#x2F;framer.txt files on any of the hosts I sshed to (plain ssh).
评论 #42581409 未加载
评论 #42584429 未加载
rswail4 months ago
This thread reminded me to make my annual donation to iTerm2&#x27;s developer, who does a pretty amazing job keeping iTerm MacOS compliant and up to date.
评论 #42588456 未加载
评论 #42584356 未加载
SamuelAdams5 months ago
&gt; Delete &#x2F;tmp&#x2F;framer.txt on affected hosts.<p>Isn’t the correct fix to assume compromise and rotate all SSH keys? I imagine there will be scripts created very quickly to grab this file from any servers, so even if it is deleted soon there is no guarantee someone else has not read it.
评论 #42580435 未加载
wk_end5 months ago
&gt; A bug in the SSH integration feature caused input and output to be logged to a file on the remote host. This file, &#x2F;tmp&#x2F;framer.txt, may be readable by other users on the remote host.<p>Curious about how this happens. What does &quot;framer&quot; mean, here?
评论 #42579671 未加载
评论 #42579603 未加载
isatty5 months ago
On the bright side this made me realize the stock terminal app has improved. I do use iTerm2 for its better rendering of text and color (and easier configuration of those things) but I don&#x27;t really make use of any other features. Time to switch, perhaps.
egorfine4 months ago
iTerm2 is the app I spend the most time for like a decade or so.<p>I feel bad for the developer. This is embarrassing and it totally could and probably will at some point happen to the best of us.<p>So I have immediately donated and subscribed to monthly donations and I encourage everyone to do so. There should be zero doubt that the author deserves our support.
ryanmccullagh5 months ago
Why does a terminal need an SSH integration. Answer: it doesn’t and you shouldn’t use this because it is unsafe.
评论 #42580821 未加载
评论 #42580845 未加载
paxys5 months ago
That sound you hear is IT admins worldwide scrambling to delete &#x2F;tmp&#x2F;framer.txt from all their servers.
MiscIdeaMaker995 months ago
I would love to know more about how this got discovered and figured out. I can imagine some sysadmin pull their hair out, thinking they&#x27;ve got some infected system, but then find out it was some bug with their terminal emulator.
评论 #42580016 未加载
soheil4 months ago
I would advice anyone using iTerm not to willy-nilly switch their terminal to one recommended by a random user here.<p>Terminals can have a huge attack surface and many &quot;open-source&quot; ones are maintained by less than trustworthy developers who very easily could inject a backdoor.<p>Sticking with time-proven projects like iTerm provides the advantage of added trust, security and basic common sense.<p>It also seems like a huge coincidence that there are a lot of green accounts here &quot;highly&quot; recommending all sorts of random terminal alternatives.
NelsonMinar5 months ago
How does a bug like this last for so many months without being noticed? Did no one notice a weird file in &#x2F;tmp and wonder where it came from? The one with their ssh session history in it?
评论 #42580004 未加载
评论 #42580601 未加载
评论 #42583139 未加载
rswail4 months ago
I&#x27;ve used iTerm2 for as long as I&#x27;ve known about it, which would be maybe 10 years?<p>I don&#x27;t use much of the various SSH&#x2F;mux features, &#x27;cos I don&#x27;t use multiple buffers, just multiple tabs.<p>I like the scrollback and the footer and the integration with the shell, don;t care about scrolling speed very much, and it&#x27;s sort of the &quot;ain&#x27;t broke, so why change&quot;.<p>I&#x27;ll take a look at ghostty, but not sure it gives me much.<p>As for this security issue, it&#x27;s a bug, the author found it, fixed it, announced what it was, and how to ameliorate the effects of the issue.<p>He did that in a very reasonable timeframe and has been entirely open about it.<p>The pile-on of moralists and what appear to be purists (and possibly early stage devs if they think process is the answer) is sorta pathetic.<p>This entire thread is more twitter&#x2F;reddit than what I&#x27;ve come to expect on HN.
eximius5 months ago
hah! Clicking &quot;Remind Me Later&quot; for the update prompts works again!
lionkor4 months ago
Not sure what the replies here are on about. This is NOT a &quot;whoopsie, can happen to any project&quot; bug. There was code in the project that EXPLICITLY leaked stuff into the remote host. Am I missing something?<p>Not only would switching to a different project with more eyes on it probably never do this, it would also probably never let that through PR reviews.
评论 #42584324 未加载
评论 #42584328 未加载
hbbio5 months ago
I always preferred alacritty which is faster and hopefully safer.<p>Tha macOS part uses the rust `objc2` crates which I find high quality and the codebase is a joy to read.
decasia5 months ago
I&#x27;m confused by the comments saying &quot;Just don&#x27;t use iTerm2.&quot; The same class of issue can occur for any other project, and switching is not a very effective defense against it.<p>If anything, having an embarrassing issue like this is probably going to improve the iTerm2 project&#x27;s security posture in the medium term. It&#x27;s like that joke about firing the engineer who caused the incident, and the manager who retorts, &quot;Why would I fire them? They just learned the hard way never to make this mistake again.&quot; (I&#x27;m paraphrasing.) I don&#x27;t think that iTerm2 has had a notably high rate of critical security issues, and I suspect they won&#x27;t make this class of mistake twice. (And if they do - then I will re-evaluate.)<p>I suppose intuitively I would think that using the default MacOS Terminal app is a bit lower-risk than using iTerm2 or any other open source terminal emulator, as Terminal is a rather sparse piece of Apple-provided software with a low pace of change. But it&#x27;s also closed source and impossible to audit, so there are tradeoffs there too.
评论 #42582693 未加载
评论 #42582036 未加载
评论 #42581297 未加载
评论 #42582869 未加载
评论 #42582010 未加载
评论 #42583136 未加载
评论 #42581742 未加载
评论 #42581795 未加载
评论 #42585836 未加载
评论 #42581131 未加载
coolgoose4 months ago
Looking at the replies here, I am not even sure how to react, it seems this community overall is going into a sad direction that just blames instead of trying to think of solutions.<p>Most of them are just entitled and aggressive for absolutely no reason.<p>It&#x27;s perfectly fine to want to switch, or try something else, but to think other projects couldn&#x27;t have issues is just naive to say it gently.
评论 #42583293 未加载
评论 #42583651 未加载
评论 #42583680 未加载
评论 #42585838 未加载
评论 #42583331 未加载
mrichman5 months ago
Glad I switched to Ghostty this week.
muppetman4 months ago
I thought we were all losing our mind over Ghostty anyway and iterm2 wasn&#x27;t cool anymore because it&#x27;s, apparently, slow?
st3fan5 months ago
I&#x27;m done with iTerm2.<p>This was a great terminal when it was basically Terminal.app + missing features but over the past years it has grown into the proveribal &quot;Kitchen Sink&quot; and now does SO MANY things that I just don&#x27;t care about.<p>iTerm2 has become a huge app with many many knobs and levers and all kinds of functionality and integrations. I am not surprised at all that (security) bugs are found. More code, features, integrations means more potential for security issues.<p>I switched to Ghostty, yes which had a security issue last week!, but at least it is a pretty minimal app with so far no intent to meet iTerm2 in terms of functionality.
评论 #42580367 未加载
评论 #42580995 未加载