Axis2 高版本Getshell方法

admin 2023年10月14日02:03:16评论8 views字数 1503阅读5分0秒阅读模式

前言:

在一次SRC挖掘中,之前有人对这个站Getshell,再次测试中碰见Axis2无法登录,网上Getshell方法都是基于1.6.2版本getshell,在高版本axis2中, service.xml 配置发生了变化,利用了URL解析错误,同时修改 aar包 service.xml 文件 最终成功RCE。

url解析特性:https://xz.aliyun.com/t/10799

过程:

使用burp替换功能.

Axis2 高版本Getshell方法

替换之前访问如下:

Axis2 高版本Getshell方法


替换之后。

Axis2 高版本Getshell方法


然后使用弱口令进行登录.
admin axis2

Axis2 高版本Getshell方法

从Github下载一个 https://github.com/Lexus89/AxisInvoker/blob/master/build/AxisInvoker.aar
axis2 webshell
不出意外,提示:

Axis2 高版本Getshell方法


通过查看axis2版本号发现为,

Axis2 高版本Getshell方法

绕过 The ServiceClass object does not implement the required method in the following form: OMElement info(OMElement e) 方法。

插件1.6.2生成的service.xml内容如下:

<service name="HelloServer" >
<description>
Please Type your service description here
</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://www.w3.org/2004/08/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass">com.hongbo.server.HelloServer</parameter>
</service>

插件1.7.4生成的service.xml内容如下:

<service name="HelloServer" >
<description>
Please Type your service description here
</description>
<messageReceivers>
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-only" class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver" />
<messageReceiver mep="http://www.w3.org/ns/wsdl/in-out" class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>
</messageReceivers>
<parameter name="ServiceClass">com.hongbo.server.HelloServer</parameter>

</service>
修改 services.xml文件.

Axis2 高版本Getshell方法


成功RCE.

Axis2 高版本Getshell方法

获得奖励:

Axis2 高版本Getshell方法

来源:Axis2 高版本Getshell方法 感谢【133****7364

原文始发于微信公众号(衡阳信安):Axis2 高版本Getshell方法

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2023年10月14日02:03:16
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Axis2 高版本Getshell方法http://cn-sec.com/archives/2110869.html

发表评论

匿名网友 填写信息