id: CVE-2021-25111

info:
  name: WordPress English Admin <1.5.2 - Open Redirect
  author: akincibor
  severity: medium
  description: WordPress English Admin plugin before 1.5.2 contains an open redirect vulnerability. The plugin does not validate the admin_custom_language_return_url before redirecting users to it. An attacker can 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 phishing attacks or the execution of other malicious activities.
  remediation: |
    Update to the latest version of the WordPress English Admin plugin (1.5.2 or higher) to fix the open redirect vulnerability.
  reference:
    - https://wpscan.com/vulnerability/af548fab-96c2-4129-b609-e24aad0b1fc4
    - https://nvd.nist.gov/vuln/detail/CVE-2021-25111
    - 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-25111
    cwe-id: CWE-601
    epss-score: 0.01767
    epss-percentile: 0.82902
    cpe: cpe:2.3:a:english_wordpress_admin_project:english_wordpress_admin:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 1
    vendor: english_wordpress_admin_project
    product: english_wordpress_admin
    framework: wordpress
  tags: cve2021,cve,unauth,wpscan,wp-plugin,redirect,wordpress,wp,english_wordpress_admin_project,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-admin/admin-ajax.php?action=heartbeat&admin_custom_language_toggle=1&admin_custom_language_return_url=https://interact.sh"

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