当前位置:网站首页>XSS跨站脚本攻击学习记录
XSS跨站脚本攻击学习记录
2022-04-22 02:13:00 【Lunatic寒鸦】
1、跨站脚本攻击概念介绍:
客户端攻击:客户端执行JS恶意的脚本代码,从而影响客户端使用
服务端攻击:服务端管理员加载页面时也可能会受到攻击
钓鱼网站
游戏--游戏币--QQ上游戏好友发生消息--免费赠送游戏币
www.qq.cn ---页面信息---登录信息---发送到邮箱
HTTP方式进行访问:---HTTPS方式进行访问
www.qq.com -xss-www.qq.com/test.php?javascripts恶意代码--截取你的Cookie信息
--保留下来---替换掉攻击者访问网站的Cookie信息
2、跨站脚本攻击产生的原因:
网站页面对输入和输出的控制不严格,可以加载恶意代码信息,从而对客户端用户造成威胁
'"><script>alert(12345)</script>
3、跨站脚本攻击造成的危害:
1)获取用户的Cookie信息
2)让用户数据信息泄露
3)获取用户的登录信息
4)让用户的电脑加载木马程序
5)记录用户键盘操作行为
4、跨站脚本攻击分类介绍(重点):
1)反射型XSS或不持久型XSS(中危漏洞)
攻击过程必须要让用户访问指定的url才能生效, 并且访问过程产生的数据不会对服务端造成影响
2)存储型XSS或持久型XSS(高危漏洞)、
交互的数据会被存在数据库里,永久性储存,具有很强的稳定性
会对访问网站相应页面的所有用户造成影响
3)DOM XSS(低危漏洞/中危漏洞)
会在网站页面生成超链接信息,
超链接信息中会自动加载恶意代码,影响客户端
<a href='"+str+"'>what do you see?</a>
<a href='#' onclick="alert(1111)">what do you see?</a>
<a href='#' onclick="alert(2222)">what do you see?</a>
5、跨站脚本攻击存在的地方(了解):
1)HTML contex 会出现JS恶意代码
2)Attribute Context 对象属性中出现恶意代码
3)URL Context
4)style Context
5)Script Context
6、跨站脚本攻击的测试方法(了解):
1)工具扫描:app-scan、AWVS
2)手工测试:BP、hackbar、XSSER、XSSF
7、跨站脚本攻击的实战演示:
补充:XSS跨站脚本攻击原理(攻击原理过程):
两种方式:
1)利用原有网站URL地址获取用户数据信息 cookie用户登录信息
2)利用自己网站URL地址获取用户数据信息 cookie用户登录信息
版权声明
本文为[Lunatic寒鸦]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_60923912/article/details/124286142
边栏推荐
- 72 page Internet smart Park solution
- 互联网行业为什么能吸引越来越多的年轻人?尤其是程序员……
- Window7激活 电话激活小记;
- [FAQ] Anaconda prompt reports an error. Solving environment: failed
- 高级android面试答案,Gradle源码全解析
- Stack and queue
- Command line automatic error correction command: fuck
- Raspberry pie 4B 8g installation log (3) - Programming Environment
- 项目搭建之代码规范化解决方案
- Page 107 planning and design of enterprise digital transformation
猜你喜欢

Nacos 为什么这么强

QT program is packaged into an EXE executable file

Shell基础语法
Analysis of advanced interview questions, Alibaba released the "limited edition" Android zero foundation dictionary

NLP model summary

Mysql database fields move up and down

Page 49 information planning and digital transformation of petroleum and petrochemical industry

Leetcode 203. Remove linked list elements
![[Internet of things development notes] smart cloud device transplantation RT thread](/img/fb/8b3568c6f24cd781fbbef6ae829996.png)
[Internet of things development notes] smart cloud device transplantation RT thread

Page 107 planning and design of enterprise digital transformation
随机推荐
[programming question] clear random number
13.系统软件安装方式
Hj6 prime factor
Review of SV knowledge points
[programming question] deletion
信息安全概述
微软新工具准确率达80%?程序员:我谢谢您
Leetcode 21. Merge two ordered linked lists
[FAQ] Anaconda prompt reports an error. Solving environment: failed
SSLHandshakeException
Mysql---主从同步
SV知识点回顾
Leetcode 3. Longest substring without repeated characters
Window7激活 电话激活小记;
JMeter + Jenkins + ant persistence
R language generalized linear model GLM: linear least squares, logarithmic transformation, Poisson, binomial logistic regression analysis, ice cream sales time series data and simulation
Login procedure 2
Jetcode prize essay solicitation activity | interesting stories of low code industry waiting for you to share
Leetcode 386. Number of dictionary rows
Mysql-if-then-else statement