Description
An issue was discovered in Special:MediaSearch in the MediaSearch extension in MediaWiki through 1.36.2. The suggestion text (a parameter to mediasearch-did-you-mean) was not being properly sanitized and allowed for the injection and execution of HTML and JavaScript via the intitle: search operator within the query.
Remediation
References
Related Vulnerabilities
MySQL CVE-2021-2298 Vulnerability (CVE-2021-2298)
Apache Traffic Server Integer Overflow or Wraparound Vulnerability (CVE-2018-9481)
PHP Use After Free Vulnerability (CVE-2016-5771)
WordPress Plugin Contus HD FLV Player 'process-sortable.php' SQL Injection (1.3)
WordPress Plugin Real-Time Find and Replace Cross-Site Request Forgery (3.9)