JustSystems Corporation Ichitaro "LayoutBox" stream heap-based buffer overflow vulnerability
A heap-based buffer overflow exists in Ichitaro's processing of the LayoutBox stream, specifically for element type 0x6003. An attacker could craft a malicious document that, when opened, causes memory corruption and potentially arbitrary code execution.
A heap-based buffer overflow vulnerability exists in the way Ichitaro version 2022 1.0.1.57600 processes certain LayoutBox stream record types. A specially crafted document can cause a buffer overflow, leading to memory corruption, which can result in arbitrary code execution.To trigger this vulnerability, the victim…
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 a heap-based buffer overflow because a 16-bit length from the file is used to copy data into a fixed-size buffer without proper bounds checking.
Impact
This could allow arbitrary code execution under the context of the application.
What the attacker needed
Victim opens a malicious document
How it was found
- Open a malicious document in Ichitaro.
- The application processes the LayoutBox stream.
- For element type 0x6003, the length is read and used in a loop that writes to a fixed-size buffer.
- The loop can write beyond the buffer, causing memory corruption.
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.
Ichitaro is a word processor. A malicious document can contain a specially crafted section that, when opened, causes the program to write more data than it has space for, corrupting memory. This could let an attacker run their own code on the victim's computer.
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.