0

高危漏洞

6

中危漏洞

7

低危漏洞

9

警告

文件名 106738-apk-02002b1fe127185ac11906509826f426.apk
上传者 boyhack
文件大小 3.8811807632446MB
MD5 6429a5f4f8c15d06d556a4697fba5088
包名 m.zc1527.com
Main Activity io.dcloud.PandoraEntry
Min SDK 14
Target SDK 21

权限列表

# 名称 说明 提示
0 android.permission.ACCESS_COARSE_LOCATION 访问大概的位置源(例如蜂窝网络数据库)以确定手机的大概位置(如果可以)。恶意应用程序可借此确定您所处的大概位置。 注意
1 android.permission.ACCESS_FINE_LOCATION 访问精准的位置源,例如手机上的全球定位系统(如果有)。恶意应用程序可能会借此确定您所处的位置,并可能消耗额外的电池电量。 注意
2 android.permission.GET_TASKS 允许应用程序检索有关当前和最近运行的任务的信息。恶意应用程序可借此发现有关其他应用程序的保密信息。 注意
3 android.permission.READ_CONTACTS 允许应用程序读取您手机上存储的所有联系人(地址)数据。恶意应用程序可借此将您的数据发送给其他人。 注意
4 android.permission.READ_PHONE_STATE 允许应用程序访问设备的手机功能。有此权限的应用程序可确定此手机的号码和序列号,是否正在通话,以及对方的号码等。 注意
5 android.permission.READ_PHONE_STATE 允许应用程序访问设备的手机功能。有此权限的应用程序可确定此手机的号码和序列号,是否正在通话,以及对方的号码等。 注意
6 android.permission.WRITE_CONTACTS 允许应用程序修改您手机上存储的联系人(地址)数据。恶意应用程序可借此清除或修改您的联系人数据。 注意
7 android.permission.WRITE_SETTINGS 允许应用程序修改系统设置方面的数据。恶意应用程序可借此破坏您的系统配置。 注意
8 android.permission.ACCESS_NETWORK_STATE 允许应用程序查看所有网络的状态。 提示
9 android.permission.ACCESS_NETWORK_STATE 允许应用程序查看所有网络的状态。 提示
10 android.permission.ACCESS_WIFI_STATE 允许应用程序查看有关WLAN状态的信息。 提示
11 android.permission.ACCESS_WIFI_STATE 允许应用程序查看有关WLAN状态的信息。 提示
12 android.permission.CAMERA 允许应用程序使用相机拍照,这样应用程序可随时收集进入相机镜头的图像。 提示
13 android.permission.CHANGE_WIFI_STATE 允许应用程序连接到WLAN接入点以及与WLAN接入点断开连接,并对配置的WLAN网络进行更改。 提示
14 android.permission.FLASHLIGHT 允许应用程序控制闪光灯。 提示
15 android.permission.GET_ACCOUNTS 允许应用程序获取手机已知的帐户列表。 提示
16 android.permission.INTERNET 允许程序访问网络. 提示
17 android.permission.MODIFY_AUDIO_SETTINGS 允许应用程序修改整个系统的音频设置,如音量和路由。 提示
18 android.permission.MOUNT_UNMOUNT_FILESYSTEMS 允许应用程序装载和卸载可移动存储器的文件系统。 提示
19 android.permission.READ_LOGS 允许应用程序从系统的各日志文件中读取信息。这样应用程序可以发现您的手机使用情况,但这些信息不应包含任何个人信息或保密信息。 提示
20 android.permission.WRITE_EXTERNAL_STORAGE 允许应用程序写入SD卡。 提示

四大组件

组件名称

io.dcloud.PandoraEntry
io.dcloud.PandoraEntryActivity
io.dcloud.imagepick.CustomGalleryActivity
io.dcloud.feature.nativeObj.photoview.PhotoActivity
io.dcloud.appstream.StreamAppMainActivity
io.dcloud.appstream.StreamAppsAbout
io.dcloud.WebAppActivity
io.dcloud.multiprocess.activity.WebAppActivity1
io.dcloud.appstream.OpenStreamAppTransferActivity
io.dcloud.ProcessMediator
io.dcloud.WebviewActivity

io.dcloud.adapter.io.MiniServerService
io.dcloud.streamdownload.DownloadService
io.dcloud.multiprocess.service.MultiProcessService

io.dcloud.common.adapter.io.PushReceiver
io.dcloud.common.adapter.io.DownloadReceiver

第三方库

# 库名 介绍
0 android.support.multidex DEPRECATED
1 pl.droidsonroids.gif Views and Drawable for displaying animated GIFs on Android

静态扫描发现风险点

风险等级 风险名称

中危

检测到3处证书弱校验漏洞。

位置: classes.dex
io.dcloud.sonic.SonicSessionConnection$SessionConnectionDefaultImpl$3;
io.dcloud.common.adapter.util.DCloudTrustManager;
com.nostra13.dcloudimageloader.core.download.BaseImageDownloader$1;

当移动App客户端使用https或ssl/tls进行通信时,如果不校验证书的可信性,将存在中间人攻击漏洞,可导致信息泄露,传输数据被篡改,甚至通过中间人劫持将原有信息替换成恶意链接或恶意代码程序,以达到远程控制等攻击意图。建议:
对SSL证书进行强校验,包括签名CA是否合法、证书是否是自签名、主机域名是否匹配、证书是否过期等。

参考案例:
www.wooyun.org/bugs/wooyun-2014-079358

参考资料:
http://drops.wooyun.org/tips/3296
http://wolfeye.baidu.com/blog/webview-ignore-ssl-error/
https://jaq.alibaba.com/blog.htm?id=60

中危

检测到1处中间人攻击漏洞。

位置: classes.dex
io.dcloud.common.adapter.util.DCloudTrustManager;->getHostnameVerifier()Lorg.apache.http.conn.ssl.X509HostnameVerifier;

setHostnameVerifier方法设置ALLOW_ALL_HOSTNAME_VERIFIER,直接接受任意域名,可能造成中间人攻击漏洞。建议:
对SSL证书进行强校验,包括签名CA是否合法、证书是否是自签名、主机域名是否匹配、证书是否过期等。

