id: wp-grimag-open-redirect

info:
  name: WordPress Grimag <1.1.1 - Open Redirection
  author: 0x_Akoko
  severity: medium
  description: WordPress Grimag theme before 1.1.1 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.
  remediation: Fixed in 1.1.1.
  reference:
    - https://wpscan.com/vulnerability/db319d4c-7de6-4d36-90e9-86de82e9c03a
  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
    cwe-id: CWE-601
  metadata:
    max-request: 1
  tags: wp-theme,redirect,wpscan,wordpress,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/Grimag/go.php?https://interact.sh"

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