Skip to content

CsEnox/GitLab-Wiki-RCE

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

GitLab-Wiki-RCE

RCE Exploit for Gitlab < 13.9.4

  • RCE via unsafe inline Kramdown options when rendering certain Wiki pages
  • Allows any user with push access to a wiki to execute arbitrary ruby code.

Usage

python3 exploit.py -u root -p password -c "commandhere" -t "http://gitlab.example.com"

Environment

  • Tested on Gitlab 13.9.1 CE
  • Building your own test environment using docker :
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.9.1-ce.0

Credits

Exploit-db

About

RCE Exploit for Gitlab < 13.9.4

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages