CVE-2020-27664: Strapi authorization bypass in proxy endpoint

CVE-2020-27664 · Severity: low · CVSS 3.1 · Published 2021-05-10

Strapi, a popular headless CMS platform used to manage content and APIs, contained an exposed /proxy endpoint that lacked proper authorization checks. An attacker could access this endpoint to proxy arbitrary requests through the Strapi server, potentially bypassing access controls and accessing restricted resources or systems. This vulnerability affects all versions of Strapi prior to 3.2.5.

Technologies: strapi (npm). Vendors: npm.

Quick answers

Is CVE-2020-27664 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2020-27664 being exploited in the wild.
How severe is CVE-2020-27664?
Low severity, with a CVSS score of 3.1, published 10 May 2021.
Which products and versions are affected?
strapi (npm) SEMVER:introduced=0,fixed=3.2.5.
Is there a fix for CVE-2020-27664?
Yes. strapi (npm): upgrade to 3.2.5 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2020-27664 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2020-27664?
Check whether you run strapi (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • strapi (npm): upgrade to 3.2.5 or later
    npm install strapi@3.2.5

Technical details

The vulnerability is an authorization bypass (CWE-862) in the /proxy endpoint of Strapi's admin interface (admin/src/containers/InputModalStepperProvider/index.js). The endpoint accepts a ?url= parameter that allows proxying HTTP requests but did not properly validate authentication or authorization. An attacker can make network requests to the /proxy endpoint without authentication to relay requests to arbitrary URLs, potentially accessing internal systems or exfiltrating data. The vulnerability was fixed in version 3.2.5 by removing the insecure proxy functionality.

Affected products

  • Strapi Strapi before 3.2.5

Identifiers

  • CVE-2020-27664
  • GHSA-7frv-9phw-vrvr

Timeline

  • 2020-10-22: disclosed
  • 2020-10-22: patched: Fixed in version 3.2.5
  • 2021-05-10: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.