Ichitaro Word Processor PersistDirectory Code Execution Vulnerability
Ichitaro's PowerPoint parser fails to check whether a reallocation of its persist-directory offset buffer succeeded, then writes attacker-controlled offsets through the resulting pointer. By chaining persist records and choosing the number of offsets, an attacker could corrupt memory and potentially execute code in the context of the application.
Ichitaro Office contains a vulnerability that exists when trying to open a specially crafted PowerPoint file. Due to the application incorrectly handling the error case for a function’s result, the application will use this result in a pointer calculation for reading file data into.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the realloc result is stored without a NULL check, so a failed allocation leaves a bad pointer that is then used in pointer arithmetic and a write.
Impact
Under the right conditions this could lead to code execution under the context of the application, though a near-NULL write normally needs a heap spray to be useful.
What the attacker needed
Victim opens a crafted PowerPoint file; memory pressure so realloc fails
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 report has not been written yet. The Original tab links to the source.
A word processor opens PowerPoint files by reading a list of records that say where each part of the document lives. When that list grows, the program asks the operating system for more memory but never checks whether the request worked, then writes into the place it expected. A crafted file can make it write to a bad address, which can crash the program or, in the right conditions, 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.