CVE-2020-26253 .dev domains treated as local in Kirby

Medium 6.8 Published Updated

Attackers can register the first admin account on Kirby CMS sites using .dev domains or behind reverse proxies, bypassing the local installation security block.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-26253?

CVE-2020-26253 is a medium-severity vulnerability in getkirby kirby, published on 8 Dec 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Kirby is a CMS. In Kirby CMS (getkirby/cms) before version 3.3.6, and Kirby Panel before version 2.5.14 there is a vulnerability in which the admin panel may be accessed if hosted on a .dev domain. In order to protect new installations on public servers that don't have an admin account for the Panel yet, we block account registration there by default. This is a security feature, which we implemented years ago in Kirby 2. It helps to avoid that you forget registering your first admin account on a public server. In this case – without our security block – someone else might theoretically be able to find your site, find out it's running on Kirby, find the Panel and then register the account first. It's an unlikely situation, but it's still a certain risk. To be able to register the first Panel account on a public server, you have to enforce the installer via a config setting. This helps to push all users to the best practice of registering your first Panel account on your local machine and upload it together with the rest of the site. This installation block implementation in Kirby versions before 3.3.6 still assumed that .dev domains are local domains, which is no longer true. In the meantime, those domains became publicly available. This means that our installation block is no longer working as expected if you use a .dev domain for your Kirby site. Additionally the local installation check may also fail if your site is behind a reverse proxy. You are only affected if you use a .dev domain or your site is behind a reverse proxy and you have not yet registered your first Panel account on the public server and someone finds your site and tries to login at `yourdomain.dev/panel` before you register your first account. You are not affected if you have already created one or multiple Panel accounts (no matter if on a .dev domain or behind a reverse proxy). The problem has been patched in Kirby 3.3.6. Please upgrade to this or a later version to fix the vulnerability.

Weakness: CWE-346

Which versions are affected by CVE-2020-26253?

4 open source packages ship an affected version, including getkirby/cms and getkirby/panel. It affects 2 products.

PackageAffectedFixed in
getkirby/cms PackagistFrom 3.0.03.3.6
getkirby/cms PackagistFrom 3.0.03.3.6
getkirby/panel PackagistAll versions2.5.14
getkirby/panel PackagistAll versions2.5.14

Products include Getkirby Kirby, Getkirby Panel.

How do I fix CVE-2020-26253?

Upgrade getkirby/cms to 3.3.6 or later.

Is CVE-2020-26253 being exploited?

There is no known exploitation of CVE-2020-26253 in the wild and no public exploit code.

Sources

Also known as GHSA-2ccx-2gf3-8xvv.

Is CVE-2020-26253 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free