Zafiyet.live Keşfet. Değerlendir. Düzelt. Doğrula.
  • Son 7 gün
  • CWE-116

CVE-2026-83559

Apache Wicket JavaScriptUtils#escapeQuotes ters eğik çizgiyi kaçırmıyor, JavaScript enjeksiyonu riski

Apache Software Foundation Apache Wicket

Yüksek 7,4 CVSS 4.0
Yayımlandı
Güncellendi
2 Kas 2026
Açık yaşı
0 gün
Kaydı açan
apache

Yönetici özeti

Bu açık, web uygulamasındaki kullanıcıların tarayıcısında saldırganın kendi kodunun çalışmasına izin verebilir. Bu, müşteri hesaplarının ele geçirilmesi ve veri güveninin zedelenmesi gibi iş riskleri doğurur. Etkilenen sürümler kullanılıyorsa güncelleme öncelikli olarak planlanmalıdır.

ÖzetTürkçe

Apache Wicket'ın JavaScriptUtils#escapeQuotes metodu, tırnak işaretlerinin önüne ters eğik çizgi eklerken ters eğik çizginin kendisini kaçırmaz. Bu nedenle değerin içinde ters eğik çizgiyle birlikte gelen bir tırnak, JavaScript metin değerini erken kapatabilir. Etkilenen sürümler 8.0.0–8.19.0, 9.0.0–9.24.0 ve 10.0.0–10.11.0 arasındaki Apache Wicket sürümleridir; bu metodu, saldırganın etkileyebildiği veriyi JavaScript metin değerine yerleştirmek için kullanan uygulamalar risk altındadır.

Saldırgan ne yapabilir?

Saldırgan, kaçışı bozan bir değer göndererek kendi JavaScript kodunu uygulamanın kökeninde ve kullanıcının oturumunda çalıştırabilir; bu da oturum bilgilerinin çalınmasına ya da kullanıcı adına işlem yapılmasına yol açabilir.

Kaynaktaki açıklama (İngilizce)

Improper encoding or escaping of output in Apache Wicket.

org.apache.wicket.core.util.string.JavaScriptUtils#escapeQuotes() replaces each single quote in its input with a backslash and a single quote, and each double quote with a backslash and a double quote, so that the value can be placed inside a JavaScript string literal. It does not escape the backslash, which is the character that has to be escaped, and escaped first, for the rest of that escaping to hold. A value that already holds a backslash immediately before a quote therefore ends up with two backslashes in front of that quote: the first escapes the second, the quote itself is left unescaped, and it closes the literal. Whatever the value carries after that point is no longer text but JavaScript, and it runs in the application's origin and in the session of the user looking at the page. The method is public, is not deprecated, and its documentation states that its result can be part of a JavaScript call such as an alert; the only limitation it notes concerns JSON values, which need different escaping.

An application is affected wherever it calls the method itself and places the result inside a JavaScript string literal, from its own code or from a component of its own or of a third party, and the value it escapes holds data an attacker can influence. There is no further condition, and no component of Wicket has to be involved: the application is using the method for what its documentation offers, and the method does not deliver it.

Two components shipped with Wicket Extensions pass a value through the method. org.apache.wicket.extensions.ajax.markup.html.AjaxEditableLabel writes the editor's first error feedback message into a single-quoted JavaScript string literal in the Ajax response, so an application is affected through that component where the message shown for a failed edit holds data an attacker can influence, whether that is the submitted value itself or another variable the application sets on the validation error. A validation message can carry the submitted value, because input is a message variable that every form component supplies for its own validation errors, and the documentation shows overriding a validator's message to include it; none of the message bundles shipped with Wicket interpolates it, so an application that has not written such a message is not affected through this component. org.apache.wicket.extensions.ajax.markup.html.repeater.AjaxListPanel passes the serialized markup tag of an appended component through the method and is not affected: the tag comes from the panel's own markup file, and a quote in any of its attribute values, the component's markup id included, is written as a character reference by the tag serialization and cannot close the literal.

This issue affects Apache Wicket: from 8.0.0 through 8.19.0, from 9.0.0 through 9.24.0, from 10.0.0 through 10.11.0. Users of Apache Wicket 7.x or older, which are no longer supported, should upgrade to a supported version.

Users are recommended to upgrade to version 8.20.0, 9.25.0 or 10.12.0, which fix the issue.

Ne yapmalı?

  1. Apache Wicket'ı etkilenen sürüm dallarına göre güncelleyin: 8.x kullanıyorsanız 8.20.0, 9.x kullanıyorsanız 9.25.0, 10.x kullanıyorsanız 10.12.0 sürümüne geçin. Genel öneri
  2. Uygulamanın JavaScriptUtils#escapeQuotes metodunu doğrudan çağırıp sonucu JavaScript metin değerlerine yerleştirip yerleştirmediğini kontrol edin; yerleştiriyorsa güncelleme sonrasında da bu kullanımı gözden geçirin. Genel öneri
  3. Güncelleme yapılamıyorsa, saldırganın etkileyebildiği verileri JavaScript metin değerlerine koymadan önce ayrı bir doğrulama ve kaçış katmanından geçirin. Genel öneri

Ek önlemler

  • Üçüncü taraf Wicket bileşenlerini ve AjaxEditableLabel gibi Ajax bileşenlerini kullanıyorsanız, bunların güncel sürümlerini de takip edin. Genel öneri
  • Uygulama günlüklerinde ve web sunucusu günlüklerinde olağandışı uzun veya ters eğik çizgi ve tırnak içeren istekleri izleyin. Genel öneri

Bu açık kişisel verilerin sızmasına yol açabilir. Sistemlerinizde kullanıldığından şüpheleniyorsanız KVKK'daki ihlal bildirimi yükümlülüğünüzü (Kurul'a 72 saat içinde bildirim) hukuk danışmanınızla birlikte değerlendirin. Bu not hukuki tavsiye değildir.

Etkilenen sürümler1 yazılım

YazılımEtkilenenDüzeltildiği sürüm
Apache Software Foundation Apache Wicket ≥ 8.0.0, ≤ 8.19.0 –
≥ 9.0.0, ≤ 9.24.0 –
≥ 10.0.0, ≤ 10.11.0 –

Kaynaklar3 kaynak

Kayıt geçmişi

  1. Yayımlandı

İlgili açıklar

Türkçe metin, resmi kayıtlardaki bilgilerle yapay zekâ yardımıyla yazıldı ve yayından önce otomatik kontrollerden geçti. Bir değişikliği uygulamadan önce üreticinin duyurusuna mutlaka bakın.