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.00106
    epss-percentile: 0.43227
    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

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: 490a0046304402204a67e55916a5c68a4c25a80a03b441ca3b166d0d17bcc6ac3bf92910d85fdc1c022069c9975bf54d7ebe9cb121693f3147983dce3adc932262779fd7da1ca205ef83:922c64590222798bb761d5b6d8e72950