id: attitude-theme-open-redirect

info:
  name: WordPress Attitude 1.1.1 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: WordPress Attitude theme 1.1.1 contains an open redirect vulnerability via the goto.php endpoint. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  reference:
    - https://cxsecurity.com/issue/WLB-2020030185
  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: wordpress,wp-theme,redirect,vuln

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

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