背景
Oracle 7月更新中,修复了Weblogic Web Service Test Page中一处任意文件上传漏洞,Web Service Test Page 在“生产模式”下默认不开启,所以该漏洞有一定限制。
利用该漏洞,可以上传任意jsp文件,进而获取服务器权限。
复现过程
查看密码
sudo docker-composer logs
登录后台页面,点击
base_domain的配置,在“高级”中开启“启用 Web 服务测试页”选项访问
http://your-ip:7001/ws_utc/config.do,设置Work Home Dir为如下路径/u01/oracle/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_internal/com.oracle.webservices.wls.ws-testclient-app-wls/4mcj4y/war/css然后点击安全 -> 增加,然后上传webshell,这里使用了冰蝎的jsp马。

使用bp抓包,查看返回的时间戳

然后访问
http://your-ip:7001/ws_utc/css/config/keystore/[时间戳]_[文件名],即可执行webshell:
参考链接
http://github.com/vulhub/vulhub/tree/master/weblogic/CVE-2018-2894/