Google I/O 2017 Application for Android does not use SSL for retrieving some information to populate the app. This would allow an MITM attacker to inject their own content into the application. The vendor (Google) fixed the issue in v5.1.4 of the application.
The Google I/O 2017 application for Android is a companion app produced by Google for their annual I/O conference that takes place in May. This particular version was produced for I/O conference in May of 2017.
While performing network level testing of various Google applications, we discovered that the content for the application did not use SSL. This would allow an MITM attacker to inject their own content into the application using a method like ARP spoofing, DNS takeover, etc.
To replicate the issue on v5.0.3:
- Install the application
- Setup the proxy without an SSL certificate and point the Android device to it.
- Go to the application and select the “feed” option (middle icon on the bottom).
- Go back to the proxy and observe captured traffic.
Screenshots of the feed before and after the data is loaded:
Network traffic captures appear as follows:
The specific URL was “http://storage.googleapis.com/io2017-festivus/manifest_v1.json” which then causes the device to download additional URLs. The following URLs are downloaded:
This can also be seen in the source code of the I/O 2016 application on Github as follows:
All testing was done on Android 7, Google I/O version 5.0.3. Network captures were performed using an on-device proxy (PacketCapture) without a trusted SSL certificate.
Proof of Concept
All testing was done on Ubuntu v17.04 and Android 7:
- Install nginx – “sudo apt-get install nginx”.
- Install dnsmasq – “sudo apt-get install dnsmasq”
- Find out the IP address of your computer via ifconfig.
- Add the IP address mapping to the hosts file: “192.168.1.x storage.googleapis.com”
- Create and download the files from Google to the NGINX directory:
- cd /var/www/html
- mkdir io2017-festivus
- cd io2017-festivus
- wget http://storage.googleapis.com/io2017-festivus/manifest_v1.json
- wget http://storage.googleapis.com/io2017-festivus/blocks_v4.json
- wget http://storage.googleapis.com/io2017-festivus/map_v4.json
- wget http://storage.googleapis.com/io2017-festivus/session_v1.70.json
- Modify “blocks_v4.json” to add your content.
- Install version 5.0.3 of the application on the Android device.
- Change DNS on the device to point to the Ubuntu machine.
- Open the app, skip sign in, and on the main screen choose the feed icon.
- Switch back to the first section and observe injected content:
This issue was responsibly reported to the vendor and fixed in version 5.1.4.
CVE ID: CVE-2017-9045
Google I/O 2016 source code: https://github.com/google/iosched
Advisory written by Yakov Shafranovich.
2017-05-11: Initial report to the vendor
2017-05-11: Report triaged by the vendor and bug filed
2017-05-13: Fixed version released by the vendor
2017-05-16: Draft advisory sent to vendor for comment
2017-05-17: Public disclosure