id: odoo-cms-redirect

info:
  name: Odoo CMS - Open Redirect
  author: 0x_Akoko
  severity: medium
  description: Odoo CMS 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-2021020143
    - https://www.odoo.com/page/security-nonvuln-redirectors
  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: odoo,redirect

http:
  - method: GET
    path:
      - "{{BaseURL}}/website/lang/en_US?r=https://interact.sh/"

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