CVE-2021-21276
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.
Does this matter?
A public exploit is published in Exploit-DB and the impact is critical, while EPSS rates exploitation at 7.2%. Anyone can run this; patch or mitigate before the next change window and check exposed instances for signs of use.
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.
- CVSS 3.1
- 9.3 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N
- EPSS
- 7.25% probability · 95th percentile
- Public exploits
- 1 in Exploit-DB · first 6 April 2023
- CISA KEV
- Not listed
- Weakness
- CWE-863: Incorrect authorisation
- Affected
- polrproject/polr
- Source
- security-advisories@github.com
In plain terms
It can be reached over a network with no login and no help from a user. On a system exposed to the internet, a patch or a network control is all that stands in the way.
- Reached from
- Over a network. If the affected system can be reached from the internet, so can the flaw.
- Effort
- Nothing outside the attacker's control has to line up, so an attack can be repeated reliably.
- Login needed
- None. No login is needed.
- Someone else involved
- No. Nobody has to click, open or approve anything.
- At risk
- Reading data: serious. Changing data: limited. Stopping the service: none.
- Beyond the affected system
- Yes. The effect can reach systems other than the one that has the flaw.
Read from the CVSS 3.1 vector above. It describes the flaw itself, not how your own systems are set up.
The first public exploit in Exploit-DB is dated 6 April 2023, about 2 years after the record was published.
EPSS 7.2% since 5 December 2026; no change recorded yet. The dashed line is the ten per cent mark our analysts treat as “patch before the next change window”. Points are recorded when the score first appears and whenever it moves by a percentage point or more.
Public exploits (1)
Entries in Exploit-DB that cite this CVE. Links go to the Exploit-DB page and to the file in the public repository; nothing is hosted here. A verified tick means the Exploit-DB team confirmed the exploit works against the stated version.
Where to go from here
One vulnerability is rarely the whole question. These are free, and none of them asks for an account.
By email
Our briefing by email: what changed, what to patch and what it means for a UK organisation. Written for the people who have to act on it.
References
- http://packetstormsecurity.com/files/171743/POLR-URL-2.3.0-Shortener-Admin-Takeover.html
- https://github.com/cydrobolt/polr/commit/b1981709908caf6069b4a29dad3b6739c322c675Patch, Third Party Advisory
- https://github.com/cydrobolt/polr/releases/tag/2.3.0Release Notes, Third Party Advisory
- https://github.com/cydrobolt/polr/security/advisories/GHSA-vg6w-8w9v-xxqcThird Party Advisory
- http://packetstormsecurity.com/files/171743/POLR-URL-2.3.0-Shortener-Admin-Takeover.html
- https://github.com/cydrobolt/polr/commit/b1981709908caf6069b4a29dad3b6739c322c675Patch, Third Party Advisory
- https://github.com/cydrobolt/polr/releases/tag/2.3.0Release Notes, Third Party Advisory
- https://github.com/cydrobolt/polr/security/advisories/GHSA-vg6w-8w9v-xxqcThird Party Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA, exploits from Exploit-DB. Refreshed daily. Download this record as JSON.