← 返回列表

CentreStack & Triofox 反序列化漏洞(CVE-2025-30406)

单站 seebug.org 入库 2026-11-18T13:58:36

关注

            0

检测 poc:

function Test-CVE-2025-30406 {
    $gladinetPath = "C:\Program Files (x86)\Gladinet Cloud Enterprise"
    $triofoxPath = "C:\Program Files (x86)\Triofox"
    if (Test-Path $gladinetPath) {
        $path = $gladinetPath
    } elseif (Test-Path $triofoxPath) {
        $path = $triofoxPath
    } else {
        Write-Host "[!] Neither Gladinet Cloud Enterprise nor Triofox is installed." -ForegroundColor Yellow
        return
    }
    Write-Host "[*] Scanning installation path: $path" -ForegroundColor Gray
    $vulnHash = 'c81b67c989d4e04dd0b7c51e98258fa9b957de1a66889a835fa53a63a740ccb0'
    $webConfigs = Get-ChildItem $path -Recurse -Filter web.config -ErrorAction SilentlyContinue
    $vulnerableFound = $false
    if (-not $webConfigs) {
        Write-Host "[!] No web.config files found under '$path'" -ForegroundColor Yellow
        return
    }
    foreach ($config in $webConfigs) {
        try {
            [xml]$xml = Get-Content $config.FullName
            $mk = $xml.configuration.'system.web'.machineKey
            if (-not $mk) {
                Write-Host "[*] $($config.FullName): No <machineKey> found" -ForegroundColor DarkGray
                continue
            }
            $combined = $mk.decryptionKey + $mk.validationKey
            $bytes = [Text.Encoding]::UTF8.GetBytes($combined)
            $hash = [BitConverter]::ToString([Security.Cryptography.SHA256]::Create().ComputeHash($bytes)) -replace '-'
            if ($hash -ieq $vulnHash) {
                $vulnerableFound = $true
                Write-Host "[!] $($config.FullName):" -NoNewline
                Write-Host " Vulnerable" -ForegroundColor Red -NoNewline
                Write-Host " to CVE-2025-30406, update machineKey"
            } else {
                Write-Host "[+] $($config.FullName):" -NoNewline
                Write-Host " Protected" -ForegroundColor Cyan -NoNewline
                Write-Host " against CVE-2025-30406"
            }
        }
        catch {
            Write-Host "[!] Error processing '$($config.FullName)': $_" -ForegroundColor Yellow
        }
    }
    if (-not $vulnerableFound) {
        Write-Host "[+] Fully protected against CVE-2025-30406" -ForegroundColor Green
    }
}
Test-CVE-2025-30406

暂无 PoC

暂无临时解决方案

暂无官方解决方案

暂无防护解决方案

关注

              0

          热度
          29349

0

※ 本站提供的任何内容仅供学习代码和服务,不得用于非法用途

原文链接:https://www.seebug.org/vuldb/ssvid-99920