git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git: CVE-2018-1000021: client prints server sent ANSI escape codes to the terminal, allowing for unverified messages to potentially execute arbitrary commands

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Feb 7, 2018, 16:52 UTC
Message-ID
<871shwpwrm.fsf@linux-m68k.org>
In-Reply-To
<00b601d39f9d$7a40b820$6ec22860$@nexbridge.com>
On Feb 06 2018, "Randall S. Becker" <rsbecker@nexbridge.com> wrote:
Show 12 quoted lines
> What I don't know - and it's not explicitly in the CVE - is just how many
> other terminal types with similar vulnerabilities are out there, but I'm
> suspecting it's larger than one would guess - mostly, it seems like this
> particular sequence is intended to be used for writing status line output
> (line 25?) instead of sticking it in a prompt. This can be used prettifies a
> lengthy bash prompt to display the current branch and repository at the
> bottom of the screen instead of in the inline prompt, but that's the user's
> choice and not something git has to deal with. There were some green-screen
> terminals with other weird ESC sequences back in the day that could really
> get into trouble with this, including loading/executing programs in terminal
> memory via output - really. I'm sure it seemed like a good idea at the time,
> but I can see how it could have been used for evil.
Do you also want to block "+++AT"?  :-)
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Randall S. BeckerNext: Randall S. Becker
Message 3 of 4 in “Re: git: CVE-2018-1000021: client prints server sent ANSI escape codes to the terminal, allowing for unverified messages to potentially execute arbitrary commands”
  1. Jonathan NiederFeb 5, 2018
  2. Randall S. BeckerFeb 6, 2018
  3. Andreas SchwabFeb 7, 2018
  4. Randall S. BeckerFeb 7, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.