{"id":"MSF-multi--http--struts_code_exec","name":"Apache Struts Remote Command Execution","description":"This module exploits a remote command execution vulnerability in Apache Struts versions < 2.2.0. This issue is caused by a failure to properly handle unicode characters in OGNL extensive expressions passed to the web server. By sending a specially crafted request to the Struts application it is possible to bypass the \"#\" restriction on ParameterInterceptors by using OGNL context variables. Bypassing this restriction allows for the execution of arbitrary Java code.","cves":["CVE-2010-1870"],"author":"bannedit, Meder Kydyraliev","published":"2010-07-13","platform":"Linux,Windows","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/90dfbaa741421d0179f9f371109c215d49400444/modules/exploits/multi/http/struts_code_exec.rb","path":"modules/exploits/multi/http/struts_code_exec.rb","revision":"90dfbaa741421d0179f9f371109c215d49400444","filename":"struts_code_exec.rb","vulnerabilities":[{"id":"CVE-2010-1870","state":"PUBLISHED","title":null,"titleSource":null,"description":"The OGNL extensive expression evaluation capability in XWork in Struts 2.0.0 through 2.1.8.1, as used in Atlassian Fisheye, Crucible, and possibly other products, uses a permissive whitelist, which allows remote attackers to modify server-side context objects and bypass the \"#\" protection mechanism in ParameterInterceptors via the (1) #context, (2) #_memberAccess, (3) #root, (4) #this, (5) #_typeResolver, (6) #_classResolver, (7) #_traceEvaluations, (8) #_lastEvaluation, (9) #_keepLastEvaluation, and possibly other OGNL context variables, a different vulnerability than CVE-2008-6504.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2010-1870","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2010-1870"},"updatedAt":"2024-08-07T01:35:53.709Z","retrievedAt":"2026-11-26T11:59:15.877Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-multi--http--struts_code_exec.png?v=2","url":"https://exploitbin.com/exploits/MSF-multi--http--struts_code_exec","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--struts_code_exec/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-multi--http--struts_code_exec/code","licenseUrl":"https://exploitbin.com/sources#metasploit"}