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,vuln

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: 4a0a0047304502203dbaf52cf884b2994d6956129dc4394d751e422b96bde4acf217e540111ea8880221008ff8cc0e254a74406daa13676d0efc44dcaba64a4bee10c306f0b1be56bba77a:922c64590222798bb761d5b6d8e72950