Skip to content
Memory corruption Advisory Advanced CVE-2022-32775

Abode Systems, Inc. iota All-In-One Security Kit web interface /action/ipcamRecordPost integer overflow vulnerability

An integer overflow in the web interface's handling of the /action/ipcamRecordPost endpoint allows an authenticated attacker to cause a heap buffer overflow by supplying a large count value, leading to memory corruption and potentially arbitrary code execution.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

Critical 9.0 View original

An integer overflow vulnerability exists in the web interface /action/ipcamRecordPost functionality of Abode Systems, Inc. iota All-In-One Security Kit 6.9X and 6.9Z. A specially-crafted HTTP request can lead to memory corruption.

Matt Wiseman, 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

Likely the integer overflow occurs because the product of the attacker-controlled element size and the count from atoi is not checked for overflow before being used in malloc, resulting in a small allocation that is then overflowed by strcpy and subsequent data copy.

Impact

An authenticated attacker could cause heap corruption, potentially leading to arbitrary code execution, as demonstrated by control of the program counter.

What the attacker needed

Web interface enabled (non-default); Authenticated access to the web interface

The fix

The integer overflow should be fixed by validating that the multiplication does not overflow and that the count is within safe bounds before allocating memory.

How it was found

  1. Send an HTTP POST request to /action/ipcamRecordPost with a body starting with 'cnt=' followed by a large integer and at least 256 bytes total.
  2. The server reads the first 255 bytes and parses the count with atoi, then enters the branch that allocates a heap buffer.
  3. The server calculates the buffer size by multiplying the length of the first key-value pair by the count, causing an integer overflow and a small allocation.
  4. The server copies the initial 255-byte payload into the small buffer, overflowing it.
  5. The server then reads and copies the remaining request body into the buffer, causing further heap corruption.

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.

The device's web server has a bug where it trusts a number sent by the user to decide how much memory to reserve. If the number is huge, the calculation wraps around and reserves a tiny amount, then copies more data than fits, corrupting memory. An attacker who can log in could exploit this to crash the device or 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 Matt Wiseman

View all

73 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.