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.03066
    epss-percentile: 0.85916
    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,vuln

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: 4a0a004730450220710cf5cabd3c80f2ee8de87d69159f2a2b6c7357e1c7465248dc47d7bea8c1d0022100df2e3534bf7ab7563550925a810bb5bc71bd7674e00b82d41efd343a6399527d:922c64590222798bb761d5b6d8e72950