Skip to content
Memory corruption Write-up Advanced

CVE-2014-1824 – A New Windows Fuzzing Target

A parsing flaw in Windows Journal's handling of .jnt files allowed a crafted file to cause an unbounded memcpy, leading to a crash and potentially remote code execution. The report demonstrates how a fuzzer can find such issues by targeting less-audited components.

blog.beyondtrust.com

Published on blog.beyondtrust.com

As time progresses, due to constant fuzzing and auditing many common Microsoft products are becoming reasonably hard targets to fuzz and find interesting crashes. There are two solutions to this: write a better fuzzer (http://lcamtuf.coredump.cx/afl/) or pick a less audited target.

The author, on blog.beyondtrust.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

Likely the program used a file-provided size value in a memcpy without validating it against the destination buffer size.

Impact

A crafted .jnt file could cause a crash and potentially allow remote code execution, though the report only demonstrates a crash.

What the attacker needed

Windows with Windows Journal installed; Victim opens a malicious .jnt file

The fix

The vulnerability was fixed by Microsoft in MS14-038, as indicated by the patch analysis.

How it was found

  1. Obtain a sample .jnt file containing the marker string PTC+MSHM.
  2. Set a breakpoint in the unpatched DLL at the strncmp call checking for PTC+MSHM.
  3. Identify the offset in the file where the size value 0x0b70 is used.
  4. Modify the file to change the size value from 700B to FFFF.
  5. Open the modified file in Windows Journal to trigger the crash.

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.

Windows Journal is a note-taking app that opens .jnt files. The app had a bug where it trusted a size value in the file and copied too much data into a small buffer, which could crash the program or let an attacker run their own code. This report shows how researchers found that bug by comparing patched and unpatched versions.

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.