Page MenuHomePhabricator

OAuth doesn't validate length of oarc_version (CVE-2021-31555)
Closed, ResolvedPublic

Description

-- Version of the application
oarc_version varbinary(32) NOT NULL,

It's 32 chars, but we don't validate the length.

				'version'      => '/^\d{1,3}(\.\d{1,2}){0,2}(-(dev|alpha|beta))?$/',

Technically blocks T108255: Enable MariaDB/MySQL's Strict Mode. See also T277387: Use composer/semver to validate oauth registration versions.

Event Timeline

Reedy triaged this task as Low priority.Mar 13 2021, 9:24 PM

Change 671707 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/OAuth@master] Better validation of oauth_registered_consumer.oarc_version

https://gerrit.wikimedia.org/r/671707

Change 671707 merged by jenkins-bot:
[mediawiki/extensions/OAuth@master] Better validation of oauth_registered_consumer.oarc_version

https://gerrit.wikimedia.org/r/671707

Legoktm assigned this task to Reedy.

Change 676364 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/OAuth@REL1_35] Better validation of oauth_registered_consumer.oarc_version

https://gerrit.wikimedia.org/r/676364

Change 676365 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/OAuth@REL1_31] Better validation of oauth_registered_consumer.oarc_version

https://gerrit.wikimedia.org/r/676365

Change 676364 merged by jenkins-bot:

[mediawiki/extensions/OAuth@REL1_35] Better validation of oauth_registered_consumer.oarc_version

https://gerrit.wikimedia.org/r/676364

Change 676365 merged by jenkins-bot:

[mediawiki/extensions/OAuth@REL1_31] Better validation of oauth_registered_consumer.oarc_version

https://gerrit.wikimedia.org/r/676365

sbassett renamed this task from OAuth doesn't validate length of oarc_version to OAuth doesn't validate length of oarc_version (CVE-2021-31555).Apr 23 2021, 7:05 PM