CVE-2021-21276 Details
Description
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://packetstormsecurity.com/files/171743/POLR-URL-2.3.0-Shortener-Admin-Takeover.html | CVE | |
| https://github.com/cydrobolt/polr/commit/b1981709908caf6069b4a29dad3b6739c322c675 | CVE | PatchThird Party Advisory |
| https://github.com/cydrobolt/polr/releases/tag/2.3.0 | CVE | Release NotesThird Party Advisory |
| https://github.com/cydrobolt/polr/security/advisories/GHSA-vg6w-8w9v-xxqc | CVE | Third Party Advisory |
| http://packetstormsecurity.com/files/171743/POLR-URL-2.3.0-Shortener-Admin-Takeover.html | [email protected] | |
| https://github.com/cydrobolt/polr/commit/b1981709908caf6069b4a29dad3b6739c322c675 | [email protected] | PatchThird Party Advisory |
| https://github.com/cydrobolt/polr/releases/tag/2.3.0 | [email protected] | Release NotesThird Party Advisory |
| https://github.com/cydrobolt/polr/security/advisories/GHSA-vg6w-8w9v-xxqc | [email protected] | Third Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-Other | Weakness Not in a Standard CWE Category | [email protected] |
| CWE-863 | Incorrect Authorization | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| polrproject polr | < 2.3.0 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Apr 6, 2023 | CVE Modified | [email protected] |
| Jul 11, 2022 | Reanalysis | [email protected] |
| Feb 8, 2021 | Initial Analysis | [email protected] |