r/programming • • Jul 20 '08

Microsoft Plays Dirty With Gmail

http://www.kuro5hin.org/story/2008/6/14/24746/7652
23 Upvotes

65 comments sorted by

46

u/trezor2 Jul 20 '08

So instead of firing up a network analyzer he generates 14000 files and tries to download them all. Speak about starting in the wrong end.

Also: Without conclusive evidence he blames Microsoft "because of their track record". With reasoning like this we will soon be able to blame Microsoft for tsunamis by the induction of evidence.

Holy shit this was a crap article.

5

u/bobbyi Jul 20 '08

K5 is back!

7

u/trezor2 Jul 20 '08

I was close to digging up my old account and telling him that he spent 1000x more effort than needed to get no conclusive evidence what so ever and that his piece was shit.

But I simply couldn't be bothered: To me K5 is a closed chapter.

1

u/iofthestorm Jul 20 '08

Not only that, but he clearly has something against MS yet uses IE7 instead of Firefox or Opera or something? And since he's on IE7 he's obviously using Windows so... mod article flamebait, or something.

48

u/[deleted] Jul 20 '08 edited Jul 20 '08

Firefox, Safari, and Opera all gave me the unmodified URLs for every file. Therefore, there are only two options: either Google is giving IE7 a modified URL or Microsoft has coded IE7 to look for a list of extensions within Gmail and modify the attachment URL. The first option seemed highly unlikely.

What the hell? The first option is clearly the most likely solution, it's certainly the easiest of the two.

He didn't even try spoofing a IE7 user agent. He's just looking for an excuse to bash Microsoft.

29

u/Stooby Jul 20 '08

It only happens with apple specific files. Wow! Maybe it is an Apple plugin.

I fail to see the benefit on Microsofts part for auto zipping files when a person downloads them from GMail. I guess the criminal masterminds at Microsoft thought that if a person had to spend 5 seconds unzipping a file they would swear off Apple forever.

Nerds lose their ability to think critically when they are dealing with a company they hate. This fanboyism is ridiculous.

4

u/bobbyi Jul 20 '08

They would swear off apple and google. That's why it's so brilliant.

123

u/bradbrowndotcom Jul 20 '08

Kuro5hin still exists?

2

u/[deleted] Aug 17 '22

no

77

u/tobybuk Jul 20 '08

Bullshit.

98

u/[deleted] Jul 20 '08 edited Jul 20 '08

Well said.

From the article:

Google is giving IE7 a modified URL or Microsoft has coded IE7 to look for a list of extensions within Gmail and modify the attachment URL. The first option seemed highly unlikely.

Yeah, because no web developers ever write specific code for IE.

99

u/[deleted] Jul 20 '08

From the comments it's NOT IE, and its not google doing it, but the presence of the Quicktime IE control, which modifies the gmail URLs for all of the QT supported extensions.

A lot of people on juro5hin must have bruised chins from all that knee-jerking.

14

u/bobobobob Jul 20 '08

I get it, it's so that downloading attachments from gmail cause them to be downloaded instead of just playing in the browser.

8

u/[deleted] Jul 20 '08

Exactly, and it makes a lot of sense.

As usually for kuro5hin, a lot of fuss over something trivially stupid.

11

u/BraveSirRobin Jul 20 '08

As it's Apple they'll now be telling themselves that bruised chins must be good because Apple knows best.

4

u/Sortros Jul 20 '08

It's got nothing to do with Apple.

The IE7 test environment was a freshly installed and updated Windows system; without any additional software installed.

link

10

u/[deleted] Jul 20 '08

I've tried it, it only does it if you have a recent QT control installed, it doesn't even do it if you have QT Alternative, only if you have QT 7.x.

Plain IE7 Downloads the .mov unadorned. So the person claiming to have witnessed this on a 'freshly installed IE7' is either lying, or had iTunes/QT7.x installed.

1

u/raisedinhell Sep 09 '08

i'm inclined to think the writer of this article is bending the truth

-3

u/linkedlist Jul 20 '08 edited Jul 20 '08

ouch, so it's apples evilness now -_-

man, when this is done every fanboy will have something to bitterly defend.

-3

u/Niten Jul 20 '08

(shins?)

2

u/[deleted] Jul 20 '08

