694

Terminal2Shell: Critical flaw grants instant shell access on every major OS

#programmer_humor
Terminal2Shell Terminal2Shell: Critical flaw grants instant shell access on every major OS Researchers disclose a 55-year-old vulnerability affecting macOS, Windows and Linux. Exploitation is trivial and requires no special tools. No patch exists. terminal2shell.com

check post at origin

88 comments

log in to comment.

  • @MajorHavoc@programming.dev · 9 Nov 2026

    Okay. I briefly ate the onion, on this one. It tastes like sysadmin tears.

    • @crazycraw@crazypeople.online · 9 Nov 2026

      I had a msg to my team drafted before I realized I was a fucking idiot.

      • @crazycraw@crazypeople.online · 9 Nov 2026

        in my defense, my team is always trying to be mr. achiever and drop the latest vulnerability. I got a glimpse of this one and got excited since I hadn’t heard of this “new named threat”. when I tried reading further to prepare my draft… the reach and exposure of this vulnerability became clear.

        also, to mitigate this, we’d have to hotpatch layer 8.

        • @decolo@piefed.social · 10 Nov 2026

          Duct tape works a treat for that!

        • @KeenFlame@feddit.nu · 10 Nov 2026

          How is it in your defense when you were going to do it to them?

          • @crazycraw@crazypeople.online · 10 Nov 2026

            justifying my behavior because I was motivated by the aforementioned external behaviors by establishing their trends of beating me to the aforementioned punch.

            WOOO I need to let autocorrect hit that aforementioned word again yeah soo satisfying.

            • @KeenFlame@feddit.nu · 6d ago

              Nothing anyone else does demands you also do it. It is a mark of maturity to understand that if you don’t want something to happen, you should abstain because how you treat yourself is more important than how others do

        • @not_IO@lemmy.blahaj.zone · 10 Nov 2026

          u shouldn’t play the achiever game with your team, it’s an exploitation tactic and it consumes every fiber of your being

          • @crazycraw@crazypeople.online · 10 Nov 2026

            my carcass has long been picked clean but I thought" hey maybe the old man still can find surprises those whippersnappers haven’t yet."… thinking “ohh lemmy stumbled upon something! beans!” (I think you have to say this when you reference lemmy now)

      • @Agent641@lemmy.world · 9 Nov 2026

        I’ve sent a company wide email telling everyone I don’t want to be sysasmin anymore.

        It has nothing to do with the CVE

      • @MonaySimpson@lemmy.ml · 10 Nov 2026

        Save it for April 1.

    • @DJKJuicy@sh.itjust.works · 10 Nov 2026 · edited

      I was fooled until I saw the CVSS score of 11 on a scale of 0 to 10.

      Up to 11

    • @Tehhund@lemmy.world · 9 Nov 2026

      I only figured it out because I read your comment.

      • @MajorHavoc@programming.dev · 10 Nov 2026

        That’s why I confessed. I’m glad to help.

        • @JoeBigelow@lemmy.ca · 10 Nov 2026

          I’m here cautiously making sure it’s a joke that I don’t understand. Problem exists between keyboard and seat.

          • @Tehhund@lemmy.world · 10 Nov 2026

            Not even that, it’s not a problem at all. They’re just saying that when you open a terminal program you get access to the shell. That is exactly the point of a terminal program. It’s a bit like “exclusive, shocking report: water is wet!”

            I mean, I guess part of the joke is if an attacker can get into your computer they can do nefarious things, but that’s not as funny.

  • @hanke@feddit.nu · 9 Nov 2026

    Just tried it out. It is real. And really simple to do.

    Scary stuff. Tossing my machines in the bin tomorrow.

  • @micgerne@lemmy.dbzer0.com · 9 Nov 2026

    I just tested this exploit, I was easily able to remove the french language pack by typing “rm -fr /*”

    • @a_jeering_serpent@sopuli.xyz · 10 Nov 2026

      Don’t forget the —no-preserve-root flag or you’ll get an index out of bounds when deleting the recipe for five-root-puree

      • @yetAnotherUser@discuss.tchncs.de · 10 Nov 2026 · edited

        This flag is fortunately not needed as /* ensures root recipes are preserved. It’s just that anything below isn’t.

        • @a_jeering_serpent@sopuli.xyz · 11 Nov 2026

          Oh i was kind of going for the opposite. 😈

          BTW use caution with your glob there, that only does what you described if the folder has contents, if it doesn’t, rather than getting nothing you’ll get back the parent directory, at least in bash. I’m not one of the cool zsh kids.

          • @yetAnotherUser@discuss.tchncs.de · 11 Nov 2026

            Huh, are you sure or am I just stupid?

            [user@device Documents]$ mkdir test
            [user@device Documents]$ cd test
            [user@device test]$ ls ./*
            ls: cannot access './*': No such file or directory
            

            Same behavior with * instead of ./*.

            • @a_jeering_serpent@sopuli.xyz · 11 Nov 2026

              I may be the stupid one, i’m sure there’s a related gotcha here under some condition, but objectively not the one i described. Sorry, did not intend to waste anyone’s time and i do appreciate the response back to set me straight.

  • @ImgurRefugee114@reddthat.com · 9 Nov 2026 · edited

    Getting a shell is bad, but what makes this worse is the insecurity of popular Linux tools that can be used for privilege escalation.

    The sudo program has had a known vulnerability since its inception. The developers are incompetent. In some configurations, all you need is the user’s password and you can execute arbitrary code as root. Sometimes, no password is needed at all.

  • @DrunkAnRoot@sh.itjust.works · 10 Nov 2026

    I work at google just shut off every server to protect us. 👍

    • @laranis@lemmy.zip · 10 Nov 2026 · edited

      I took the “us” in your statement to be “humanity” and it sparked an unexpected feeling of hope.

  • @ns1@feddit.uk · 9 Nov 2026

    Nobody show this to my boss please, they’ll be asking me why I haven’t fixed it yet

  • @scops@reddthat.com · 10 Nov 2026

    Microsoft Paint: Not affected. Thank God.

  • @feddylemmy@lemmy.world · 9 Nov 2026

    Phew! Just got done patching all my servers. The main IOCs are

    • C:\Windows\System32\cmd.exe
    • /bin/bash
    • /bin/sh
    • @damnthefilibuster@lemmy.world · 9 Nov 2026 · edited

      So zsh is good? /s

      • @ozymandias117@lemmy.world · 10 Nov 2026

        According to the report, zsh is even worse

        2009 zsh adoption grows. Now the shell is also pretty, which researchers believe lures more victims.

      • @Anafabula@discuss.tchncs.de · 9 Nov 2026

        nushell, ash, elvish, dash, powershell, …

        • @sjpwarren@programming.dev · 9 Nov 2026

          powershell is good because no hacker can be bothered typing that much to get anything to work ;)

          • @bitjunkie@lemmy.world · 9 Nov 2026

            Security by utter absence of usability

          • @cenzorrll@piefed.ca · 9 Nov 2026

            I’m taking some admin/security courses and powershell was touted as “it’s so easy to make your own scripts to save time!”. I was just like, “the fuck Koolaid are you drinking?”

          • @kubica@fedia.io · 9 Nov 2026

            Was the command separated by dashes or case change? Let me che...ange to something else.

          • @tordenflesk@lemmy.world · 9 Nov 2026

            pwsh

          • @yetAnotherUser@lemmy.ca · 10 Nov 2026

            They have aliases for multiple commands (such as cd, ls, curl, likely cat), so I’d still be careful 😬

  • @dgdft@lemmy.world · 9 Nov 2026

    Given simple primitives and runtime permissions, a skilled hacker can even bootstrap one of these “shells” from scratch, underlining the continued importance of banning math and computer science education in our schools.

  • @stembolts@programming.dev · 10 Nov 2026

    Holy shit, my computer is infected. I opened my terminal and typed “sudo ls -halR /” and it showed me every file on my computer. Oh my god.

  • @Allero@lemmy.today · 10 Nov 2026

    You should really place a /j somewhere before someone thinks they’re screwed

  • @Sina@beehaw.org · 10 Nov 2026

    I still find it funny that in the distant past an engineer thought pasted commands should have some ~~ characters added, so the user has to delete them & think about their actions while pressing their arrow or various faster ctrl+ keys …

  • @epyon22@sh.itjust.works · 9 Nov 2026

    Gotta minimize your attack surface sudo apt remove konsole for any Debian kde based distros

    • @daychilde@lemmy.world · 9 Nov 2026

      sudo apt remove apt sudo

      • @deadbeef79000@lemmy.nz · 9 Nov 2026

        I used the stones to destroy the stones

      • @palordrolap@fedia.io · 9 Nov 2026 · edited

        While the palindromic structure of that command is pleasing to mine eye, LMDE basically called me a frickin' idiot for trying.

        I know it always asks Continue [Y/n] and there's no yes | or echo | to force that, so I was reasonably sure I'd get away with it, but I don't think I could argue with the sentiment had it actually said that.

        (Also, I have Timeshift, so that would have saved my bacon but for the inconvenience of having to go through a rollback.)

        Anyway, here's what it said (scrolling may be required to see the last line which is clearly code for "you're an idiot"):

        REMOVING:                       
          apt       apt-utils          mint-meta-cinnamon  mintsources  mintupdate       sudo
          apt-file  command-not-found  mint-meta-core      mintsystem   python3-repolib
        
        WARNING: The following essential packages will be removed.
        This should NOT be done unless you know exactly what you are doing!
          apt
        
        Summary:
          Upgrading: 0, Installing: 0, Removing: 12, Not Upgrading: 1
          Freed space: 52.3 MB
        
        Error: Removing essential system-critical packages is not permitted. This might break the system.
        
        • @jdr@lemmy.ml · 9 Nov 2026

          Honestly, I want to be allowed to break my system. I own it, it should do exactly what I say, warnings are fine, but software deciding it knows better than you is how we have reached the inescapable technogulag of the now.

          • @Anafabula@discuss.tchncs.de · 10 Nov 2026

            You can, if you create an empty file at /etc/apt/break-my-system first. It’s intentionally not mentioned to prevent another Linus situation

            • @jdr@lemmy.ml · 10 Nov 2026 · edited

              Wow, I thought you might be joking but this is real

              github.com/pop-os/apt/pull/1/files#diff-94ba980dc…

            • @daychilde@lemmy.world · 11 Nov 2026

              Because of course you can.

              I will say, in the world where you can’t do anything with “con:” or “prn:” or a few others in DOS, the fact that you CAN force Linux to let you completely and utterly fuck yourself if you truly want to… is great. lol

          • @rockSlayer@lemmy.blahaj.zone · 9 Nov 2026

            In my experience, Linux only allows you to do 1 incredibly stupid thing at a time. Remove sudo? Cool. Remove apt? You betcha. Remove apt AND sudo? You’re fucking nuts, I ain’t doing that

          • @KeithD@lemmy.nz · 10 Nov 2026 · edited

            You could always try using “sudo dpkg -r --force-all apt” instead. It won’t clean up the dependencies, admittedly.

        • @daychilde@lemmy.world · 11 Nov 2026

          First of all, it pleases me greatly that you appreciated the palindromic nature of it. That pleased me as I wrote it (you know how you can write something and realize that it’s unintentionally great? lol)

          Second of all, it pleases me that you tried it. lol. I was originally a DOS/Windows guy, so while I know a tiny bit of the Deep Magic, it’s safe to say I’m a fairly average user on the Linux side of things, though I do love learning.

          How brilliant. Just like with rm / -rf protection that you can override, but must override… I had actually assumed (without thought) that sudo and apt were built-in commands like dir and cd in DOS, so there wouldn’t be anything to remove. But makes sense that everything is a package.

          Today, thanks to you, I learned the most delightful thing. Thank you. <3

          • @palordrolap@fedia.io · 11 Nov 2026

            Everything is a package

            I mean, pretty much. Or rather, everything is in a package. Back in the old days they were called source distributions or .tar.gzs and you compiled everything yourself. Gentoo, for example, still does everything that way, but uses the name 'package' anyway.

            The coreutils package, or something like it, contains multiple commands that a bare bones, command-line-only system would need, but some things are built into the shells. e.g. cd is always shell-based. echo may or may not be. ls (dir) is in coreutils.

            There are also things like busybox that, in a single executable from a single package, contains a stripped-down version of everything in coreutils, a shell and a handful of other things too.

  • @Agent641@lemmy.world · 9 Nov 2026

    This one goes to 11

  • @SapphironZA@sh.itjust.works · 9 Nov 2026

    Switch off computer is the best mitigation

    Removing keyboard and locking operator out of building is the next best thing.

  • @doomsdayrs@lemmy.ml · 10 Nov 2026

    I’m tired boss

  • @mumblerfish@lemmy.world · 9 Nov 2026

    Oh, I heard of this one! Basically every single accidental corruption of any kind in any compny’s production environment was made possible by this exploit! Scary stuff!

  • @rockSlayer@lemmy.blahaj.zone · 9 Nov 2026

    Only tangentially related, but this reminds me of an interaction I had here on Lemmy. I was talking about my pure bash, brain-made CLI app that pushes files between Google Compute head nodes and Google Storage buckets, but does some additional fuckery with bash strings to serve as a crude git. Basically, the app manipulates a string that represents a bucket, and then uses the appropriate gcloud command with that string.

    Someone was extremely concerned about the security of my app, how I should do an AI code review, and that only good programmers use all the tools available to them. I told them that I only want my code to be reviewed by humans. They said it was wild that someone would decline a security review. I told them that if there’s a security issue with my app, they’ll have to take it up with Google.

  • @jqubed@lemmy.world · 9 Nov 2026
    • 1989 Bash released. Name confirms the attack is intentional.
  • @FaceDeer@fedia.io · 9 Nov 2026

    Finally I'm justified in doing everything via a GUI.

  • @LovableSidekick@lemmy.world · 10 Nov 2026

    I see what you did there and I admire the subtlety.

  • @Buage_@piefed.social · 9 Nov 2026

    I rarely comment on Lemmy but you actually made me laugh for 5 minutes straight 👏

  • @wuffah@lemmy.world · 9 Nov 2026

    Finally, I’m a real hacker.

  • @NovaVeles@lemmy.world · 11 Nov 2026

    Oh crap even my Atari 400 is done for! Yes, I mail in my responses here.

  • @CoconutLove@lemmy.today · 9 Nov 2026

    Must’ve been another AI found exploit because no human could piece this together

  • @djdarren@piefed.social · 9 Nov 2026

    I use Konsole on my Mac. It’s not listed on there, so am I safe?

  • @Superorbit@lemmy.ca · 11 Nov 2026

    You got me good for a couple seconds there lmao

  • @rtxn@lemmy.world · 9 Nov 2026 · edited

    Fortunately Windows is at least protected from gaining elevated privileges since it still has to go through UAC. I hope nobody discovers some vulnerability called something like “desktop2shell”.

  • @DarkCloud@lemmy.world · 9 Nov 2026

    The article says it’s a one click exploit, but I’m finding I need to make two quick clicks to enter into the program. Can someone help me?? Am I doing something wrong?

    I’ve spent all day trying to update my software to get this to work!!!

  • @some_guy@lemmy.sdf.org · 11 Nov 2026

    If you’re smart, like me, you’ll unplug your devices immediately. Failure to do so ensures your doom.

  • @anas@lemmy.world · 10 Nov 2026

    slop :)

  • @DarkCloud@lemmy.world · 10 Nov 2026

    If he says he’s there to upgrade the computers, don’t let him in.