[CTF] Struggling to extract RTSP stream from generic Chinese IP Cams (Altobeam SoC) via ONVIF
Hi everyone,
I keep running into a recurring scenario in some CTFs involving IoT/IP Cams and could use some insight, specifically regarding those generic low-cost Chinese cameras (often running on Altobeam hardware).
The Scenario and Restrictions
The objective is to capture the camera's RTSP traffic. There is no possibility of pivoting to bypass IP restrictions (strict whitelisting is active in the environment), and so far, I haven't identified any exploitable public CVEs for the exposed version.
What I've achieved so far (Enumeration)
Initial access to the ONVIF service (when the port is open).
Successfully extracted the RTSP stream URL and the respective session tokens via SOAP API requests.
The Blocker
Even with the URL and tokens in hand, RTSP access systematically fails (connection timeout or drop). I've tried the following approaches without success:
Automated interactions with ONVIF to try and force the creation of new users or discover hidden endpoints, but the result is the same.
Performed traffic capture and analysis (PCAP) in promiscuous mode using tcpdump and Wireshark. My intention was to inspect the packets looking for some undocumented handshake, custom headers, or broadcast/multicast requests from the camera on the network, but I couldn't identify any clear byte patterns.
Did some deep digging and found that many of these devices require a proprietary handshake (usually UDP/P2P) performed exclusively by the manufacturer's official Android app before actually releasing the stream.
The Question
What am I missing regarding the architecture of these Altobeam cameras? Is there a standard process or specific tool to emulate this mobile app handshake and "wake up" the RTSP service, or does exploitation in these cases usually follow another vector (such as flaws in the ONVIF service implementation itself)?
Any direction, pointers, or study material on the internal network protocol workings of these generic cameras would be greatly appreciated. Thanks in advance!