Star Citizen EmbedVideo Extension Stored XSS through wikitext caused by usage of non-reserved data attributes
High severity
GitHub Reviewed
Published
Sep 24, 2025
in
StarCitizenWiki/mediawiki-extensions-EmbedVideo
•
Updated Sep 24, 2025
Description
Published to the GitHub Advisory Database
Sep 24, 2025
Reviewed
Sep 24, 2025
Last updated
Sep 24, 2025
Summary
The EmbedVideo extension allows adding arbitrary attributes to an HTML element, allowing for stored XSS through wikitext.
Details
The attributes of an iframe are populated with the value of an unreserved data attribute (
data-iframeconfig
) that can be set via wikitext:https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/ext.embedVideo.videolink.js#L5-L20
Similar code is also present here:
https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/440fb331a84b2050f4cc084c1d31d58a1d1c202d/resources/modules/iframe.js#L139-L155
It is possible to execute JS through attributes like
onload
oronmouseenter
.PoC
Impact
Arbitrary HTML can be inserted into the DOM by any user, allowing for JavaScript to be executed.
References