Access Restriction Bypass Affecting mediawiki/core package, versions >=1.32.0, <1.35.2<1.31.12


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.19% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Access Restriction Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-MEDIAWIKICORE-1244522
  • published9 Apr 2021
  • disclosed9 Apr 2021
  • creditUnknown

Introduced: 9 Apr 2021

CVE-2021-30159  (opens in a new tab)
CWE-284  (opens in a new tab)

How to fix?

Upgrade mediawiki/core to version 1.35.2, 1.31.12 or higher.

Overview

mediawiki/core is a Free software wiki application developed by the Wikimedia Foundation and others.

Note: This package is not maintained on Packagist anymore, but newer releases exist.

Affected versions of this package are vulnerable to Access Restriction Bypass. 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.

References

CVSS Scores

version 3.1