BIMx Desktop Viewer Resource Parsing Integer Overflow Vulnerability
The BIMx Desktop Viewer reads a resource header containing a length field and adds it to a note length without checking for integer overflow. An attacker could craft a malicious file that causes a heap buffer overflow, potentially leading to code execution.
Originally disclosed on Cisco Talos
An exploitable code execution vulnerability exists in the file format parsing functionality of Graphisoft BIMx Desktop Viewer 2019.2.2328. A specially crafted file can cause a heap buffer overflow resulting in a code execution.
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 an integer overflow when adding the resource length and the note length, leading to an undersized heap allocation and subsequent out-of-bounds write.
Impact
A specially crafted file could cause a heap buffer overflow, potentially resulting in code execution.
What the attacker needed
Victim opens a malicious file
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.
When a program opens a file, it often reads a size value and uses it to reserve memory. If that size is very large, adding another number can wrap around to a small value, so the program reserves too little memory. Then it writes more data than fits, corrupting memory and possibly letting 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.