StarCitizenWiki mediawiki-extensions-EmbedVideo
EmbedVideo Extension: Stored XSS via malformed src url with $wgEmbedVideoRequireConsent enabled
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 4.1.0
Fixed in 4.1.0
Mitigation
Upgrade mediawiki-extensions-EmbedVideo to 4.1.0 or later.
References
- Vendor advisory github.com/StarCitizenWiki/mediawiki-extension…
- Patch github.com/StarCitizenWiki/mediawiki-extension…
- Release notes github.com/StarCitizenWiki/mediawiki-extension…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.