
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.

Scanner de vulnerabilidades rápido baseado em YAML, com motor de detecção orientado por templates para testes de segurança automatizados em aplicações web, APIs, redes, DNS e infraestrutura em nuvem.

Scanner de segurança de aplicações web de código aberto para detecção automatizada de vulnerabilidades, testes de penetração manuais e testes de segurança de API com um motor de intercepção baseado em 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 repositório contém o componente scanner da Greenbone Community Edition.