当前位置:网站首页>XSS (cross site scripting attack) for security interview
XSS (cross site scripting attack) for security interview
2022-07-06 14:16:00 【Unknown white hat】
1、XSS principle : Developers did not do a good job of filtering , As a result, we can close the tag and insert and execute malicious JS Code
2、xss Type classification
DOM type : from DOM The document is parsed
reflective : Plug and play , Not stored in the database
Storage type : Stored in the database , Cause persistent attacks
3、 frequently-used JS function
document.cookie(): Pop up the browser of the current web address cookie
console.log('xss'): Log output at the console
4、 Way around
4.1. Change case :<SCript>
4.2. Code bypass (html Entity encoding 、 Decimal hexadecimal octal encoding 、unicode code )、
4.3. Turn off the tag : Use the greater than sign > Closing the tag makes xss take effect
4.4. Double write and forgive :<scr<script>ipt>
4.5. You can use spaces . Line break ,tab Key or /**/,/*!a*/, Bypass keyword detection in the form of
4.6. use / Instead of spaces
4.7. Use inverted quotation marks instead of parentheses 、 Double quotes
4.8. use throw Replace brackets
4.9. use html Entity encoding : Instead of a colon
4.10. use jsfuck Encoding bypasses most character filtering
5、 Scan tool
xsstrick
6、XSS Fishing platform
kali Tools :BEEF
Free platform :https://xss.pt/
Phishing statement :<img src=https://xss.pt/hook.js>
7、xss defense
7.1、 Filter sensitive characters , for example :aler()、<script>、onerror
7.2、 increase httponly: Front end execution is prohibited JS Code
边栏推荐
猜你喜欢

记一次edu,SQL注入实战

Hackmyvm Target Series (3) - vues

It's never too late to start. The tramp transformation programmer has an annual salary of more than 700000 yuan

HackMyvm靶机系列(1)-webmaster

Callback function ----------- callback

【VMware异常问题】问题分析&解决办法

Strengthen basic learning records
![[dark horse morning post] Shanghai Municipal Bureau of supervision responded that Zhong Xue had a high fever and did not melt; Michael admitted that two batches of pure milk were unqualified; Wechat i](/img/d7/4671b5a74317a8f87ffd36be2b34e1.jpg)
[dark horse morning post] Shanghai Municipal Bureau of supervision responded that Zhong Xue had a high fever and did not melt; Michael admitted that two batches of pure milk were unqualified; Wechat i

Read only error handling

浅谈漏洞发现思路
随机推荐
7-5 走楼梯升级版(PTA程序设计)
Nuxtjs quick start (nuxt2)
JS several ways to judge whether an object is an array
Intel oneapi - opening a new era of heterogeneity
【头歌educoder数据表中数据的插入、修改和删除】
Detailed explanation of three ways of HTTP caching
实验四 数组
Attach the simplified sample database to the SQLSERVER database instance
7-3 构造散列表(PTA程序设计)
XSS unexpected event
7-3 construction hash table (PTA program design)
SQL注入
xray與burp聯動 挖掘
HackMyvm靶机系列(6)-videoclub
强化学习基础记录
Record an API interface SQL injection practice
【VMware异常问题】问题分析&解决办法
Read only error handling
Meituan dynamic thread pool practice ideas, open source
[insert, modify and delete data in the headsong educator data table]