what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

googleIntercept.html

googleIntercept.html
Posted Jan 16, 2005
Site dump.hbx.us

Google's GMail system suffered from a massive flaw where random GMail users may have had some of their mail passed to other users that it was not intended for.

tags | advisory
SHA-256 | ad834f68853ae4b16f82806d042e585f44aed8f418930be486d555748e755404

googleIntercept.html

Change Mirror Download
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>GMail Messages are Vulnerable to Interception</title>
<base target="_blank">
</head>

<body bgcolor="#666666" text="#FFFFFF" link="#FFFF00" vlink="#FFFF00" alink="#FFFF00">

<div align="center">
<table border="2" width="100%" cellpadding="15" cellspacing="0" bgcolor="#000000" bordercolor="#000000">
<tr>
<td bgcolor="#000000" width="20%">
<p align="left"><font face="Arial" size="2">The HBX Networks<br>
UNIX Community Group</font></td>
<td bgcolor="#000000" width="60%">
<p align="center"><b><font color="#FFFFFF" face="Arial" size="4">GMail
Messages are Vulnerable to Interception<br>
</font><font color="#FFFFFF" face="Arial" size="3"><br>
</font><font face="Arial" size="2" color="#FFFF00">UPDATE</font><font color="#FFFFFF" face="Arial" size="2">:
Big fixed in less than an hour from mainstream publication.&nbsp; See
below.</font></b></td>
<td bgcolor="#000000" width="20%">
<p align="right"><font color="#FFFFFF" face="Arial" size="2">January 12,
2005</font></td>
</tr>
<center>
<tr>
<td width="100%" colspan="3" bgcolor="#333333">
<blockquote>
<p align="left"><font face="Arial" size="4"><b>The Discovery</b></font></p>
</blockquote>
<p align="left"><font color="#FFFFFF" face="Arial">It all started about 3
days ago when MrYowler and I were working on a mailing list script to send
out a batch of newsletters for a <a href="http://dump.hbx.us/free_hacking_shells/">free
hacker-friendly shell service</a> we operate.&nbsp; We made the decision to keep it
simple; a Perl script based upon the Net::SMTP CPAN module.&nbsp; Being
the Perl guru that MrYowler is (shut up!&nbsp; people will start having
expectations of me!&nbsp; ;-P), he had one whipped up in about 20
minutes.&nbsp; In the course of testing the script, we cranked out 10
newsletters to our GMail inboxes.&nbsp; We were a little shocked with that
happened next.</font></p>
<p align="left"><font color="#FFFFFF" face="Arial">MrYowler opened up his
mailbox, and noticed the email had arrived just fine.&nbsp; He clicked on
the subject line, and as expected, the message showed correctly.&nbsp;
However, when he clicked the "Show options" link, the
"Reply To" field in the email header that GMail displayed
contained what appeared to be HTML code!&nbsp; Upon further inspection, we
realized that it was the message body of another person's HTML-formatted
email message.</font></p>
<blockquote>
<p align="left"><font face="Arial" size="4"><b>The Research</b></font></p>
</blockquote>
<p align="left"><font color="#FFFFFF" face="Arial">Wondering if something
had happened during the message transmission, we viewed the message source
via GMail's "Show original" link.&nbsp; In the source, we did
not see any of the HTML code that GMail was showing us.&nbsp; No HTML at
all, as we did not even use it in our newsletter.&nbsp; It appeared as a
regular run-of-the-mill plain text message.</font></p>
<p align="left"><font color="#FFFFFF" face="Arial">We became curious as to
what had gone wrong, and whether it was an error in the script, or in the
GMail messaging system.&nbsp; We examined the the output of our Perl script,
and discovered that it was not transmitting the "From" header
(in the message body) correctly - the trailing ">" character
was missing in the address area.</font></p>
<p align="left"><font face="Arial"><font color="#FFFFFF">Where it should
have been "From:<hbxnetworks@gmail.com<blink>></blink>",
we had "From:<hbxnetworks@gmail.com".</font></font></p>
<p align="left"><font color="#FFFFFF" face="Arial">This, apparently, was
enough to get GMail to provide us with some portion of someone else's
messages.</font></p>
<p align="left"><font color="#FFFFFF" face="Arial">We speculate that there
is a subroutine which determines where the "From" address
component of a message, ends - and that this subroutine relies upon the
closing ">" bracket to distinguish this end.&nbsp; When
unable to find this character prior to a carriage return, it simply
continues to read past the end of the allocated buffer for this component,
until it either encounters this character in whatever data happens to be
there, or until some upper buffer size limit is reached.&nbsp; We remain
unsure of that buffer size limit, and whether, in fact, one exists.</font></p>
<p align="left"><font color="#FFFFFF" face="Arial">We propose that the
correct solution to this problem, might be to also search for
non-displayable data, such as carriage returns, in this area, and to
terminate the field on this basis.&nbsp; Alternatively, if the size of the
field is determined separately, when allocated; that information could be
retained, as a criterion for failure conditions, when the field is
parsed.</font></p>
<p align="left"><font color="#FFFFFF" face="Arial">It is possible that a
large buffer area is being allocated, and then being populated only
partially.&nbsp; This being the case (if so), then the data that we are
seeing is what was left in memory, after the last time that this memory
area was returned to the memory manager, and this error does not represent
a buffer overflow, but rather, a poorly-managed boundary condition in the
GMail server-side software.</font></p>
<p align="left"><font color="#FFFFFF" face="Arial">Regardless of the
specific failure, the result is a compromise of the privacy of
communications over GMail.&nbsp; As demonstrated in the examples (below),
message content and address information are easily - if somewhat randomly
- available to unintended recipients.&nbsp; Usually, this only permits an
attacker to examine recently-arrived spam in random user's inboxes - but
(as noted in <a href="http://fetusinbloom.com/cia/2.png">one example</a>)
message content does occasionally become more interesting.</font></p>
<blockquote>
<p align="left"><font face="Arial" size="4"><b>The Conclusions</b></font></p>
</blockquote>
<p align="left"><font color="#FFFFFF" face="Arial">We do realize that
GMail is an invitation-only service, in a beta-test state of
development.&nbsp; Nevertheless, many people rely upon GMail heavily, and
many more people are forced to communicate with GMail users, because of
this reliance.&nbsp; These people should expect their communications to be
vulnerable to interception, at least until GMail corrects the issue.&nbsp;
And the appearance of this issue, at the user level, probably indicates a
failure in GMail's code review and/or quality assurance standards, which
may result in other, similar errors.&nbsp; We did not explore GMail for
additional such errors, but based upon the nature of this one, we are
confident that such exploration would bear interesting fruit.&nbsp; (Note
to GMail's development teams:&nbsp; we are available for hire!&nbsp;
Cheaply!&nbsp; ;-P)</font></p>
<p align="left"><font color="#FFFFFF" face="Arial">So...&nbsp; If you are
a regular GMail user - or someone that corresponds with one - you might
want to either rethink the privacy of your communications, or perhaps <a href="http://gmail.google.com/support/bin/request.py?ctx=gmail&direct=1">make
some noise with the folks at Google's email service</a>.&nbsp; And don't
forget to tell them that <a href="mailto:hbxnetworks@gmail.com">MrYowler
and I</a> need jobs...&nbsp; ;-P (Note that we are using a GMail address,
so any job offers are probably not going to be well-kept secrets...&nbsp;
;-P)</font></p>
<blockquote>
<p align="left"><font face="Arial" size="4"><b>The Evidence</b></font></p>
</blockquote>
</center>
<div align="center">
<table border="1" cellpadding="15" cellspacing="5" width="728" bordercolor="#C0C0C0">
<tr>
<center>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="http://www.personal.kent.edu/~jkgreen/gmail/1.png">Screen Capture #1</a><br>
</font><font face="Arial" size="2">Our Email's </font></b><b><font face="Arial" size="2">Source</font></b></p>
<p align="left"><font color="#FFFFFF" face="Arial" size="2">In this
image you see the source code used for all of our "GMail Bug
Test" emails.&nbsp; The plaintext email consists of only the
"Subject" and "From" headers.&nbsp; Notice the
">" is missing in the "From" header.</font></td>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="2.png">Screen Capture #2</a><br>
</font><font face="Arial" size="2">Password Exposure</font></b></p>
<p align="left"><font face="Arial" size="2">In this image you see a
message containing a URL alongside a login name and password.&nbsp;
(Censored for protection of those involved).</font></td>
</center>
</tr>
<center><center>
<tr>
</center>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="http://www.silenceisdefeat.org/~haxor/tmp/3.png">Screen Capture #3</a></font><font face="Arial" size="2"><br>
Yahoo Group's Message</font></b></p>
<p align="left"><font face="Arial" size="2">In this image you see what
appears to be a group mailing on the Yahoo! "Egypt
Developers" Group.&nbsp; (Names & email addresses censored).</font></td>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="http://www.silenceisdefeat.org/~haxor/tmp/4.png">Screen Capture #4</a></font><font face="Arial" size="2"><br>
Large Computer Purchase</font></b></p>
<p align="left"><font face="Arial" size="2">In this image you see a
receipt or quote for an online purchase of computer equipment, totaling
$4,767.00.</font></td>
</center>
</tr>
<center><center>
<tr>
</center>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="http://www.milatic.net/tmp/5.png">Screen Capture #5</a></font><font face="Arial" size="2"><br>
Jack Rabbit Vibrator Features</font></b></p>
<p align="left"><font face="Arial" size="2">This message describes the
features of one "Jack Rabbit Vibrator," a 7.5"
Multi-Speed toy of sorts.</font></td>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="http://www.milatic.net/tmp/6.png">Screen Capture #6</a><br>
</font><font face="Arial" size="2">Medicare Spam</font></b></p>
<p align="left"><font face="Arial" size="2">This message appears to be
a spam of some kind, advertising diabetic supplies with no
paperwork.&nbsp; The email of the intended recipient (in the form of a
removal link) has been censored.</font></td>
</center>
</tr>
<center><center>
<tr>
</center>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="http://www.bhsecurity.com/google/7.png">Screen Capture #7</a><br>
</font><font face="Arial" size="2">Samsung Warning?</font></b></p>
<p align="left"><font face="Arial" size="2">This message seems to make
a lot of calls to files called "samsung_warning_XX.jpg".&nbsp;
We haven't tried to figure out what it is about; but we fell it is
probably just a spam.</font></td>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><font face="Arial" size="3"><b><a href="http://www.bhsecurity.com/google/8.png">Screen Capture #8</a></b></font><b><font face="Arial" size="2"><br>
Email Ridden Spam</font></b></p>
<p><font face="Arial" size="2">This spam message had the intended
recipient's email address scattered all though it.&nbsp; We had to
censor quite a lot on this one.</font></td>
</tr>
<tr>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><font face="Arial" size="3"><b><a href="http://www.signalgraph.com/tmp/9.png">Screen Capture #9</a></b></font><b><font face="Arial" size="2"><br>
Cheap Software Spam</font></b></p>
<p align="left"><font face="Arial" size="2">This spamvertisement is
advertising cheap software.&nbsp; The intended recipient's email (in
the form of a removal link) has been censored.</font></td>
<td bgcolor="#000000" valign="top" width="50%">
<p align="center"><b><font face="Arial" size="3"><a href="http://www.signalgraph.com/tmp/10.png">Screen Capture #10</a></font><font face="Arial" size="2"><br>
More Cheap Software Spam</font></b></p>
<p align="left"><font face="Arial" size="2">Most likely the same
spammer as example #9, but with a different intended recipient.&nbsp;
GMail must get a lot of these.</font></td>
</center>
</tr>
<tr>
<td bgcolor="#000000" valign="top" width="100%" colspan="2">
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-0172616624539406";
google_ad_width = 728;
google_ad_height = 90;
google_ad_format = "728x90_as";
google_ad_channel ="3798298253";
google_ad_type = "text";
google_color_border = "000000";
google_color_bg = "000000";
google_color_link = "FFFF00";
google_color_url = "FFFFFF";
google_color_text = "FFFFFF";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></td>
</tr>
</table>
</div>
<blockquote>
<br>
<hr>
<p align="center"><font face="Arial"><b><font size="6">UPDATE<br>
</font>January 13, 2005</b></font></p>
<p align="center"><font face="Arial"><b>Google has informed us that the <font color="#FFFF00">bug
was fixed</font> about <font color="#FFFF00">one hour</font> after our
story broke on Slashdot.</b></font></p>
<p align="center"><font face="Arial"><b>We are currently preparing a follow-up,
as well as a more detailed timeline of events relating to this bug.</b></font></p>
<p align="center"><font face="Arial"><b>Please check back for updates as
they become available.</b></font></p>
<p align="center"><font face="Arial" size="2"><b>You may also find more information
via Google News:<br>
</b></font><font face="Arial" size="4"><b><a href="http://news.google.com/news?q=gmail+bug">http://news.google.com/news?q=gmail+bug</a></b></font><font face="Arial"><b><br>
</b></font></p>
</blockquote>
</td>
</tr>
</table>
</div>

</body>

</html>
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    23 Files
  • 25
    Apr 25th
    16 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close