id: CVE-2021-24210

info:
  name: WordPress PhastPress <1.111 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: |
    WordPress PhastPress plugin before 1.111 contains an open redirect vulnerability. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  impact: |
    An attacker can exploit this vulnerability to redirect users to malicious websites, leading to potential phishing attacks or the execution of other malicious activities.
  remediation: |
    Update the WordPress PhastPress plugin to version 1.111 or later to mitigate the vulnerability.
  reference:
    - https://wpscan.com/vulnerability/9b3c5412-8699-49e8-b60c-20d2085857fb
    - https://plugins.trac.wordpress.org/changeset/2497610/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-24210
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2021-24210
    cwe-id: CWE-601
    epss-score: 0.00129
    epss-percentile: 0.47553
    cpe: cpe:2.3:a:kiboit:phastpress:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: kiboit
    product: phastpress
    framework: wordpress
  tags: cve2021,cve,redirect,wpscan,wordpress,kiboit

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/phastpress/phast.php?service=scripts&src=https%3A%2F%2Finteract.sh"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_\.@]*)interact\.sh.*$'
# digest: 4a0a00473045022100c7e928f6a3b9a148371bcdefbd845247a23cfa66136ca5a145ebfa9f160f30820220705b682a2b44522ea92d8af09893a4ebbe742609686f4415d83b4639cbd32b63:922c64590222798bb761d5b6d8e72950