Iceni Infix PDF parsing SetSize Code Execution Vulnerability
A specially crafted PDF file can trigger an out-of-bounds write in Infix 7.1.5 due to a missing error check on a size value, leading to memory corruption. An attacker could send the victim a malicious PDF to potentially execute code.
Originally disclosed on Cisco Talos
An out-of-bounds write vulnerability exists in the PDF parsing functionality of Infix 7.1.5. A specially crafted PDF file can cause a vulnerability resulting in potential memory corruption.
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, the SetSize function sets a size value to 0xFFFFFFFF to indicate an error, but the code fails to check for this error before using the value as a size argument to memset, causing an out-of-bounds write.
Impact
An attacker could potentially execute arbitrary code by sending a victim a malicious PDF file, though the report only demonstrates a crash.
What the attacker needed
Victim opens a malicious PDF
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 reads a PDF, it uses numbers from the file to decide how much memory to set aside. If a number is invalid (like a huge value), the program should stop, but here it doesn't check and tries to use that huge number, writing past the memory it reserved. This can crash the program or let 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.