EmbedVideo Extension - это расширение MediaWiki, которое добавляет функцию парсера, называемую ev, и различные теги парсера для встраивания видеоклипов из различных служб обмена видео. До 4.1.0, с включенной конфигурацией $wgEmbedVideoRequireConsent по умолчанию, includes/EmbedService/EmbedHtmlFormatter.php возвращает JSON через includes/EmbedService/AbstractEmbedService.php в атрибут data-mw-iframeconfig без безопасного избежания единичных кавычек. Идентификаторы Attacker-controlled archiveorg и wistia или sharepoint URLs, принятые валидаторами затронутых служб, могут привести к тому, что вывод getUrl() прекратит действие атрибута и введет атрибуты обработчика событий в сгенерированный элемент фигуры.
Пользователь, способный редактировать вики-страницу, может хранить JavaScript, который выполняется в вики-источнике, когда посетители отображают страницу. Эта проблема исправлена в версии 4.1.0.
Показать оригинальное описание (EN)
The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev and various parser tags for embedding video clips from various video sharing services. Prior to 4.1.0, with the default $wgEmbedVideoRequireConsent configuration enabled, includes/EmbedService/EmbedHtmlFormatter.php places JSON returned through includes/EmbedService/AbstractEmbedService.php into the data-mw-iframeconfig attribute without safely escaping single quotes. Attacker-controlled archiveorg identifiers and wistia or sharepoint URLs accepted by the affected service validators can cause getUrl() output to terminate the attribute and inject event-handler attributes into the generated figure element. A user able to edit a wiki page can store JavaScript that executes in the wiki origin when visitors render the page. This issue is fixed in version 4.1.0.
Характеристики атаки
Последствия
Строка CVSS v3.1