id: sap-redirect

info:
  name: SAP Solution Manager - Open Redirect
  author: Gal Nagli
  severity: medium
  description: SAP Solution Manager contains an open redirect vulnerability via the logoff endpoint. An attacker can redirect a user to a malicious site and possibly obtain sensitive information, modify data, and/or execute unauthorized operations.
  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: redirect,sap

http:
  - method: GET
    path:
      - "{{BaseURL}}/sap/public/bc/icf/logoff?redirecturl=https://interact.sh"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 302
          - 301
          - 307

      - type: word
        words:
          - "Location: https://www.interact.sh"
          - "Location: https://interact.sh"
        condition: or
        part: header
# digest: 4b0a0048304602210085c838146f457639480c3cc735856198e0f20853783e36867d7838f3c73e54cf0221008e8df43d06a11f8d9a94e703c027f8d60a7a86415c190edd5a7f128a351a31bf:922c64590222798bb761d5b6d8e72950