SoftMaker Office PlanMaker Document Records 0x8011 and 0x820a integer overflow vulnerability
A specially crafted PlanMaker document can cause an integer overflow during parsing, leading to an undersized heap allocation and subsequent heap-based buffer overflow. This memory corruption could allow code execution under the context of the application.
An exploitable integer 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 perform arithmetic that may overflow which can result in an undersized heap allocation.
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 trusts a 32-bit value from the file and multiplies it by 8 without checking for overflow, resulting in a small allocation size that is later overrun by a loop using the original large value.
Impact
This could lead to code execution under the context of the application.
What the attacker needed
Victim opens a malicious document
The fix
The vendor patched the vulnerability, likely by adding overflow checks before allocation.
How it was found
- Craft a PlanMaker document with a record of type 0x8011 or 0x820a containing a large 32-bit value at offset +0x12.
- Open the document in SoftMaker Office PlanMaker 2021.
- The parser reads the value, multiplies it by 8, and allocates an undersized heap buffer.
- A loop iterates the original large number of times, writing beyond the buffer and corrupting heap memory.
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.
This report describes a flaw in how SoftMaker Office's spreadsheet program reads its own file format. When opening a malicious file, the program miscalculates how much memory to reserve, then writes more data than fits, corrupting memory. An attacker could use this to run their own code on the victim's computer if the victim opens the file.
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.