CVE-2021-21276

Privilege escalation in Polr

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.

Category

9.3
CVSS
Severity: Critical
CVSS 3.1 •
CVSS 2.0 •
EPSS 16.15% Top 10%
Third-Party Advisory github.com Third-Party Advisory github.com Third-Party Advisory github.com
Affected: cydrobolt polr
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2021-21276?
CVE-2021-21276 has been scored as a critical severity vulnerability.
How to fix CVE-2021-21276?
To fix CVE-2021-21276, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2021-21276 being actively exploited in the wild?
It is possible that CVE-2021-21276 is being exploited or will be exploited in a near future based on public information. According to its EPSS score, there is a ~16% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2021-21276?
CVE-2021-21276 affects cydrobolt polr.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.