If you’ve deployed anything since 2015, I have bad news...
Summary
A three-day incident roundup covering three unrelated but similarly shaped failures: a flaw in Optimizely's client-side experimentation script that let attackers run code on 178 high-traffic sites, a Java path where a single Base64-encoded payload escalates to remote code execution, and a decade-old Nginx defect that left a huge share of the web exposed. The through-line is that the inherited layer — vendor tags, framework defaults, the reverse proxy nobody owns — carries the largest blast radius and the slowest patch cadence.
Key takeaways
- Third-party scripts (analytics, A/B testing, chat widgets) execute with full page privileges, so a vendor-side bug is effectively your bug — enforce CSP and Subresource Integrity, and keep an explicit inventory of every external origin you load.
- Any flow that decodes Base64 from an untrusted request and hands the bytes to a deserializer or reflective loader is an RCE sink; prefer data-only parsing and treat decode-then-instantiate as a code smell in review.
- A ten-year-old defect in Nginx means the edge proxy is the highest-leverage single point of failure on the internet — version-pin it, track advisories, and keep a tested path to swap or patch the proxy layer independently of app deploys.
- Patch latency, not patch availability, is the real metric; all three issues had fixes while exposure persisted, which argues for automated dependency and infrastructure drift detection.
- Design for assumed compromise of the edge and of any third-party origin: keep authz, session issuance, and secrets behind components that don't trust the request path or the injected script.