{
  "Name": "Struts2 032 Apache Struts CVE-2016-3081 Remote Code Execution Vulnerability",
  "Description": "Apache Struts 2.3.19 to 2.3.20.2, 2.3.21 to 2.3.24.1, and 2.3.25 to 2.3.28, when Dynamic Method Invocation is enabled, allow remote attackers to execute arbitrary code via method: prefix, related to chained expressions.",
  "Product": "Struts2",
  "Homepage": "http://struts.apache.org/",
  "DisclosureDate": "2016-04-26",
  "Author": "gp827782797@qq.com",
  "FofaQuery": "url_ext=action || url_ext=do",
  "GobyQuery": "url_ext=action || url_ext=do",
  "Level": "",
  "Impact": "",
  "Recommendation": "",
  "References": null,
  "RealReferences": [
    "http://packetstormsecurity.com/files/136856/Apache-Struts-2.3.28-Dynamic-Method-Invocation-Remote-Code-Execution.html",
    "http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20160527-01-struts2-en",
    "http://www.oracle.com/technetwork/security-advisory/cpujul2016-2881720.html",
    "http://www.oracle.com/technetwork/security-advisory/cpuoct2016-2881722.html",
    "http://www.rapid7.com/db/modules/exploit/linux/http/struts_dmi_exec",
    "http://www.rapid7.com/db/modules/exploit/multi/http/struts_dmi_exec",
    "http://www.securityfocus.com/bid/87327",
    "http://www.securityfocus.com/bid/91787",
    "http://www.securitytracker.com/id/1035665",
    "https://struts.apache.org/docs/s2-032.html",
    "https://www.exploit-db.com/exploits/39756/",
    "https://nvd.nist.gov/vuln/detail/CVE-2016-3081",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-3081"
  ],
  "HasExp": true,
  "ExpParams": [
    {
      "Name": "AttackType",
      "Type": "select",
      "Value": "goby_shell_linux,cmd"
    },
	{
      "Name": "cmd",
      "Type": "input",
	  "show": "AttackType=cmd",
      "Value": "whoami"
    }
  ],
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": [
    "AND",
    {
      "Request": {
        "data": "",
        "data_type": "text",
        "follow_redirect": true,
        "method": "GET",
        "uri": "/"
      },
      "ResponseTest": {
        "checks": [
          {
            "bz": "",
            "operation": "==",
            "type": "item",
            "value": "200",
            "variable": "$code"
          }
        ],
        "operation": "AND",
        "type": "group"
      }
    }
  ],
  "ExploitSteps": null,
  "Tags": null,
  "CVEIDs": [
    "CVE-2016-3081"
  ],
  "CVSSScore": "8.1",
  "AttackSurfaces": {
    "Application": null,
    "Support": ["Struts2"],
    "Service": null,
    "System": null,
    "Hardware": null
  },
  "Disable": false
}