当前位置:网站首页>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.
边栏推荐
- Y86. Chapter iv Prometheus giant monitoring system and the actual combat, Prometheus storage (17)
- 怎么把elastic中的异常登录ip和日志自动导出或抓取到数据库中?
- 返回字符串中的最大回文数
- 软件测试如何系统规划学习呢?
- 类如何只能静态分配和只能动态分配
- STM8S project creation (STVD creation) --- use COSMIC to create a C language project
- 企业直播风起:目睹聚焦产品,微赞拥抱生态
- kingbaseES V8R2/R3 表在指定表空间,为何显示为默认表空间?
- Embedded database development programming MySQL (full)
- View mysql deadlock syntax
猜你喜欢
随机推荐
Gigabit 2 X light 8 electricity management industrial Ethernet switches WEB management - a key Ring Ring net switch
Returns the maximum number of palindromes in a string
if,case,for,while
出现504怎么办?由于服务器更新导致的博客报504错误[详细记录]
从图文展示到以云为核,第五代验证码独有的策略情报能力
How to drop all tables under database in MySQL
学会iframe并用其解决跨域问题
There are too many systems, how to realize multi-account interworking?
ingress 待完善
Embedded database development programming MySQL (full)
DIY电工维修如何拆卸和安装开关面板插座
The general SQL injection flow (sample attached)
Based on the statistical QDirStat Qt directory
复制带随机指针的链表
Hey, I had another fight with HR in the small group!
MySQL query optimization and tuning
十一种概率分布
base address: environment variable
XSS相关知识点
SQL注入中 #、 --+、 --%20、 %23是什么意思?