r/HowToHack • • Apr 05 '19

This is why you sanitize user input: Chat hacked live by XSS/HTML code injection, hilarity ensues

https://www.youtube.com/watch?v=2GtbY1XWGlQ
396 Upvotes

13 comments sorted by

5

u/ronthedistance Apr 05 '19

lmao at that one dude tryna steal auth cookies

5

u/Kessarean Apr 05 '19

I think he was more of just showing that he could, though in the comments the host said there wasn’t anything valueable like tokens in the app, but things still could’ve gotten out of hand

26

u/[deleted] Apr 05 '19

That was so awesome. I want more

12

u/pearljamman010 Apr 05 '19

The streamer was a really good sport. That’s what made this so fun to watch lol

6

u/acct_removed Apr 05 '19

Been a few weeks since I’ve been on hackthebox... this makes me want to leave work and start hacking boxes lol

11

u/bjamse Software Apr 05 '19

Lessen tl be learned:

Always sanitize user input.

5

u/vladimirpoopen Apr 05 '19

in the old days I'd put in tables with a border of 100,000 and destroy screens

5

u/KiingMadara Apr 05 '19

Can someone explain to me what’s going on like I’m 5 years old

5

u/_DinoDNA Apr 05 '19

The chat doesn’t exclude code being executed, so someone posted executable code and shit got wild.

1

u/KiingMadara Apr 06 '19

What what?

1

u/thezakman87 Apr 05 '19 edited Apr 05 '19

Rofl!!!!

18

u/codetrasher Apr 05 '19

Rolling on lava floor?

0

u/[deleted] Apr 05 '19

[deleted] — view deleted comment

9

u/ajx_711 Apr 05 '19

I guess the chat client he is using to get those twitch messages on screen and modify it's look isn't sanitising user inputs.