id: eatery-restaurant-open-redirect

info:
  name: WordPress Eatery 2.2 - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: |
    WordPress Eatery theme 2.2 contains an open redirect vulnerability. The theme accepts a user-controlled input that specifies a link to an external site. 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-2020030183
  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,wp

http:
  - method: GET
    path:
      - "{{BaseURL}}/wp-content/themes/eatery/nav.php?-Menu-=https://interact.sh/"

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