<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Treasure Hunt</title>
	<atom:link href="http://gaurangkp.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://gaurangkp.wordpress.com</link>
	<description>Hunting for Hidden Treasures of IT Security</description>
	<lastBuildDate>Wed, 24 Apr 2013 07:34:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gaurangkp.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Treasure Hunt</title>
		<link>http://gaurangkp.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gaurangkp.wordpress.com/osd.xml" title="Treasure Hunt" />
	<atom:link rel='hub' href='http://gaurangkp.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Nokia&#8217;s MITM on HTTPS traffic from their phone</title>
		<link>http://gaurangkp.wordpress.com/2013/01/09/nokia-https-mitm/</link>
		<comments>http://gaurangkp.wordpress.com/2013/01/09/nokia-https-mitm/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 13:10:01 +0000</pubDate>
		<dc:creator>Gaurang</dc:creator>
				<category><![CDATA[Mobile Phone Security]]></category>
		<category><![CDATA[Nokia]]></category>
		<category><![CDATA[Man in the middle attack]]></category>
		<category><![CDATA[MITM]]></category>
		<category><![CDATA[Nokia Asha 302 MITM]]></category>
		<category><![CDATA[Nokia HTTPS MITM]]></category>
		<category><![CDATA[Nokia MITM]]></category>
		<category><![CDATA[Nokia Phone security]]></category>
		<category><![CDATA[Nokia's Man in the middle Attack]]></category>

		<guid isPermaLink="false">http://gaurangkp.wordpress.com/?p=52</guid>
		<description><![CDATA[The statements I have posted on this site are mine alone and do not necessarily reflect the views of Unisys Tested On Handset Model Nokia Asha 302 OS Version 14.78 (31-08-12), RM-813 Browsers Tested On Nokia Browser (2.2.0.0.31) OS Type Series 40 (S40) After discovering that HTTP traffic from the phone is getting redirected through [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gaurangkp.wordpress.com&#038;blog=43149258&#038;post=52&#038;subd=gaurangkp&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h1 style="text-align:center;"><span style="text-decoration:underline;"><i>The statements I have posted on this site are mine alone and do not necessarily reflect the views of Unisys</i></span></h1>
<p><b>Tested On</b></p>
<table width="372" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="141"><b>Handset Model</b></td>
<td valign="top" width="189">Nokia Asha 302</td>
</tr>
<tr>
<td valign="top" width="141"><b>OS Version</b></td>
<td valign="top" width="189">14.78 (31-08-12), RM-813</td>
</tr>
<tr>
<td valign="top" width="141"><b>Browsers Tested On</b></td>
<td valign="top" width="189">Nokia Browser (2.2.0.0.31)</td>
</tr>
<tr>
<td valign="top" width="141"><b>OS Type</b></td>
<td valign="top" width="189">Series 40 (S40)</td>
</tr>
</tbody>
</table>
<p>After discovering that HTTP traffic from the phone is getting redirected through Nokia&#8217;s server farm as shown in <a title="Nokia phone forcing traffic through proxy" href="http://gaurangkp.wordpress.com/2012/12/05/nokia-proxy/" target="_blank">previous post</a>, the most obvious next step was to check if at least HTTPS traffic is getting its due respect and is being transferred without any intermediate host inspecting it. Due to fact that HTTPS traffic is encrypted before getting transmitted, it is not possible to look at HTTP(S) packet header in order to figure out details as was done in case of HTTP as per previous post. However there are two ways to get an idea of how traffic is flowing.</p>
<ol>
<li>Check if DNS requests are sent for requested website.</li>
<li>Check certificate sent from server</li>
</ol>
<p><span style="text-decoration:underline;"><strong>DNS Request Check</strong></span></p>
<p>The goal of this test was to find whether the phone is sending DNS query for site that is being requested to be browsed. To test this we had browsed site <a href="https://www.google.com" rel="nofollow">https://www.google.com</a> through Nokia browser. Ideally the phone should have send DNS query requesting IP address for &#8220;www.google.com&#8221;, which would have looked normal. On the contrary when checked, the DNS request was sent for &#8220;cloud13.browser.ovi.com&#8221; which is same host where we had seen even HTTP traffic being sent as per previous post. Not just that, there was no attempt made to resolve &#8220;www.google.com&#8221;. The wireshark snapshot given below proves this fact, but there is no way from wireshark snapshot taken off wifi router it can be proved that the request was originally made for <a href="https://www.google.com" rel="nofollow">https://www.google.com</a> and not for cloud13.browser.ovi.com.</p>
<p style="text-align:center;"><a href="http://gaurangkp.wordpress.com/2013/01/09/nokia-https-mitm/attachment/1/" target="_blank" rel="attachment wp-att-67"><img class="aligncenter  wp-image-67" alt="DNS Capture" src="http://gaurangkp.files.wordpress.com/2012/12/12.jpg?w=1207&#038;h=353" width="1207" height="353" /></a></p>
<p style="text-align:left;"><strong><span style="text-decoration:underline;">Certificate Response Check</span></strong></p>
<p style="text-align:left;">It is evident from above snapshot, that even https requests are also getting redirected to Nokia/Ovi servers, which raises a question about certificate that it being received from Nokia&#8217;s servers and trusted list of certificates in Nokia phone in subject. Let us first look at certificates being received from Nokia servers during this transaction. Given below is packet sniff from wifi router.</p>
<p style="text-align:center;"><a href="http://gaurangkp.wordpress.com/2013/01/09/nokia-https-mitm/nokia-certs/" target="_blank" rel="attachment wp-att-77"><img class="aligncenter  wp-image-77" alt="nokia-certs" src="http://gaurangkp.files.wordpress.com/2012/12/nokia-certs.jpg?w=1207&#038;h=353" width="1207" height="353" /></a></p>
<p style="text-align:left;">When checked trusted certificates in phone it is found that Nokia has pre-configured the phone by trusting at least one of these certificates, which is the reason why there are no security alerts being shown during this<strong> Man In The Middle (MITM) attack by Nokia</strong>. The snapshot given below shows details about each of the three certificates that are shown in packet capture.</p>
<p style="text-align:center;"><a href="http://gaurangkp.wordpress.com/2013/01/09/nokia-https-mitm/certs/" target="_blank" rel="attachment wp-att-86"><img class="size-large wp-image-86" alt="certs" src="http://gaurangkp.files.wordpress.com/2012/12/certs.jpg?w=627&#038;h=259" width="627" height="259" /></a></p>
<p style="text-align:left;">One more thing that should be noticed here is that the DNS request was send for &#8220;cloud13.browser.ovi.com&#8221; where as certificate (middle one) says it was issued to &#8220;cloud1.browser.ovi.com&#8221;, and still there was no security warning thrown on the phone.</p>
<h2 style="text-align:left;"><span style="text-decoration:underline;"><strong>Conclusion</strong></span></h2>
<p>From the tests that were preformed, it is evident that Nokia is performing Man In The Middle Attack for sensitive HTTPS traffic originated from their phone and hence they do have access to clear text information which could include user credentials to various sites such as social networking, banking, credit card information or anything that is sensitive in nature. <strong><span style="text-decoration:underline;">In short, be it HTTP or HTTPS site when browsed through the phone in subject, Nokia has complete information unencrypted (in clear text format) available to them for them to use or </span><span style="text-decoration:underline;">abuse.</span></strong> Up on checking privacy statement in Nokia&#8217;s website following can be found.</p>
<pre><strong>Websites accessed
</strong>
The URLs of such sites which you access with the Nokia Browser are stored by Nokia. However, we will not collect any personally identifiable information in the context of providing the service. Your browsing is not associated to any personally identifiable information and we do not collect any usernames or passwords or any related information on your purchase transactions, such as your credit card number during your browsing sessions. Also, additional parameters in the URL are not stored.</pre>
<p>For additional information on their privacy policy you may want to visit their <a href="http://www.nokia.com/global/privacy/privacy/policy/privacy-policy/">Privacy Policy Page</a> or <a href="http://www.nokia.com/global/privacy/privacy/details/browser/nokia-browser/">Nokia Browser Privacy Policy Page</a></p>
<h2><strong><span style="text-decoration:underline;">Update of 10th January,2013</span></strong></h2>
<p>Just noticed when I tried to browse a site through Nokia browser, I got a message to upgrade browser. I clicked remind later as I wanted to something. My guess is Nokia would have fixed this. But nothing can be said without actually upgrading and testing. Also seeing &#8220;Update your browser&#8221; in browser.nokia.com. Since no date/time stamp is given there it can not be confirmed if this is new or old.</p>
<h2><span style="text-decoration:underline;">Update of 11th January,2013</span></h2>
<p>Just upgraded my Nokia browser, the version now is 2.3.0.0.48, and as expected there is a change in HTTPS behaviour. There is a good news and a bad news. The good news is with this browser, <strong>they are no more doing Man-In-The-Middle attack on HTTPS traffic</strong>, which was originally the issue, and the bad news is the traffic is still flowing through their servers. This time they are tunneling HTTPS traffic over HTTP connection to their server. Details are given below.</p>
<p>This time again we had browsed <a href="https://www.google.com" rel="nofollow">https://www.google.com</a>, and found that again DNS requests are sent for Nokia/Ovi servers and this time it was &#8220;cloud13.xpress.nokia.com&#8221;. Up on receiving DNS reply, a HTTP tunnel is eshtablished between Mobile device and their cloud server and HTTPS traffic is tunneled over that HTTP tunnel.</p>
<p>The snapshot given below shows DNS query and HTTP traffic for HTTPS site.</p>
<p style="text-align:center;"><img class="aligncenter  wp-image-134" alt="new-behaviour" src="http://gaurangkp.files.wordpress.com/2013/01/new-behaviour.jpg?w=1207&#038;h=353" width="1207" height="353" /></p>
<p style="text-align:left;">Also HTTP header shown below confirms this info where &#8220;x-nokiabrowser-host&#8221; parameter informs Nokia server to fetch a perticular HTTPS url and later the content is passed over to mobile device. We are yet to try seeing certificate information in this as it is neither available from Phone nor from packet sniff as was possible previously. <strong>I am yet to check how is GET/POST requests to a HTTPS site is handled.</strong></p>
<pre style="text-align:left;"><span style="color:#ff0000;">POST / HTTP/1.1</span>
<span style="color:#ff0000;">Host: cloud13.xpress.nokia.com</span>
<span style="color:#ff0000;">Content-Type: application/octet-stream</span>
<span style="color:#ff0000;">x-nokiabrowser-host: https://www.google.com</span>
<span style="color:#ff0000;">connection: Keep-Alive</span>
<span style="color:#ff0000;">accept: */*</span>
<span style="color:#ff0000;">cache-control: no-cache</span>
<span style="color:#ff0000;">x-device-id: &lt;removed&gt;</span>
<span style="color:#ff0000;">Content-Length: 362</span>
<span style="color:#ff0000;">Connection: Keep-Alive</span>
<span style="color:#ff0000;">User-Agent: Nokia302/5.0 (14.78) Profile/MIDP-2.1 Configuration/CLDC-1.1</span>
<span style="color:#ff0000;">x-wap-profile: "http://nds1.nds.nokia.com/uaprof/Nokia302r100.xml"</span>

<span style="color:#ff0000;">ETLV.4J....I...G..L....[OUTPUT-CUT]</span></pre>
<p>I would like to Thank Nokia officials for quickly responding to the issue and getting it fixed on priority. This shows their commitment towards privacy of their mobile customers, much appriciated.</p>
<p>Fresh commenting/pingbacks has been disabled on this post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gaurangkp.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gaurangkp.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gaurangkp.wordpress.com&#038;blog=43149258&#038;post=52&#038;subd=gaurangkp&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gaurangkp.wordpress.com/2013/01/09/nokia-https-mitm/feed/</wfw:commentRss>
		<slash:comments>87</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/48283bfb4c8804b68f1b3c9c264289ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gaurangkp</media:title>
		</media:content>

		<media:content url="http://gaurangkp.files.wordpress.com/2012/12/12.jpg?w=300" medium="image">
			<media:title type="html">DNS Capture</media:title>
		</media:content>

		<media:content url="http://gaurangkp.files.wordpress.com/2012/12/nokia-certs.jpg?w=627" medium="image">
			<media:title type="html">nokia-certs</media:title>
		</media:content>

		<media:content url="http://gaurangkp.files.wordpress.com/2012/12/certs.jpg?w=627" medium="image">
			<media:title type="html">certs</media:title>
		</media:content>

		<media:content url="http://gaurangkp.files.wordpress.com/2013/01/new-behaviour.jpg?w=627" medium="image">
			<media:title type="html">new-behaviour</media:title>
		</media:content>
	</item>
		<item>
		<title>Nokia phone forcing traffic through proxy</title>
		<link>http://gaurangkp.wordpress.com/2012/12/05/nokia-proxy/</link>
		<comments>http://gaurangkp.wordpress.com/2012/12/05/nokia-proxy/#comments</comments>
		<pubDate>Tue, 04 Dec 2012 18:43:05 +0000</pubDate>
		<dc:creator>Gaurang</dc:creator>
				<category><![CDATA[IT Security]]></category>

		<guid isPermaLink="false">http://gaurangkp.wordpress.com/?p=6</guid>
		<description><![CDATA[The statements I have posted on this site are mine alone and do not necessarily reflect the views of Unisys Tested On Handset Model Nokia Asha 302 OS Version 14.78 (31-08-12), RM-813 Browsers Tested On Nokia Browser, Opera Mini OS Type Series 40 (S40)   It has been noticed that internet browsing traffic, instead of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gaurangkp.wordpress.com&#038;blog=43149258&#038;post=6&#038;subd=gaurangkp&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<h1 style="text-align:center;"><span style="text-decoration:underline;"><i>The statements I have posted on this site are mine alone and do not necessarily reflect the views of Unisys</i></span></h1>
<p><b><span style="text-decoration:underline;">Tested On</span></b></p>
<table width="357" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="141"><b>Handset Model</b></td>
<td valign="top" width="189">Nokia Asha 302</td>
</tr>
<tr>
<td valign="top" width="141"><b>OS Version</b></td>
<td valign="top" width="189">14.78 (31-08-12), RM-813</td>
</tr>
<tr>
<td valign="top" width="141"><b>Browsers Tested On</b></td>
<td valign="top" width="189">Nokia Browser, Opera Mini</td>
</tr>
<tr>
<td valign="top" width="141"><b>OS Type</b></td>
<td valign="top" width="189">Series 40 (S40)</td>
</tr>
</tbody>
</table>
<p><b> </b></p>
<p>It has been noticed that internet browsing traffic, instead of directly hitting requested server, is being redirected to proxy servers. They get redirected to Nokia/Ovi proxy servers if Nokia browser is used, and to Opera proxy servers if Opera Mini browser is used. Given below is HTTP request header I noticed while browsing a simple site of checkip.dyndns.org, which reveals public ip address used by browsing device.</p>
<pre><span style="color:#ff0000;">POST / HTTP/1.1
Host: cloud13.browser.ovi.com
Content-Type: text/plain
x-nokiabrowser-host: checkip.dyndns.org
connection: Keep-Alive
accept: */*
cache-control: no-cache
x-device-id: &lt;removed&gt;
Content-Length: 293
Connection: Keep-Alive
User-Agent: Nokia302/5.0 (14.78) Profile/MIDP-2.1 Configuration/CLDC-1.1
x-wap-profile: "http://nds1.nds.nokia.com/uaprof/Nokia302r100.xml"
</span></pre>
<p>Upon browsing a site, no attempt is made to resolve host name of site that is being browsed, but DNS request goes for resolving Nokia/Ovi’s cloud server which is shown in “Host:” part of above stated HTTP request. The site that needs to be browsed is sent to nokia server as parameter of “x-nokiabrowser-host”. Not just site browsing using their web-browser, but also some built-in applications such as mail client and twitter client (these are tested ones) seem to use same nokia browser, hence traffic for those applications as well is proxied through Nokia servers in above stated manner. Even after checking various settings, I could not see any straightforward  way to bypass this proxy setting and let my internet traffic pass through normally. This behavior is noticed regardless of whether the browsing is done through 3G or Wifi network connections. I have tested this on Wifi by sniffing at wifi router and on 3G network by browsing self owned server and looking at packet capture.</p>
<p>In case of Opera Mini browser, there are two browsing options available 1) http 2) socks. This has been tested in both the browsing methods and results are similar. First of all, no dns request was seen for the site being browsed, but dns request was noticed for the opera site.</p>
<p>Given below is http request header for browsing the same site of checkip.dyndns.org using Opera Mini browser with http option:</p>
<pre><span style="color:#ff0000;">POST / HTTP/1.1 
Host: mini5.opera-mini.net 
Content-Type: application/xml 
accept: */* 
Content-Length: 15
Connection: Keep-Alive 
User-Agent: Nokia302/5.0 (14.78) Profile/MIDP-2.1 Configuration/CLDC-1.1 
x-wap-profile: "http://nds1.nds.nokia.com/uaprof/Nokia302r100.xml" 
</span>
<span style="color:#ff0000;">...Q....l....z.

</span></pre>
<p>The screenshot given below shows packet flow captured by tcpdump (with host filter enabled for my mobile device) on wifi router, while browsing above mentioned site using Opera Mini browser over http.</p>
<p><span style="color:#ff0000;"> <span style="color:#888888;"><a href="http://gaurangkp.wordpress.com/2012/12/05/nokia-proxy/image002/" target="_blank" rel="attachment wp-att-18"><img class="aligncenter size-medium wp-image-18" alt="image002" src="http://gaurangkp.files.wordpress.com/2012/12/image002.jpg?w=897&#038;h=268" width="897" height="268" /></a></span></span></p>
<p>Whereas same site, when browsed using Opera Mini browser over Socks option, looks like the screenshot given below, which is again packet capture by tcpdump (with host filter enabled for my mobile device) on my wifi router.</p>
<p style="text-align:center;"><span style="color:#ff0000;"><span style="color:#888888;"><a href="http://gaurangkp.wordpress.com/2012/12/05/nokia-proxy/image004/" target="_blank" rel="attachment wp-att-19"><img class="aligncenter size-medium wp-image-19" alt="image004" src="http://gaurangkp.files.wordpress.com/2012/12/image004.jpg?w=897&#038;h=268" width="897" height="268" /></a></span></span></p>
<p>Again I couldn’t find a way in Opera Mini browser to bypass this behavior and let the traffic pass normally to target server, after seeing such shocking behavior, I quickly checked same things in a bit older Nokia mobile phone (C5-03), and couldn’t find any such behavior in that.  Other thing to notice is whether we use Nokia browser or Opera Mini browser, http header’s User-Agent parameter shows exactly same values.</p>
<p>Now such behavior in Nokia mobile phones does raise few questions and concerns.</p>
<ol>
<li>What about individual&#8217;s privacy?</li>
<li>What is Nokia/Opera doing behind the scene with all these information?</li>
<li>Is Nokia selling such devices/OS only in India or even in other places?</li>
<li>Is Nokia doing this to meet any regulatory requirement?</li>
<li>And lastly, can’t this method be (mis)used to proxy even normal desktop/laptop Internet browsing through their proxy servers, to hide real source??</li>
</ol>
<p>Fresh commenting/pingbacks has been disabled on this post.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gaurangkp.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gaurangkp.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gaurangkp.wordpress.com&#038;blog=43149258&#038;post=6&#038;subd=gaurangkp&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gaurangkp.wordpress.com/2012/12/05/nokia-proxy/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/48283bfb4c8804b68f1b3c9c264289ab?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">gaurangkp</media:title>
		</media:content>

		<media:content url="http://gaurangkp.files.wordpress.com/2012/12/image002.jpg?w=300" medium="image">
			<media:title type="html">image002</media:title>
		</media:content>

		<media:content url="http://gaurangkp.files.wordpress.com/2012/12/image004.jpg?w=300" medium="image">
			<media:title type="html">image004</media:title>
		</media:content>
	</item>
	</channel>
</rss>
