CVE-2024-47812 Cross-site Scripting (XSS) on Special:RequestImportQueue when displaying request date in ImportDump
Administrators can inject XSS payloads into date messages, allowing attackers to execute scripts against users viewing the import queue.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-47812?
CVE-2024-47812 is a medium-severity cross-site scripting vulnerability in miraheze ImportDump, published on 9 Oct 2024. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
ImportDump is an extension for mediawiki designed to automate user import requests. Anyone who can edit the interface strings of a wiki (typically administrators and interface admins) can embed XSS payloads in the messages for dates, and thus XSS anyone who views Special:RequestImportQueue. This issue has been patched in commit `d054b95` and all users are advised to apply this commit to their branch. Users unable to upgrade may either Prevent access to Special:RequestImportQueue on all wikis, except for the global wiki; and If an interface administrator (or equivalent) level protection is available (which is not provided by default) on the global wiki, protect the affected messages up to that level. This causes the XSS to be virtually useless as users with those rights can already edit Javascript pages. Or Prevent access to Special:RequestImportQueue altogether.
Which versions are affected by CVE-2024-47812?
How do I fix CVE-2024-47812?
No fix has been published for CVE-2024-47812 yet. Limit exposure of the affected software until one is available.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2024-47812 being exploited?
There is no known exploitation of CVE-2024-47812 in the wild and no public exploit code.
Sources
Also known as GHSA-465h-45v4-6fx9.