当前位置:网站首页>XSS labs master shooting range environment construction and 1-6 problem solving ideas
XSS labs master shooting range environment construction and 1-6 problem solving ideas
2022-07-02 11:51:00 【Arvin】
Environment building
1、 Range address
2、 Small leather panel
3、windows machine
4、 Decompress the package , Put it in www Under the table of contents , Then visit
The experimental steps
The first level
Just type it directly :<script>alert('xss')</script>
The second level
"> <script>alert('xss')</script><" Close the front and close the back
The third level
Use the popup statement above , Found to be escaped
Take out the function , It is found that the double quotation marks have been annotated as "
<input name="keyword" value=""><script>alert("xss")</script><"">
It is found that double quotation marks have been escaped , We try to use single quotation marks to bypass , however < It was escaped again , I really did
Input parameters :'><script>alert('xss')</script><'
Page parameters :<input name="keyword" value="" ><script>alert('xss')<="" script><''="">
Check the source code and find a strange parameter
Let's see what he means , The discovery is the escape function
htmlspecialchars
Change the parameter ,' onclick="alert('xxs') '
, It means that when the user clicks the box, a window pops up
It turns single quotation marks into double quotation marks, which is exactly what we need , Change it poc' onclick='alert(/xxs/) '
too !
Of course , You can also use another event to bypass :'onmouseover='alert(/ Pop up when the mouse hovers /)'
, Similarly, replace single quotation marks with slashes !
When testing, it is recommended to set up a local environment , Only local people can pop up , The shooting range can pop up
The fourth level
Apply the above code , I can't find it
f12 Check , It is found that the front and back ends are double quotation marks , Let's try changing single quotation marks into double quotation marks
" οnclick="alert(/xxs/) "
After clicking the box , Pass the test successfully
The fifth level
Old rules , laurels
It's strange here , Why is the first letter escaped , Fuzzy test tried .
Look at the source code , The hard core matched here
Because of laziness ,<script> and on I won't use the function at the beginning , ha-ha
I use a Try the label
"><a href=javascript:alert(1)>
Click the bracket after , Straight through !
The sixth level
Old rules , laurels
"><a href=javascript:alert(1)>
there href It's translated into hr_ef, Use case to bypass
Look at the source code , There are two more matching items
First come here. , Later update
边栏推荐
- 抖音海外版TikTok:正与拜登政府敲定最终数据安全协议
- 亚马逊云科技 Community Builder 申请窗口开启
- 可升级合约的原理-DelegateCall
- How to Create a Beautiful Plots in R with Summary Statistics Labels
- Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
- 可昇級合約的原理-DelegateCall
- Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
- Implementation of address book (file version)
- 在连接mysql数据库的时候一直报错
- php 二维、多维 数组打乱顺序,PHP_php打乱数组二维数组多维数组的简单实例,php中的shuffle函数只能打乱一维
猜你喜欢
Pyqt5+opencv project practice: microcirculator pictures, video recording and manual comparison software (with source code)
MySQL linked list data storage query sorting problem
2022年遭“挤爆”的三款透明LED显示屏
Flesh-dect (media 2021) -- a viewpoint of material decomposition
在连接mysql数据库的时候一直报错
亚马逊云科技 Community Builder 申请窗口开启
Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
由粒子加速器产生的反中子形成的白洞
How to Visualize Missing Data in R using a Heatmap
随机推荐
由粒子加速器产生的反中子形成的白洞
Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
Map set assignment to database
[multithreading] the main thread waits for the sub thread to finish executing, and records the way to execute and obtain the execution result (with annotated code and no pit)
YYGH-10-微信支付
PHP 2D and multidimensional arrays are out of order, PHP_ PHP scrambles a simple example of a two-dimensional array and a multi-dimensional array. The shuffle function in PHP can only scramble one-dim
deepTools对ChIP-seq数据可视化
Is the Ren domain name valuable? Is it worth investing? What is the application scope of Ren domain name?
RPA进阶(二)Uipath应用实践
Cluster Analysis in R Simplified and Enhanced
多文件程序X32dbg动态调试
The selected cells in Excel form have the selection effect of cross shading
What is the relationship between digital transformation of manufacturing industry and lean production
MySQL comparison operator in problem solving
基于Hardhat编写合约测试用例
Cmake cross compilation
亚马逊云科技 Community Builder 申请窗口开启
GGPLOT: HOW TO DISPLAY THE LAST VALUE OF EACH LINE AS LABEL
YYGH-9-预约下单
QT获取某个日期是第几周