"Asswipe," replied Yahoo's server. That's when I knew I had it.
Yahoo's public chat rooms have passed away. It is for the best, for the spam had spread everywhere. But they had a good run, operating for a decade and a half, an Internet eternity.
Here are three funny stories from the Yahoo chat protocol.
Body and Zoul
Yahoo chat rooms started life as a Java applet, chugging along in Netscape Navigator 4. Support for chat was later added to Pager, their native app, which did its own chugging in Visual Basic. Initially, Pager had custom text rendering, but then they replaced it with an HTML view.
Oops. Pager didn't escape message contents, and so it was possible for a message sender to coax the recipient into displaying arbitrary HTML - even fetching images off the web. XSS in its infancy.
Oh dear, what to do? Not everyone would install a security update. But all messages went through Yahoo's servers, so they could fix it server-side: block the attack by rewriting the messages before sending them along. So Yahoo replaced the troublesome opening bracket < with a letter that sort of looked like a bracket: a capital Z. Messages containing <html> or <body> would be rewritten to Zhtml> and Zbody>.
And more than a decade later, this methuselan workaround lives on:
md55555555555...
Yahoo chat was not as full of sexually unfulfilled college girls as the spam bots would have you believe. Before the captchas arrived in 2007 (which did little in any case), Yahoo battled the bots by obfuscating the login protocol. And once the bots caught up, obfuscating it again. Rinse and repeat - by the end, the protocol had grown to outrageous complexity. A puny excerpt of the login sequence:
- md5 the user's password
- md5 the password, followed by the fixed salt, followed by the password again
- md5 the password, followed by a fixed salt, followed by the second hash, followed by parts of the password, but interspersed with zeros
- hash the password
- hash the third hash
- Iterate the previous two steps 50 times, including the password in the hash every seventh time, and salting the hash too, except every third time
- md5 the result of that loop...
And we have only barely begun. Should you wish to dive further, see the function yahoo_process_auth_0x0b.
The Sacred, but Mostly the Profane
fish wrote a client for Yahoo chat, but the protocol was not public. Reverse engineering the login protocol for a native OS X client meant running Ethereal in X11 to inspect a Java program running in the OS 9 Classic environment: a remarkable feat, but man, was it slow going. For a long time, connection attempts were met with radio silence and disconnection. Nothing, nothing, nothing...
And then, all at once, Yahoo unleashed a stream of filthy, filthy obscenities. Yessss.
You see, Yahoo was concerned that people might swear on the Internet, so they provided a list of words that the client should filter. But this list might need to be updated dynamically, in case someone on the Internet managed to think up a new word for sex. So rather than build the list into the client, they sent it to you from the server. Right in the first packet. In alphabetical order. Login successful, bitch.
A kind soul has preserved a packet dump from a successful login. Cover your childrens' eyes and click the box below to read it:
59 43 48 54 00 00 01 00 : 00 00 00 01 00 00 01 7F YCHT 41 73 6B 46 6F 72 42 6F : 6F 7A 65 C0 80 61 68 6F AskForBooze¿Äaho 6C 65 2C 61 68 6F 6C 65 : 73 2C 61 73 73 68 6F 6C le,aholes,asshol 65 2C 61 73 73 68 6F 6C : 65 73 2C 61 73 73 77 69 e,assholes,asswi 70 65 2C 62 69 61 74 63 : 68 2C 62 69 74 63 68 2C pe,biatch,bitch, 62 69 74 63 68 65 73 2C : 62 6C 6F 5F 6A 6F 62 2C bitches,blo_job, 62 6C 6F 77 5F 6A 6F 62 : 2C 62 6C 6F 77 6A 6F 62 blow_job,blowjob 2C 63 6F 63 6B 73 75 63 : 6B 65 72 2C 63 75 6E 74 ,cocksucker,cunt 2C 63 75 6E 74 73 2C 64 : 69 63 6B 68 65 61 64 2C ,cunts,dickhead, 66 75 63 6B 2C 66 75 63 : 6B 65 64 2C 66 75 63 6B fuck,fucked,fuck 69 6E 67 2C 66 75 63 6B : 6F 66 66 2C 66 75 63 6B ing,fuckoff,fuck 73 2C 68 61 6E 64 6A 6F : 62 2C 68 61 6E 64 6A 6F s,handjob,handjo 62 73 2C 6D 6F 74 68 65 : 72 66 75 63 6B 65 72 2C bs,motherfucker, 6D 6F 74 68 65 72 2D 66 : 75 63 6B 65 72 2C 6D 6F mother-fucker,mo 74 68 65 72 66 75 63 6B : 65 72 73 2C 6D 75 74 68 therfuckers,muth 61 66 75 63 6B 65 72 2C : 6D 75 74 68 61 66 75 63 afucker,muthafuc 6B 65 72 73 2C 6E 69 67 : 67 61 2C 6E 69 67 67 61 kers,nigga,nigga 73 2C 6E 69 67 67 65 72 : 2C 6E 69 67 67 65 72 73 s,nigger,niggers 2C 70 65 64 6F 66 69 6C : 65 2C 70 65 64 6F 70 68 ,pedofile,pedoph 69 6C 65 2C 70 68 61 67 : 2C 70 68 75 63 2C 70 68 ile,phag,phuc,ph 75 63 6B 2C 70 68 75 63 : 6B 65 64 2C 70 68 75 63 uck,phucked,phuc 6B 65 72 2C 73 68 61 74 : 2C 73 68 69 74 2C 73 68 ker,shat,shit,sh 69 74 73 2C 73 68 69 74 : 68 65 61 64 2C 73 68 69 its,shithead,shi 74 74 65 72 2C 73 68 69 : 74 74 69 6E 67 C0 80 54 tter,shitting¿ÄT 61 6E 67 6F 62 68 C0 80 : 20 C0 80 30 C0 80 31 angobh¿Ä ¿Ä0¿Ä1
Eat your heart out, George Carlin.
R.I.P. Yahoo chat. You will be remembered as you were: a crazy phuc. Whatever that means.