CWE-470 · CWE-502
YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes. A perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope. What DESTROY does depends on the classes the process has loaded. With File::Temp::Dir from core Perl, it can delete a directory tree the document names.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2017-20285
CVSS 9.1/10 · KRİTİK · 05.10.2026
CWE: CWE-470, CWE-502
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 AÇIK NEDİR?
Insecure Deserialization
Açıklama: YAML versions before 1.30 for Perl allow a loaded document to trigger the DESTROY method of arbitrary classes. A perl/hash:Class tag blesses a hash into the class it names. The document supplies the object's fields, and Perl calls DESTROY when it goes out of scope.
⚡ SALDIRI ZİNCİRİ
Saldırı adımları:
1. HTTP isteğinde serialize edilmiş obje tespit edilir.
2. PHP: phpggc Laravel/RCE1 'id' | base64 ile payload üretilir.
3. Java: ysoserial CommonsCollections6 'id' > payload.bin
4. Payload istek içine yerleştirilip sunucuya gönderilir.
5. Reverse shell payload ile tam kontrol.
🔧 Araçlar: ysoserial, phpggc, Burp Suite Deserialization Scanner
🗺️ MITRE ATT&CK: T1190, T1059
🌍 GERÇEK DÜNYA ETKİSİ
Tüm gizli veriler okunabilir/çalınabilir; sistem verileri değiştirilebilir/silinebilir.
🛡️ ÇÖZÜM VE MİTİGASYON
→ Üretici tarafından yayınlanan yamayı uygula.
→ Yama öncesi: servis erişimini VPN arkasına al veya IP whitelist uygula.
→ WAF kuralı ekle, anormal trafik için IDS alert oluştur.
⚠️ ACİLİYET
🚨 HEMEN (24-48 saat) — Uzaktan, kimlik doğrulamasız, düşük karmaşıklık.
────────────────────────────────────────
[Kural Tabanlı Analiz] [💡 config.json dosyasına ai_key (Claude: sk-ant-... veya Groq: gsk_...) ekleyerek gerçek AI analizi kullanabilirsiniz]
[⚠️ AI key mevcut ancak istek başarısız — kural tabanlı analiz kullanıldı]