{
  "Name": "Struts2 S2-057 RCE (CVE-2018-11776)",
  "Description": "Apache Struts versions 2.3 to 2.3.34 and 2.5 to 2.5.16 suffer from possible Remote Code Execution when alwaysSelectFullNamespace is true (either by user or a plugin like Convention Plugin) and then: results are used with no namespace and in same time, its upper package have no or wildcard namespace and similar to results, same possibility when using url tag which doesn't have value and action set and in same time, its upper package have no or wildcard namespace.",
  "Product": "Struts2",
  "Homepage": "http://struts.apache.org/",
  "DisclosureDate": "2018-08-22",
  "Author": "itardc@163.com",
  "FofaQuery": "url_ext=action || url_ext=do",
  "GobyQuery": "url_ext=action || url_ext=do",
  "Level": "3",
  "Impact": "A remote user can execute arbitrary code on the target system.",
  "Recommendation": "",
  "References": [
    "http://www.arubanetworks.com/assets/alert/ARUBA-PSA-2018-005.txt",
    "http://www.oracle.com/technetwork/security-advisory/alert-cve-2018-11776-5072787.html",
    "http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html",
    "http://www.securityfocus.com/bid/105125",
    "http://www.securitytracker.com/id/1041547",
    "http://www.securitytracker.com/id/1041888",
    "https://cwiki.apache.org/confluence/display/WW/S2-057",
    "https://github.com/hook-s3c/CVE-2018-11776-Python-PoC",
    "https://lgtm.com/blog/apache_struts_CVE-2018-11776",
    "https://lists.apache.org/thread.html/r6d03e45b81eab03580cf7f8bb51cb3e9a1b10a2cc0c6a2d3cc92ed0c@%3Cannounce.apache.org%3E",
    "https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2018-0012",
    "https://security.netapp.com/advisory/ntap-20180822-0001/",
    "https://security.netapp.com/advisory/ntap-20181018-0002/",
    "https://www.exploit-db.com/exploits/45260/",
    "https://www.exploit-db.com/exploits/45262/",
    "https://www.exploit-db.com/exploits/45367/",
    "https://www.oracle.com/security-alerts/cpujul2020.html",
    "https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html",
    "https://nvd.nist.gov/vuln/detail/CVE-2018-11776",
    "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2018-11776",
    "https://github.com/vulhub/vulhub/tree/master/struts2/s2-057",
    "https://github.com/Ivan1ee/struts2-057-exp"
  ],
  "HasExp": true,
  "ExpParams": [
    {
      "name": "AttackType",
      "type": "select",
      "value": "cmd,goby_shell_linux"
    },
    {
      "name": "cmd",
      "type": "input",
      "value": "whoami",
      "show": "AttackType=cmd"
    }
  ],
  "ExpTips": {
    "Type": "",
    "Content": ""
  },
  "ScanSteps": null,
  "ExploitSteps": null,
  "Tags": ["rce"],
  "CVEIDs": [
    "CVE-2018-11776"
  ],
  "CVSSScore": "8.1",
  "AttackSurfaces": {
    "Application": null,
    "Support": ["Struts2"],
    "Service": null,
    "System": null,
    "Hardware": null
  }
}