Ichitaro Office Excel File Code Execution Vulnerability
Ichitaro trusts a size field in a record of an Excel .xls file, subtracts one from it, and uses the result as a copy length, so a zero size underflows to a very large value. This causes a heap buffer overflow that can lead to code execution in the context of the application.
Originally disclosed on Cisco Talos
A vulnerability was discovered within the Ichitaro word processor. Ichitaro is published by JustSystems and is considered one of the more popular word processors used within Japan.
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
The application subtracts one from a file-controlled record size without checking for zero, causing an integer underflow that bypasses the copy function's size checks.
Impact
Opening a crafted .xls file could allow an attacker to execute arbitrary code under the context of the application, though the user must open the file.
What the attacker needed
Victim opens a crafted .xls file; Ichitaro installed
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 reads spreadsheet files and uses a number stored in the file to decide how much data to copy into memory. If that number is zero, subtracting one wraps it around to a huge value, so the program copies far more data than the small memory area can hold. An attacker who sends a crafted file can overwrite nearby memory and possibly run their own code when the victim opens it.
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.