Pular para o conteúdo
Novo

DeepSeek V4.1 Flash grátis por 7 dias: 10M tokens por dia após recarga de $10 ou mais. Até 30/11.

Como funciona
noorqureshi/web-dom-clobberingWeb e bug bounty

web-dom-clobbering

⁨Overwrite a page's JavaScript variables using only injected HTML — no script needed. Load when a sanitizer allows tags/attributes but strips script, and the app reads config/state from the DOM or globals. Signals: HTML injection behind DOMPurify/an allowlist, client code using `window.X`, `document.⁩

v2026.10.14-ee0e0c53 instalações+3 em 7 dias27 EstrelasMITsincronizado há 22 horas

Instalar

Ainda não tem a CLI da NotHoly? Instale primeiro.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install noorqureshi/web-dom-clobbering

Grava em ⁦~/.notholy/skills⁩ depois de conferir a assinatura e o SHA-256.

AssinaturaAssinado, ed25519
wlSJZl7JjE…xlNKQLBw==A CLI confere o SHA-256 e a assinatura antes de gravar qualquer arquivo.
Pacoteb66cd63e…c27a0f16
b66cd63ece07…23ddc27a0f161 arquivo · ⁦1.5 KB⁩
VarreduraBaixonenhum achado
A varredura não encontrou nada para apontar nesta versão.Ver a varredura completa
Fontegithub.com/NoorQureshi/security-skills/tree/main/skills/web/web-dom-clobbering@ee0e0c5

Este item ainda não foi escrito no seu idioma, então aparece em English.

When it applies

You can inject HTML but not script (a sanitizer blocks JS), and the application's own JavaScript reads values from named DOM elements or global properties. Clobbering turns pure markup into control over those values — often the missing link to XSS or a logic bypass.

Why it works

The browser auto-creates properties from element id/name: <a id=x> makes window.x (and document.x) reference that element. Legacy code that does var cfg = window.config || {} or document.getElementById('token') can be clobbered — you supply the element, so you control what that "variable" resolves to.

Method

  1. Find the sink: JS that reads a global or a named element and uses it in a dangerous way — element.src, location, innerHTML, a URL it fetches, or a feature flag.
  2. Clobber a single value: <a id=config href="//attacker"> so config resolves to an element whose href/toString() you control.
  3. Clobber nested props: two elements with the same name form an HTMLCollection, so <a id=config name=url> + <a id=config> lets you shape config.url. Forms clobber too: <form id=x><input name=y> gives x.y.
  4. Reach a script gadget: point a clobbered src/URL at attacker JS, or flip a security flag the code trusts (e.g. if(config.debug)), to escalate to XSS or an open redirect.
  5. Confirm the app's own code now reads your value.

Gotchas

  • Needs code that reads the DOM/global — no sink, no bug. Read the JS first.
  • Sanitizer config matters: id/name must survive (DOMPurify allows them by default unless SANITIZE_NAMED_PROPS is set).
  • Clobbering gives a value/element, not code execution by itself — you still need a sink to weaponise.

Verify success

The application's JavaScript observably uses your clobbered value (e.g. loads your script, redirects, or changes a security decision) with no script tag involved.

References

PortSwigger DOM clobbering; DOMPurify docs (named-property sanitisation); HTMLCollection/named-access spec.

Arquivos desta versão

Permissões

PermissãoDeclaradaEncontrada na varredura
Lê arquivosNãoNão
Grava arquivosNãoNão
Roda comandos no shellNãoNão
Usa a redeNãoNão
Usa conectoresNãoNão
Controla um navegadorNãoNão

Achados da varredura

Revisado em 13 de nov. de 2026

A varredura não encontrou nada para apontar nesta versão.

Uma varredura limpa reduz o risco, mas não prova que o pacote é seguro. Leia o que você instala.

VersãoPublicada emCommitSHA-256AssinaturaMudança de permissão
v2026.10.14-ee0e0c513 de nov. de 2026ee0e0c5b66cd63eAssinada–

Pergunte tudo o que o seu escopo permite.

Crie a conta, adicione créditos e faça a primeira pergunta no chat ou no terminal.

  1. 1/3

    Crie a conta

    Individual ou empresa. Dá para virar empresa depois sem perder saldo nem chaves.

    Pessoa físicaEmpresa
  2. 2/3

    Adicione créditos

    No cartão. Você paga por token, sem assinatura.

    $5.00recarga mínima
  3. 3/3

    Pergunte

    No chat, ou instale o CLI e rode notholy login no terminal.

    $ notholy login