Web For Pentester – Cross Site Scripting Example 6

Hello friends how are you doing? This is Osama and in this example i will be covering the 6 example of Cross Site Scripting of our series of Web For Pentester. And as we move forward in this course the challenges provided in the Lab will get hard and really interesting to solve and a fun way to learn more about your own skills and how the web application works. If you haven’t seen the previous example that we solved then here is the video reference to that post. Example-1 , Example-2 , Example-3 , Example-4 and Example -5 here.

Explanation :-

In this challenge we simply need to modify the javascript code like so..

http://[yourlab]/xss/example6.php?name=hacker”;alert(‘xss’);”

This works because the browser will render the actual javascript then ours is inserted into the middle of theirs.