
C proof-of-concept exploit for CVE-2024-6387, the OpenSSH sshd SIGALRM race condition enabling unauthenticated remote code execution as root on glibc-based Linux.

Escáner de vulnerabilidades rápido basado en YAML con motor de detección impulsado por plantillas para pruebas de seguridad automatizadas en aplicaciones web, APIs, redes, DNS e infraestructura en la nube.

Escáner de seguridad de aplicaciones web de código abierto para detección automatizada de vulnerabilidades, pruebas de penetración manuales y pruebas de seguridad de API con un motor de interceptación basado en proxy.

CVE-2024-6387 exploit targeting a signal handler race condition in the OpenSSH server (sshd) on glibc-based Linux systems. Because async-signal-unsafe functions are called in the SIGALRM handler, the vulnerability allows remote code execution as root.
This vulnerability targets a race condition in the SIGALRM handler in OpenSSH's sshd.
Affected versions: OpenSSH 8.5p1 through 9.8p1.
Vulnerability: Because the vulnerable SIGALRM handler calls async-signal-unsafe functions, remote code execution as root is possible.
protocol="ssh"
The code needs to be compiled into an executable file. Assuming the file is named exploit.c, use the following command to compile it
gcc -o exploit exploit.c
./exploit <ip> <port>
例如:
./exploit 192.168.1.100 22
Este repositorio contiene el componente escáner para Greenbone Community Edition.