当前位置:网站首页>XSS related knowledge points
XSS related knowledge points
2022-08-04 03:35:00 【Lord Chaser】
1. Introduction to XSS
The full name of XSS is Cross Site Scripting. In order to avoid confusion with the abbreviation of Cascading Style Sheets (CSS), it is abbreviated as XSS.It means that a malicious attacker inserts malicious Script code into a Web page, and when a user browses the page, the html code embedded in the Web will be executed, so as to achieve the purpose of maliciously attacking the user.XSS attacks are aimed at user-level attacks.
2. Reasons for XSS
The main reason for the formation of XSS vulnerabilities is that the program's control and filtering of input and output are not perfect and strict, resulting in "well-constructed" script input, which will be blocked by the browser when it is input to the front end.It is parsed and executed as valid code to cause harm.
3. Classification of XSS Vulnerabilities
1. Reflected XSS
Reflected XSS is a non-persistent, parametric cross-site scripting. This attack method is often one-time and only triggered when the user clicks.
Reflected XSS: through the back end, not through the database
Data flow: browser front end --> back end --> browser front end
2. DOM XSS
DoM is the document object model(Document Object Model) abbreviation.It is the object representation of the HTML document and is also the interface between external content (such as JavaScript) and HTML elements.
It is a vulnerability based on the DoM document object model, and DOM-type XSS is based on JS and does not require interaction with the server.It is an XSS cross-site scripting attack formed by modifying the data information of the DOM node of the page.Different from reflected XSS and stored XSS, DOM-based XSS cross-site scripting attacks often need to analyze specific Javascript DOM codes, and use XSS cross-site scripting attacks according to the actual situation.
Data flow: URL–> Browser front end
3. Stored XSS
Stored XSS is persistent cross-site scripting.Persistence is reflected in the fact that the XSS code is not in a parameter (variable), but is written into a medium such as a database or file that can permanently save data.Stored XSS usually occurs in places like message boards.
Data flow: browser –> backend –> database –> backend –> browser
Fourth, summary
Reflected XSS is non-persistent cross-site scripting.
DOM-type XSS is a vulnerability based on the DOM Document Object Model.
Stored XSS is persistent cross-site scripting.
On Harm: Stored XSS > DOM-XSS > Reflected XSS.
边栏推荐
- 2022年最新海南建筑八大员(材料员)模拟考试试题及答案
- sqoop ETL工具
- Introduction to mq application scenarios
- SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
- Based on the statistical QDirStat Qt directory
- 6-port full Gigabit Layer 2 network managed industrial Ethernet switch Gigabit 2 optical 4 electrical fiber self-healing ERPS ring network switch
- y86.第四章 Prometheus大厂监控体系及实战 -- prometheus存储(十七)
- 外卖店优先级
- keytool命令
- 企业直播风起:目睹聚焦产品,微赞拥抱生态
猜你喜欢

STM8S105K4T6------Serial port sending and receiving

十一种概率分布

2 Gigabit Optical + 6 Gigabit Electric Rail Type Managed Industrial Ethernet Switch Supports X-Ring Redundant Ring One-key Ring Switch

仿牛客论坛项目梳理

学会iframe并用其解决跨域问题

Basic form validation process

自定义通用分页标签02

软件测试如何系统规划学习呢?

Hey, I had another fight with HR in the small group!

函数,递归以及dom简单操作
随机推荐
Y86. Chapter iv Prometheus giant monitoring system and the actual combat, Prometheus storage (17)
2 Gigabit Optical + 6 Gigabit Electric Rail Type Managed Industrial Ethernet Switch Supports X-Ring Redundant Ring One-key Ring Switch
How many ways do you know about communication between multiple threads?
三分建设,七分管理!产品、系统、组织三管齐下节能降耗
基地址:环境变量
自定义通用分页标签02
怎样提高网络数据安全性
基于Qt的目录统计QDirStat
tkmapper的crud示例:
【MD5】采用MD5+盐的加密方式完成注册用户和登录账号
Polygon zkEVM network node
《nlp入门+实战:第八章:使用Pytorch实现手写数字识别》
Introduction to mq application scenarios
STM8S项目创建(STVD创建)---使用 COSMIC 创建 C 语言项目
数组相关 内容 解析
什么是数字孪生智慧城市应用场景
STM8S105k4t6c---------------Light up LED
用户与用户互发红包/支付宝C2C/B2C现金红包php源码示例/H5方式/兼容苹果/安卓
docker+网桥+redis主从+哨兵模式
返回字符串中的最大回文数