<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/rss-style.xsl" type="text/xsl"?>
<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/"
	>
<channel>
	<title>telefonica &#8211; Terence Eden’s Blog</title>
	<atom:link href="https://shkspr.mobi/blog/tag/telefonica/feed/" rel="self" type="application/rss+xml" />
	<link>https://shkspr.mobi/blog</link>
	<description>Regular nonsense about tech and its effects 🙃</description>
	<lastBuildDate>Fri, 06 Oct 2023 15:34:36 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://shkspr.mobi/blog/wp-content/uploads/2023/07/cropped-avatar-32x32.jpeg</url>
	<title>telefonica &#8211; Terence Eden’s Blog</title>
	<link>https://shkspr.mobi/blog</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title><![CDATA[Responsible Disclosure: Abandoned Buckets and Billing Emails]]></title>
		<link>https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/</link>
					<comments>https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Mon, 27 Feb 2023 12:34:21 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[CyberSecurity]]></category>
		<category><![CDATA[o2]]></category>
		<category><![CDATA[Responsible Disclosure]]></category>
		<category><![CDATA[telefonica]]></category>
		<guid isPermaLink="false">https://shkspr.mobi/blog/?p=44772</guid>

					<description><![CDATA[A few weeks ago, I received a billing email from my phone provider O2. While glancing at it, I noticed all the images were broken.    Viewing the source of the email showed that they were all coming from http:// mcsaatchi-email-preview.s3.amazonaws.com/o2/...    What happens if we visit that domain?    Ah, the dreaded &#34;The specified bucket does not exist&#34; error. At some point the images were…]]></description>
										<content:encoded><![CDATA[<p>A few weeks ago, I received a billing email from my phone provider O2<sup id="fnref:o2"><a href="https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/#fn:o2" class="footnote-ref" title="My (very) former employer." role="doc-noteref">0</a></sup>. While glancing at it, I noticed all the images were broken.</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2023/01/broken-images.png" alt="Screenshot of an email - all the images are broken. There is no alt-text." width="640" height="318" class="aligncenter size-full wp-image-44775">

<p>Viewing the source of the email showed that they were all coming from <code>http:// mcsaatchi-email-preview.s3.amazonaws.com/o2/...</code></p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2023/01/email-code.png" alt="Source code of an email showing the links." width="1024" height="428" class="aligncenter size-full wp-image-44774">

<p>What happens if we visit that domain?</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2023/01/nosuchbucket.png" alt="Error saying the bucket does not exit." width="1024" height="263" class="aligncenter size-full wp-image-44773">

<p>Ah, the dreaded "The specified bucket does not exist" error. At some point the images were served from that domain but someone deleted the bucket.</p>

<p>This is a problem. Amazon doesn't reserve bucket names after they're abandoned.  Which means digital miscreants can claim them.</p>

<p>Imagine if, say, Vodafone<sup id="fnref:voda"><a href="https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/#fn:voda" class="footnote-ref" title="Another of my (very) former employers." role="doc-noteref">1</a></sup> registered that bucket name. All of a sudden they could inject their logos or adverts into their rival's billing emails.</p>

<p>An attacker could go further. They could replace the images with ones saying "Please note our bank details have changed, send BitCoin to...."</p>

<p>It gets worse. The emails contain a link to an external font.</p>

<img src="https://shkspr.mobi/blog/wp-content/uploads/2023/01/font.png" alt="Screenshot showing the font being loaded in code." width="1024" height="292" class="aligncenter size-full wp-image-44776">

<p>An attacker could craft <a href="https://pixelambacht.nl/2015/sans-bullshit-sans/">a font with specific ligatures</a> which would <em>replace the text of the email!</em></p>

<p>I quickly defensively registered the bucket on AWS and sent an email telling O2's security team about the problem. I suggested they update their future emails.  Of course, that doesn't help all the emails which have been already been sent and are lingering in their customers' inboxes. So I offered to transfer the bucket name back.</p>

<p>I received an automated response saying they'd look in to it.</p>

<h2 id="lessons-you-should-learn"><a href="https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/#lessons-you-should-learn">Lessons you should learn</a></h2>

<p>You should be very wary about hosting your critical infrastructure on a sub-domain outside of your control.  And you should never point directly to an S3 bucket if you can help it.</p>

<p>Ideally, O2 would have spun up a domain like <code>images.billing-emails.o2.com</code>, pointed it to S3, and used that in their emails.  That way, if they decided not to continue using Amazon's services, all their existing billing emails would be unaffected.</p>

<p>If an attacker gets control of a domain used to show images in emails, the can directly target your customers.</p>

<h2 id="timeline"><a href="https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/#timeline">Timeline</a></h2>

<ul>
<li>2023-01-26 Issue detected. Defensively registered. Email sent.</li>
<li>2023-02-21 Reminder email sent informing them that I'd be publishing this post.</li>
<li>2023-02-22 O2 said they were investigating and asked me to delete the bucket, which I did. They swiftly reclaimed the bucket and repopulated its content.</li>
<li>2023-02-27 Blog post automatically published.</li>
</ul>

<p>No bug bounty, but <a href="https://www.which.co.uk/news/article/mobile-customers-facing-excessive-price-rises-trapped-by-contracts-aYTVe9B4hJgv">O2 did raise my bill by 17.3%</a>…</p>

<div id="footnotes" role="doc-endnotes">
<hr>
<ol start="0">

<li id="fn:o2">
<p>My (very) former employer.&nbsp;<a href="https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/#fnref:o2" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

<li id="fn:voda">
<p>Another of my (very) former employers.&nbsp;<a href="https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/#fnref:voda" class="footnote-backref" role="doc-backlink">↩︎</a></p>
</li>

</ol>
</div>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=44772&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2023/02/responsible-disclosure-abandoned-buckets-and-billing-emails/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title><![CDATA[Fairwell InMobi - Hello Telefónica!]]></title>
		<link>https://shkspr.mobi/blog/2012/07/fairwell-inmobi-hello-telefonica/</link>
					<comments>https://shkspr.mobi/blog/2012/07/fairwell-inmobi-hello-telefonica/#comments</comments>
				<dc:creator><![CDATA[@edent]]></dc:creator>
		<pubDate>Fri, 20 Jul 2012 15:30:13 +0000</pubDate>
				<category><![CDATA[/etc/]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[inmobi]]></category>
		<category><![CDATA[o2]]></category>
		<category><![CDATA[personal]]></category>
		<category><![CDATA[telefonica]]></category>
		<guid isPermaLink="false">http://shkspr.mobi/blog/?p=6122</guid>

					<description><![CDATA[Sixteen months ago, I climbed a rattly staircase behind a restaurant to a fairly typical &#34;start-up loft&#34;.  My first taste of InMobi.  I was enthralled!  I&#039;ve spent the last year driving the developer relationship process in the company, watching as we&#039;ve grown from 15 people in a small room to 70 people in swanky London offices on the Strand.  InMobi has sent me all over the world - South Africa, …]]></description>
										<content:encoded><![CDATA[<p>Sixteen months ago, I climbed a rattly staircase behind a restaurant to a fairly typical "start-up loft".  My first taste of InMobi.  I was enthralled!  I've spent the last year driving the developer relationship process in the company, watching as we've grown from 15 people in a small room to 70 people in swanky London offices on the Strand.</p>

<p>InMobi has sent me all over the world - <a href="https://shkspr.mobi/blog/2011/08/trip-to-south-africa/">South Africa</a>, <a href="https://shkspr.mobi/blog/2012/01/tsas-qr-statistics/">San Francisco</a>, Romania, Barcelona, <a href="https://shkspr.mobi/blog/tag/india/">Bangalore</a>, Cologne, and Bath!</p>

<p>It has been an amazing adventure, working with some incredibly talented people.  I've been challenged and stretched, I've presented in front of hundreds of people, launched the first RCS-e enabled adverts, started up blogs, wikis, and forums, and - most importantly - helped developers make money from their apps.</p>

<p>It's been a <em>very</em> busy year-and-a-bit!  So now it's time for a change!  Come August, I'll be beavering away in <a href="https://web.archive.org/web/20120901025625/http://o2labs.co.uk/">O2's The Lab</a>. I've been consistently impressed with the way Telefónica has been innovating - and the presentations from their geeks at events have been phenomenal.</p>

<p>I'll be working on new and interesting products which take advantage of Telefónica's network.  No, I can't help you if your iPhone is broken.</p>

<p>No doubt it will be strange moving from a start-up to a behemoth. And it will be odd driving round the M25 rather than suffering South West Trains every day.  But I'm looking forward to a brand new set of challenges, meeting new colleagues, working with old friends, and a chance to get my hands dirty!</p>

<p>As ever, this blog remains personal - but please adjust your bias filters appropriately.</p>
<img src="https://shkspr.mobi/blog/wp-content/themes/edent-wordpress-theme/info/okgo.php?ID=6122&HTTP_REFERER=RSS" alt="" width="1" height="1" loading="eager">]]></content:encoded>
					
					<wfw:commentRss>https://shkspr.mobi/blog/2012/07/fairwell-inmobi-hello-telefonica/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