No chins, you know, the bit at the bottom-front of your face. When you jerk your knee fast and hard enough upwards, you hit yourself with your knee there.

16

u/[deleted] Jul 20 '08 edited Jul 20 '08

While it isn't impossible to program IE7 to work with gmail in this way: it's highly unlikely - gmails regular security and feature updates could easily render the IE7 code obsolete.

I'm inclined to believe this is gmail making specific on the fly adjustments when the browser reports itself as IE7 (as has been done for years to get around browser-specific bugs/inconsistencies)

Changing IE7 to another mode (which also changes how IE reports itself) seems to fix the issue. Which is leaning more on the cause being gmail working with a specific browser string and nothing to do with IE having gmail specific code.

1

u/Reliant Aug 05 '08

Have you tested before and after the user-agent rename? I seem to remember an obscure HTTP header where the browser can send to the website what filetypes it is able to use

3

u/danratherfoe Jul 20 '08

This can be tested by using a browser that can masquerade as IE (for example, Konqueror).

12

u/dani Jul 20 '08

Agree. You can easily prove the changes are from Google using a sniffer.

2

u/jk1150 Jul 20 '08

right, gmail is programmed to handle browsers differently for compatibility.

3

u/linkedlist Jul 20 '08 edited Jul 20 '08

In all likelihood there's probably a more sane reason that doesn't involve ill play by anyone.

-3

u/adrianmonk Jul 20 '08 edited Jul 20 '08

"likelyeness"? sigh

2

u/linkedlist Jul 20 '08

yeah, it's 2am and Google is of no help.

7

u/FrankBattaglia Jul 20 '08

The word you are looking for is "likelihood."

1

u/adrianmonk Jul 20 '08

OK, you're forgiven then (like you need my forgiveness). BTW, I should have put a smiley face or something instead of "sigh".

The 2am part reminds me of the time I had pulled an all-nighter writing some report in junior high school. I, for the life of me, couldn't figure out how to spell "straight". I finally ended up writing down "strait", which I knew was wrong. I spent probably a good 10 minutes trying to figure out how to spell it. In my exhaustion-induced stupor, it didn't occur to me to either (a) just use another word or (b) go check a dictionary which wouldn't have been had considering I was in the room right next door to the library.

8

u/grumpy2 Jul 20 '08

From the other comments (requires IE + Quicktime plugin) I'd guess that the problem is that that combo somehow ignores the content-disposition: attachment header and tries to display the attachment immediately, even if the user clicked download, and that gmail is attempting to work around that.

2

u/RalfN Aug 28 '08

Let's repeat and snacksize that for all little kids out there in a big bold font:

GMAIL is puts .qt files in .zip files when it knows Apple's quicktime plugin is going to make it play instead of the intented download.

In other words: apple's quictime thingie has a bug and gmail worked around it!

7

u/mossblaser Jul 20 '08

Does this occur when firefox is set to pretend to be IE7? While I am not surprised if it is microsoft, I think this guy could have done some more thorough research. I suspect its google protecting IE from itself where it will mishandle certain extensions...

-1

u/[deleted] Jul 20 '08

From the comments, it only occurs on (real) IE7 where the Quicktime extension is installed and active. Ergo it is quicktime doing it.

0

u/[deleted] Jul 20 '08

[deleted]

1

u/RiMiBe Jul 20 '08 edited Jul 20 '08

I would be really impressed/scared if it was possible for a website to determine what software you have installed simply by you browsing their site.

Ergo: it's quicktime

3

u/mao_neko Jul 20 '08

You are all ignoring the possibility that it is the work of Our Lord, the FSM.

1

u/RalfN Aug 28 '08

Actually, all installed plugins are TOLD to the browser.

More importantly, the plugin adds fileformats (.qt) to the list of file-types the browser accepts. File-types the browser does not accept will auto-download, whereas file-types the browser accept will display in the browser.

Since the user wants to download the file and not display it in the browser, GMail compresses all files of filetypes reported by the browser to work around that.

It's not quicktime specific. It's not gmail specific. It's just that .qt files would play in browser; so you get a .qt.zip file.

3

u/[deleted] Jul 20 '08

"Quicktime Plays Dirty With Gmail"

fixed it for you. now, if someone could fix this awful article...

1

