当前位置:网站首页>webview攻击
webview攻击
2022-07-29 01:26:00 【tlucky1】
1.介绍
webview用来实现应用显示网页内容,可与页面JavaScript进行交互,是由Chrome提供支持的系统组件,android设备已预安装该组件。内核使用了webkit引擎。WebView和web浏览器的差异之处在于WebView运行在嵌入式移动应用的上下文中,而且所有的针对浏览器的攻击都可以用来攻击WebView。
2.metasploit攻击
Webview攻击中,由于系统并没有对注册Java类的方法调用进行限制,导致了CVE-2012-6636漏洞的产生,该漏洞可以将恶意JavaScript语句注入到应用程序中,达到控制设备的目的。该漏洞涉及的Android系统版本低于4.2,高于4.2版本的已完成修复和加固。
可以利用CVE-2012-6636漏洞来实现webview攻击,可以将恶意JavaScript语句注入到应用程序中,达到控制设备的目的。
用kali linux中的metasploit工具来进行攻击,查询该漏洞可以利用的攻击模块,如图所示。
使用msf创建一个有恶意JavaScript语句的链接,如图所示。
url:http://192.168.1.10:8080/kijiLoe0
使用社工或网络钓鱼方式诱骗受害者点击该链接,我直接在手机浏览器中访问链接
测试结果:android7.12和android11对该漏洞已进行了修复和加固
3.修复建议
减少WebView攻击的常用建议:
(1)如果不需要,禁用JavaScript和插件支持,如果允许任何JavaScript
(2)禁用任何Javascript接口功能
(3)禁用本地文件访问
(4)通过WebView禁用文件系统访问
边栏推荐
- 数学建模——红酒品质分类
- Verilog procedure assignment statements: blocking & non blocking
- Jetpack--了解ViewModel和LiveData的使用
- (arxiv-2018) 重新审视基于视频的 Person ReID 的时间建模
- Explanation of yocto project directory structure
- Process -- user address space and kernel address space
- Know that Chuangyu is listed in many fields of ccsip 2022 panorama
- 数学建模——派出所选址
- Overview of Qualcomm 5g intelligent platform
- iVX低代码平台系列详解 -- 概述篇(二)
猜你喜欢
Using local cache + global cache to realize user rights management of small systems
Cookie和Session
数学建模——公交调度优化
Basic working principle and LTSpice simulation of 6T SRAM
数学建模——永冻土层上关于路基热传导问题
移动通信——基于卷积码的差错控制系统仿真模型
基于 ICA 与 DL 的语音信号盲分离
[the road of Exile - Chapter 4]
使用本地缓存+全局缓存实现小型系统用户权限管理
autoware中ndtmatching功能加载点云图坐标系修正的问题
随机推荐
移动通信——基于卷积码的差错控制系统仿真模型
leetcode 242. Valid Anagram(有效的字母异位词)
[public class preview]: application exploration of Kwai gpu/fpga/asic heterogeneous platform
[the road of Exile - Chapter 6]
数学建模——仓内拣货优化问题
基于C51控制蜂鸣器
How companies make business decisions -- with the help of data-driven marketing
Click back to the top JS
【MySQL】sql给表起别名
Opencv image sharpness evaluation (camera autofocus)
How to find the right agent type? Multi angle analysis for you!
Mysql存储json格式数据
Establish an engineering template based on STM32 in keil -- detailed steps
2022.7.28-----leetcode.1331
Idea connection database
12.< tag-动态规划和子序列, 子数组>lt.72. 编辑距离
leetcode/0和1个数相同的连续子数组
Add graceful annotations to latex formula; "Data science" interview questions collection of RI Gai; College Students' computer self-study guide; Personal firewall; Cutting edge materials / papers | sh
数学建模——红酒品质分类
解决使用ESlint时,和vetur冲突导致保存变双引号,结尾逗号等