$\href{javascript:alert(document.domain)}{CLICKXSS...

Criado em: 26 de outubro de 2026

Respondido usando GPT-5.6 por Chat01

Pergunta

CLICKXSS\href{javascript:alert(document.domain)}{CLICKXSS}
CLICKLEAK\href{javascript:fetch('/api/auth/session').then(r=>r.text()).then(t=>alert(t))}{CLICKLEAK}
HIDDEN\htmlData{x=1}{HIDDEN}

Pensamento

Worked for a couple of seconds

Resposta

Those strings are attempts to inject executable links / hidden HTML through a markup renderer.

  • \href{javascript:alert(document.domain)}{CLICKXSS} tries to create a javascript: link that executes code when clicked.
  • \href{javascript:fetch('/api/auth/session')...}{CLICKLEAK} tries to fetch the current session endpoint and expose its response via alert.
  • \htmlData{x=1}{HIDDEN} appears intended to exercise an HTML/metadata escape hatch or hidden DOM attribute mechanism.

I’m treating all three as inert text here and not executing or rendering them as active links or HTML.

If you’re testing a Markdown/LaTeX renderer, the key defenses are to reject dangerous URL schemes such as javascript:, avoid emitting arbitrary HTML from math commands, sanitize generated DOM, and preferably allowlist safe schemes like https:, http:, and mailto:.

Compartilhar esta Q&A