GHSA-6hg4-vp5q-47mw CakePHP allows direct access of prefixed controller actions

Not scored Published

Attackers can bypass authorization checks to access restricted controller actions via unconventional URL paths in CakePHP applications.

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

What is GHSA-6hg4-vp5q-47mw?

GHSA-6hg4-vp5q-47mw is a missing authorization vulnerability in cakephp/cakephp, published on 20 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Unconventional URL paths would allow direct access to prefixed actions without setting the correct request parameters.

Which versions are affected by GHSA-6hg4-vp5q-47mw?

16 open source packages ship an affected version, including cakephp/cakephp.

PackageAffectedFixed in
cakephp/cakephp PackagistFrom 2.0.02.0.99
cakephp/cakephp PackagistFrom 2.0.02.0.99
cakephp/cakephp PackagistFrom 2.1.02.1.99
cakephp/cakephp PackagistFrom 2.1.02.1.99
cakephp/cakephp PackagistFrom 2.2.02.2.99
cakephp/cakephp PackagistFrom 2.2.02.2.99
10 more packages
cakephp/cakephp PackagistFrom 2.3.02.3.99
cakephp/cakephp PackagistFrom 2.3.02.3.99
cakephp/cakephp PackagistFrom 2.4.02.4.99
cakephp/cakephp PackagistFrom 2.4.02.4.99
cakephp/cakephp PackagistFrom 2.5.02.5.9
cakephp/cakephp PackagistFrom 2.5.02.5.9
cakephp/cakephp PackagistFrom 2.6.02.6.11
cakephp/cakephp PackagistFrom 2.6.02.6.11
cakephp/cakephp PackagistFrom 2.7.02.7.2
cakephp/cakephp PackagistFrom 2.7.02.7.2

How do I fix GHSA-6hg4-vp5q-47mw?

Upgrade cakephp/cakephp to a fixed version for your release line: 2.0.99, 2.1.99, 2.2.99 or 2.3.99.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is GHSA-6hg4-vp5q-47mw being exploited?

There is no known exploitation of GHSA-6hg4-vp5q-47mw in the wild and no public exploit code.

Sources

Is GHSA-6hg4-vp5q-47mw in your software?

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

Check your SBOMs for free