- A+
瘦蛟舞 (科普是一种公益行为) | 2015-03-11 18:12
漏洞代码:
protected void onCreate(Bundle savedInstanceState) {
...
Intent intent = getIntent();
...
webHost = intent.getStringExtra(EXTRA_INTERNAL_WEB_HOST);
if (null == webHost) {
webHost = DEFAULT_WEB_HOST;
}
...
}
protected void onResume() {
...
String state = createStateNonce();
...
if (hasDropboxApp(officialIntent)) {
startActivity(officialIntent);
}
else {
startWebAuth(state);
}
...
authStateNonce = state;
}
private void startWebAuth(String state)
{
String path = "/connect";
Locale locale = Locale.getDefault();
String[] params = {
"locale", locale.getLanguage()+"_"+locale.getCountry(),
"k", appKey,
"s", getConsumerSig(),
"api", apiType,
"state", state};
String url = RESTUtility.buildURL(webHost, DropboxAPI.VERSION, path, params);
Intent intent = new Intent(Intent.ACTION_VIEW, Uri.parse(url));
startActivity(intent);
}
攻击流程:
Activity intent 注入看这里:
http://drops.wooyun.org/tips/3936
通过浏览器实现方法:
$("img").load(function(){ if($(this).attr("width")>640) $(this).attr("width",640); });