SoftMaker Office PlanMaker Document Record 0x800d memory corruption vulnerability
A heap-based buffer overflow exists in the PlanMaker document parser when handling record type 0x800d. An attacker could entice a victim to open a crafted document, leading to memory corruption and potential code execution.
An exploitable heap-based buffer overflow vulnerability exists in the PlanMaker document parsing functionality of SoftMaker Office 2021’s PlanMaker application. A specially crafted document can cause the document parser to copy data from a particular record type into a buffer that is smaller than the size used for the…
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 parser allocates a fixed 2048-byte buffer but then copies a record length read from the file without validating that it fits within the buffer.
Impact
This could allow an attacker to corrupt memory and potentially execute code under the context of the application.
What the attacker needed
Victim opens a crafted document
The fix
The vulnerability was fixed by the vendor in January 2021.
How it was found
- Craft a PlanMaker document containing a record of type 0x800d with a length field larger than 2048 bytes.
- Open the crafted document in PlanMaker.
- The parser allocates a 2048-byte buffer and then copies the record's contents using the untrusted length, causing a heap overflow.
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 buffer overflow happens when a program writes more data into a memory area than it can hold, corrupting nearby data. Here, the program trusts a length value from the file and copies that many bytes into a fixed-size buffer, allowing an attacker to overwrite memory and potentially 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.