id: CVE-2020-26836

info:
  name: SAP Solution Manager - Open Redirect
  author: Gal Nagli,LRVT
  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.
  impact: |
    Attackers can redirect users to malicious websites through crafted links, potentially facilitating phishing attacks or credential theft.
  remediation: |
    Apply security patches or updates provided by SAP to fix the vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2020-26836
    - https://onapsis.com/security-advisories/sap-solution-manager-open-redirect-trace-analysis/
    - http://packetstormsecurity.com/files/163136/SAP-Solution-Manager-7.2-ST-720-Open-Redirection.html
    - http://seclists.org/fulldisclosure/2021/Jun/25
  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
    cve-id: CVE-2020-26836
    cwe-id: CWE-601
    epss-score: 0.08034
    epss-percentile: 0.92216
    cpe: cpe:2.3:a:sap:solution_manager:7.20:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sap
    product: solution_manager
  tags: cve,cve2020,redirect,sap,vuln,vkev

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
        part: header
        words:
          - "Location: https://www.interact.sh"
          - "Location: https://interact.sh"
        condition: or
# digest: 490a0046304402201cfe8a2555aeb1814c7de0900aff6d3c75b05a616c966a768b711f8edac31eff022048b99fd6097ee6ae0c5e725fa3771cc94324e2b6451bbafb72945cf1fd46ba16:922c64590222798bb761d5b6d8e72950