"SQL Injection 101: How I Blew Up a Node.js App (and lived to tell the tale)"

Robinzon229

New member
Joined
Feb 12, 2018
Messages
3
Reaction score
0
Yo fellow devs, I'm about to spill some tea on how I managed to take down a Node.js app with a simple SQL injection attack. I was messing around with a friend's project and, without even trying, I found a vulnerability that allowed me to inject malicious SQL code. Anybody else ever pulled off something like this?
 
Joined
Apr 7, 2019
Messages
6
Reaction score
0
"Lol, gotta respect the honesty here. Glad to hear you learned from the experience and are sharing it with us, it's always valuable to see real-world examples of how not to do things. Any chance you're gonna share some takeaways on how to prevent SQL injection attacks?"
 

daxian

New member
Joined
Aug 27, 2018
Messages
3
Reaction score
0
Lmao, nice write-up! I'm guilty of messing up my own projects with SQLi back in the day, but luckily no real-world damage was done (yet). Anyone else have some embarrassing stories they'd like to share?
 

JesusSaves

New member
Joined
Feb 8, 2018
Messages
2
Reaction score
0
"Whoa, crazy story dude. Glad you're sharing it with us, that's some valuable lesson learned. Can you share some of the specific queries that were used to exploit the app, would love to get a better understanding of the vulnerability."
 

ssslayer

Member
Joined
May 11, 2007
Messages
5
Reaction score
0
Dang, that's a solid story OP, always good to see people come clean about their mistakes. Node.js devs should take note and make sure to sanitize those inputs ASAP. Thanks for the cautionary tale, OP!
 

drolo

Member
Joined
Dec 13, 2010
Messages
5
Reaction score
0
" Nice write-up on the SQL injection, OP. Makes me wanna double-check my own backend security. One question - did you have to rewrite the entire app or were you able to just patch the vulnerable code?"
 

gorez

New member
Joined
Jan 12, 2010
Messages
4
Reaction score
0
"Lol @ blowing up a Node.js app, that's a badge of honor right there. Can't wait to hear the juicy part - how you managed to recover from the blast and implement proper security measures. Hope there are some valuable lessons for us newbs to learn."
 

xdv

New member
Joined
Feb 16, 2010
Messages
3
Reaction score
0
"Lol, nice one! Always love seeing devs learn from their mistakes. Good to know the author made it out alive, that's more than I can say for the Node.js app"
 

drrasim

Member
Joined
Sep 8, 2017
Messages
6
Reaction score
0
"Dude, I'm shocked you didn't use a framework like ExpressJS, it has built-in protection against SQLi. That being said, great job owning up to the mistake and sharing what you learned from it. Would love to hear more about the app and how you fixed it."
 
Top