In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
How to find the remote execution code of Apache Struts through Semmle QL. I believe that many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Preface
In April 2018, a new Apache Struts remote code execution vulnerability was reported. In a Struts-specific configuration, access to a specially crafted URL can trigger this vulnerability. The vulnerability number is CVE-2018-11776 (S2-057). This article describes the process of discovering vulnerabilities.
Mapping attack surface
Many vulnerabilities involve the flow of data from untrusted sources (for example, user input) to a particular location, in which case the data can be exploited in dangerous ways (SQL queries, deserialization, some other interpretation languages, etc.). For specific projects, a good way to start working on such issues is to look at known vulnerabilities in older versions of the software. This gives you an in-depth understanding of the various sources and receiving points you are looking for.
In this case, the author first looked at RCE vulnerabilities S2-032 (CVE-2016-3081), S2-033 (CVE-2016-3687) and S2-037 (CVE-2016-4438). Like many other RCE in Struts, these RCE involve what is considered to be illegal input of OGNL expressions, allowing attackers to run arbitrary code on the server. These three vulnerabilities are particularly interesting not only because they give us some insight into the internal work of Struts, but also because it takes three times to fix the same problem!
All three problems are the result of remote input passed as a parameter to the method OgnlUtil::getValue () through the variable methodName.
String methodName = proxy.getMethod (); / /
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.