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.
Originally disclosed on Cisco Talos
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.
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
- The attacker sends a setIPCam XCMD with action autoportfwd to trigger UPnP discovery.
- The device broadcasts M-SEARCH packets and listens for replies.
- The attacker replies with a malicious UPnP response containing format specifiers in fields like ST, Location, controlURL, NewInternalClient, errorCode, or errorDescription.
- The device parses the response and uses the malicious field to construct a log message.
- 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.