GHSA-pqjm-xcp8-wgmm: Ez Platform and Legacy are prone to an insecure interpretation of PHP/PHAR uploads
Noroxi değerlendirmesi
Öncelik: İzleyin (aksiyon skoru 0/100)
- İzlediğimiz kaynaklarda (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) herkese açık istismar kodu ya da sahada sömürü kaydı yok.
- Düzeltilmiş sürüm: ezsystems/ezpublish-legacy (Packagist) 2017.12.4.3, 2018.6.1.4, 2018.9.1.3.
Şimdilik düşük öncelik. ezsystems/ezpublish-legacy (Packagist) 2017.12.4.3, 2018.6.1.4, 2018.9.1.3 ya da daha yeni sürüme yükseltin.
Kaydın verisinden otomatik üretilir: CVSS (NVD ve CNA), CISA KEV ve SSVC, FIRST EPSS, istismar kaynakları, düzeltme sürümleri. Nasıl hesaplıyoruz
Birincil kaynaklar: OSV
The eZ Platform and Legacy are affected by an issue related to how uploaded PHP and PHAR files are handled, and consists of two parts: 1. Web server configuration, and 2. Disabling the PHAR stream wrapper. **1. WEB SERVER CONFIGURATION** The sample web server configuration in our documentation can in some cases allow the execution of uploaded PHP/PHAR code. This can be abused to allow priviledge escalation and breach of content access controls, among other things. Please ensure that your web server will not execute files in directories were files may be uploaded, such as web/var/ and ezpublish_legacy/var/ As an example, here is how you can make Apache return HTTP 403 Forbidden for a number of executable file types in your eZ Platform var directory. Please adapt it to your needs. It is then possible to enable logging of HTTP 403 in a separate log file if you wish, you could do this to see if someone is trying to abuse the server. ``` RewriteEngine On # disable .php(3) and other extensions in the var directory RewriteRule ^var/.*(?i)\.(php3?|phar|phtml|sh|exe|pl|bin)$ - [F] ``` Here is the same configuration, but for the Nginx web server: ``` location ~ ^/var/.*(?i)\.(php3?|phar|phtml|sh|exe|pl|bin)$ { return 403; } ``` **2. DISABLE PHAR STREAM WRAPPER** PHAR archives may be crafted such that its stream wrapper will execute them without being specifically asked to. With such files, any PHP file operation may cause deserialisation and execution. This may happen even if the file name suffix isn't ".phar". Any site that allows file uploads is at risk. Normally eZ Platform has no need for PHAR support. It's only used by Composer, and that is executed separately from eZ Platform. So one way to avoid this vulnerability is to disable the PHAR stream wrapper within eZ Platform. (If you know you need PHAR support, please consider other means to deal with this vulnerability. For example, enabling the wrapper only in those scripts/bundles that have to deal with such files.) Disabling the stream wrapper should be done in: eZ Platform (web/app.php) CLI scripts (bin/console) Legacy (index.php and CLI scripts) To install, use Composer to update to one of the "Resolving versions" mentioned above, or apply these patches manually: https://github.com/ezsystems/ezplatform/commit/9a0c52dc4535e4b3ce379f80222dc53f705a2cfd https://github.com/ezsystems/ezpublish-legacy/commit/d21957bf202b091ab39dfb5be300f6c30be3933e
- Yayın
- 15 May 2024
- Güncelleme
- 29 Kas 2024
- EPSS
- —
- CWE
- CWE-94
Rapor araçları
Aksiyon skoru
0
Şimdilik düşük öncelik.
- CVSS
- 0 / 40 · —
- CISA KEV
- 0 / 30 · Listede değil
- EPSS
- 0 / 30 · —
Bu kayıt değişirse haber alın
- KEV'de değil: sahada sömürü kaydı yok
- Herkese açık istismar kodu kaydı yok
- Düzeltme yayımlandı
Bunlardan biri değişirse günlük e-posta özetinde haber veririz.
Sürümünüz etkileniyor mu? Kontrol edinNoroxi analizi
Sizin ortamınızda ne anlama geliyor?
Yukarıdaki değerlendirme kaydın verisinden otomatik üretilir; ortamınızı bilmez. Bu açığın sizde gerçekten sömürülebilir olup olmadığını ve hangi önlemin yeteceğini ekibimiz sizin sistemlerinizde doğrular.
Bu ürünü kullanıyoruz, yardım isteyinEtkilenen sistemler
Sürümünüz etkileniyor mu?
Ürünü seçip kullandığınız sürümü yazın. Bu kaydın sürüm aralıklarıyla tarayıcınızda karşılaştırılır; sürüm hiçbir yere gönderilmez.
| Üretici | Ürün | CPE |
|---|---|---|
| Packagist | ezsystems/ezpublish-legacy | pkg:composer/ezsystems/ezpublish-legacy |
Paket düzeyi etkilenme
OSV ve GitHub Advisory verisi: ekosistem, paket ve aralık. SBOM eşleşmesi bu tabloyu kullanır.
| Ekosistem | Paket | Etkilenen aralık | Düzeltme |
|---|---|---|---|
| Packagist | ezsystems/ezpublish-legacy | 2011.0.0 itibarıyla · 2017.12.4.3 öncesi | 2017.12.4.3 |
| Packagist | ezsystems/ezpublish-legacy | 2018.6.0 itibarıyla · 2018.6.1.4 öncesi | 2018.6.1.4 |
| Packagist | ezsystems/ezpublish-legacy | 2018.9.0 itibarıyla · 2018.9.1.3 öncesi | 2018.9.1.3 |
| Packagist | ezsystems/ezpublish-legacy | 5.3.0 itibarıyla · 5.3.12.6 öncesi | 5.3.12.6 |
| Packagist | ezsystems/ezpublish-legacy | 5.4.0 itibarıyla · 5.4.12.3 öncesi | 5.4.12.3 |
Aynı üründe
Packagist: tüm kayıtlarAynı birincil ürünün en yüksek skorlu diğer kayıtları.
- GHSA-39j2-4p9j-5w4jEz Platform Object Injection in legacy shop module0İzleyin
- GHSA-9895-26wr-4fgvEZsystems Remote code execution in file uploads0İzleyin
- GHSA-p9mp-vq4v-v5m5eZ Publish Legacy Passwordless login for LDAP users0İzleyin
Bu üründe bundan önce ve sonra yayımlananlar
- ← ÖncekiGHSA-cc2j-92jq-wgjg15 May 2024 · eZ Publish Information disclosure in backend content tree menu0İzleyin
- ← ÖncekiGHSA-82rv-45pc-v28w15 May 2024 · eZ Publish Legacy Patch EZSA-2018-001 for Several vulnerabilities0İzleyin
- ← ÖncekiGHSA-2vh3-cj9j-mcj515 May 2024 · eZ Publish Legacy Cross-site Scripting (XSS) in 'disabled module' error template0İzleyin
Düzeltme
Hangi sürüme geçmeli
Üretici, paket deposu ve Microsoft kayıtlarından derlenen düzeltme sürümleri. Yükseltmeden önce üreticinin notunu doğrulayın.
| Ürün / paket | Düzeltilmiş sürüm | Kaynak |
|---|---|---|
| Packagist:ezsystems/ezpublish-legacy | 2017.12.4.3 | Paket deposu (OSV) |
| Packagist:ezsystems/ezpublish-legacy | 2018.6.1.4 | Paket deposu (OSV) |
| Packagist:ezsystems/ezpublish-legacy | 2018.9.1.3 | Paket deposu (OSV) |
| Packagist:ezsystems/ezpublish-legacy | 5.3.12.6 | Paket deposu (OSV) |
| Packagist:ezsystems/ezpublish-legacy | 5.4.12.3 | Paket deposu (OSV) |
İstismar durumu
Bilinen kamuya açık istismar yok
Şu an kamuya açık bir istismar görülmedi. Bu, güvende olduğunuz anlamına gelmez; yalnızca eşiğin biraz daha yüksek olduğunu gösterir.
Araştırma bağlamı
Pentester ve araştırmacı için: saldırı profili, puan anlaşmazlığı, zaman çizelgesi, yama commit’leri, kredi, varyant ve zincir adayları, bug bounty kapsamı. Hepsi mevcut veriden türetilir; istismar kodu içermez.
Zaman çizelgesi
Yayından bugüne: kavram kanıtı, Metasploit modülü, CISA KEV ve düzeltme kaydı. Tarihler kaynakların bildirdiği tarihlerdir.
Yayın dışında tarihli olay yok.
Yama ve commit bağlantıları
Referanslardaki commit, PR ve diff adresleri. Patch-diff ve varyant avı için başlangıç noktası; istismar değil, düzeltmedir.
Varyant adayları
Aynı üründe aynı zafiyet sınıfı, 18 ay içinde. Yama kök nedeni kapatmadıysa kardeş hata burada olur.
- GHSA-39j2-4p9j-5w4j0 gün araylaEz Platform Object Injection in legacy shop module0İzleyin
- GHSA-9895-26wr-4fgv0 gün araylaEZsystems Remote code execution in file uploads0İzleyin
Bu kayıtta yok: EPSS geçmişi · araştırmacı kredisi · herkese açık ödül programı.
Teknik detay
Bu kayıt için CVSS vektörü yok; saldırı koşulları çıkarılamıyor.
Zayıflık sınıfı (CWE)
CWE-94 · Improper Control of Generation of Code ('Code Injection')Saldırı bağlamı
Bu zafiyet sınıfının (CWE) MITRE CAPEC saldırı desenleri ve ATT&CK teknikleri. Tespit kuralı ve tehdit avı için başlangıç noktası.
Saldırı desenleri (CAPEC)
Değişiklik günlüğü (2)
- Düzeltme✗ → ✓
- CVSS5.5 → —
Takip ettiğiniz kayıtlarda bu değişiklikler bildirim olarak da gelir. →
Referanslar
Tüm referansları göster (5 daha)Daha az göster
- github.com/ezsystems/ezpublish-legacy/commit/d21957bf202b091ab39dfb5be300f6c30be3933e
- github.com/FriendsOfPHP/security-advisories/blob/master/ezsystems/ezpublish-legacy/2018-11-21-1.yaml
- github.com/ezsystems/ezpublish-legacy
- web.archive.org/web/20210614192208/https://share.ez.no/community-project/security-advisories/ezsa-2018-009-do-not-interpret-php-phar-uploads
- share.ez.no/community-project/security-advisories/ezsa-2018-009-do-not-interpret-php-phar-uploads
Üretici bildirimleri ve resmî kayıtlar. İstismar/PoC bağlantıları bilinçli olarak dışarıda bırakıldı.