News for hackers. Stuff that matters.
Re:Terminal escape sequences in Git commit email field by creamytaco on Sunday March 28, 2021 @11:27PM (#26617412)
Re:Terminal escape sequences in Git commit email field by gruez on Monday March 29, 2021 @12:32AM (#26617723)
The problem with this attack is that you have to drop the 6c file in your PATH for it to work, because otherwise you need to use ./ for it to execute. This makes the attack pointless because if the attacker can drop something to your PATH, you're already pwned since the attacker can just name his payload "ls" and wait for you to execute it.
Re:Terminal escape sequences in Git commit email field by theamk on Monday March 29, 2021 @01:16AM (#26617932)
Good thing I normally reach to "less" instead of "cat" nowadays. You get scrolling, and your terminal is safe from malicious injections or (much more likey) binary garbage.

And "git" for example applies "less" to pretty much all output by default, which makes most of the git-based attacks, including this one, irrelevant.

Re:Terminal escape sequences in Git commit email field by daniel5151 on Monday March 29, 2021 @12:29AM (#26617709)
Reading that just made me want to re-watch 1995's Hackers