当前位置:网站首页>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
边栏推荐
- crypto 1~5
- Nuc980 open source project 16- start from SPI flash (w25q128)
- misc3~7
- 极限导论总结
- (JS)筛选出对象中value大于2的key
- ModbusTCP协议网络学习型单路红外模块(双层板)
- 非凸联合创始人李佐凡:将量化作为自己的终身事业
- 【数字信号调制】基于 AM+FM+DSB+SSB实现信号调制解调含Matlab源码
- Mastering the clever use of some shell wildcards will make us write with half the effort
- (JS) catch errors (exceptions)
猜你喜欢

又拍云 Redis 的改进之路

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

Modbustcp protocol WiFi wireless learning single channel infrared module (round shell version)
![[daily 3 questions (1)] judge the color of a grid on the chess board](/img/bd/064058f917554237b741795d405189.png)
[daily 3 questions (1)] judge the color of a grid on the chess board

9 款好用到爆的 JSON 处理工具,极大提高效率!

BS-GX-017基于SSM实现的在线考试管理系统

(JS)数组去除重复

The encryption market has exploded one after another. Can Celsius avoid bankruptcy?

Bs-gx-018 student examination system based on SSM

非凸联合创始人李佐凡:将量化作为自己的终身事业
随机推荐
matlab基础 max 求一维或二维数组的最大值+sleep(pause)
(JS) pure function in array
NUC980开源项目16-从SPI FLASH(W25Q128)启动
【每日3题(3)】重新格式化电话号码
When the "Ai x scientific computing" is in progress, Huawei's mindspore competition question is hot, waiting for you!
ModbusTCP协议网络学习型单路红外模块(双层板)
arcgis创建postgre企业级数据库
(JS) handwriting depth comparison
Pytorch learning notes (6) -- source code analysis of dataloader
Pipeline aggregations pipeline aggregation-sibling-1
LVGL库入门教程 - 动画
(JS)筛选出对象中value大于2的key
9 easy to use JSON processing tools, greatly improving efficiency!
(JS)数组中纯函数
Several methods of enterprise competition analysis: SWOT, Porter five forces, pest "suggestions collection"
任职 22 年,PowerShell 之父将从微软离职:曾因开发 PowerShell 被微软降级过
Shell 引号和转义从来很少被人注意,但平时写脚本又经常用
ModbusTCP协议WIFI无线学习型单路红外模块(小壳版)
Nuc980 started successfully
由ASP.NET Core根据路径下载文件异常引发的探究