WWBN AVideo через фиксацию c3edcc274c389816d434acadac07ee78eaf330c1 содержит сохраненную уязвимость межсайтового скриптинга в поле профиля пользователя donationLink. User::setDonationLink() (objects/user.php) сохраняет значение, а save() проверяет его только с помощью filter_var(..., FILTER_VALIDATE_URL), который принимает такие строки, как http://evil.example/"onmouseover=alert(document.domain)//, тогда как getDonationLink() применяет только Strip_tags() и не кодирует двойные кавычки. плагин/CustomizeUser/actionButton.php отображает значение, не закодированное в атрибуте <a href="...">, и эта кнопка включается из view/modeYoutubeBottom.php на странице просмотра, когда включена опция CustomizeUserallowDonationLink. Прошедший проверку подлинности пользователь, который обновляет свой профиль через объекты/userUpdate.json.php, может, таким образом, выйти из атрибута href и внедрить обработчик событий, который выполняет JavaScript в браузере любого посетителя, включая администратора, который просматривает видео злоумышленника и взаимодействует с кнопкой пожертвования (например, наводит курсор на нее).
На момент сообщения проблема не была устранена.
Показать оригинальное описание (EN)
WWBN AVideo through commit c3edcc274c389816d434acadac07ee78eaf330c1 contains a stored cross-site scripting vulnerability in the user 'donationLink' profile field. User::setDonationLink() (objects/user.php) stores the value and save() validates it only with filter_var(..., FILTER_VALIDATE_URL), which accepts strings such as http://evil.example/"onmouseover=alert(document.domain)//, while getDonationLink() applies only strip_tags() and does not encode double quotes. plugin/CustomizeUser/actionButton.php echoes the value unencoded into an <a href="..."> attribute, and that button is included from view/modeYoutubeBottom.php on the watch page when the CustomizeUser option allowDonationLink is enabled. An authenticated user who updates their own profile via objects/userUpdate.json.php can therefore break out of the href attribute and inject an event handler that executes JavaScript in the browser of any visitor—including an administrator—who views the attacker's videos and interacts with (for example, hovers over) the donation button. The issue was unfixed at the time of reporting.
Характеристики атаки
Последствия
Строка CVSS v4.0