FreeXL read_biff_next_record Code Execution Vulnerability
A heap-based buffer overflow in FreeXL's read_biff_next_record function occurs because the record size read from an XLS file is not checked against the fixed-size buffer. An attacker could send a malicious XLS file to cause memory corruption and potentially execute code.
Originally disclosed on Cisco Talos
An exploitable heap based buffer overflow vulnerability exists in the readbiffnextrecord function of FreeXL 1.0.3. A specially crafted XLS file can cause a memory corruption resulting in remote 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
The record size read from the file is used to control a copy loop without verifying it is smaller than the fixed-size record buffer.
What the attacker needed
Victim opens a malicious XLS 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.
FreeXL is a library that reads old Excel files. It copies data from the file into a fixed-size memory area without checking if the data is too big, so a crafted file can overflow that area and corrupt 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.