Web - Client

Tuesday 30 December 2014, 10:44  #1
Javascript - Stored XSS 1
aphro
  • 2 posts

Javascript - Stored XSS 1

Please help me solve this challenge. I am new to XSS, on my research show that the message form is vurnerable to XSS. But i cant seem to find a way to have the document.cookie visible in an alert message pop up. Thanks in advance.

Aphro

Tuesday 30 December 2014, 11:47  #2
Javascript - Stored XSS 1
m31z0nyx
  • 394 posts

Hi,

But i cant seem to find a way to have the document.cookie visible in an alert message pop up.

If it doesn’t work this way, think about another way to reach your goal, and remember what XSS means. 😉

Good luck :)

Tuesday 30 December 2014, 12:45  #3
Javascript - Stored XSS 1
aphro
  • 2 posts

Thanks for your reply sir. I will find another way around...

Aphro

Tuesday 30 December 2014, 15:54  #4
Javascript - Stored XSS 1
m31z0nyx
  • 394 posts

aphro,

Let me try to be more precise. What you want is to get the admin’s cookie. You will not achieve this using just an alert box. That’s where XSS comes in. Concentrate on how to get the cookie, before trying to print it out. 😉

Furthermore, discussing with another user it comes out that the challenge does not respond to all the possible ways to achieve this. At least one "well known" way doesn’t work, but some others do work.

Hope that helps. :)

Wednesday 7 January 2015, 17:53  #5
Javascript - Stored XSS 1
HacKeD
  • 2 posts

Guys is this challenge working because i am not getting any connection back to my machine that posts the cookie, and iam sure i configured nat and firewall rules propably ??

Wednesday 7 January 2015, 20:12  #6
Javascript - Stored XSS 1
m31z0nyx
  • 394 posts

It does, as you finally found out. ;)

Wednesday 15 April 2015, 10:17  #7
Javascript - Stored XSS 1
zhudixia
  • 4 posts

but nothing was here when i put /* stop spoil plz, go IRC */

Saturday 7 November 2015, 23:46  #8
Javascript - Stored XSS 1
Linken
  • 1 posts

First.. you must know what you’re going to do .. Get the cookies or alert

Monday 8 February 2016, 09:37  #9
Javascript - Stored XSS 1
v3km4n
  • 1 posts

I’ve seen a way of doing this, but it involves php - is it strictly necessary to use php to solve this challenge? It seems like so because javascript is just client-side.

If this is the case, do I need to actually host one or can I do it in my local machine?

Thanks!

Wednesday 1 March 2017, 15:51  #10
Javascript - Stored XSS 1
sunbyte
  • 1 posts

You can use InfinityFree hosting or any other free PHP hosting.

Monday 20 March 2017, 22:47  #11
Javascript - Stored XSS 1
blackf0x
  • 2 posts

Hello, someone please help me. I try to decide this task for two days.
I have a web server with logs. And I write a js code to message field, it redirect throw the image admin cookie, but I don’t give its in my web site.
Uncommonly, after i post my message, i give the next message : "Vos messages ont bien été lus / Your messages have been read". How I can right get cookie.?Thanks.

Monday 14 August 2017, 00:05  #12
Javascript - Stored XSS 1
David
  • 1 posts

For those who want to use any hosting provider to solve the challenge, please note that HTTPS requests will probably fail miserably although the same using an insecure HTTP connexion will work as a charm… I lost time because of that :/