Description
Semantic MediaWiki 3.0.0 before 7.4.1 contains a stored cross-site scripting vulnerability in Special:Ask with the ElasticStore backend, allowing users with edit rights to inject script through unescaped native_result and score_set output. Attackers can store markup in a Text property or subobject name, then lure victims including administrators to a crafted Special:Ask link to execute script in their session.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| SemanticMediaWiki | SemanticMediaWiki | 3.0.0 – < 7.4.1 | 7.4.1 |
References
- GitHub Security Advisory (GHSA-7j96-w9cc-r7rq) vendor-advisory
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/commit/fca9922835f4353e67a71cfef4d527d46e7c3ad3 patch
- SemanticMediaWiki 7.4.1 Release Notes release-notes
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/7.4.0/src/MediaWiki/Specials/SpecialAsk.php#L512-L521 technical-description
- https://github.com/SemanticMediaWiki/SemanticMediaWiki/blob/7.4.0/src/Query/ScoreSet.php#L128-L140 technical-description
- VulnCheck Advisory: Semantic MediaWiki 3.0.0 before 7.4.1 Stored XSS via Special:Ask Debug Output third-party-advisory