当前位置:网站首页>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.
边栏推荐
- 三分建设,七分管理!产品、系统、组织三管齐下节能降耗
- MySQL query optimization and tuning
- 机器学习之视频学习【更新】
- 2千兆光+6千兆电导轨式网管型工业级以太网交换机支持X-Ring冗余环网一键环网交换机
- SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
- 怎么把elastic中的异常登录ip和日志自动导出或抓取到数据库中?
- 安装postgis时报找不到“POSTGIS_VERSION”这个函数
- JVM内存和垃圾回收-07.堆
- 逻辑漏洞----其他类型
- if,case,for,while
猜你喜欢

哎,又跟HR在小群吵了一架!

张量篇-应用案例

架构实战营模块三作业

马尔可夫链

基本表单验证流程

自定义通用分页标签02

This Thursday evening at 19:00, the fourth live broadcast of knowledge empowerment丨The realization of equipment control of OpenHarmony smart home project

千兆2光8电管理型工业以太网交换机WEB管理X-Ring一键环网交换机

系统太多,多账号互通如何实现?

用户与用户互发红包/支付宝C2C/B2C现金红包php源码示例/H5方式/兼容苹果/安卓
随机推荐
SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropri
数据集类型转换—TFRecords文件
数组相关 内容 解析
sqoop ETL工具
Polygon zkEVM network node
出现504怎么办?由于服务器更新导致的博客报504错误[详细记录]
跨境电商看不到另一面:商家刷单、平台封号、黑灰产牟利
学会iframe并用其解决跨域问题
Mockito unit testing
千兆2光8电管理型工业以太网交换机WEB管理X-Ring一键环网交换机
[Study Notes Dish Dog Learning C] Dynamic Memory Management
一文看懂推荐系统:召回05:矩阵补充、最近邻查找,工业界基本不用了,但是有助于理解双塔模型
FPGA解析B码----连载3
How to drop all tables under database in MySQL
Implementing a server-side message active push solution based on SSE
Introduction to the memory model of the JVM
2022支付宝C2C现金红包PHP源码DEMO/兼容苹果/安卓浏览器和扫码形式
mq应用场景介绍
tkmapper的crud示例:
【项目实现】Boost搜索引擎