Multiple vulnerabilities in W3 Total Cache plugin for WordPress

Published: 2019-05-07 | Updated: 2019-05-07
Severity Medium
Patch available YES
Number of vulnerabilities 3
CVE ID N/A
CWE ID CWE-20
CWE-918
CWE-79
Exploitation vector Network
Public exploit Public exploit code for vulnerability #2 is available.
Public exploit code for vulnerability #3 is available.
Vulnerable software W3 Total Cache Subscribe
Vendor Frederick Townes

Security Advisory

1) Input validation error

Severity: Low

CVSSv3: 3.8 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C]

CVE-ID: N/A

CWE-ID: CWE-20 - Improper Input Validation

Description

The vulnerability allows a remote attacker to bypass certain security restrictions.

The vulnerability exists due to insufficient validation of "openssl_verify" result in "/services/MessageValidator/MessageValidator.php". A remote attacker can create a specially crafted certificate and bypass cryptographic check.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

W3 Total Cache: 0.5, 0.6, 0.7, 0.7.5, 0.7.5.1, 0.7.5.2, 0.8, 0.8.5, 0.8.5.1, 0.8.5.2, 0.9.0, 0.9.1, 0.9.1.1, 0.9.1.2, 0.9.1.3, 0.9.2, 0.9.2.1, 0.9.2.2, 0.9.2.3, 0.9.2.4, 0.9.2.5, 0.9.2.6, 0.9.2.7, 0.9.2.8, 0.9.2.9, 0.9.2.10, 0.9.2.11, 0.9.3, 0.9.4, 0.9.4.1, 0.9.5, 0.9.5.1, 0.9.5.2, 0.9.5.3, 0.9.5.4, 0.9.6, 0.9.7, 0.9.7.1, 0.9.7.2, 0.9.7.3

CPE External links

https://plugins.trac.wordpress.org/changeset/2081515/w3-total-cache#file21

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.

2) Server-Side Request Forgery (SSRF)

Severity: Medium

CVSSv3: 5.2 [CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N/E:P/RL:O/RC:C] [PCI]

CVE-ID: N/A

CWE-ID: CWE-918 - Server-Side Request Forgery (SSRF)

Description

The disclosed vulnerability allows a remote attacker to perform SSRF attacks.

The vulnerability exists due to insufficient validation of user-supplied input in the opcache_flush_file() function that calls file_exists() function on attacker-controlled data. A remote attacker can send a specially crafted HTTP request to the "/wp-content/plugins/w3-total-cache/pub/opcache.php" URL and trick the application to initiate requests to arbitrary systems.

Successful exploitation of this vulnerability may allow a remote attacker gain access to sensitive data, located in the local network or send malicious requests to other servers from the vulnerable system.

Example:

curl 'http://[host]/wp-content/plugins/w3-total-cache/pub/opcache.php' --data 'nonce=974ca6ad15021a6668e7ae02e1be551c&command=flush_file&file=[TARGET_URL]'

Mitigation

Install updates from vendor's website.

Vulnerable software versions

W3 Total Cache: 0.5, 0.6, 0.7, 0.7.5, 0.7.5.1, 0.7.5.2, 0.8, 0.8.5, 0.8.5.1, 0.8.5.2, 0.9.0, 0.9.1, 0.9.1.1, 0.9.1.2, 0.9.1.3, 0.9.2, 0.9.2.1, 0.9.2.2, 0.9.2.3, 0.9.2.4, 0.9.2.5, 0.9.2.6, 0.9.2.7, 0.9.2.8, 0.9.2.9, 0.9.2.10, 0.9.2.11, 0.9.3, 0.9.4, 0.9.4.1, 0.9.5, 0.9.5.1, 0.9.5.2, 0.9.5.3, 0.9.5.4, 0.9.6, 0.9.7, 0.9.7.1, 0.9.7.2, 0.9.7.3

CPE External links

https://plugins.trac.wordpress.org/changeset/2081515/w3-total-cache#file24

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.

3) Cross-site scripting

Severity: Medium

CVSSv3: 5.5 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P/RL:O/RC:C] [PCI]

CVE-ID: N/A

CWE-ID: CWE-79 - Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Description

The disclosed vulnerability allows a remote attacker to perform cross-site scripting (XSS) attacks.

The vulnerability exists due to insufficient sanitization of user-supplied data passed via "command" HTTP POST parameter to "/wp-content/plugins/w3-total-cache/pub/opcache.php" script. A remote attacker can trick the victim to follow a specially crafted link and execute arbitrary HTML and script code in user's browser in context of vulnerable website.

Successful exploitation of this vulnerability may allow a remote attacker to steal potentially sensitive information, change appearance of the web page, perform phishing and drive-by-download attacks.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

W3 Total Cache: 0.5, 0.6, 0.7, 0.7.5, 0.7.5.1, 0.7.5.2, 0.8, 0.8.5, 0.8.5.1, 0.8.5.2, 0.9.0, 0.9.1, 0.9.1.1, 0.9.1.2, 0.9.1.3, 0.9.2, 0.9.2.1, 0.9.2.2, 0.9.2.3, 0.9.2.4, 0.9.2.5, 0.9.2.6, 0.9.2.7, 0.9.2.8, 0.9.2.9, 0.9.2.10, 0.9.2.11, 0.9.3, 0.9.4, 0.9.4.1, 0.9.5, 0.9.5.1, 0.9.5.2, 0.9.5.3, 0.9.5.4, 0.9.6, 0.9.7, 0.9.7.1, 0.9.7.2, 0.9.7.3

CPE External links

https://plugins.trac.wordpress.org/changeset/2081515/w3-total-cache#file24

Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



ImmuniWeb® AI Platform for Application Security Testing