Skip to content
Memory corruption Advisory Advanced CVE-2016-8333

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.

Marcin 'Icewall' Noga Follow

Originally disclosed on Cisco Talos

High 8.8 View original

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

Marcin 'Icewall' Noga, on Cisco Talos

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

  1. Create a PDF containing a content stream with a colour space operator and twelve numeric parameters.
  2. Run the PDF-to-HTML converter on the malformed PDF.
  3. 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.

More by Marcin 'Icewall' Noga

View all

146 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.