# Media query - Git flaw

4 messages from 2020-04-15 to 2020-04-21. Participants: Adam Bannister, Junio C Hamano, Jeff King.
Thread: https://gitlist.dev/t/53237

## Adam Bannister, 2020-04-15 10:46

Subject: Media query - Git flaw
Message-ID: <CAJQu+bp9SrzaMBuMv1UC8y8rJGn15MAsVogSCm_DNDKRMji1+Q@mail.gmail.com>
URL: https://gitlist.dev/e/CAJQu%2Bbp9SrzaMBuMv1UC8y8rJGn15MAsVogSCm_DNDKRMji1%2BQ%40mail.gmail.com

```
Hi there,

I’m writing a story for web security publication The Daily Swig on the
research that uncovered a bug in Git:

https://bugs.chromium.org/p/project-zero/issues/detail?id=2021


I was wondering if someone who works on Git might have time to spare
to answer a question or two briefly?

If so, this is what I was thinking…

How did the disclosure and patching process go?


What is your advice to Git users?

Thanks for your time...

Regards,


--

Adam Bannister
The Daily Swig
https://portswigger.net/daily-swig

```

## Junio C Hamano, 2020-04-15 15:19

Subject: Re: Media query - Git flaw
Message-ID: <xmqqwo6g7p55.fsf@gitster.c.googlers.com>
URL: https://gitlist.dev/e/xmqqwo6g7p55.fsf%40gitster.c.googlers.com
In-Reply-To: <CAJQu+bp9SrzaMBuMv1UC8y8rJGn15MAsVogSCm_DNDKRMji1+Q@mail.gmail.com>

```
Adam Bannister <adam.bannister@portswigger.net> writes:

> How did the disclosure and patching process go?

I guess "Just like any other project" would be enough for you to
understand, given what you write and where ;-)

A security researcher discloses a possible vulnerability to the
git-security mailing list, which is a closed list.  On the list,
there are developers with relatively high familiarity with the
entire codebase, and there are those who are responsible for
managing binary packaging of the software to various distributions.

We prepare the fix.  We review the fix.  We repeat until we agree
that the proposed fix is what we want to deliver.

We arrange the coordinated disclosure and release among distro
people and other stakeholders.

All of the above have to be done behind public.

Then we go public at the same time.  It happened at 1100 US/Pacific
on Apr 14th, 2020.  For this one, as the fix itself was relatively
straight-forward, the time it took between the initial contact and
the release was spent mostly to wait for the slowest partcipant in
the coordinated disclosure process (obviously I won't name names).

> What is your advice to Git users?

Release is announced and users are urged to upgrade, like you wrote
on your article at The Daily Swig.

```

## Jeff King, 2020-04-15 15:47

Subject: Re: Media query - Git flaw
Message-ID: <20200415154711.GD2464307@coredump.intra.peff.net>
URL: https://gitlist.dev/e/20200415154711.GD2464307%40coredump.intra.peff.net
In-Reply-To: <xmqqwo6g7p55.fsf@gitster.c.googlers.com>

```
On Wed, Apr 15, 2020 at 08:19:18AM -0700, Junio C Hamano wrote:

> > What is your advice to Git users?
> 
> Release is announced and users are urged to upgrade, like you wrote
> on your article at The Daily Swig.

There's a little more detail and some workarounds discussed in the
advisory at:

 https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q

-Peff

```

## Adam Bannister, 2020-04-21 08:46

Subject: Re: Media query - Git flaw
Message-ID: <CAJQu+boAfXKG_Kugmh+k2O_AP2LmGbZ+R5XS0rw9==7OtULEZg@mail.gmail.com>
URL: https://gitlist.dev/e/CAJQu%2BboAfXKG_Kugmh%2Bk2O_AP2LmGbZ%2BR5XS0rw9%3D%3D7OtULEZg%40mail.gmail.com
In-Reply-To: <20200415154711.GD2464307@coredump.intra.peff.net>

```
Forgot to say thanks for all your help and share the link!
https://portswigger.net/daily-swig/git-security-newline-injection-bug-tricked-version-control-system-into-leaking-usernames-and-password

Much appreciated...

On Wed, 15 Apr 2020 at 16:47, Jeff King <peff@peff.net> wrote:
>
> On Wed, Apr 15, 2020 at 08:19:18AM -0700, Junio C Hamano wrote:
>
> > > What is your advice to Git users?
> >
> > Release is announced and users are urged to upgrade, like you wrote
> > on your article at The Daily Swig.
>
> There's a little more detail and some workarounds discussed in the
> advisory at:
>
>  https://github.com/git/git/security/advisories/GHSA-qm7j-c969-7j4q
>
> -Peff



-- 

Adam Bannister
The Daily Swig
https://portswigger.net/daily-swig

```
