CSP Fallback Artifacts

All is not Self: Empirical Analysis of the Content Security Policy Fallback Mechanism

Overview

This page provides supplemental materials for our study on fallback behaviors in Content Security Policy (CSP). The following resources are available:

Attack Demonstrations

1. SOP Bypass

Third-party iframe inject first-party iframes bypassing Same Origin Policy. No dedicated directive control inline iframes, and overly permissive default-src fallback allows this behavior.

View demo →

2. Cookie Exfiltration

When img-src is not specified, image requests fall back to default-src. If default-src is permissive, it enables third-party image loads, that bypass connect-src restrictions and conduct third-party tracking through cookies.

View demo →

3. Multiple Fallbacks

When multiple directives—such as script-src, frame-src, and media-src—are missing, they all fall back to default-src. As a result, a broad default-src permits any domain to inject any type of resource, affecting the website's access control and integrity.

View demo →