关联漏洞
标题:
Microsoft Windows 输入验证错误漏洞
(CVE-2013-3900)
描述:Microsoft Windows是美国微软(Microsoft)公司的一套个人设备使用的操作系统。 Microsoft Windows WinVerifyTrust 函数处理可移植可执行文件(PE)的Windows Authenticode签名验证的方式中存在输入验证错误漏洞。匿名攻击者可以通过修改经过签名的现有可执行文件以利用文件的未验证部分来利用此漏洞,从而向文件添加恶意代码,而无需使签名无效。成功利用此漏洞的攻击者可以完全控制受影响的系统。攻击者可随后安装程序;查看、更改或删除数据;或者创建拥有完
介绍
```powershell
# CVE-2013-3900 Remediation Script
# Define registry paths for both 32-bit and 64-bit configurations
$regPaths = @(
"HKLM:\Software\Microsoft\Cryptography\Wintrust\Config",
"HKLM:\Software\Wow6432Node\Microsoft\Cryptography\Wintrust\Config"
)
# Function to add or update the registry key
function Set-EnableCertPaddingCheck {
param (
[string]$path
)
if (!(Test-Path $path)) {
New-Item -Path $path -Force | Out-Null
}
Set-ItemProperty -Path $path -Name "EnableCertPaddingCheck" -Value 1 -Type DWord
}
# Apply the fix to both registry paths
foreach ($path in $regPaths) {
Set-EnableCertPaddingCheck -path $path
}
# Confirm changes
Write-Host "Registry keys updated successfully!" -ForegroundColor Green
# Verify the changes
foreach ($path in $regPaths) {
$value = Get-ItemProperty -Path $path | Select-Object -ExpandProperty EnableCertPaddingCheck -ErrorAction SilentlyContinue
if ($value -eq 1) {
Write-Host "Verification successful for $path: EnableCertPaddingCheck = 1" -ForegroundColor Green
} else {
Write-Host "Verification failed for $path!" -ForegroundColor Red
}
}
# Restart the system to apply changes
Write-Host "Restarting system in 10 seconds to apply changes..." -ForegroundColor Yellow
Start-Sleep -Seconds 10
Restart-Computer -Force
```
文件快照
[4.0K] /data/pocs/a5c265f74ab5d635419998a3bb0744f130374cac
└── [1.3K] README.md
0 directories, 1 file
备注
1. 建议优先通过来源进行访问。
2. 如果因为来源失效或无法访问,请发送邮箱到 f.jinxu#gmail.com 索取本地快照(把 # 换成 @)。
3. 神龙已为您对POC代码进行快照,为了长期维护,请考虑为本地POC付费,感谢您的支持。