BBLABSBBLABS
LaboratoriosAprender desde 0FuncionesPreciosTestimoniosDetrás de BBLABS
  1. Home
  2. Labs
  3. Content Security Policy Bypass Challenges
Hard1h

Content Security Policy Bypass Challenges

By @gorka

8 desafios progresivos para bypassear diferentes configuraciones de Content Security Policy y ejecutar alert(1).

This hack was reported with no reward

862 views11 completedUpdated Nov 2026
Log in to start

Learn to find this bug

A real hack, reproduced for you to practice.

Create your account and practice real bugs that got paid. Download the environment, find it and learn the exact technique — your path to your first bounty.

650

hunters training

50

labs from real hacks

380

completions

$12,000

paid out for these bugs

40 flags captured this week
Create account
I already have an account

Access to all labs · no commitment · cancel anytime

Hackers who solved it· 8

sharat chandra1
@sharat chandraOct 2026
3nk12
@3nk1Sep 2026
vazquezdv1820053
@vazquezdv182005Aug 2026
kaneki
@kanekiJul 2026
flyingwhales
@flyingwhalesJul 2026
r4mattra
@r4mattraJul 2026
AL
@alex.burja.2000Jul 2026
benjaminnocervigni
@benjaminnocervigniJul 2026

Objectives

1
Bypassear unsafe-inline
2
Explotar data: URIs
3
Bypassear unsafe-eval
4
Abusar de wildcards *
5
Explotar JSONP endpoints
6
Usar CDN (AngularJS) para bypass
7
Explotar nonces hardcodeados
8
Bypassear via script echo

Information

Difficulty
Hard
Duration
1h
Bounty
Sin recompensa
Completed
11
Creator
gorka@gorka
Updated
Nov 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Navegador

Prerequisites

  • CSP basico y avanzado
  • XSS avanzado
  • JavaScript y DOM manipulation

Tags

XSS

Achievement you'll earn

Solve this lab to unlock this shareable achievement

Solve this lab to unlock this shareable achievement

Community writeups

Free · no account

The checklist I run on every new target

47 checks ordered by cost: first what can get you in trouble, then the cheap stuff, and finally the expensive stuff — which is where the big bounties are. I'll send it to your inbox right now.

Unsubscribe in one click, from any email.

Despliegue

# Opcion 1: autodeploy
./autodeploy.sh

# Opcion 2: manual
docker compose up --build

# Acceder
http://localhost:2200

Compatible con macOS, Linux y Windows (Docker Desktop / WSL).

Para parar:

./autodeploy.sh destroy
# o: docker compose down -v

Contenido del Lab

La aplicacion

Plataforma con 8 niveles de CSP progresivamente mas restrictivos. El objetivo es ejecutar alert(1) en cada uno.

La vulnerabilidad

Cada nivel tiene una configuracion CSP diferente con un bypass especifico: unsafe-inline, data:, unsafe-eval, wildcard, JSONP callback, CDN con AngularJS, nonce estatico, y script echo reflection.

Cadena de ataque

Nivel 1: unsafe-inline → <script>alert(1)</script>
Nivel 2: data: → <script src=data:,alert(1)>
Nivel 3: unsafe-eval → eval('alert(1)')
Nivel 4: * wildcard → cargar script externo
Nivel 5: JSONP → callback=alert(1)
Nivel 6: CDN → AngularJS ng-app con expresiones
Nivel 7: nonce hardcoded → reusar nonce
Nivel 8: script echo → reflected input en script

Solucion interactiva

Accede a /writeup dentro de la aplicacion para una guia paso a paso con botones interactivos.


Flag

(alert(1) en cada desafio)

Remediacion

  1. Nunca usar unsafe-inline o unsafe-eval
  2. Usar nonces aleatorios por peticion
  3. Whitelist estricto de dominios
  4. Evitar JSONP endpoints
  5. No reflejar input dentro de bloques script

The community

This isn't a platform with users.It's people breaking the same things you are.

Inside people ask, share what they found and solve together what would block anyone on their own. It's free to join: no account, no plan, no email required.

Join the BBLABS community on Discord
Join the Discord

Free and open. You don't need a BBLABS account to join.

BBLABS LogoBBLABS

Laboratorios de hacking basados en hackeos reales. Aprende practicando sobre entornos vulnerables, con la resolución explicada paso a paso.

Producto

  • Funcionalidades
  • Precios
  • Labs
  • Aprender desde 0
  • Blog
  • Detrás de BBLABS

Legal

  • Términos
  • Privacidad
  • Cookies
  • Entrar
  • Crear cuenta

Para cualquier duda, bug, soporte o sugerencia puedes escribir a team@bblabs.es

© 2026 BBLABS. Todos los derechos reservados.