Iceni Argus ipfSetColourStroke Code Execution Vulnerability
A stack-based buffer overflow in Iceni Argus's ipfSetColourStroke function occurs when a PDF provides more colour parameters than the fixed-size destination array can hold. An attacker could craft a malicious PDF to overwrite the return address and potentially execute arbitrary code.
Originally disclosed on Cisco Talos
8.8 - CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSSv3 Calculator: https://www.first.org/cvss/calculator/3.0
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 getRealArgArray function copies a caller-specified number of elements into a fixed-size stack array without checking that the count fits, and ipfSetColourStroke passes a length of 12 into an array sized for 9.
Impact
An attacker could cause a stack-based buffer overflow and potentially achieve arbitrary code execution, though the report only demonstrates a crash with a controlled return address.
What the attacker needed
Victim opens a malicious PDF; PDF processed by Iceni Argus
How it was found
- Create a PDF containing a content stream with a colour space operator and twelve numeric parameters.
- Run the PDF-to-HTML converter on the malformed PDF.
- Observe the crash and the overwritten return address in a debugger.
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.
A buffer overflow happens when a program writes more data into a fixed-size memory area than it can hold, spilling into nearby memory. Here, a PDF file can supply extra colour values that overwrite a saved return address, which tells the program where to continue after a function finishes. By controlling that address, an attacker might make the program 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.