SSRF and Reflected XSS in NextChat WebDav API
NextChat, a cross-platform ChatGPT/Gemini UI, contains a Server-Side Request Forgery (SSRF) vulnerability in its WebDav API endpoint due to insufficient validation of the 'endpoint' GET parameter. Attackers can leverage this flaw to make arbitrary HTTPS requests (supporting MKCOL, PUT, and GET methods) from the vulnerable server. Additionally, the SSRF can be chained to target NextChat users, potentially leading to the execution of arbitrary JavaScript code in their browsers (reflected XSS). The vulnerability is present in versions prior to 2.12.4.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows attackers to perform SSRF, enabling them to interact with internal or external systems from the NextChat server, potentially bypassing network restrictions and accessing sensitive resources. Furthermore, attackers can target NextChat users and execute arbitrary JavaScript in their browsers, leading to session hijacking, data theft, or further compromise via XSS.
If you can’t patch tonight, do this now.
If immediate upgrade is not possible, restrict access to the WebDav API endpoint at the network level, implement strict input validation and sanitization for the 'endpoint' parameter, and monitor for suspicious outbound requests from the application server.
Patch, then assume compromise.
Upgrade NextChat to version 2.12.4 or later, where the input validation for the 'endpoint' parameter in the WebDav API has been properly implemented to prevent SSRF and XSS vectors.
No public exploits tracked yet. Mallory keeps watching.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.