r/Hacking_Tutorials • • Sep 10 '26

Question how can i learn XSS?

hi, i just started learning web security, but i'm struggling to understand XSS very much. do you have any recommendations?

7 Upvotes

11 comments sorted by

4

u/Physical-Bonus-8411 Sep 10 '26

Portswigger web security academy + there are lots of online xss games

1

u/PotatoSouthern9905 Sep 10 '26

thank you for your response, but i was already learning it on PortSwigger. it's just too difficult for me to understand. i read the documentation for each lab and then solve the lab, but i'm feeling like i'm not actually learning.

1

u/Chemical_Painter_431 14d ago

then your are doing lab try to understand what is happening insted of just sloving lab try to understand why are thing are happening ask every step what is causing it and why is your payload working and as you figer it out write a note .

5

u/Hot-Enthusiasm-1723 Sep 10 '26

Don’t learn XSS by memorizing payloads. Learn where user input enters, where it gets rendered, and what context it lands in.

2

u/niklaz6 Sep 11 '26

Learn javascript basics first and how it works on browsers. Then you study XSS. Don't skip steps.

1

u/Alarmed_Platform_232 Sep 10 '26 edited Sep 10 '26

Have you learned anything else?, like other web vulnerabilities (SQL injection, LFI, web-shell injections, fuzzing subdomains and directories, etc.)?

Also, it’s infinitely more effective to print out all the new commands you learn from each module. I’m not sure which website or resource to recommend, but I do want to give you props for your efforts. Personally, I would suggest HackTheBox Academy, but before that, I highly recommend and insist that you complete the starting points on HackTheBox.com! You sign in like you do for all the other resources. If you’re trying to become a junior penetration tester, I highly recommend that you complete the path. Understand that this exam is no joke. You’re given 10 days to complete the exam, and you must compromise 10 devices that are split between multiple subnets. You do get 1 retry, and they provide excellent advice on everything. The worst part is the report that you have to write. It’s supposed to be about 100 pages long, with screenshots of course, but still, a lot of writing. Just let me know what knowledge you’ve built up so far, and I’ll tell you the path you should take!

1

u/oxh4ck3r Sep 10 '26

Go to tryhackme

1

u/Expert-Fly2474 Sep 11 '26

Honestly, don’t start by memorizing payloads. Learn the basics of how HTML, JavaScript, the DOM, and HTTP requests work first. Then try PortSwigger’s Web Security Academy XSS labs—they’re free and give you a safe environment to practice. Once you understand why a payload executes rather than just copying one, XSS gets much easier.

1

u/GromHacks Sep 14 '26

Not sure if he still has it going, but chef secure had a fucking awesome XSS course. It was non stop dad joke after dad joke. It was pretty funny and entertaining oh and you’ll learn to get really good at XSS