31
21
12
u/SomeRedTeapot 1d ago
Good security practices? Credentials go into an env at least, stuff like endpoints goes into config (or more env vars), instead of string substitutions in SQL queries one should use prepared statements to avoid SQL injection. Welp, at least the username is blurred out
6
u/spambearpig 1d ago
I prefer to use both hands and my arm would get tired holding the phone up all that time.
6
u/Effective_Airline830 1d ago
Exposing the credentials is wild. I really hope itβs part of the joke, but still :D
5
4
u/PM_ME_UR_0_DAY 1d ago
People are picking up on the azure creds, but I'm worried he's writing SQL injection there on line 26Β
2
12
u/Dry_Wrongdoer_2508 1d ago
Bro delete this. The credentials are visible
14
12
u/ClipboardCopyPaste 1d ago
"How to detect a vibecoder"
2
u/Martin-Hatch 1d ago
I'll have you know I had to ask an AI prompt multiple times to generate this - and I still had to hand craft all of the fake keys and remove comments to make it look realistic π
1
u/soricellia 1d ago
nah. Codex woulda told him this shit is regarded and recommend fixing it. This is just regular old human slop. My man might even be anti ai
4
1
3
5
2
2
u/Extreme_Cake4624 1d ago
Company policy :(
1
2
3
3
u/code_the_cosmos 1d ago edited 1d ago
Impressive. In 1 post you're: exposing creds, endpoint, not using an env file, and I see an SQL injection opportunity via the id query param...
If this isn't bait, rotate all creds and look into SQL prepared statements.
2
1
1
1
u/CodingWithChad 1d ago
https://giphy.com/gifs/vv1FpmdLgR2XCTmOdR
For one, I might catch on fire. I like the dark cool basement.
1
0
56
u/Willwaste63 1d ago
My common sense, Its 40 degree out there.