当前位置:网站首页>XSS跨站脚本攻击
XSS跨站脚本攻击
2022-07-20 00:00:00 【宣紫科技】
反射型XSS被称为非持久型XSS,通常是一次性的,一般出现在网页链接中,当攻击者通过电子邮件或客服中心将带有恶意xss的代码发送给相关用户后,相关用户打开并触发xss代码。如:
http://localhost/xss/2.php?kehai=<script>alert(/xss/)</script>
http://localhost/xss/2.php?kehai=%3Cscript%3Ealert(/xss/)%3C/script%3E
这里我们的页面代码如下:
<html> <head> <title>test</title> </head> <body> <?php echo $_GET['kehai']; ?> </body> </html> |
页面返回:
在请求链接中页面传递了kehai参数,在课嗨参数中,未对用户输入进行过滤,导致在kehai参数中带有了<script>标签并且该标签内的alert函数被触发,弹出内容为xss的提示框。那在实际的过程中一般就可以将该条包含xss的链接以各种形式发送给用户。
边栏推荐
猜你喜欢
将流转化为数据产品
Unable to install cloudera manager agent
Perfect integration into cloud native codeless platform IVX editor practice
MySQL 5.7都即将停只维护了,是时候学习一波MySQL 8了
完美融入云原生的无代码平台 iVX编辑器实战
西门子低代码客户案例|跨越沟通壁垒,解决应用开发效能瓶颈
MySQL 5.7 is about to stop and only maintain. It's time to learn a wave of MySQL 8
The idea version of postman has been released, and its functions are really powerful
Software performance test plan - performance test preparation
第八章:区间[ %d,%d]内等差素数列,改进等差素数列
随机推荐
软件性能测试方案-性能测试准备
for语句 range函数
成功解决 -- MySQL 容器命令行中文显示为 ??? 的问题
【电商运营】试试这5种个性化营销方法,告别无效营销!
Kubernetes - client go component
DOM basic operation
中国大陆IP段(含港澳)【2022-07-15】
If paging by frame fails - solution
Zero Path
flv. JS load video stream
洛谷P4305 不重复数字
Alipay fund. trans. uni. Function integration of transfer (single transfer interface)
关于我写书这件事
Interface automated testing - what is the difference between single interface automated testing and business scenario automated testing?
Perfect integration into cloud native codeless platform IVX editor practice
1235. 规划兼职工作 动态规划
It's just a TCC distributed transaction. Is it so difficult?
若依框架分页失效---解决方案
方法
Correction method and code of medical gender, age and years of Education