Re: [RFC] submodule: munge paths to submodule git directories

2019-01-17 Thread Stefan Beller
On Thu, Jan 17, 2019 at 9:32 AM Jeff King wrote: > > On Mon, Jan 14, 2019 at 05:25:07PM -0800, Jonathan Nieder wrote: > > > I've put a summary in https://crbug.com/git/28 to make this easier to > > pick up where we left off. Summary from there of the upstream review: > > > > 1. Using urlencoding

Re: [RFC] submodule: munge paths to submodule git directories

2019-01-17 Thread Jeff King
On Mon, Jan 14, 2019 at 05:25:07PM -0800, Jonathan Nieder wrote: > I've put a summary in https://crbug.com/git/28 to make this easier to > pick up where we left off. Summary from there of the upstream review: > > 1. Using urlencoding to escape the slashes is fine, but what if we >want to esc

Re: [RFC] submodule: munge paths to submodule git directories

2019-01-14 Thread Jonathan Nieder
Hi, In August, 2018, Brandon Williams wrote: > Commit 0383bbb901 (submodule-config: verify submodule names as paths, > 2018-04-30) introduced some checks to ensure that submodule names don't > include directory traversal components (e.g. "../"). > > This addresses the vulnerability identified in

Re: [RFC] submodule: munge paths to submodule git directories

2018-08-07 Thread Junio C Hamano
Brandon Williams writes: > Introduce a function "strbuf_submodule_gitdir()" which callers can use > to build a path to a submodule's gitdir. This allows for a single > location where we can munge the submodule name (by url encoding it) > before using it as part of a path. I am not sure about th

Re: [RFC] submodule: munge paths to submodule git directories

2018-08-07 Thread Jonathan Nieder
Hi, Brandon Williams wrote: > Commit 0383bbb901 (submodule-config: verify submodule names as paths, > 2018-04-30) introduced some checks to ensure that submodule names don't > include directory traversal components (e.g. "../"). > > This addresses the vulnerability identified in 0383bbb901 but th

[RFC] submodule: munge paths to submodule git directories

2018-08-07 Thread Brandon Williams
Commit 0383bbb901 (submodule-config: verify submodule names as paths, 2018-04-30) introduced some checks to ensure that submodule names don't include directory traversal components (e.g. "../"). This addresses the vulnerability identified in 0383bbb901 but the root cause is that we use submodule n