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

Re: [Security] gitweb local privilege escalation (fix)

From
Nanako Shiraishi <nanako3@lavabit.com>
Date
Dec 20, 2008, 11:26 UTC
Message-ID
<20081220202648.6117@nanako3.lavabit.com>
Quoting Jakub Narebski <jnareb@gmail.com>:
Show 18 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Current gitweb has a possible local privilege escalation bug that allows a
>> malicious repository owner to run a command of his choice by specifying
>> diff.external configuration variable in his repository and running a
>> crafted gitweb query.
>> 
>> Recent (post 1.4.3) gitweb itself never generates a link that would result
>> in such a query, and the safest and cleanest fix to this issue is to
>> simply drop the support for it.  Maintenance release v1.6.0.6, v1.5.6.6,
>> v1.5.5.6 and v1.5.4.7 are already available at k.org (see the announcement
>> for v1.6.0.6 I sent out a few minutes ago), and the master branch and
>> others pushed out tonight have the same fix.
>
> From what I have found diff.external works only since v1.5.4 (see
> commit cbe02100), so when gitweb started using git-diff for old
> legacy links to not use $tmpdir and /usr/bin/diff -u it wasn't an
> issue...
Sorry, but I do not understand what you are trying to say.
The maintenance releases Junio listed above go only as far back as v1.5.4.X series, so it covers the necessary range of versions, and no further back than that.  Do you see a problem with that?
-- 
Nanako Shiraishi
http://ivory.ap.teacup.com/nanako3/
Message 1 of 1 in “Re: [Security] gitweb local privilege escalation (fix)”
  1. Nanako ShiraishiDec 20, 2008

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.