Skip to content
Memory corruption Advisory Advanced CVE-2022-35879CVE-2022-35878CVE-2022-35881CVE-2022-35880

Abode Systems, Inc. iota All-In-One Security Kit UPnP logging format string injection vulnerabilities

Four format string injection vulnerabilities exist in the UPnP logging functionality of the Abode iota All-In-One Security Kit. An attacker who can respond to UPnP discovery requests with malicious data can inject format specifiers into log messages, potentially leading to memory corruption, information disclosure, and denial of service.

Matt Wiseman Follow

Originally disclosed on Cisco Talos

High 7.1 View original

Four format string injection vulnerabilities exist in the UPnP logging functionality of Abode Systems, Inc. iota All-In-One Security Kit 6.9Z and 6.9X. A specially-crafted UPnP negotiation can lead to memory corruption, information disclosure, and denial of service.

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

The log function passes attacker-controlled data directly as the format parameter to vsnprintf, allowing format string injection.

Impact

An attacker could potentially leak stack memory, write arbitrary memory, cause memory corruption, information disclosure, and denial of service, but the output is only visible to a physically-present attacker with UART access.

What the attacker needed

Attacker on same network; ability to respond to UPnP M-SEARCH; physical UART access to see output

The fix

The vendor released a patch on 2022-09-19.

How it was found

  1. The attacker sends a setIPCam XCMD with action autoportfwd to trigger UPnP discovery.
  2. The device broadcasts M-SEARCH packets and listens for replies.
  3. The attacker replies with a malicious UPnP response containing format specifiers in fields like ST, Location, controlURL, NewInternalClient, errorCode, or errorDescription.
  4. The device parses the response and uses the malicious field to construct a log message.
  5. The log message is passed as the format parameter to the log function, triggering the format string vulnerability.

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.

Format string vulnerabilities happen when user input is used as the format string in functions like printf. Attackers can use special characters like %x to read memory or %n to write memory. Here, the device logs UPnP responses using attacker-controlled data as the format string, so a malicious UPnP server can exploit this.

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.