TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Analyzing an Android WebView exploit

9 点作者 nozepas超过 11 年前

2 条评论

girvo超过 11 年前
Damn I was hoping this bypassed permissions. It can still be dangerous; picture the Facebook app&#x27;s permission structure, it uses a WebView (or used to anyway, I haven&#x27;t used Android in a while now). An attacker could send a link that does something useful, or inject JavaScript into a legit page that when viewed in FB&#x27;s app (coupled with an FB status worm, anyone?) sends messages to premium SMS numbers... the attacker could rack up quite a bit of money.<p>This is dangerous due to applications habit of requesting a <i>lot</i> of permissions, often for use cases that don&#x27;t need that huge API in particular. The problem is, designing a more fine grained permissions structure that is tractable in terms of UI is a hard problem. This also points out one of the issues of androids lack of vendor supplied updates for anything less than a flagship phone :(<p>Does anyone know if WebView has been decoupled from the base OS in later versions? I know it has been hooked into Chrome now, right, so does that API get updated with Chrome itself?
评论 #6880491 未加载
dz0ny超过 11 年前
I think this is a bit misleading article. First in order to application to send SMS message or any other privileged action, it must declare that at install time (in manifest file). Second in order to send SMS and expose function to JS runtime, function must be of subclass of JavaScriptInterface class (pre JB), or you can use annotation if you are targeting JB+ devices.<p>This means function must be exposed and written before you can actuality use exploit. Bottom line you can&#x27;t just send SMS from WebView just by &quot;accident&quot; :) And properly written applications should not expose that function in first place.<p>PhoneGap seem likely target for this exploit. Facebook, Instagram ... and many others not.
评论 #6880379 未加载