CVE-2023-46725 FoodCoopShop Server-Side Request Forgery vulnerability

High 8.1 Published Updated

Attackers can exploit SSRF in FoodCoopShop to access internal networks and read arbitrary files via redirect tricks.

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-46725?

CVE-2023-46725 is a high-severity server-side request forgery vulnerability in foodcoopshop, published on 2 Nov 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

FoodCoopShop is open source software for food coops and local shops. Versions starting with 3.2.0 prior to 3.6.1 are vulnerable to server-side request forgery. In the Network module, a manufacturer account can use the `/api/updateProducts.json` endpoint to make the server send a request to an arbitrary host. This means that the server can be used as a proxy into the internal network where the server is. Furthermore, the checks on a valid image are not adequate, leading to a time of check time of use issue. For example, by using a custom server that returns 200 on HEAD requests, then return a valid image on first GET request and then a 302 redirect to final target on second GET request, the server will copy whatever file is at the redirect destination, making this a full SSRF. Version 3.6.1 fixes this vulnerability.

Weakness: CWE-367, CWE-918

Which versions are affected by CVE-2023-46725?

2 open source packages ship an affected version, including foodcoopshop/foodcoopshop. It affects 1 product.

PackageAffectedFixed in
foodcoopshop/foodcoopshop PackagistFrom 3.2.03.6.1
foodcoopshop/foodcoopshop PackagistFrom 3.2.03.6.1

Products include Foodcoopshop Foodcoopshop.

How do I fix CVE-2023-46725?

Upgrade foodcoopshop/foodcoopshop to 3.6.1 or later.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2023-46725 being exploited?

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

Sources

Also known as GHSA-jhww-fx2j-3rf7.

Is CVE-2023-46725 in your software?

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

Check your SBOMs for free