Vulnerabilities · 2021 · Mediawiki
CVE-2021-30159
Mediawiki vulnerability
An issue was discovered in MediaWiki before 1.31.12 and 1.32.x through 1.35.x before 1.35.2. Users can bypass intended restrictions on deleting pages in certain "fast double move" situations. MovePage::isValidMoveTarget() uses FOR UPDATE, but it's only called if Title::getArticleID() returns non-zero with no special flags. Next, MovePage::moveToInternal() will delete the page if getArticleID(READ_LATEST) is non-zero. Therefore, if the page is missing in the replica DB, isValidMove() will return true, and then moveToInternal() will unconditionally delete the page if it can be found in the master.
Affected products
Mediawiki, Debian Linux, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Mediawiki runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- phabricator.wikimedia.org/T272386 · Exploit
- lists.debian.org/debian-lts-announce/2021/05/msg00003.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2021/05/msg00006.html · Third Party Advisory
- security.gentoo.org/glsa/202107-40 · Third Party Advisory
- www.debian.org/security/2021/dsa-4889 · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2
- nvd.nist.gov/vuln/detail/CVE-2021-30159
- cve.org/CVERecord?id=CVE-2021-30159
More vulnerabilities in Mediawiki products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.