Exploit databaseDownload repository ZIP
GH-df89f1ed9b59b29c8462c13e9ad6a612
bluefire-redteam-cybersecurity/bluefire-sharepoint-cve-2025-53770
Sources for CVE-2025-53770
27 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files4
bluefire-redteam-cybersecurity/bluefire-sharepoint-cve-2025-53770Revision b582538d099f
- ↑..Parent directory
- detect-vulnerability.ps1
- generate-ciso-report.ps1
- hybrid-ioc-scan.sh
- remediate-vulnerability.ps1
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/detect-vulnerability.ps1
PowerShell · 2,875 bytes<#
Bluefire Redteam - SharePoint CVE-2025-53770 Detection Script
Version: 1.0
Date: July 2025
#>
Write-Host "`n🔍 Bluefire Redteam - Starting Detection for CVE-2025-53770..."
# --- Detect SharePoint version ---
try {
$versionKey = "HKLM:\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0"
$installedVersion = (Get-ItemProperty $versionKey).Version
Write-Host "✅ Detected SharePoint Version: $installedVersion"
$current = [version]$installedVersion
$patched2019 = [version]"16.0.10417.20027"
$patched2016 = [version]"16.0.5508.1000"
if (($current -lt $patched2019) -and ($current.Major -eq 16 -and $current.Build -gt 10000)) {
Write-Warning "❌ Your SharePoint 2019 is likely vulnerable. Apply KB5002754 or newer."
} elseif (($current -lt $patched2016) -and ($current.Major -eq 16 -and $current.Build -lt 10000)) {
Write-Warning "❌ Your SharePoint 2016 is likely vulnerable. Apply KB5002744 or newer."
} else {
Write-Host "✅ SharePoint version appears patched."
}
} catch {
Write-Warning "⚠️ Unable to determine SharePoint version from registry."
}
# --- Check AMSI integration ---
try {
$amsiReg = "HKLM:\SOFTWARE\Microsoft\Shared Tools\Web Server Extensions\16.0\WSS\Diagnostics"
$amsiEnabled = (Get-ItemProperty $amsiReg -ErrorAction SilentlyContinue).EnableAmsiIntegration
if ($amsiEnabled -eq 1) {
Write-Host "✅ AMSI Integration is ENABLED."
} else {
Write-Warning "❌ AMSI is DISABLED. Consider enabling to block unauthenticated RCE."
}
} catch {
Write-Warning "⚠️ Could not check AMSI integration status."
}
# --- Check for dropped web shell file ---
$paths = @(
"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\TEMPLATE\LAYOUTS",
"C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\TEMPLATE\LAYOUTS"
)
foreach ($p in $paths) {
if (Test-Path "$p\spinstall0.aspx") {
Write-Warning "❌ Found malicious file: $p\spinstall0.aspx"
} else {
Write-Host "✅ No spinstall0.aspx found in: $p"
}
}
# --- Look for suspicious PowerShell execution by w3wp.exe ---
Write-Host "`n🔍 Scanning for suspicious encoded PowerShell from w3wp.exe..."
$events = Get-WinEvent -FilterHashtable @{LogName='Security'; Id=4688; StartTime=(Get-Date).AddDays(-7)} |
Where-Object {
$_.Message -like "*w3wp.exe*" -and $_.Message -like "*powershell*" -and $_.Message -like "*EncodedCommand*"
}
if ($events.Count -gt 0) {
Write-Warning "❌ Suspicious PowerShell activity detected from w3wp.exe:"
$events | Select-Object -First 5 | ForEach-Object { Write-Host $_.Message "`n" }
} else {
Write-Host "✅ No suspicious PowerShell execution found."
}
Write-Host "`n✅ Detection completed. Review warnings above and proceed to remediation if necessary."