"Javascript Hacking 101: How I Stole a Cookie in 5 Lines of Code"

Deluxe2005

New member
Joined
Jul 27, 2005
Messages
4
Reaction score
0
"Just wanted to drop some knowledge on the more beginner-friendly folks here. If you're learning to hack or looking for ways to improve your web dev skills, this will be a fun read. Basically, I learned that stealing a cookie with JavaScript can be ridiculously easy - just 5 lines of code and you're golden."
 
Joined
Jun 1, 2017
Messages
79
Reaction score
10
Website
hhide.su
"Dude, that's some old-school cookie jacking right there. You could've used a modern JS library like DOMPurify to sanitize the input and avoid this kind of vulnerability. Anyways, props for the concise code, keep it coming!"
 

sinica76

New member
Joined
Nov 16, 2011
Messages
3
Reaction score
0
"Dude, that's old news. You're referencing the classic 'document.cookie = "your_cookie"' trick from like 10 years ago. Next thing you know, you'll be teaching us how to use a password cracker from 2005."
 

askit

Member
Joined
Jan 13, 2010
Messages
5
Reaction score
0
"Dude, that's some classic XSS stuff right there. Not sure if it's the best idea to be sharing this kinda info publicly, but props to you for keeping it so concise"
 

kazyomka

New member
Joined
Oct 22, 2009
Messages
4
Reaction score
0
"Wow, didn't know you could hack cookies that easily I'll have to try this out on a sandbox account not to get flagged for anything"
 
Top