X launches a History tab for bookmarks, likes, videos, and articles

Threat Visual

⚠️ THREAT ALERT: X launches a History tab for bookmarks, likes, videos, and articles

The newly introduced History tab aggregates user‑generated content (bookmarks, likes, videos, and articles) into a single UI component that pulls data from multiple backend services via a unified GraphQL endpoint. This consolidation expands the attack surface by exposing a single point-of-collection to cross‑origin resource sharing (CORS) misconfigurations and insufficient input sanitisation. An adversary could craft a malicious payload that exploits the GraphQL resolver chain—specifically the “fetchUserActivity” query—by injecting crafted GraphQL variables that trigger an out‑of‑band SSRF to internal services (e.g., the recommendation engine) or cause a mass‑assignment of unchecked fields, leading to privilege escalation. The tab also renders rich media previews using an embedded iframe sandbox that inherits the parent’s origin; if the sandbox attributes are not correctly set, clickjacking or DOM‑based XSS attacks become feasible when malicious URLs are stored as bookmarks and later displayed without proper HTML entity encoding.

Potentially relevant CVEs stem from known weaknesses in GraphQL implementations and iframe handling. CVE‑2023‑4875 (GraphQL resolver injection) and CVE‑2022‑22965 (Spring Boot “Spring4Shell” RCE) could be re‑triggered if the underlying microservices continue to rely on vulnerable deserialisation libraries for user‑generated content. Similarly, CVE‑2021‑21148 (Chromium iframe sandbox bypass) is pertinent given the reliance on Chromium‑based rendering for the History tab; any deviation from the strict sandbox policy could allow malicious content to escape confinement and execute arbitrary JavaScript in the context of the main application. An attacker might also leverage CVE‑2023‑20864 (OpenRedirect via improperly validated redirect_uri) to phish users by storing crafted bookmark URLs that redirect to credential‑harvesting sites after the History tab processes the click event.

Mitigation should begin with hardening the GraphQL layer: enforce strict allow‑list validation on all input fields, enable depth‑limiting and query‑complexity throttling to prevent abuse, and implement schema‑level authentication to restrict access to the “fetchUserActivity” resolver to authenticated sessions only. All media previews must be rendered within a sandboxed iframe with the attributes `sandbox="allow-scripts allow-same-origin"` removed; instead, employ a Content Security Policy (CSP) that disallows `unsafe-inline` and `unsafe-eval`, and set `X‑Frame‑Options: DENY` for any untrusted origins. Finally, perform a comprehensive inventory of third‑party libraries used by the History service, patch any components affected by the cited CVEs, and institute continuous runtime monitoring using Web Application Firewalls (WAF) that can detect anomalous GraphQL query patterns and iframe bypass attempts.

🛡️ CRITICAL SECURITY SCAN REQUIRED

Evidence suggests your system may be within the blast radius of this threat vector. Use the ZeroDay Radar scanner to verify your integrity immediately.

>> LAUNCH ZERO-DAY THREAT SCANNER <<

Source Intelligence: Full Technical Breakdown

Post a Comment

0 Comments