CVE-2021-21276

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-21276
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21276.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-21276
Related
  • GHSA-vg6w-8w9v-xxqc
Published
2021-02-01T15:15:13.260Z
Modified
2025-11-20T11:32:29.939953Z
Severity
  • 9.3 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N CVSS Calculator
Summary
[none]
Details

Polr is an open source URL shortener. in Polr before version 2.3.0, a vulnerability in the setup process allows attackers to gain admin access to site instances, even if they do not possess an existing account. This vulnerability exists regardless of users' settings. If an attacker crafts a request with specific cookie headers to the /setup/finish endpoint, they may be able to obtain admin privileges on the instance. This is caused by a loose comparison (==) in SetupController that is susceptible to attack. The project has been patched to ensure that a strict comparison (===) is used to verify the setup key, and that /setup/finish verifies that no users table exists before performing any migrations or provisioning any new accounts. This is fixed in version 2.3.0. Users can patch this vulnerability without upgrading by adding abort(404) to the very first line of finishSetup in SetupController.php.

References

Affected packages

Git / github.com/cydrobolt/polr

Affected ranges

Type
GIT
Repo
https://github.com/cydrobolt/polr
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.1.1
0.11

1.*

1.0.0-b-d
1.0.0b
1.0.0b-c
1.1.0
1.2.1
1.2.4-be
1.2.5-beta
1.3.0-stable
1.3.1
1.3.2b
1.3.3
1.4.1
1.4.1-beta
1.5.1

2.*

2.0.0
2.0.0a1
2.0.0a2
2.0.0b1
2.0.0rc1
2.1.0
2.1.1
2.2.0

v0.*

v0.1.5-RC2-KI
v0.15-RC2-KI
v0.2-Alpha
v0.2.3-Alpha
v0.22-Alpha
v0.23-Alpha

Database specific

source

"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21276.json"