Deny invalid path

Review Request #2422 — Created April 4, 2023 and submitted — Latest diff uploaded

aklitzing@gmail.com
grim/hgkeeper
default
2421
2424
grim

If an authenticated user calls hg init hg.host.com/dummy/../../../etc
it will create the repository in another root directory if the process of
hgkeeper has permissions for this.
This could be an attack to the server.

Also hgkeeper admin repository can be overriden like this.
hg init ssh://hg.host.com/dummy/../hgkeeper/keys



Commits

Files

    Loading...