IFrame Parent XSS - HackTheBox Cyber Apocalypse CTF

Поделиться
HTML-код
  • Опубликовано: 3 фев 2025

Комментарии • 92

  • @nikkittb
    @nikkittb 3 года назад +106

    Man, i have to say: i love how your vids on these challenges are uncut and honest! It makes me feel less of a fool myself, when i'm stuck on something trivial. At least next time i can say:"It's okay you little doofus, John Hammond forgot to use backticks when setting a JS-variable. Apparently even the best guys out there make mistakes." Thanks for the wonderful content John!

    • @lobley2
      @lobley2 3 года назад +1

      The best guys are all the better for being honest about their mistakes and demonstrating that they are human. For example I love that prominent scam fighting youtuber Jim Browning fell for a scam that lost him his channel temporarily, but made sure to tell the world he fell for it. It shows no matter how experienced you think you are you still have to be on your guard.

  • @drewrad8
    @drewrad8 3 года назад +65

    Love the videos where you're doing it for the first time. It's all about learning how other people learn!

  • @NateRoberts
    @NateRoberts 3 года назад +15

    I actually appreciate when John does it the first time and struggles. Bc I know he does “easy rooms” but sometimes when I struggle I feel bad. So seeing John struggle too validated my struggling 😅 thanks again! Learned a lot from your struggle 😂😂

  • @PhilAlbu
    @PhilAlbu 3 года назад +3

    Our failures teach us much more than our successes. Thanks for being so organic in your content. I think it's great to see that people don't always figure things out on the first try.

  • @_xpl0it_
    @_xpl0it_ 3 года назад +40

    .. that satisfaction .. It's priceless

  • @kritagyagupta8619
    @kritagyagupta8619 3 года назад +13

    John thanks for this opportunity for us to learn from this

  • @maxxroach8033
    @maxxroach8033 3 года назад +1

    I love watching you do these for the first time. I know the satisfaction you get when solving problems. Keep it up man!

  • @i-negm
    @i-negm 2 года назад +2

    Nice video , I liked your uncut way of recording this. It makes a lot of sense to me when watching you put all things together.
    Thanks for sharing such knowledge. Have a nice day sir.

  • @fr8trainUS
    @fr8trainUS 3 года назад +1

    You call it painful, imo observing the thought process and troubleshooting was great! Congrats on the success

  • @Khusyasy
    @Khusyasy 3 года назад +4

    i just found this channel randomly, and i love the videos 😅

  • @diddyman1958
    @diddyman1958 3 года назад +1

    I understood very little of that but still immensely enjoy your videos.

  • @develepre
    @develepre 3 года назад +7

    I'm that Node Guy that laugh at all `back-tick moments`

  • @adbirdk
    @adbirdk 3 года назад

    As someone trying to secure my code, I really enjoy watching your web security vids..

  • @swapnilbhosale2230
    @swapnilbhosale2230 3 года назад +1

    Great video man.
    Big fan!
    Thanks for sharing the knowledge with the community. I appreciate it. 🙏🏻

  • @annikablohm
    @annikablohm 3 года назад +3

    Weird as hell payload.
    Love it.

  • @anthonutty
    @anthonutty 3 года назад +1

    I think jsonp is a common technique where cross-domain configurations are not setup, which means you can only basically do GET requests. So you basically send a GET request with a callback name of your choice, and take the response text of the response and eval it which essentially gets you to result passed into your function callback by name.

  • @MI7DJT
    @MI7DJT 3 года назад +1

    This is why it's called Hacking!! Great job John!

  • @rbchoyce
    @rbchoyce 3 года назад

    I don’t understand much on here but it’s still fun to watch and learn

  • @_CryptoCat
    @_CryptoCat 3 года назад +3

    didn't solve this one, looking forward to a detailed walkthrough 😸

  • @ca7986
    @ca7986 3 года назад

    Love this new style with struggling. ❤️

  • @jelgue
    @jelgue 3 года назад

    This one was really cool and interesting to me. Loved it!

  • @haseebarshad7451
    @haseebarshad7451 2 года назад

    I WAS SCREAMING TACS JOHN!!!

  • @CodyHoskin
    @CodyHoskin 2 года назад

    Such a good video. It’s awesome learning with you. Lol.

  • @BearkFearGamer
    @BearkFearGamer 3 года назад

    Anxious thinking in backticks, hahaha. Congratulations man!

  • @mattrickbeats
    @mattrickbeats 2 года назад

    Bro! You are a genius fam!

  • @OMER3-1-3
    @OMER3-1-3 2 года назад

    DAMNN That was a great video thanks.

  • @soniablanche5672
    @soniablanche5672 2 года назад

    jsonp was a hacky way of sending data directly via javascript back when all cross site resources were not allowed by browsers. you're supposed to run it as the src of a script tag (script tags ignore CORS policies). That's why it's asking for the name of the callback, you would write a function that expect the data passed as argument.

  • @HackerPaints
    @HackerPaints 2 года назад

    You’ve spared no expense

  • @0xfsec
    @0xfsec 3 года назад

    I love this htb apocalypse series.. I can learn not just a black box but also white box testing. Do you have any video or tutorial recomendation for beginner on white box testing?

  • @0xechidonut
    @0xechidonut 3 года назад

    IM SCREAMING FOR THE BACKTICKS CMON

  • @hakimelmansouri3166
    @hakimelmansouri3166 3 года назад

    Bro u just so smart i was thinking with you but u always think outside the box and i keep getting stuck hahahaha

  • @abhishekmorla1
    @abhishekmorla1 3 года назад

    thanks

  • @logiciananimal
    @logiciananimal 3 года назад

    A great example to illustrate that CSP is not a cure-all.

  • @SandyOC100
    @SandyOC100 3 года назад

    Always better problem solving live

  • @alexcordovac
    @alexcordovac Год назад

    This is gold!!!!

  • @dev__004
    @dev__004 2 года назад

    So what did we learn today?
    Everything needs to be url encoded😝😝

  • @isiraadithya
    @isiraadithya 3 года назад +1

    If the content type is "application/javascript" you cannot use html tags inside it. Browser will ignore it and throw a exception. I think I wasted about 5 hours without knowing this on a bug bounty program. If I made a mistake please correct me. (I am 16 years old noob 😅)

  • @daveminion6209
    @daveminion6209 6 месяцев назад

    never thought a man could suffer so much outside of Purgatory - till now.

  • @SIRBOB102
    @SIRBOB102 3 года назад

    the backticks of doom

  • @orgozlan323
    @orgozlan323 3 года назад

    Thank you

  • @sallytaylor6
    @sallytaylor6 3 года назад

    Great content John

  • @dopy8418
    @dopy8418 3 года назад +6

    Hey john how can we rewatch the hacking game you commented on with ippsec ?

    • @viv_2489
      @viv_2489 3 года назад +1

      I haven't found the videos on Twitch.. it was only live stream I guess...

    • @_CryptoCat
      @_CryptoCat 3 года назад +2

      i think HTB said they would be uploading on their YT channel

    • @viv_2489
      @viv_2489 3 года назад +2

      @@_CryptoCat oh cool

    • @tylerrake9148
      @tylerrake9148 3 года назад

      @Do py you can get it now available on youtube, on hack the box channel.....

    • @dopy8418
      @dopy8418 3 года назад

      @@tylerrake9148 Yeah i saw thanks.

  • @bulmavegeta23
    @bulmavegeta23 3 года назад

    that was intense

  • @choleralul
    @choleralul 3 года назад

    Cool!

  • @gurujiguruji8050
    @gurujiguruji8050 3 года назад

    Awesome 🔥

  • @hasibavi7539
    @hasibavi7539 3 года назад

    Hi Hammond, I usually watch your every video and your contents are very rich.
    I have a query, suppose my SIEM detect potential cobalt strike on a internal communication (local to local) and as per checking it was detected by JA3 fingerprint. So, how can I locate on the machines, is there any true beacon or just false positive.

  • @Recon_Racing
    @Recon_Racing 3 года назад

    I'm definitely not that advanced with BASH to be calling out syntaxes and functions like that. Is there any more entry-level stuff on HTB?

  • @thecaretaker6659
    @thecaretaker6659 3 года назад

    17:22 Eureka!

  • @dandan7884
    @dandan7884 3 года назад +1

    Why would someone use puppeteer to access some hidden localhost page on the backend after a user post something? Automate administrative work? Feels very risky to do it in that way IMO
    Or maybe... It's just an insecure code for people to learn from...

    • @Qwerasd
      @Qwerasd 3 года назад +2

      The puppeteer instance simulates an administrator.

  • @auro3058
    @auro3058 3 года назад

    ❤❤

  • @ebux9885
    @ebux9885 Год назад

    28:39 ngrok actually put your IP in the X-Forwarded-For header

  • @tkstdude
    @tkstdude 3 года назад

    Awesome

  • @hakoo2700
    @hakoo2700 3 года назад

    amazing ty so much i leant a loooooooooooooooot from this tnx:) ... btw i was doing '${val}' and seeing it not working and wondering why until i saw the exact same stackoverflow page and see `` and go like but why?!

  • @optional.
    @optional. 3 года назад

    owsem ❤️

  • @phecdaDia
    @phecdaDia 3 года назад +1

    Does anyone know if you can still download these boxes like John does? Feel like having some nice coding examples would be useful to learn.

  • @adityasinghixc3397
    @adityasinghixc3397 3 года назад

    Hey John what's your main os ???? Which Linux ??? This is a VM like the original one ??

  • @acolddayinhell6206
    @acolddayinhell6206 3 года назад

    did you go live or uploaded a video?

  • @raymond25475
    @raymond25475 3 года назад

    how do you download an entire website folders and file ?

  • @kvikkenni
    @kvikkenni 3 года назад

    No that was not painful that was epic

  • @hihihi1733
    @hihihi1733 3 года назад

    where are you.. ?
    i am eagerly waiting for your videos.

  • @kritagyagupta8619
    @kritagyagupta8619 3 года назад +3

    Sup people

  • @juliachild9377
    @juliachild9377 3 года назад +1

    I did it all for the cookie.

  • @JacksonMarshal
    @JacksonMarshal 3 года назад +2

    I like the fact that John acting like he has never solved this problem before 😄

    • @PC-fe1pf
      @PC-fe1pf 3 года назад

      I think he was solving it for the first time.

    • @JacksonMarshal
      @JacksonMarshal 3 года назад

      @@PC-fe1pf nah dude. Checkout his other videos and you will see

    • @PC-fe1pf
      @PC-fe1pf 3 года назад

      @@JacksonMarshal You mean the other Cyber Apocalypse videos?

    • @JacksonMarshal
      @JacksonMarshal 3 года назад

      @@PC-fe1pf every Video of his is pre-scripted.
      Because he doesn't want to spend hours on recording himself trying to find it. So he does it ahead and then show us

    • @JacksonMarshal
      @JacksonMarshal 3 года назад

      @@PC-fe1pf and yes every HTB

  • @Akhand_Bharat18113
    @Akhand_Bharat18113 3 года назад

    Sir which Linux os your are using in this video

    • @usha4220
      @usha4220 3 года назад

      Ubuntu

    • @LyraMakes
      @LyraMakes 3 года назад

      I believe that it's Kali

    • @ahmedhajjami2744
      @ahmedhajjami2744 3 года назад

      @@LyraMakes Ubuntu , look at the terminal!

    • @LyraMakes
      @LyraMakes 3 года назад

      @@ahmedhajjami2744 Whoops! My bad. I was going off the logo in the top left.

  • @kaihuang5420
    @kaihuang5420 3 года назад +1

    I wish john know I was yelling the back-ticks, but I didn't skip the video tho.

  • @edwardortiz8580
    @edwardortiz8580 3 года назад

    I am also a veteran. I had some questions regarding certifications, and if you paid for them out of pocket and has the VA reimburse you, or had the VA pay for them via the GI Bill, if so, which ones were covered, and which were not ? I found some information. But nothing very clear.
    Best regards, TIA
    Eddie

  • @jhbonarius
    @jhbonarius 3 года назад +2

    javascript is such a mess. i still cannot believe its the fabric behind most of the ui in the world today

  • @ElGhadraouiTaha
    @ElGhadraouiTaha 3 года назад

    Vote for john to be a president.

  • @corbezzz
    @corbezzz 3 года назад

    ~yt algorithm things~

  • @vinkuu
    @vinkuu 3 года назад

    while true; do nc -klnvp 9000; done

  • @aayushkubitkar4827
    @aayushkubitkar4827 7 месяцев назад

    why do you need the display in the payload to trigger the payload?
    When the bot visits the /list for the first time via puppeteer, then the feedbacks would be loaded since empty callback would default to display. In one of those feedbacks would also be the payload and that would trigger the src request which loads the /list endpoint again on the localhost and this time the callback function is populated with the window.location which ends up making the GET request to ngrok url.
    i don't understand the need for display in the payload. Can someone explain? @johnhammond maybe?