id: weekender-newspaper-open-redirect

info:
  name: WordPress Weekender Newspaper 9.0 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: WordPress Weekender Newspaper theme 9.0 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.
  reference:
    - https://cxsecurity.com/issue/WLB-2020040103
  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-plugin,redirect

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/weekender/friend.php?id=aHR0cHM6Ly9pbnRlcmFjdC5zaA=="

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