Sploitus

Exploit for CVE-2021-22204-Gitlab

kitploit · 2026-08-27

Exploit Code

MARKDOWN42 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-PH-ARM-CVE-2021-22204-GITLAB
# Gitlab-Exiftool-RCE

Оригинальный репозиторий: https://github.com/CsEnox/Gitlab-Exiftool-RCE Благодарности CsEnox. Эксплойт RCE для Gitlab < 13.10.3

  * GitLab Workhorse передает любой файл в ExifTool. Текущая ошибка находится в модуле DjVu ExifTool.
  * Любой, кто может загрузить изображение, проходящее через GitLab Workhorse, может добиться RCE с помощью специально созданного файла



## Использование

root@kitploit:~
    
    
    python3 exploit.py -c "command here" -t http://gitlab.example.com
    

## Окружение

  * Протестировано на Gitlab 13.10.2 Community Edition
  * Создание собственной тестовой среды:



root@kitploit:~
    
    
    export GITLAB_HOME=/srv/gitlab
    
    sudo docker run --detach \
      --hostname gitlab.example.com \
      --publish 443:443 --publish 80:80 \
      --name gitlab \
      --restart always \
      --volume $GITLAB_HOME/config:/etc/gitlab \
      --volume $GITLAB_HOME/logs:/var/log/gitlab \
      --volume $GITLAB_HOME/data:/var/opt/gitlab \
      gitlab/gitlab-ce:13.10.2-ce.0
    

## Авторство