当前位置:网站首页>X-FRAME-OPTIONS web page hijacking vulnerability
X-FRAME-OPTIONS web page hijacking vulnerability
2022-06-29 11:17:00 【Old tile next door】
Vulnerability description :
Clickjacking (ClickJacking) It's a visual deception . Attacker uses a transparent iframe, Overlay on a web page , Then entice users to operate on the web , At this time, the user will click the transparent iframe page . Through adjustment iframe Page location , Can induce the user to just click on iframe On some functional buttons of the page .
HTTP In response header information X-Frame-Options, You can indicate whether the browser should load a iframe Pages in . If the server response header does not contain X-Frame-Options, Then the website exists ClickJacking Attack risk . Website can be set by X-Frame-Options Prevent pages within the site from being embedded by other pages to prevent click hijacking .
Solution :
modify web Server configuration , add to X-Frame-Options Response head . There are three kinds of assignments :
1、DENY: It can't be embedded in anything iframe perhaps frame in .
2、SAMEORIGIN: The page can only be embedded into iframe perhaps frame in
3、ALLOW-FROM uri: Can only be embedded in the framework of the specified domain name
apache Configurable http.conf as follows :
Copy
<IfModule headers_module>
Header always append X-Frame-Options "DENY"
</IfModule>
nginx To configure
nginx Pass respectively http and server Set up X-Frame-Options , Prevent websites from being used by others iframe Embedded use . It should be noted that , Just use one of these methods , stay http Configure code block or server Configure the settings in the code block .
- stay http Configuration settings X-Frame-Options
边栏推荐
- (JS) pure function in array
- math_ Mathematical expression & deformation of equation equation & accumulation of combined operation skills / means
- Shell 中你不得不熟知的变量运用
- (JS) iterator mode
- Map merges the same keys and values into a list
- 5.移植uboot-设置默认环境变量,裁剪,并分区
- 掌握一些shell 通配符巧妙的运用,会让我们写脚本事半功倍
- 云原生开发必备:首个通用无代码开发平台 iVX 编辑器
- [various * * question series] what are OLTP and OLAP?
- Course design for the end of the semester: product sales management system based on SSM
猜你喜欢

【每日3题(3)】重新格式化电话号码

如何通过WinDbg获取方法参数值
![[various * * question series] what are OLTP and OLAP?](/img/3f/48b4108d14d40212f678971c1b62bb.png)
[various * * question series] what are OLTP and OLAP?

9 easy to use JSON processing tools, greatly improving efficiency!

Pipeline aggregations管道聚合- parent-2

How to obtain method parameter values through WinDbg

Course design for the end of the semester: product sales management system based on SSM

Hit the industry directly! The first model selection tool in the industry was launched by the flying propeller

任职 22 年,PowerShell 之父将从微软离职:曾因开发 PowerShell 被微软降级过

【每日3题(1)】判断国际象棋棋盘中一个格子的颜色
随机推荐
Nuc980 open source project 16- start from SPI flash (w25q128)
BS-GX-017基于SSM实现的在线考试管理系统
斐波那锲数列与冒泡排序法在C语言中的用法
在编写shell脚本时如何正确姿势地管理临时文件
Modbustcp protocol network learning single channel infrared module (medium shell version)
Ikvm Net project progress
Course design for the end of the semester: product sales management system based on SSM
(JS) handwritten bind function
什么?漫画居然能免费看全本了,这还不学起来一起做省钱小能手
The last 48 hours! The cloud XR theme competition invites you to bloom together. See you at the competition!
NUC980开源项目16-从SPI FLASH(W25Q128)启动
Mysql获取表信息
MySQL 索引失效的几种类型以及解决方式
学习通否认 QQ 号被盗与其有关:已报案;iPhone 14 量产工作就绪:四款齐发;简洁优雅的软件早已是明日黄花|极客头条...
9 easy to use JSON processing tools, greatly improving efficiency!
Doodle cloud development demo login
Creating postgre enterprise database by ArcGIS
When the "Ai x scientific computing" is in progress, Huawei's mindspore competition question is hot, waiting for you!
嵌入式驱动开发之uboot---uboot 中的常见命令参数参数
Reids设计与实现