CVE-2021-43846 CSRF forgery protection bypass for Spree::OrdersController#populate

Medium 5.3 Published Updated

Attackers can add items to a user's cart without consent via CSRF, affecting Solidus e-commerce storefronts.

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

What is CVE-2021-43846?

CVE-2021-43846 is a medium-severity vulnerability in solidusio solidus, published on 20 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

`solidus_frontend` is the cart and storefront for the Solidus e-commerce project. Versions of `solidus_frontend` prior to 3.1.5, 3.0.5, and 2.11.14 contain a cross-site request forgery (CSRF) vulnerability that allows a malicious site to add an item to the user's cart without their knowledge. Versions 3.1.5, 3.0.5, and 2.11.14 contain a patch for this issue. The patch adds CSRF token verification to the "Add to cart" action. Adding forgery protection to a form that missed it can have some side effects. Other CSRF protection strategies as well as a workaround involving modifcation to config/application.rb` are available. More details on these mitigations are available in the GitHub Security Advisory.

Weakness: CWE-352

Which versions are affected by CVE-2021-43846?

6 open source packages ship an affected version, including solidus_frontend. It affects 1 product.

PackageAffectedFixed in
solidus_frontend RubyGemsAll versions2.11.14
solidus_frontend RubyGemsAll versions2.11.14
solidus_frontend RubyGemsFrom 3.0.03.0.5
solidus_frontend RubyGemsFrom 3.0.03.0.5
solidus_frontend RubyGemsFrom 3.1.03.1.5
solidus_frontend RubyGemsFrom 3.1.03.1.5

Products include Nebulab Solidus.

How do I fix CVE-2021-43846?

Upgrade solidus_frontend to a fixed version for your release line: 2.11.14, 3.0.5 or 3.1.5.

Is CVE-2021-43846 being exploited?

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

Sources

Also known as GHSA-h3fg-h5v3-vf8m.

Is CVE-2021-43846 in your software?

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

Check your SBOMs for free