当前位置:网站首页>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.
边栏推荐
- Power button (LeetCode) 215. The first K largest elements in the array (2022.08.03)
- MRS: Alluxio的使用介绍
- new Date converts strings into date formats Compatible with IE, how ie8 converts strings into date formats through new Date, how to replace strings in js, and explain the replace() method in detail
- 多线程间的通信方式你知道几种?
- 创新互融|华秋赋能助力OpenHarmony生态硬件开发落地
- 劝退背后。
- 《nlp入门+实战:第八章:使用Pytorch实现手写数字识别》
- Oracle与Postgresql在PLSQL内事务回滚的重大差异
- Basic form validation process
- if,case,for,while
猜你喜欢
SQL注入中 #、 --+、 --%20、 %23是什么意思?

基地址:环境变量

C language -- ring buffer

本周四晚19:00知识赋能第4期直播丨OpenHarmony智能家居项目之设备控制实现

A Preliminary Study of RSS Subscription to WeChat Official Account-feed43

Introduction to mq application scenarios

sqoop ETL tool

案例 | 重庆银行流动数据安全挑战及应对实践

Detailed analysis of scaffolding content

自定义通用分页标签02
随机推荐
[Study Notes Dish Dog Learning C] Dynamic Memory Management
外卖店优先级
"Introduction to nlp + actual combat: Chapter 8: Using Pytorch to realize handwritten digit recognition"
怎么把elastic中的异常登录ip和日志自动导出或抓取到数据库中?
基于Qt的目录统计QDirStat
Basic form validation process
Polygon zkEVM网络节点
说说数据治理中常见的20个问题
6口全千兆二层网管型工业以太网交换机千兆2光4电光纤自愈ERPS环网交换机
如何读取 resources 目录下的文件路径?
Introduction to the memory model of the JVM
Mini program + new retail, play the new way of playing in the industry!
Polygon zkEVM network node
Brush esp8266-01 s firmware steps
【MD5】采用MD5+盐的加密方式完成注册用户和登录账号
缓存穿透、缓存击穿、缓存雪崩以及解决方案
Asynchronous programming solution Generator generator function, iterator iterator, async/await, Promise
哎,又跟HR在小群吵了一架!
STM8S105k4t6c---------------Light up LED
什么是数字孪生智慧城市应用场景