CVE-2026-8705
Received Received - Intake
SQL Injection in ClearSale Total WordPress Plugin

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: Wordfence

Description
The ClearSale Total plugin for WordPress is vulnerable to SQL Injection via the `pagseguro[metodo]` POST parameter of the `clearsale_total_push` AJAX action in all versions up to, and including, 3.4.2. The handler is registered for unauthenticated users (`wp_ajax_nopriv_clearsale_total_push`), and although a `wp_verify_nonce()` check exists, the failing branch's `die()` is commented out so execution continues regardless of nonce validity. On PHP < 8.0 the attacker-supplied `$metodo` value bypasses the `switch ($metodo) { case 4: ... }` guard via loose type juggling (the string `"4 AND SLEEP(5)"` compares equal to integer `4`), reaching an unquoted `UPDATE wp_cs_total_dadosextras SET metodo=$metodo, ...` query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. Exploitation requires the target server to be running PHP < 8.0.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-24
AI Q&A
2026-06-24
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
clearsale total to 3.4.2 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

The ClearSale Total plugin for WordPress has a SQL Injection vulnerability in the `pagseguro[metodo]` POST parameter of the `clearsale_total_push` AJAX action. This vulnerability affects all versions up to and including 3.4.2.

The AJAX handler is accessible to unauthenticated users and includes a nonce verification check that is ineffective because the failure branch's termination code is commented out, allowing execution to continue regardless of nonce validity.

On PHP versions below 8.0, an attacker can exploit loose type juggling by submitting a specially crafted string (e.g., "4 AND SLEEP(5)") that bypasses a switch-case guard and reaches an unquoted SQL UPDATE query. This allows the attacker to append additional SQL commands to extract sensitive data from the database.

Exploitation requires the target server to be running PHP versions less than 8.0.

Impact Analysis

This vulnerability allows unauthenticated attackers to perform SQL Injection attacks on the WordPress site using the ClearSale Total plugin.

Attackers can extract sensitive information from the database by injecting additional SQL queries, potentially compromising confidential data.

Because the vulnerability does not require authentication and can be triggered remotely, it poses a significant security risk.

The CVSS base score of 7.5 indicates a high severity impact, specifically affecting confidentiality without impacting integrity or availability.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-8705. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart