当前位置:网站首页>XSS challenge (1-5) more detailed answers
XSS challenge (1-5) more detailed answers
2022-06-30 14:17:00 【Huaxi GG】
There's already a lot on the Internet about xss The problem-solving idea of the challenge range , But I think I'd better write another one by myself , Just make a note for yourself
LEVEL 1
There's already a lot on the Internet about xss The problem-solving idea of the challenge range , But I think I'd better write another one by myself , Just make a note for yourself
LEVEL 1
There's already a lot on the Internet about xss The problem-solving idea of the challenge range , But I think I'd better write another one by myself , Just make a note for yourself
LEVEL 1
look for xss The method of vulnerability is the same as that of other vulnerabilities , Is to find the input interface , Find a place where you can enter data , Build attack field to achieve attack .
The first pass is obviously in url After the data get Submitted parameters
So build xxxx/leval1.php?name= Pop up the window
LEVEL 2
look for xss The method of vulnerability is the same as that of other vulnerabilities , Is to find the input interface , Find a place where you can enter data , Build attack field to achieve attack .
The first pass is obviously in url After the data get Submitted parameters
So build xxxx/leval1.php?name= Pop up the window

LEVEL 2
look for xss The method of vulnerability is the same as that of other vulnerabilities , Is to find the input interface , Find a place where you can enter data , Build attack field to achieve attack .
The first pass is obviously in url After the data get Submitted parameters
So build xxxx/leval1.php?name= Pop up the window
LEVEL 2

Try alert(/xss/) Found no pop-up window
F12 Navigate to this form , There is nothing wrong with the data , But it doesn't pop up
So it is suspected that sensitive fields have been escaped
Grab the bag and have a look 
There are obviously two angle brackets <> escaped ,
The escape uses htmlspecialchars() Method 
Here is another way of thinking , Obviously , The form data is retained after the jump , therefore , Through the retained form data , It can also achieve the implementation js The effect of
The background processing source code is as follows , You can see what's printed out " Can't find XXXX" The input data is htmlspecialchars() Handle 

First, build. "> Before closing input label
">
Pop up window after jump 
level 3
The input data is also processed , The first thing that comes to mind here is to follow the train of thought of the second question

I found that , The contents of the form are also htmlspecialchars() Method escaped 
The double quotation marks were found to be escaped after the test , Single quotation marks are OK
So build payload ’ οnclick=alert(/xss/)%0a Bypass (> Filtered , So use %0a Line breaks bypass , Note that the data should be written in url in
LEVEL5

After a simple test, I found script The field is modified ,onclick The string is also modified , Try to bypass
adopt payload '><iframe src="javascript:alert(/xss/)> (javascript: It's a fake agreement , Is used to js Code is coupled to html in , Again , There are other pseudo protocols , Search for )
边栏推荐
- Dart 扩展特性
- 用Unity实现Flat Shading
- 【Kubernetes系列】K8s设置MySQL8大小写不敏感
- 想请教一下,我在佛山,到哪里开户比较好?手机开户是安全么?
- Go language mutex lock
- Pytorch查看模型参数量和计算量
- (8) JMeter component detailed once only controller
- Begin End use the pit encountered
- Mutex lock, read / write lock, spin lock, pessimistic lock, and optimistic lock
- DB2 SQL Error: SQLCODE=-206, SQLSTATE=42703
猜你喜欢
![[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure](/img/5a/5da6180db0b2b96660bcd9b4fa0633.png)
[redis series] redis learning 16. Redis Dictionary (map) and its core coding structure

Why does the folder appear open in another program

MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video

More than 20 years after Hong Kong's return, Tupu digital twin Hong Kong Zhuhai Macao Bridge has shocked

Apache Doris comparison optimization Encyclopedia

How to execute a query SQL

“即服务”,企业数字化转型的必然选择

About the problems encountered when using the timer class to stop with a button (why does the QPushButton (for the first time) need to be clicked twice to respond?)

IM即时通讯应用开发中无法解决的“顽疾”

This article explains the concepts of typed array, arraybuffer, typedarray, DataView, etc
随机推荐
remote: Support for password authentication was removed on August 13, 2021. Please use a personal ac
【 scientific literature measurement 】 mining and visualization of keywords in foreign and Chinese Literature
Small exercise of process and signal
【刷题篇】爱吃香蕉的珂珂
Je suis à Foshan, où puis - je ouvrir un compte? L'ouverture d'un compte par téléphone mobile est - elle sécurisée?
PHP common authentication / third-party methods
半导体动态杂谈
MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video
Wechat applet realizes map navigation + door-to-door recycling
Getting started with shell Basics
表格储存中sql查询的时候,查询结果增加主键报错,查询结果超过10w行。需要对主键增加上多元索引吗?
Pit used by go language array type
Laravel RBAC laravel permission use
Observable, seulement fiable: première bombe de salon de la série cloudops d'exploitation et d'entretien automatisés dans le nuage
(8) JMeter component detailed once only controller
Lifting scanning tool
Tencent two sides: @bean and @component are used on the same class. What happens?
Geoffreyhinton: my 50 years of in-depth study and Research on mental skills
Go language for loop multivariable use
IM即时通讯应用开发中无法解决的“顽疾”