CVE-2023-28640 Permissions bypass in Apiman could enable authenticated attacker to unpermitted API Key

Medium 6.4 Published Updated

Authenticated attackers can access unauthorized API keys by guessing URLs, potentially allowing use of other users' resources without permission.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-28640?

CVE-2023-28640 is a medium-severity missing authorization vulnerability in apiman, published on 27 Mar 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Apiman is a flexible and open source API Management platform. Due to a missing permissions check, an attacker with an authenticated Apiman Manager account may be able to gain access to API keys they do not have permission for if they correctly guess the URL, which includes Organisation ID, Client ID, and Client Version of the targeted non-permitted resource. While not trivial to exploit, it could be achieved by brute-forcing or guessing common names. Access to the non-permitted API Keys could allow use of other users' resources without their permission (depending on the specifics of configuration, such as whether an API key is the only form of security). Apiman 3.1.0.Final resolved this issue. Users are advised to upgrade. The only known workaround is to restrict account access.

Weakness: CWE-862, CWE-269

Which versions are affected by CVE-2023-28640?

2 open source packages ship an affected version, including io.apiman:apiman-manager-api-rest-impl. It affects 1 product.

PackageAffectedFixed in
io.apiman:apiman-manager-api-rest-impl MavenAll versions3.1.0.Final
io.apiman:apiman-manager-api-rest-impl MavenAll versions3.1.0.Final

Products include Apiman Apiman.

How do I fix CVE-2023-28640?

Upgrade io.apiman:apiman-manager-api-rest-impl to 3.1.0.Final or later.

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

Is CVE-2023-28640 being exploited?

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

Sources

Also known as GHSA-m6f8-hjrv-mw5f.

Is CVE-2023-28640 in your software?

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

Check your SBOMs for free