EntornosRankingComunidadWriteupsPreciosGorka
Entrar
  1. Home
  2. Environments
  3. Subdomain Takeover via Dangling CNAME

Subdomain Takeover via Dangling CNAME

MediumVDP · unpaidReal case · YesWeHackWith flag

Portal del gobierno ficticio con un subdominio legacy que apunta a un repositorio de GitHub Pages inexistente. El atacante debe descubrir el subdominio, identificar el CNAME dangling, reclamar el repositorio y tomar control del subdominio Objective: capture the flag.

Business Logic
Log in to startSee the environment

952 views · 22 completed · updated Nov 2026

Access

Learn to find this bug

A real YesWeHack hack, reproduced for you to practice.

Create your account and practise with real hacks. Download the environment, find the bug and learn the exact technique.

hunters training

hacking environments

environments solved

paid out for these bugs

Create account
I already have an account

Access to all environments · cancel the renewal anytime and keep what you paid for

Information

Platform
YesWeHack
Difficulty
Medium
Duration
30 min
Bounty
No reward
Completed
22
Creator
@gorka
Updated
Nov 2026

The environment

ZIP with the environment and its autodeploy

You download it from here. Inside there's the environment and two scripts that start it for you, one per system.

autodeploy.shautodeploy.ps1
Create an account to download it

Only requirement: Docker

Nothing else. The autodeploy builds and starts the environment for you.

Autodeploy · one command

Linux and macOS

$./autodeploy.sh

Windows

PS>.\autodeploy.ps1

From inside the folder the ZIP creates. It prints the URL and credentials.

Objectives · the path, not the solution

  1. 01Reconocimiento → explorar la web del gobierno
  2. 02Inspeccionar código fuente → descubrir subdominio en footer/robots.txt
  3. 03Añadir portal.gobierno.gob.local al /etc/hosts
  4. 04Visitar subdominio → GitHub Pages 404
  5. 05Identificar el CNAME target (hash.github.io)
  6. 06Crear el repositorio en GitHub (o usar /api/claim para simulación)
  7. 07Subir contenido → subdominio tomado
  8. 08Flag: d41d8cd98f00b204e9800998ecf8427e

Prerequisites

  • Conocimineto Básico Sobre DNS
  • Cuenta de GitHub
  • Modificar Hosts del Sistema

Tools

  • Navegador
  • GitHub
  • Terminal

Latest to solve it

  • @r00thorOct 2026
  • @sharat chandraOct 2026
  • @3nk1Sep 2026
  • @bizedtvSep 2026
  • @emperadorSep 2026
  • MA@maxioliveraSep 2026
  • @benjaminnocervigniAug 2026
  • @zynapAug 2026

The badge

Achievement you'll earn

Solve this environment to unlock this shareable achievement

Solve this environment 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.

Setup

Añadir al /etc/hosts:

127.0.0.1 gobierno.gob.local
127.0.0.1 portal.gobierno.gob.local

Desplegar:

./autodeploy.sh
# o: docker compose up --build

Acceder: http://gobierno.gob.local:1000

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 Discord

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

Aprende hacking con entornos que replican hackeos reales.

Producto

  • Entornos
  • Hacker Roadmap
  • Arena · ranking
  • Precios
  • Empresas

Aprender

  • Aprender desde 0
  • Academy
  • Blog
  • Writeups
  • Crew · Discord

Más

  • Gorka
  • Términos
  • Privacidad
  • Cookies
  • team@bblabs.es
© 2026 BBLABS · Hecho en Españalabs.bblabs.escrew.bblabs.esacademy.bblabs.esarena.bblabs.esblog.bblabs.esbugbounty.bblabs.esteams.bblabs.es