参考案例:
http://www.wooyun.org/bugs/wooyun-2010-042710
http://www.wooyun.org/bugs/wooyun-2010-052339
http://www.wooyun.org/bugs/wooyun-2016-0190773

参考资料:
http://wolfeye.baidu.com/blog/webview-ignore-ssl-error/
https://jaq.alibaba.com/blog.htm?id=60

中危

该app需要移除大部分日志打印代码。
经扫描该包仍存在大量打日志代码,共发现106处打日志代码.(此处扫描的日志打印代码,是指调用android.util.Log.* 打印的.)
详情如下:

位置: classes.dex
io.dcloud.appstream.StreamAppMainActivity;->onCreate_StreamApp(Landroid/os/Bundle;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.invocation.a;->a(Lio/dcloud/common/DHInterface/IWebview; Ljava/lang/String; [Ljava/lang/String;)Ljava/lang/String;==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.Logger;->i(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.ADUtils;->openDeepLink(Landroid/content/Context; Ljava/lang/String;)Z==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.nineoldandroids.animation.PropertyValuesHolder$IntPropertyValuesHolder;->setAnimatedValue(Ljava/lang/Object;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.b;->onRuntimePreCreate(Landroid/os/Bundle;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.WebAppActivity;->onCreate(Landroid/os/Bundle;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.pdr.b;->b(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.a.a;->onAutoFocus(Z Landroid/hardware/Camera;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.a.b;->b(Landroid/hardware/Camera$Parameters;)V==>android.util.Log;->w(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.nativeObj.richtext.a.c$a;->a(Landroid/graphics/Bitmap;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.a.d;->()V==>android.util.Log;->v(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.ui.WebLoadEvent;->printResourceLog(Landroid/webkit/WebView; Lio/dcloud/common/DHInterface/IApp; Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.ui.c;->a(Lio/dcloud/feature/ui/b; Lio/dcloud/feature/ui/c;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.pdr.b;->c(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->startApplicationScheme(Ljava/lang/String; Landroid/content/Intent;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.streamdownload.DownloadTaskListManager$1;->execute(Ljava/lang/Object;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.ui.WebJsEvent;->hideCustomView()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.ui.WebLoadEvent;->printOpenLog(Landroid/webkit/WebView; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.service.DaemonService$1;->run()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.pdr.b;->f(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.b.b.c;->a(Lio/dcloud/common/b/b/c; I)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.net.JsDownload;->checkSpecialFile(Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.ui.AdaWebview;->setPreloadJsFile(Ljava/lang/String; Z)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.OpenStreamAppActivity;->startApplicationUnStoreup(Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.Logger;->es(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.nineoldandroids.animation.PropertyValuesHolder;->setupValue(Ljava/lang/Object; Lio/dcloud/nineoldandroids/animation/Keyframe;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->startApplicationUnStoreupT(Ljava/lang/String; Landroid/content/Intent;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.net.http.SNCListener$RepackTestTask;->doInBackground([Ljava/lang/Object;)Ljava/lang/Object;==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.a.b;->a(Ljava/lang/CharSequence; Landroid/graphics/Point;)Landroid/graphics/Point;==>android.util.Log;->w(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->startApplicationUnStoreup(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.DownloadUtil;->queryDownloadStatus(Landroid/content/Context;)V==>android.util.Log;->v(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.contacts.b;->a(Lorg/json/JSONObject; Landroid/accounts/Account; Ljava/lang/String;)Z==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.ADUtils;->downloadApk(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; J Z Z)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.invocation.c;->a(Ljava/lang/Object; Ljava/lang/Class; I Lio/dcloud/invocation/c$a;)Ljava/lang/Object;==>android.util.Log;->w(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.a.a;->processEvent(Lio/dcloud/common/DHInterface/IMgr$MgrType; I Ljava/lang/Object;)Ljava/lang/Object;==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.a.b;->b(Landroid/hardware/Camera;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.js.geolocation.system.a;->a(I Ljava/lang/String; I)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.pdr.RuntimeFeatureImpl;->b(Ljava/lang/String; Lio/dcloud/common/DHInterface/IApp;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.ui.c;->a(Lio/dcloud/feature/ui/c; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.Logger;->e(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.WebAppActivity;->b(Landroid/content/Context;)Ljava/lang/Object;==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->startApplicationUnStoreup(Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.a.d;->a(Ljava/io/InputStream; Ljava/lang/String; Lorg/json/JSONObject;)Z==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.Logger;->d(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.nativeObj.richtext.span.AHrefSpan;->a(Landroid/view/View; Lio/dcloud/common/DHInterface/IWebview;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.nineoldandroids.animation.PropertyValuesHolder;->getPropertyFunction(Ljava/lang/Class; Ljava/lang/String; Ljava/lang/Class;)Ljava/lang/reflect/Method;==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->downloadApplicationSucceed(Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.b.b;->handleMessage(Landroid/os/Message;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->downloadApplicationSucceed(Ljava/lang/String;)V==>android.util.Log;->v(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.ADUtils;->openBrowser(Landroid/content/Context; Ljava/lang/String;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->startApplicationUnStoreup(Ljava/lang/String; Landroid/content/Intent;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.contacts.b;->a(Lorg/json/JSONObject; Landroid/accounts/Account;)Z==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.ui.WebJsEvent;->showCustomView(Landroid/view/View; Landroid/webkit/WebChromeClient$CustomViewCallback;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.streamdownload.utils.StorageUtils;->delete(Ljava/io/File;)Z==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.BaseInfo;->parseControl(Lio/dcloud/common/DHInterface/ICore; Lio/dcloud/common/DHInterface/ICore$ICoreStatusListener;)[Ljava/lang/String;==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.Logger;->d(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.ApkUtils;->parsePackage(Ljava/lang/String; I)Ljava/lang/Object;==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.streamdownload.StreamJsonDownloadTask;->download()I==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.imagepick.b;->getView(I Landroid/view/View; Landroid/view/ViewGroup;)Landroid/view/View;==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.nineoldandroids.animation.PropertyValuesHolder$FloatPropertyValuesHolder;->setAnimatedValue(Ljava/lang/Object;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.pdr.RuntimeFeatureImpl;->a(Ljava/lang/String; Lio/dcloud/common/DHInterface/IApp;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.js.geolocation.system.a;->a(Landroid/location/Location; I)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.CreateShortResultReceiver;->onReceive(Landroid/content/Context; Landroid/content/Intent;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.b;->onCreate(Landroid/os/Bundle;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.pdr.b;->a(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.OpenStreamAppActivity;->onCreate_StreamApp(Landroid/os/Bundle;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.ApkUtils;->getApkFileLable(Landroid/content/Context; Ljava/lang/String;)Ljava/lang/String;==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.NetTool;->request(Ljava/lang/String; Ljava/lang/String; Ljava/util/HashMap; Ljava/lang/String; I)[B==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.streamdownload.FileDownloadTask;->download()I==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.Logger;->d(Ljava/lang/String; [Ljava/lang/Object;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.DownloadUtil;->queryDownloadStatus(Landroid/content/Context;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.ui.e;->a(Lio/dcloud/common/DHInterface/IWebview; Lio/dcloud/common/DHInterface/IApp; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.ADUtils;->openStreamApp(Landroid/content/Context; Ljava/lang/String; Lorg/json/JSONObject; I Ljava/lang/String;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.nineoldandroids.animation.PropertyValuesHolder;->setupSetterAndGetter(Ljava/lang/Object;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.WebAppActivity;->a()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.WebAppActivity;->onResume()V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.DownloadUtil;->onReceive(Landroid/content/Context; Landroid/content/Intent;)V==>android.util.Log;->v(Ljava/lang/String; Ljava/lang/String;)I
com.dcloud.android.downloader.core.thread.DownloadThread;->executeDownload()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.WebAppActivity;->onDestroy()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
com.dcloud.android.downloader.core.DownloadResponseImpl;->onStatusChanged(Lcom/dcloud/android/downloader/domain/DownloadInfo;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.a.b;->a(Landroid/hardware/Camera;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.ADUtils;->openUrl(Landroid/content/Context; Ljava/lang/String;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.nativeObj.richtext.span.c;->a(Landroid/view/View; Lio/dcloud/common/DHInterface/IWebview;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.a.a;->a(Landroid/app/Activity; Ljava/lang/String; Ljava/lang/String; Lio/dcloud/common/a/d; Lio/dcloud/common/a/d; Lio/dcloud/common/a/d; Z)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.barcode.a.f;->onPreviewFrame([B Landroid/hardware/Camera;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.ui.nativeui.NativeUIFeatureImpl;->a(Lio/dcloud/common/DHInterface/IApp;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.EntryProxy;->clearData()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.ui.e;->a(Lio/dcloud/feature/ui/a; Lio/dcloud/common/DHInterface/IWebview; Lorg/json/JSONArray; Lio/dcloud/common/DHInterface/IApp; Ljava/lang/String; Z)Lio/dcloud/feature/ui/c;==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.WebAppActivity;->onCreate(Landroid/os/Bundle;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.nineoldandroids.animation.PropertyValuesHolder;->setAnimatedValue(Ljava/lang/Object;)V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->startApplicationByRichUrl(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.OpenStreamAppActivity;->startApplicationUnStoreup(Ljava/lang/String; Landroid/content/Intent;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.streamdownload.AppStreamTaskManager;->onStreamJsonCompleted(Lio/dcloud/streamdownload/AppInfo; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Z I)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
com.dcloud.android.v4.widget.SwipeRefreshLayout;->parentInvalidate()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.net.UploadNetWork;->initUploadData()V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.StreamAppMainActivity;->startApplicationByArguments(Ljava/lang/String; Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.daps.DNetItem;->run()V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.net.http.SNCListener$RepackTestTask;->doInBackground([Ljava/lang/Object;)Ljava/lang/Object;==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.ui.AdaWebview;->appendPreloadJsFile(Ljava/lang/String;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.b;->b()Ljava/util/HashMap;==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.util.CreateShortResultReceiver$1;->run()V==>android.util.Log;->e(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.appstream.service.DaemonService;->onCreate()V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.js.geolocation.a;->a(Ljava/lang/String;)Lio/dcloud/js/geolocation/GeoManagerBase;==>android.util.Log;->w(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.feature.ui.c;->a(Lio/dcloud/common/DHInterface/IWebview; Lorg/json/JSONArray; Lio/dcloud/feature/ui/c; Ljava/lang/String;)V==>android.util.Log;->i(Ljava/lang/String; Ljava/lang/String;)I
io.dcloud.common.adapter.util.Logger;->d(Ljava/lang/String; [Ljava/lang/Object;)V==>android.util.Log;->d(Ljava/lang/String; Ljava/lang/String;)I

中危

检测到5个WebView远程执行漏洞。

位置: classes.dex
io.dcloud.common.adapter.ui.AdaWebview;->addJsInterface(Ljava.lang.String; Lio.dcloud.common.DHInterface.IJsInterface;)V
io.dcloud.common.adapter.ui.AdaWebview;->addJsInterface(Ljava.lang.String; Ljava.lang.Object;)V
io.dcloud.common.adapter.ui.AdaWebview;->addJsInterface(Ljava.lang.String; Ljava.lang.String;)V
io.dcloud.common.adapter.ui.ReceiveJSValue;->addJavascriptInterface(Lio.dcloud.common.adapter.ui.AdaWebview;)V
io.dcloud.common.adapter.ui.WebViewImpl;->addJavascriptInterface(Ljava.lang.Object; Ljava.lang.String;)V

Android API < 17之前版本存在远程代码执行安全漏洞,该漏洞源于程序没有正确限制使用addJavaScriptInterface方法,攻击者可以通过Java反射利用该漏洞执行任意Java对象的方法,导致远程代码执行安全漏洞。
(1)API等于高于17的Android系统。出于安全考虑,为了防止Java层的函数被随意调用,Google在4.2版本之后,规定允许被调用的函数必须以@JavascriptInterface进行注解。
(2)API等于高于17的Android系统。建议不要使用addJavascriptInterface接口,以免带来不必要的安全隐患,如果一定要使用该接口,建议使用证书校验。
(3)使用removeJavascriptInterface移除Android系统内部的默认内置接口:searchBoxJavaBridge_、accessibility、accessibilityTraversal。

参考案例:
www.wooyun.org/bugs/wooyun-2015-0140708
www.wooyun.org/bugs/wooyun-2016-0188252
http://drops.wooyun.org/papers/548

参考资料:
http://jaq.alibaba.com/blog.htm?id=48
http://blog.nsfocus.net/android-webview-remote-code-execution-vulnerability-analysis
https://developer.android.com/reference/android/webkit/WebView.html

中危

检测到50条敏感明文信息,建议移除。

位置: classes.dex
'data:%s;base64,%s' used in: Lio/dcloud/js/file/FileFeatureImpl;->execute(Lio/dcloud/common/DHInterface/IWebview; Ljava/lang/String; [Ljava/lang/String;)Ljava/lang/String;
'data:image/' used in: Lio/dcloud/feature/nativeObj/b;->f()Ljava/lang/String;
'data:image/' used in: Lio/dcloud/feature/nativeObj/b;->c(Ljava/lang/String;)V
'data:image/png;base64,' used in: Lio/dcloud/feature/contacts/b;->a(Landroid/database/Cursor; J)Lorg/json/JSONObject;
'data:text/html,' used in: Lio/dcloud/common/adapter/ui/AdaWebview;->hadClearHistory(Ljava/lang/String;)Z
'data:text/html,chromewebdata' used in: Lio/dcloud/common/adapter/ui/WebLoadEvent;->onPageFinished(Landroid/webkit/WebView; Ljava/lang/String;)V
'file:///' used in: Lio/dcloud/common/a/d;->convert2WebviewFullPath(Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;
'file:///' used in: Lio/dcloud/common/adapter/ui/WebLoadEvent;->shouldInterceptRequest(Landroid/webkit/WebView; Ljava/lang/String;)Landroid/webkit/WebResourceResponse;
'file:///android_asset/' used in: Lio/dcloud/feature/internal/sdk/SDK;->createWebview(Landroid/app/Activity; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Lio/dcloud/common/DHInterface/IWebviewStateListener;)Lio/dcloud/common/DHInterface/IWebview;
'file:///android_asset/' used in: Lio/dcloud/common/adapter/util/DeviceInfo;->updatePath()V
'file:///android_asset/' used in: Lio/dcloud/feature/internal/sdk/SDK;->createWebview(Landroid/app/Activity; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Lio/dcloud/common/DHInterface/IWebviewStateListener; Lio/dcloud/common/DHInterface/IDCloudWebviewClientListener;)Lio/dcloud/common/DHInterface/IWebview;
'file:///android_asset/' used in: Lio/dcloud/common/a/d;->convert2AbsFullPath(Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;
'file:///android_asset/data/dcloud_error.html' used in: Lio/dcloud/common/a/d;->a(Ljava/io/InputStream; Ljava/lang/String; Lorg/json/JSONObject;)Z
'file:///android_asset/data/dcloud_error.html' used in: Lio/dcloud/common/a/d;->(Lio/dcloud/common/a/a; Ljava/lang/String; B)V
'http://ask.dcloud.net.cn/article/282' used in: Lio/dcloud/common/constant/DOMException;->toString(Ljava/lang/String;)Ljava/lang/String;
'http://ask.dcloud.net.cn/article/283' used in: Lio/dcloud/feature/b;->a(Lio/dcloud/common/DHInterface/IWebview; Ljava/lang/String;)V
'http://localhost' used in: Lio/dcloud/common/util/PdrUtil;->isNetPath(Ljava/lang/String;)Z
'http://localhost' used in: Lio/dcloud/common/a/d;->convert2AbsFullPath(Ljava/lang/String; Ljava/lang/String;)Ljava/lang/String;
'http://m3w.cn/s/' used in: Lio/dcloud/common/util/ShortCutUtil;->removeShortcutFromDeskTop(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Lorg/json/JSONObject;)Z
'http://m3w.cn/s/' used in: Lio/dcloud/appstream/share/Streamapp_Share;->getShareMsg(Landroid/app/Activity; Ljava/lang/String; Ljava/lang/String; I)Ljava/lang/String;
'http://m3w.cn/s/' used in: Lio/dcloud/common/util/ShortCutUtil;->createShortcutToDeskTop(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Landroid/graphics/Bitmap; Ljava/lang/String; Lorg/json/JSONObject; Z Z)Z
'http://m3w.cn/s/' used in: Lio/dcloud/appstream/share/Streamapp_Share;->getShareMsgJson(Landroid/app/Activity; Ljava/lang/String; Ljava/lang/String; I)Lorg/json/JSONObject;
'http://m3w.cn/sd/reg' used in: Lio/dcloud/appstream/SideBar$ShareWebUrlLong2Short;->run()V
'http://schemas.android.com/apk/res/android' used in: Lpl/droidsonroids/gif/GifViewUtils$GifImageViewAttributes;->getResourceId(Landroid/widget/ImageView; Landroid/util/AttributeSet; Z)I
'http://schemas.android.com/apk/res/android' used in: Lpl/droidsonroids/gif/GifTextureView;->init(Landroid/util/AttributeSet; I I)V
'http://schemas.android.com/apk/res/android' used in: Lpl/droidsonroids/gif/GifTextView;->init(Landroid/util/AttributeSet; I I)V
'http://stream.dcloud.net.cn/' used in: Lio/dcloud/common/constant/StringConst;->mainHost()Ljava/lang/String;
'http://stream.dcloud.net.cn/resource/sitemap/v2?appid=' used in: Lio/dcloud/common/a/d;->b()V
'http://stream.mobihtml5.com/' used in: Lio/dcloud/common/constant/StringConst;->backupHost()Ljava/lang/String;
'http://streamapp.sinaapp.com' used in: Lio/dcloud/streamdownload/utils/CommitPointData$4;->run()V
'http://update.dcloud.net.cn/apps/' used in: Lio/dcloud/streamdownload/utils/StreamAppDownloadManager;->createWebAppIntent(Landroid/app/Activity; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)Landroid/content/Intent;
'http://update.dcloud.net.cn/apps/' used in: Lio/dcloud/appstream/StreamAppManager;->createWebAppIntent(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)Landroid/content/Intent;
'http://update.dcloud.net.cn/apps/' used in: Lio/dcloud/appstream/service/ProtectService;->createWebAppIntent(Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String;)Landroid/content/Intent;
'http://www.dcloud.io/streamapp/streamapp.apk' used in: Lio/dcloud/common/util/ShortCutUtil$7;->onClick(Landroid/content/DialogInterface; I)V
'https://localhost' used in: Lio/dcloud/common/util/PdrUtil;->isNetPath(Ljava/lang/String;)Z
'https://service.dcloud.net.cn/advert/splash' used in: Lio/dcloud/feature/ad/a/a;->b(Ljava/lang/String; Lio/dcloud/feature/ad/a/j;)V
'https://service.dcloud.net.cn/collect/plusapp/action?' used in: Lio/dcloud/common/util/TestUtil$PointTime;->commitTid(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String; Ljava/lang/String; I Ljava/lang/String; Ljava/lang/String; Lorg/json/JSONObject;)V
'https://service.dcloud.net.cn/collect/plusapp/startup' used in: Lio/dcloud/common/a/d$8;->run()V
'https://service.dcloud.net.cn/sta/so?p=a&pn=%s&ver=%s&appid=%s' used in: Lio/dcloud/common/b/a$1;->run()V
"javascript:(function(){if(!((window.__html5plus__&&__html5plus__.isReady)?__html5plus__:(navigator.plus&&navigator.plus.isReady)?navigator.plus:window.plus)){window.__load__plus__&&window.__load__plus__();}var e = document.createEvent('HTMLEvents');var evt = '%s';e.initEvent(evt, false, true); e.active = '%s';/*console.log('dispatch ' + evt + ' event');*/document.dispatchEvent(e);})();" used in: Lio/dcloud/common/b/b/c;->onExecute(Lio/dcloud/common/DHInterface/ISysEventListener$SysEventType; Ljava/lang/Object;)Z
"javascript:(function(){if(!((window.__html5plus__&&__html5plus__.isReady)?__html5plus__:(navigator.plus&&navigator.plus.isReady)?navigator.plus:window.plus)){window.__load__plus__&&window.__load__plus__();}var e = document.createEvent('HTMLEvents');var evt = '%s';e.initEvent(evt, false, true);/*console.log('dispatch ' + evt + ' event');*/document.dispatchEvent(e);})();" used in: Lio/dcloud/common/adapter/ui/WebViewImpl;->onConfigurationChanged(Landroid/content/res/Configuration;)V
"javascript:(function(){if(!((window.__html5plus__&&__html5plus__.isReady)?__html5plus__:(navigator.plus&&navigator.plus.isReady)?navigator.plus:window.plus)){window.__load__plus__&&window.__load__plus__();}var e = document.createEvent('HTMLEvents');var evt = '%s';e.initEvent(evt, false, true);/*console.log('dispatch ' + evt + ' event');*/document.dispatchEvent(e);})();" used in: Lio/dcloud/common/adapter/ui/WebLoadEvent;->onPlusreadyEvent(Landroid/webkit/WebView; Ljava/lang/String; Ljava/lang/String;)V
"javascript:(function(){if(!((window.__html5plus__&&__html5plus__.isReady)?__html5plus__:(navigator.plus&&navigator.plus.isReady)?navigator.plus:window.plus)){window.__load__plus__&&window.__load__plus__();}var e = document.createEvent('HTMLEvents');var evt = '%s';e.initEvent(evt, false, true);/*console.log('dispatch ' + evt + ' event');*/document.dispatchEvent(e);})();" used in: Lio/dcloud/common/b/b/c;->onExecute(Lio/dcloud/common/DHInterface/ISysEventListener$SysEventType; Ljava/lang/Object;)Z
"javascript:(function(){var b=document.createEvent('HTMLEvents');var a='%s';b.url='%s';b.href='%s';b.initEvent(a,false,true);console.error(a);document.dispatchEvent(b);})();" used in: Lio/dcloud/common/adapter/ui/WebLoadEvent;->onPageFinished(Landroid/webkit/WebView; Ljava/lang/String;)V
"javascript:(function(){var container = document.getElementsByTagName('head')[0];\nvar script = document.createElement('script');\nscript.type = 'text/javascript';\nscript.src = '" used in: Lio/dcloud/common/adapter/ui/AdaWebview;->wrapAppendJsFile(Ljava/lang/String; I)Ljava/lang/String;
"javascript:(function(){var container = document.getElementsByTagName('head')[0];\nvar script = document.createElement('script');\nscript.type = 'text/javascript';\nscript.src = 'html5plus://ready';\ncontainer.appendChild(script);\nfirstNode = container.children[0];\nif(firstNode == null || firstNode==undefined)\n{ container.appendChild(script);}\nelse{\n\tcontainer.insertBefore(script,container.children[0]);\n}})();" used in: Lio/dcloud/common/adapter/ui/AdaWebview;->loadPlusApiFile()V
"javascript:plus.device.imsi = ['%s'];" used in: Lio/dcloud/common/b/b/c;->onExecute(Lio/dcloud/common/DHInterface/ISysEventListener$SysEventType; Ljava/lang/Object;)Z
'javascript:setTimeout(function(){location.__page__load__over__ = true;},2000);' used in: Lio/dcloud/common/adapter/ui/WebLoadEvent;->()V
"javascript:var container = document.getElementsByTagName('head')[0];\nvar addStyle = document.createElement('style');\naddStyle.rel = 'stylesheet';\naddStyle.type = 'text/css';\naddStyle.innerHTML = " used in: Lio/dcloud/common/adapter/ui/AdaWebview;->loadCssFile()Z
'javascript:window.__needNotifyNative__=true;' used in: Lio/dcloud/common/b/b/g;->a(Landroid/view/MotionEvent;)V

中危

检测到6处setSavePassword密码明文存储漏洞。

位置: classes.dex
io.dcloud.feature.ad.a.e;
io.dcloud.common.adapter.ui.AdaWebview;
io.dcloud.WebviewActivity;
io.dcloud.common.adapter.ui.WebLoadEvent;
io.dcloud.common.adapter.ui.WebViewImpl;
io.dcloud.feature.ad.a.a;

webview的保存密码功能默认设置为true。Webview会明文保存网站上的密码到本地私有文件”databases/webview.db”中。对于可以被root的系统环境或者配合其他漏洞(如webview的同源绕过漏洞),攻击者可以获取到用户密码。
建议:显示设置webView.getSetting().setSavePassword(false)。

参考案例:
www.wooyun.org/bugs/wooyun-2010-021420
www.wooyun.org/bugs/wooyun-2013-020246

参考资料:
http://wolfeye.baidu.com/blog/
www.claudxiao.net/2013/03/android-webview-cache/

低危

检测到1处SecureRandom使用不当。

位置: classes.dex
io.dcloud.common.adapter.util.DCloudTrustManager;->createSecureRandom

SecureRandom的使用不当会导致生成的随机数可被预测,该漏洞存在于Android系统随机生成数字串安全密钥的环节中。该漏洞的生成原因是对SecureRandom类的不正确使用方式导致生成的随机数不随机。建议:
(1)不要使用自定义随机源代替系统默认随机源(推荐)除非有特殊需求,在使用SecureRandom类时,不要调用以下函数:SecureRandom类下SecureRandom(byte[]seed)、setSeed(long seed)和setSeed(byte[]seed)方法。
(2)在调用setSeed方法前先调用任意nextXXX方法。具体做法是调用setSeed方法前先调用一次SecureRandom#nextBytes(byte[]bytes)方法,可以避免默认随机源被替代,详细见参考资料。

参考资料:
https://developer.android.com/reference/java/security/SecureRandom.html
http://drops.wooyun.org/papers/5164
http://jaq.alibaba.com/blog.htm?id=47

低危

检测到3个WebView系统隐藏接口未移除。

位置: classes.dex
io.dcloud.feature.ad.a.a;->g(Landroid.content.Context;)Ljava.lang.String;
io.dcloud.WebviewActivity;->a(Landroid.webkit.WebView;)V
io.dcloud.feature.ad.a.e;->(Landroid.content.Context;)V

android webview组件包含3个隐藏的系统接口:searchBoxJavaBridge_,accessibilityTraversal以及accessibility,恶意程序可以利用它们实现远程代码执行。
如果使用了WebView,那么使用WebView.removeJavascriptInterface(String name) API,显示的移除searchBoxJavaBridge_、accessibility、accessibilityTraversal这三个接口。

参考资料:
http://wolfeye.baidu.com/blog/android-webview/
http://blog.csdn.net/u013107656/article/details/51729398
http://wolfeye.baidu.com/blog/android-webview-cve-2014-7224/

低危

检测4处Intent Scheme URI漏洞。

位置: classes.dex
Lio/dcloud/common/adapter/util/PlatformUtil;->openURL(Landroid/content/Context; Ljava/lang/String; Ljava/lang/String;)V
Lio/dcloud/common/util/ADUtils;->openDeepLink(Landroid/content/Context; Ljava/lang/String;)Z
Lio/dcloud/feature/ad/a/b;->f(Landroid/content/Context; Lio/dcloud/feature/ad/a/a$b; Ljava/lang/String;)V
Lio/dcloud/multiprocess/activity/MultiProcessBaseActivity;->checkIntentAndChangeIntent()V


Intent Scheme URI是一种特殊的URL格式,用来通过Web页面启动已安装应用的Activity组件,大多数主流浏览器都支持此功能。如果在app中,没有检查获取到的load_url的值,攻击者可以构造钓鱼网站,诱导用户点击加载,就可以盗取用户信息。所以,对Intent URI的处理不当时,就会导致基于Intent的攻击。建议:
如果使用了Intent.parseUri函数,获取的intent必须严格过滤,intent至少包含addCategory(“android.intent.category.BROWSABLE”),setComponent(null),setSelector(null)3个策略。

参考资料:
http://wolfeye.baidu.com/blog/intent-scheme-url/
http://drops.wooyun.org/papers/2893
http://drops.wooyun.org/mobile/15202

低危

检测到2处AES/DES弱加密风险。

位置: classes.dex
Lio/dcloud/common/util/AESHelper;->decrypt([B Ljava/lang/String;)[B
Lio/dcloud/common/util/AESHelper;->encrypt([B Ljava/lang/String;)[B

使用AES/DES/DESede加密算法时,如果使用ECB模式,容易受到攻击风险,造成信息泄露。建议在使用AES/DES/DESede加密算法时,应显示指定使用CBC或CFB加密模式

参考资料:
http://blog.csdn.net/u013107656/article/details/51997957
https://developer.android.com/reference/javax/crypto/Cipher.html
http://drops.wooyun.org/tips/15870
https://developer.android.com/training/articles/keystore.html
http://wolfeye.baidu.com/blog/weak-encryption/
http://www.freebuf.com/articles/terminal/99868.html

低危

非debug包,需要通过打包平台proguard脚本,移除大部分系统输出代码。
经扫描该包仍存在大量系统输出代码,共发现7处系统输出代码.(此处扫描的系统输出代码,是指调用System.out.print*输出的,本应在打包平台移除的系统输出代码.)
各个bundle系统输出代码详情如下:

位置: classes.dex
io.dcloud.feature.barcode.b.b;
io.dcloud.common.a.d$9;
io.dcloud.common.adapter.util.AndroidResources;
io.dcloud.common.adapter.util.MobilePhoneModel;
io.dcloud.feature.nativeObj.richtext.b;
io.dcloud.common.util.AESHelper;
io.dcloud.common.util.net.NetWork;

低危

检测到7处主机名弱校验检测漏洞。

位置: classes.dex
com.dcloud.android.downloader.core.task.GetFileInfoTask$1;->verify(Ljava.lang.String; Ljavax.net.ssl.SSLSession;)Z
com.dcloud.android.downloader.core.thread.DownloadThread$1;->verify(Ljava.lang.String; Ljavax.net.ssl.SSLSession;)Z
com.nostra13.dcloudimageloader.core.download.BaseImageDownloader$2;->verify(Ljava.lang.String; Ljavax.net.ssl.SSLSession;)Z
io.dcloud.common.adapter.ui.WebLoadEvent$DCloudHostnameVerifier;->verify(Ljava.lang.String; Ljavax.net.ssl.SSLSession;)Z
io.dcloud.common.util.NetTool$1;->verify(Ljava.lang.String; Ljavax.net.ssl.SSLSession;)Z
io.dcloud.net.DownloadNetWork$DCloudDownloadHostnameVerifier;->verify(Ljava.lang.String; Ljavax.net.ssl.SSLSession;)Z
io.dcloud.sonic.SonicSessionConnection$SessionConnectionDefaultImpl$4;->verify(Ljava.lang.String; Ljavax.net.ssl.SSLSession;)Z

自定义HostnameVerifier类,却不实现其verify方法验证域名直接返回true,直接接受任意域名。建议:
对SSL证书进行强校验,包括签名CA是否合法、证书是否是自签名、主机域名是否匹配、证书是否过期等。

参考资料:
http://drops.wooyun.org/tips/3296
https://www.91ri.org/12534.html

低危

检测到2处地方在自定义实现的WebViewClient类在onReceivedSslError调用proceed()方法。

位置: classes.dex
io.dcloud.WebviewActivity$2;->onReceivedSslError(Landroid.webkit.WebView; Landroid.webkit.SslErrorHandler; Landroid.net.http.SslError;)V
io.dcloud.feature.ad.a.e$1;->onReceivedSslError(Landroid.webkit.WebView; Landroid.webkit.SslErrorHandler; Landroid.net.http.SslError;)V

Android WebView组件加载网页发生证书认证错误时,会调用WebViewClient类的onReceivedSslError方法,如果该方法实现调用了handler.proceed()来忽略该证书错误,则会受到中间人攻击的威胁,可能导致隐私泄露。建议:
当发生证书认证错误时,采用默认的处理方法handler.cancel(),停止加载问题页面当发生证书认证错误时,采用默认的处理方法handler.cancel(),停止加载问题页面。

参考案例:
http://www.wooyun.org/bugs/wooyun-2010-0109266

参考资料:
https://jaq.alibaba.com/blog.htm?id=60
http://wolfeye.baidu.com/blog/webview-ignore-ssl-error/

警告

检测到9处addFlags使用Intent.FLAG_ACTIVITY_NEW_TASK。

位置: classes.dex
io.dcloud.common.util.ApkUtils;->uninstall
io.dcloud.feature.device.DeviceFeatureImpl$2;->onDenied
io.dcloud.common.adapter.util.PlatformUtil;->openFileBySystem
io.dcloud.common.adapter.util.DownloadUtil;->getAPKInstallIntent
io.dcloud.common.util.ApkUtils;->installAPK
io.dcloud.WebviewActivity$3$1$1;->onCallBack
io.dcloud.common.util.ShortCutUtil;->createShortcutToDeskTop
io.dcloud.appstream.StreamApp_Updataer;->installAPK
io.dcloud.common.adapter.ui.WebViewImpl$2;->onCallBack

APP创建Intent传递数据到其他Activity,如果创建的Activity不是在同一个Task中打开,就很可能被其他的Activity劫持读取到Intent内容,跨Task的Activity通过Intent传递敏感信息是不安全的。建议:
尽量避免使用包含FLAG_ACTIVITY_NEW_TASK标志的Intent来传递敏感信息。

参考资料:
http://wolfeye.baidu.com/blog/intent-data-leak

警告

检测到8个导出的组件接收其他app的消息,这些组件会被其他app引用并导致dos攻击。

activity io.dcloud.PandoraEntryActivity
activity io.dcloud.appstream.StreamAppMainActivity
activity io.dcloud.appstream.StreamAppsAbout
activity io.dcloud.ProcessMediator
service io.dcloud.adapter.io.MiniServerService
service io.dcloud.streamdownload.DownloadService
receiver io.dcloud.common.adapter.io.PushReceiver
receiver io.dcloud.common.adapter.io.DownloadReceiver

建议:
(1)最小化组件暴露。对不会参与跨应用调用的组件建议显示添加android:exported="false"属性。
(2)设置组件访问权限。对provider设置权限,同时将权限的protectionLevel设置为"signature"或"signatureOrSystem"。
(3)组件传输数据验证。对组件之间,特别是跨应用的组件之间的数据传入与返回做验证和增加异常处理,防止恶意调试数据传入,更要防止敏感数据返回。

参考案例:
http://www.wooyun.org/bugs/wooyun-2010-0169746
http://www.wooyun.org/bugs/wooyun-2010-0104965

参考资料:
http://jaq.alibaba.com/blog.htm?spm=0.0.0.0.Wz4OeC&id=55
《Android安全技术解密与防范》

警告

检测到1个导出的隐式Service组件。
service io.dcloud.streamdownload.DownloadService

建议:为了确保应用的安全性,启动Service时,请始终使用显式Intent,且不要为服务声明Intent过滤器。使用隐式Intent启动服务存在安全隐患,因为您无法确定哪些服务将响应Intent,且用户无法看到哪些服务已启动。从Android 5.0(API 级别 21)开始,如果使用隐式 Intent 调用 bindService(),系统会抛出异常。

参考资料:
https://developer.android.com/guide/components/intents-filters.html#Types

警告

检测1处組件設置了android.intent.category.BROWSABLE属性。
io.dcloud.PandoraEntryActivity


在AndroidManifest文件中定义了android.intent.category.BROWSABLE属性的组件,可以通过浏览器唤起,这会导致远程命令执行漏洞攻击。建议:
(1)APP中任何接收外部输入数据的地方都是潜在的攻击点,过滤检查来自网页的参数。
(2)不要通过网页传输敏感信息,有的网站为了引导已经登录的用户到APP上使用,会使用脚本动态的生成URL Scheme的参数,其中包括了用户名、密码或者登录态token等敏感信息,让用户打开APP直接就登录了。恶意应用也可以注册相同的URL Sechme来截取这些敏感信息。Android系统会让用户选择使用哪个应用打开链接,但是如果用户不注意,就会使用恶意应用打开,导致敏感信息泄露或者其他风险。

參考案例:
http://www.wooyun.org/bugs/wooyun-2014-073875
http://www.wooyun.org/bugs/wooyun-2014-067798

参考资料:
http://wolfeye.baidu.com/blog/intent-scheme-url/
http://www.jssec.org/dl/android_securecoding_en.pdf
http://drops.wooyun.org/mobile/15202
http://blog.csdn.net/l173864930/article/details/36951805
http://drops.wooyun.org/papers/2893

警告

检测到3潜在的XSS漏洞。

位置: classes.dex
io.dcloud.WebviewActivity;->a(Landroid.webkit.WebView;)V
io.dcloud.common.adapter.ui.WebViewImpl;->init()V
io.dcloud.feature.ad.a.e;->(Landroid.content.Context;)V

允许WebView执行JavaScript(setJavaScriptEnabled),有可能导致XSS攻击。建议尽量避免使用。
(1)API等于高高于17的Android系统。出于安全考虑,为了防止Java层的函数被随意调用,Google在4.2版本之后,规定允许被调用的函数必须以@JavascriptInterface进行注解。
(2)API等于高高于17的Android系统。建议不要使用addJavascriptInterface接口,以免带来不必要的安全隐患,如果一定要使用该接口,建议使用证书校验。
u(3)使用removeJavascriptInterface移除Android系统内部的默认内置接口:searchBoxJavaBridge_、accessibility、accessibilityTraversal。

参考案例:
www.wooyun.org/bugs/wooyun-2015-0140708
www.wooyun.org/bugs/wooyun-2016-0188252

参考资料:
http://jaq.alibaba.com/blog.htm?id=48
http://blog.nsfocus.net/android-webview-remote-code-execution-vulnerability-analysis

警告

检测到2处IvParameterSpec的使用。

位置: classes.dex
io.dcloud.common.util.AESUtil;->createCipher(I [B Ljava.lang.String; [B)Ljavax.crypto.Cipher;
io.dcloud.feature.encryption.AesEncryptionUtil;->a(Ljava.lang.String;)Ljavax.crypto.spec.IvParameterSpec;

使用IVParameterSpec函数,如果使用了固定的初始化向量,那么密码文本可预测性高得多,容易受到字典攻击等。建议禁止使用常量初始化矢量构造IVParameterSpec,使用聚安全提供的安全组件。

参考资料:
http://drops.wooyun.org/tips/15870
https://developer.android.com/training/articles/keystore.html
http://wolfeye.baidu.com/blog/weak-encryption/
http://www.freebuf.com/articles/terminal/99868.html

警告

检测到1个导出的组件存在Intent不安全反射风险。


位置: classes.dex
io.dcloud.ProcessMediator;->onCreate

建议:
(1)不要通过Intent接收的Extra传播的反射函数
(2)将接受反射的组件设置为非导出组件。

警告

检测到2处socket通信。

位置: classes.dex
Lio.dcloud.appstream.service.DaemonService$1;->run
Lio.dcloud.common.util.net.http.SNCListener;->start

Android应用通常使用PF_UNIX、PF_INET、PF_NETLINK等不同domain的socket来进行本地IPC或者远程网络通信,这些暴露的socket代表了潜在的本地或远程攻击面,历史上也出现过不少利用socket进行拒绝服务、root提权或者远程命令执行的案例特别是PF_INET类型的网络socket,可以通过网络与Android应用通信,其原本用于linux环境下开放网络服务,由于缺乏对网络调用者身份或者本地调用者id、permission等细粒度的安全检查机制,在实现不当的情况下,可以突破Android的沙箱限制,以被攻击应用的权限执行命令,通常出现比较严重的漏洞

参考案例:
http://www.wooyun.org/bugs/wooyun-2015-0148406
http://www.wooyun.org/bugs/wooyun-2015-0145365

参考资料:
http://wolfeye.baidu.com/blog/open-listen-port
http://blog.csdn.net/jltxgcy/article/details/50686858
https://www.bigniu.com/article/view/10
http://drops.wooyun.org/mobile/6973

警告

检测到4处使用了加解密算法。密钥处理不当可能会导致信息泄露。

位置: classes.dex
io.dcloud.feature.encryption.AesEncryptionUtil;->decrypt([B Ljava.lang.String; Ljava.lang.String;)[B
io.dcloud.feature.encryption.AesEncryptionUtil;->encrypt([B Ljava.lang.String; Ljava.lang.String;)[B
io.dcloud.common.util.AESUtil;->createCipher(I [B Ljava.lang.String; [B)Ljavax.crypto.Cipher;
io.dcloud.common.util.AESHelper;->createKey(Ljava.lang.String;)Ljavax.crypto.spec.SecretKeySpec;

参考案例:
http://www.wooyun.org/bugs/wooyun-2010-0105766
http://www.wooyun.org/bugs/wooyun-2015-0162907
http://www.wooyun.org/bugs/wooyun-2010-0187287

参考资料:
http://drops.wooyun.org/tips/15870
https://developer.android.com/training/articles/keystore.html


动态扫描发现风险点

风险等级 风险名称

服务端分析

风险等级 风险名称

警告

检测到?处XSS漏洞。
开发中...

警告

检测到?处XSS跨站漏洞。
开发中...

应用证书