CVE-2024-25107 Cross-Site Scripting in WikiDiscover

Medium 4.9 Published Updated

An attacker with editinterface rights can inject malicious scripts via unescaped interface messages in WikiDiscover, leading to XSS.

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-25107?

CVE-2024-25107 is a medium-severity cross-site scripting vulnerability in miraheze WikiDiscover, published on 8 Feb 2024. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

WikiDiscover is an extension designed for use with a CreateWiki managed farm to display wikis. On Special:WikiDiscover, the `Language::date` function is used when making the human-readable timestamp for inclusion on the wiki_creation column. This function uses interface messages to translate the names of months and days. It uses the `->text()` output mode, returning unescaped interface messages. Since the output is not escaped later, the unescaped interface message is included on the output, resulting in an XSS vulnerability. Exploiting this on-wiki requires the `(editinterface)` right. This vulnerability has been addressed in commit `267e763a0`. Users are advised to update their installations. There are no known workarounds for this vulnerability.

Weakness: CWE-79

Which versions are affected by CVE-2024-25107?

It affects 1 product.

Products include Miraheze Wikidiscover.

How do I fix CVE-2024-25107?

No fix has been published for CVE-2024-25107 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-25107 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-25107 exists.

Sources

Also known as GHSA-cfcf-94jv-455f.

Is CVE-2024-25107 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free