当前位置:网站首页>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
边栏推荐
- MySQL basic statement
- CMake交叉编译
- R HISTOGRAM EXAMPLE QUICK REFERENCE
- 程序员成长第六篇:如何选择公司?
- Principe du contrat évolutif - delegatecall
- Bedtools tutorial
- [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)
- 行業的分析
- Always report errors when connecting to MySQL database
- PYQT5+openCV项目实战:微循环仪图片、视频记录和人工对比软件(附源码)
猜你喜欢

RPA advanced (II) uipath application practice

Mish-撼动深度学习ReLU激活函数的新继任者

YYGH-BUG-05

BEAUTIFUL GGPLOT VENN DIAGRAM WITH R

Redis exceeds the maximum memory error oom command not allowed when used memory & gt; ' maxmemory'

RPA进阶(二)Uipath应用实践

pgsql 字符串转数组关联其他表,匹配 拼接后原顺序展示

Always report errors when connecting to MySQL database

How to Easily Create Barplots with Error Bars in R

K-Means Clustering Visualization in R: Step By Step Guide
随机推荐
map集合赋值到数据库
Flesh-dect (media 2021) -- a viewpoint of material decomposition
数据分析 - matplotlib示例代码
动态内存(进阶四)
MySQL basic statement
ESP32音频框架 ESP-ADF 添加按键外设流程代码跟踪
R HISTOGRAM EXAMPLE QUICK REFERENCE
Take you ten days to easily finish the finale of go micro services (distributed transactions)
时间格式化显示
通讯录的实现(文件版本)
GGPUBR: HOW TO ADD ADJUSTED P-VALUES TO A MULTI-PANEL GGPLOT
CTF record
SSRF
Is it safe to open a stock account online? I'm a novice, please guide me
YYGH-BUG-04
php 二维、多维 数组打乱顺序,PHP_php打乱数组二维数组多维数组的简单实例,php中的shuffle函数只能打乱一维
HOW TO ADD P-VALUES TO GGPLOT FACETS
Mish-撼动深度学习ReLU激活函数的新继任者
GGPLOT: HOW TO DISPLAY THE LAST VALUE OF EACH LINE AS LABEL
Tiktok overseas tiktok: finalizing the final data security agreement with Biden government