CVE-2022-31090

Guzzle <= 6.5.7 and 7.0-7.4.4 - Information Exposure

2022-06-20 00:00
Anonymous

Strategic Overview

Status
Patched in 2.2.3
Affected Plugin
W3 Total Cache
Affected Version
<= 2.2.2
CVSS
7.7High
Weakness type
CWE-200 · Exposure of Sensitive Information to an Unauthorized Actor
CVE
CVE-2022-31090
View all W3 Total Cache vulnerabilities

At a glance

CVE-2022-31090 is a high-severity Exposure of Sensitive Information to an Unauthorized Actor vulnerability in the W3 Total Cache WordPress plugin, affecting versions <= 2.2.2. It carries a CVSS score of 7.7 (reachable over the network; low attack complexity; high confidentiality impact). The issue is fixed in version 2.2.3; sites on affected versions should update now. Disclosed June 2022.

Vulnerability Overview

Guzzle, an extensible PHP HTTP client. `Authorization` headers on requests are sensitive information. In affected versions when using our Curl handler, it is possible to use the `CURLOPT_HTTPAUTH` option to specify an `Authorization` header. On making a request which responds with a redirect to a URI with a different origin (change in host, scheme or port), if we choose to follow it, we should remove the `CURLOPT_HTTPAUTH` option before continuing, stopping curl from appending the `Authorization` header to the new request. Affected Guzzle 7 users should upgrade to Guzzle 7.4.5 as soon as possible. Affected users using any earlier series of Guzzle should upgrade to Guzzle 6.5.8 or 7.4.5. Note that a partial fix was implemented in Guzzle 7.4.2, where a change in host would trigger removal of the curl-added Authorization header, however this earlier fix did not cover change in scheme or change in port. If you do not require or expect redirects to be followed, one should simply disable redirects all together. Alternatively, one can specify to use the Guzzle steam handler backend, rather than curl. *Please note that while some WordPress plugins and themes may use this as a dependency, they may not be directly exploitable.

Technical Analysis

The vector marks this flaw as remotely reachable over the network, with low attack complexity — no special timing or configuration is needed, and no interaction from a victim user. A successful exploit has high impact on confidentiality.

CWE-200: Exposure of Sensitive Information to an Unauthorized Actor

Reaching this weakness in W3 Total Cache <= 2.2.2 takes a caller who can reach the endpoint. Sensitive information exposure means data the application intended to keep internal is returned to a caller who should not be able to see it.

The disclosed data — credentials, tokens, customer records or internal paths — is usually worth more as material for a follow-up attack than as an end in itself. For W3 Total Cache the fix is 2.2.3: builds <= 2.2.2 are affected, anything from 2.2.3 onward is not.

Remediation

Update to version 2.2.3, or a newer patched version

How does WordSec protect against this?

The fix is the thing that ends this: W3 Total Cache 2.2.3 closes this, and updating the plugin is the step that ends it.

  • Alerts

External References

Related records

Vulnerability data © Defiant, Inc., provided under the Wordfence Intelligence T&C