Skip to content
Memory corruption Write-up Advanced

How I found CVE-2013-1310 in IE6 and IE7

A memory corruption flaw in the mshtml line-layout code of Internet Explorer 6 and 7 caused an access violation when a crafted page was rendered. An attacker could potentially crash the browser, and the text implies code execution was possible, though it does not demonstrate it.

yuhongbao.blogspot.ca

Published on yuhongbao.blogspot.ca

The original lives on yuhongbao.blogspot.ca

We do not hold its text, 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

Likely a memory-safety error in the mshtml line-assignment routine, where a copy loop ran with a bad source or destination pointer.

Impact

Rendering a crafted page crashed the browser in a controlled way, and the text implies this could be turned into code execution, though it does not show that.

What the attacker needed

Victim opens a crafted page; Internet Explorer 6 or 7

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.

Internet Explorer is an old web browser. A part of it that lays out lines of text on the page made a mistake with memory, so a specially built web page could make the browser read or write the wrong place and crash. When memory is mishandled like this, an attacker may sometimes be able to run their own code, not just crash the browser.

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.