The vulnerability is a Server-Side Request Forgery (SSRF) in the openclaw package, specifically within the QQBot media upload functionality. The functions uploadC2CMedia and uploadGroupMedia in extensions/qqbot/src/api.ts were identified as vulnerable. These functions accepted a URL from a user for direct media uploads. Before the patch, the provided URL was assigned to the request body and used without any validation. This allowed an attacker to craft a URL pointing to internal network resources or cloud metadata services. When the application processed this URL, it would make a request on behalf of the server, leading to the SSRF vulnerability.
The fixing commit 49db424c8001f2f419aad85f434894d8d85c1a09 introduces a new helper function, assertDirectUploadUrlAllowed. This function is now invoked within both uploadC2CMedia and uploadGroupMedia to validate the URL. The validation ensures the URL uses the HTTPS protocol and resolves to a public IP address, blocking requests to private, internal, or special-use IP ranges. Any runtime profile during an exploit of this vulnerability would show calls to uploadC2CMedia or uploadGroupMedia processing the malicious URL.