Skip to content
Memory corruption Write-up Advanced

America Online Exploits Bug in Own Software (1999)

The AIM client software contained a buffer overflow in its handling of a particular protocol message, allowing a malicious server to execute arbitrary code on the client machine. AOL allegedly exploited this bug to distinguish its own client from Microsoft's MSN client by sending a crafted packet that only the vulnerable AIM client would execute and respond to.

geoffchappell.com

Published on geoffchappell.com

Some controversy developed in 1999 concerning the Instant Messaging service provided by America Online (AOL), which had at that time become very popular only recently. This article was updated in 2008, when moved to a new web site, but remains written as if the controversy is just breaking.

The author, on geoffchappell.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The AIM client copied a variable-length string from a network packet into a fixed-size stack buffer without checking its length, leading to a stack buffer overflow.

Impact

A malicious AIM server could execute arbitrary code on the client machine, and AOL allegedly used this to detect and block Microsoft's MSN client from connecting to its AIM service.

What the attacker needed

Victim runs vulnerable AIM client; attacker controls AIM server or can send packets

How it was found

  1. The AIM server sends a packet in case 0013h containing string data longer than 0100h bytes.
  2. The AIM client copies this data into a 0100h-byte stack buffer, overflowing it and corrupting the return address.
  3. The corrupted return address points to a call esp instruction in the AIM.EXE resources.
  4. Execution jumps to the packet data, which contains executable code.
  5. The code recovers from the overflow and sends a new packet back to the server.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A buffer overflow is a bug where a program writes more data into a fixed-size memory area than it can hold, spilling over into adjacent memory. Here, the AIM chat program had such a bug when processing a certain network message, and an attacker (in this case, the server itself) could send a specially crafted message that would cause the program to run code supplied by the attacker. This could let the attacker take control of the victim's computer.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.