Iceni Argus icnChainAlloc Signed Comparison Code Execution Vulnerability
A heap corruption vulnerability exists in the loadTrailer function of Iceni Argus 6.6.05 when processing a crafted PDF file. An attacker could exploit this to cause arbitrary code execution.
Originally disclosed on Cisco Talos
An exploitable heap corruption vulnerability exists in the loadTrailer functionality of Iceni Argus version 6.6.05. A specially crafted PDF file can cause a heap corruption resulting in arbitrary 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 a signed integer comparison in the custom memory allocator allows a negative size to bypass allocation checks, leading to a buffer overflow in a subsequent memset.
Impact
An attacker could cause heap corruption and potentially achieve arbitrary code execution by providing a malicious PDF file.
What the attacker needed
Victim opens a malicious PDF; Iceni Argus version 6.6.05
How it was found
- Create a PDF file with a trailer dictionary containing a Size field set to a negative value.
- Open the PDF with the Iceni Argus converter.
- The converter calls loadTrailer, which calculates a size based on the Size field.
- The size is passed to icnChainAlloc, which due to signed comparison does not allocate new memory.
- The returned pointer is used in memset with the large size, causing an out-of-bounds write.
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 bug in a program that converts PDF files to web pages. When the program reads a special value from a PDF file, it miscalculates how much memory to reserve, then writes past the end of that memory. 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.