Skip to content
Memory corruption Write-up Advanced

CVE-2014-7216: A Journey Through Yahoo’s Bug Bounty Program

Yahoo! Messenger parsed an emoticons.xml file and copied the 'shortcut' and 'title' attribute values into fixed-size buffers without checking their length, so an oversized value could overflow the stack. An attacker who supplied a crafted emoticon package could potentially execute code on a victim's machine, though a stack cookie protection was present.

Julien Ahrens Follow

Published on rcesecurity.com

I have published another security advisory about a vulnerability, which I have “recently” reported to Yahoo! via their Bug-Bounty program hosted by HackerOne . So this blog post is about the technical details of the CVE-2014-7216 (which is not very thrilling), but more about my experience with Yahoo’s Bug Bounty…

Julien Ahrens (@MrTuxracer), on rcesecurity.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 application used lstrcpyW, which does not limit the number of characters copied, to copy attacker-controlled XML attribute values into fixed-size stack buffers.

Impact

An attacker could potentially execute arbitrary code on a victim's machine, but exploitation might be tricky because a stack cookie protection is in place.

What the attacker needed

Victim uses Yahoo! Messenger; attacker supplies a crafted emoticons.xml; file placed in Messenger directory

How it was found

  1. Obtain or create an emoticons.xml file with an oversized 'shortcut' or 'title' value.
  2. Place the file in the Messenger Cache or Media\Smileys directory.
  3. Log in to Yahoo! Messenger so the application loads and parses the file.
  4. The oversized value overflows the stack buffer during parsing.

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.

The messenger program reads a file that lists emoticons and their text shortcuts. It copies those shortcut texts into a small, fixed-size space in memory without checking how long they are. If someone provides a file with a very long shortcut, the extra text spills over into nearby memory, which can crash the program or let an attacker run their own code.

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.

More by Julien Ahrens

View all

17 more disclosed reports, best first.

More from Yahoo! / Verizon Media

View all

The newest disclosed reports for this program.

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.