u/RalfN Aug 28 '08

Quicktime plugin makes browser report that it can handle .qt files, which the browser then tells the gmail, which makes gmail compress the file, since you want to download it.

It's just working as it is supposed to.

7

u/[deleted] Jul 20 '08

Following the whole "never attribute to malice what can adequately be explained by incompetence" thing, I wouldn't be at all surprised if this turned out to be an unintended or unanticipated consequence of some random quirk in IE.

Also, why are ZIP and TAR attachments not accepted by gmail?

6

u/Sle Jul 20 '08

"never attribute to malice what can adequately be explained by incompetence"

Amen.

3

u/mossblaser Jul 20 '08

They can be used to contain executables (if I remember right it used to be just zips and tars containing exes but I imagine once they got big enough they couldn't waste resources scanning through zips).

10

u/BraveSirRobin Jul 20 '08

There is also an exploit where you create a 2 gig file containing a single letter repeated. This compresses down to next to nothing but when the virus scanner tries to extract it to scan it bad things happen.

3

u/[deleted] Jul 20 '08

Then why not RAR, GZ, 7Z and so on?

3

u/Ahnteis Jul 20 '08

Viruses generally target the mass audience. Most people can't open those files.

1

u/mossblaser Jul 21 '08

Well with RAR, google would have had to license the RAR stuff and besides, most people don't use it, with gzip most people using that are on the unixes and trying to filter executable files becomes a lot more resource intensive for a probable nill goal and 7Zip is rarely used.

2

u/mao_neko Jul 20 '08

It is possible that GMail is detecting that they were not legitimate zip and tar files - just dummy files with names pretending to be them. That would be a reasonable cause for blocking them.

3

u/zeldamaster666 Jul 20 '08

Who uses IE7?

4

u/msblows Jul 20 '08 edited Jul 20 '08

I stopped using hotmail (which I should have done long ago) when I noticed they moved gmail addresses off the contact list in the reply window. You have to go to your contacts and check each gmail user you want to send something to. All other domains (afaik, never knew anyone with a yahoo address) still show in reply window. It's only gmail.

3

u/[deleted] Jul 20 '08

ok - using hotmail, and i have no idea what you are talking about. it treats gmail addresses exactly the same as others for me.

-7

u/dotcoma Jul 20 '08

hotmail and these microsoft guys are pathetic

1

u/crusoe Jul 20 '08

Dude, this is a old brain-dead defense against exploits in files that MS implemented LONG ago, back as far as IE 6.

I'm suprised the Kuro5hin author never heard of this before.

-3

u/[deleted] Jul 20 '08 edited Jul 20 '08

Fucking dumb.

I can't believe the guy took all that time testing with files when he could have just spoofed teh user agent.

0

u/Kolibri Jul 20 '08

Just contact google and ask them...

-1

u/ff1959 Aug 06 '08

Wow, a real UNIX amateur. "Let's run as many processes as possible". cat file | uniq ... why? that runs cat and uniq. Simply sort -u < file > newfile. One process instead of two.

-16

u/DEPROGRAM_YOUR_MIND Jul 20 '08

I'm going to kill those fucking Microsoft cunts they are programming cookies right now to take over the vast majority of the Internet including Google and Bittorrent. Microsoft has disocvered a flaw in the way all of the major browsers handle cookies and has sold off the exploit to eastern Europoean hackers to be used against the West with SPECIFIC instructions to target Firefox, Safari, and Opera-centric websites and also popular web reviewer websites like PC World.

The exploit injects code into your computer's CPU core that will slow any web browser down that isn't IE. This will be followed by a PR campaign about how much faster IE8 is. When the reviewers benchmark IE8 against its competitors, they will find the propaganda to be 100% true.

Fuck those cocksuckers.

7

u/marijn Jul 20 '08

It's true! I just know it. And a cousin of my friend's sister also once told me that when Steve Ballmer meets a puppy, he eats it!

-7

u/DEPROGRAM_YOUR_MIND Jul 20 '08

Don't respond to my posts with your drivel again.

1

u/[deleted] Aug 03 '08

Shake up, weeple!

0

u/[deleted] Jul 20 '08

[deleted]

4

u/vsl Jul 20 '08

A smart guy

Not so smart, judging by this peek at his reasoning processes.