Critical XSS Vulnerabilities in Meta Conversion API Enable Zero-Click Account Takeover
Security researchers have identified two significant cross-site scripting (XSS) vulnerabilities in Meta's Conversions API Gateway. These vulnerabilities could potentially allow attackers to hijack Facebook accounts without user interaction.
Security researchers have identified two significant cross-site scripting (XSS) vulnerabilities in Meta's Conversions API Gateway. These vulnerabilities could potentially allow attackers to hijack Facebook accounts without user interaction.
The vulnerabilities affect Meta-owned domains, including facebook.com and meta.com, as well as approximately 100 million third-party deployments of the open-source gateway infrastructure.
Understanding the Conversions API Gateway
The Meta Conversions API Gateway is a server-side tool enabling businesses to send web events and customer interaction data directly to Meta's advertising platforms. This method bypasses cookie restrictions and ad blockers by operating at the server level. Meta offers this technology both as a hosted service at gw.conversionsapigateway.com and as open-source containerized software for deployment on private infrastructure.
The gateway delivers a crucial JavaScript file, capig-events.js, for conversion tracking. This script executes automatically on Meta properties and numerous third-party websites, making any vulnerability particularly hazardous from a supply-chain perspective.
Security researchers have identified two significant cross-site scripting (XSS) vulnerabilities in Meta's Conversions API Gateway.
The first vulnerability is within the client-side capig-events.js script, resulting from improper validation of postMessage origins. The script listens for configuration messages without verifying their source, allowing the loading of JavaScript from attacker-controlled domains. The second vulnerability exists in the gateway's backend. It involves unsafe string concatenation in Java files, allowing attackers to inject arbitrary JavaScript code into the capig-events.js file.
Vulnerability Type Affected Component
Client-Side XSS (Improper Origin Validation) capig-events.js
Stored XSS (Unsafe String Concatenation) Gateway Backend (IWL Configuration)
These vulnerabilities emphasize the need for strict origin validation, secure content security policies, and safe code-generation practices, especially when dealing with shared JavaScript across multiple platforms and domains.
Based on reporting by GBHackers.
