BBLABS v2BBLABSv2
>Home>Labs
>New labs

Latest 3 labs

Loading…

View all labs →
>Creators>Ranking
>Learn

Learn bug bounty

AcademyGuides, cheatsheets and glossaryVulnerabilitiesXSS, SQLi, IDOR, SSRF and moreHacker RoadmapYour step-by-step bug bounty pathBlogBug bounty guides and news
>Business>Pricing
ES
Log inLog in
>Home>Labs>New labs>Creators>Ranking>Learn>Business>Pricing
ES
Sign inCreate account
  1. Home
  2. Labs
  3. Open Redirect Playground
EasyVDP15 min

Open Redirect Playground

By @gorka

Un SaaS ficticio (Lumen Workspace) cuyo endpoint de cierre de sesión acepta un destino arbitrario en `redirect_url`. El servidor hace `res.redirect(302, …)` con el valor tal cual, sin validar same-origin, esquema ni host.

796 views45 completedUpdated Sep 2026
Log in to start

Learn to find this bug

A real YesWeHack 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

bizedtv1
@bizedtv5 days ago
r00thor2
@r00thor8 days ago
jose.vuln3
@jose.vuln10 days ago
elc0ket
@elc0ket14 days ago
DA
@david.pow.m19 days ago
melvin
@melvin19 days ago
<d4r1c4r0>
@<d4r1c4r0>22 days ago
danielmijan11
@danielmijan1123 days ago

Objectives

1
Entender la primitiva: leer el código de `server/src/routes/auth.ts:90-100` y ver cómo `req.query.redirect_url` viaja sin validación a `res.redirect(302, …)
2
Probar al menos 3 payloads del playground (`/playground`)
3
Identificar variantes** que normalmente saltan validadores naive

Information

Platform
YesWeHack
Difficulty
Easy
Duration
15 min
Bounty
VDP
Completed
45
Creator
gorka@gorka
Updated
Sep 2026

Download the environment

Reproduce it and find the bug yourself

Create account

Tools

Navegador

Prerequisites

  • Navegador

Tags

Open Redirect

Achievement you'll earn

Solve this lab to unlock this shareable achievement

BBLABS.ESLab Solved
EasyVDP
// achievement_unlocked

Open Redirect Playground

Open Redirect
Sep 2026
gorka
solved_by@gorkaMember since Mar 2026
bblabs.es// real hacking practice

Community writeups

Descripción del lab

Lumen Workspace es un producto inventado: un canvas de notas y workspaces compartidos al estilo Linear/Notion. El landing tiene hero animado, feature cards con stagger, y un menú de cuenta en la esquina superior derecha con un input "After sign out, send me to" deliberadamente expuesto.

La feature "redirect after logout" existe porque (según la narrativa) el equipo de growth quería que los usuarios pudieran ser devueltos a una landing de campaña al cerrar sesión desde un email. Para soportar esa UX, el endpoint acepta tanto rutas relativas como URLs absolutas y, de forma "intencionadamente flexible", no impone allowlist.

El bug vive en server/src/routes/auth.ts:

router.get('/logout', (req, res) => {
  res.clearCookie('lumen_token');
  const next = (req.query.redirect_url as string) || '/';
  return res.redirect(302, next);
});

No hay decoys complejos — esto es un lab básico. Las páginas de Dashboard / Profile / Activity / Workspaces existen para que el lab se sienta como una app real, no como una página estática con un solo botón.


Cómo verificar (sustituye al flag)

# 1) Levantar el lab
./autodeploy.sh deploy
# (o:  docker compose up --build -d)

# 2) PoC automatizado — confirma el 302 a host externo
python3 exploit.py

# 3) Suite de tests — 6 checks end-to-end
pip install -r tests/requirements.txt
python3 tests/verify.py

Los criterios de éxito están definidos en tests/verify.py:

# Check Cómo
1 Smoke: el lab responde en localhost:1402 GET / → 200
2 Registro de usuario funciona POST /api/auth/register → 200 + token
3 Login funciona POST /api/auth/login → 200 + token
4 VULN PRESENTE: redirect arbitrario externo GET /api/auth/logout?redirect_url=https://example.com/x → 302 + Location: https://example.com/x
5 Endpoint legítimo requiere auth GET /api/auth/me sin token → 401
6 Variantes peligrosas también funcionan GET /api/auth/logout?redirect_url=//example.com → 302 con Location protocol-relative

Diferencias con otros labs de Open Redirect del repo

Lab Categoría Foco
Basic_OR (este) Easy · Playground Vuln trivial + UI súper pulida + páginas explicativas
Nexora Hard · Gold Backslash bypass + bot Puppeteer arrastrando X-ULTRA-SECRET-TOKEN
Legacy "Open Redirect Logout function" Easy Comentarios // VULNERABLE: visibles — pendiente de refactor

Si vienes "del cole" y quieres verlo paso a paso, empieza aquí. Si ya entiendes el patrón y quieres encadenar con OAuth/cookie smuggling, salta a Nexora.

Contact

Practice, learn and hack

Bug bounty practice platform with labs based on real hacks. Learn ethical hacking in safe environments.

contact→

Follow us

YouTube
@0xGorka
X
@gorkaelbochi
LinkedIn
gorka-el-bochi-morillo
Instagram
@_.gorkaaa.b
Email
team@bblabs.es

Access every lab from €7.99/mo

New labs every week. Cancel anytime.

Create account

BBLabs is the bug bounty labs platform where you learn bug bounty with real vulnerabilities extracted from paid hacks on HackerOne, YesWeHack and Bugcrowd. Here you practice web hacking —XSS, SQLi, IDOR, SSRF, CSRF and more— in downloadable environments, capture the flag, read the writeup and apply the technique on active bug bounty programs.

BBLabs is the alternative to HackTheBox, TryHackMe and PentesterLab for those who want to practice bug bounty with real hacks instead of artificial CTFs. From €7.99/mo, no commitment.

→ Learn bug bounty from scratch→ How to do bug bounty step by step→ Real bug bounty reports→ BBLabs for companies and academiesLabsAcademyVulnerabilitiesToolsHacker rankingXSS labsIDOR labsSSRF labsCSRF labsHackTheBox alternativeHack4u alternativeTryHackMe alternativePortSwigger alternativePentesterLab alternativeBug Bounty Labs comparisonHackerOne to practiceOffSec / OSCP alternativeINE / eWPT alternativeHTB Academy alternativeDVWA alternativeJuice Shop alternativeVulnHub alternativePentesterAcademy alternativeRoot-Me alternativeHackTheBox vs TryHackMeBest bug bounty platforms 2026BlogSpoilersWhat is bug bounty?How much do you earn in bug bounty?OWASP Top 10 explainedBest sites to practice web hackingHow to become an ethical hacker from scratchBurp Suite tutorial (Spanish)OSCP guide and prepGoogle Dorks for bug bountyHow much an ethical hacker earns in SpainBug bounty tools 2026Best cybersecurity certifications 2026Burp Suite tutorialsqlmap tutorialffuf web fuzzingnuclei tutorialHTTP Request SmugglingWAF bypassPrompt injection (LLM)Google Dorks
Made withand code
TermsPrivacyCookiesComparisonES

© 2026 BBLABS v2 — All rights reserved