CVE-2014-1610 in mediawiki
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5, and 1.19.x before 1.19.11, when DjVu or PDF file upload support is enabled, allows remote attackers to execute arbitrary commands via shell metacharacters in (1) the page parameter to includes/media/DjVu.php; (2) the w parameter (aka width field) to thumb.php, which is not properly handled by includes/media/PdfHandler_body.php; and possibly unspecified vectors in (3) includes/media/Bitmap.php and (4) includes/media/ImageHandler.php.
Affected software: mediawiki
Scores
- CVSS: 6.0 (medium)
- EPSS: 42.78% chance of exploitation in the next 30 days
- CISA KEV: Not listed
- Published: 2014-01-30
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Update MediaWiki to 1.22.2, 1.21.5 or 1.19.11 or later
Patch or upgrade. MediaWiki before 1.22.2, 1.21.5 and 1.19.11 with DjVu or PDF uploads passes thumbnail parameters to a shell, so a user can run commands. The fixed releases escape these values.
Applies to: MediaWiki 1.22.x before 1.22.2, 1.21.x before 1.21.5 and 1.19.x before 1.19.11 with DjVu or PDF uploads enabled.
- Check the version on Special:Version of the wiki.
- Upgrade to a supported MediaWiki release (at least 1.22.2, 1.21.5 or 1.19.11 for those branches) and run maintenance/update.php.
- If the upgrade has to wait, disable DjVu and PDF handling by removing djvu and pdf from $wgFileExtensions and disabling the PdfHandler extension in LocalSettings.php.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.