I swear companies would rather b... - View Thread - /pr/ - Bitterli's Board
1753063293_MWTjZqpv7b.gif


@pewdiebird(100){OP}
No. 1 >> #AE3uQZOk1k
scheduleJul 06, 2025 @ 04:33:47 EDT (7 months ago)
image1191980935877492747.webpdownload(128x128, 3.85 KB)
1751790827_AE3uQZOk1k.webpI swear companies would rather buy a million dollars to get their breached data back than hire an actual IT department

>2018

>be me

>interning at gov-adjacent org for the summer, i won't name.

>asked to fix login bug

>open the code

>some asshole wrote login logic in frontend JS

>literally SELECT * FROM users

>IN THE FUCKING BROWSER

>it fetches the entire damn user table

>plaintext passwords

>looping through them

>comparing with ===

>I'm watching a goddamn credential leak live in HD

>returns true if it finds a match

>otherwise

>wait for it

>if ("true" === "true") return false;

>WHAT

>THE ACTUAL

>FUCK

>is this dumb-as-shit logic

>log in fails because truth exists

>uses $.cookie to save "loggedin=yes"

>expires: 1

>1 what? second? year? light decade? I DON'T FUCKING KNOW

>error handler is $("error_message").show(LogIn Failed)

>doesn’t even put "LogIn Failed" in quotes

>this shit doesn't even run

>ask senior dev what the hell this is and who approved this

>he shrugs and says "it did use to work"

>wtf.jpg

I vaguely remember taking a photo of it on my phone, and I didn't even know where to start when attempting to fix it. The problem was the login function they actually used... authenticates users... in the browser.. using SQL.

Instead of sending a username and password to the server and letting it tell you "yes or no," it downloads the entire user database into your browser, and then it checks if your username/passwords match any record locally.

I don't even remember correctly if they had a real backend API, they might as well just had read/write to the DB directly.

Didn't get a chance to finish fixing it, mostly because this happened towards the end of my shit that day + by the time the next day arrived, somebody else was apparently already working on it.

I didn't ask, I didn't want to know -- I did want to turn this into a YouTube video. I ranted to this to my grandpa about it. He was both surprised and not surprised lol

thumb_up1
thumb_down0
[Owner]Bitterlitask_alt(100)
No. 2 >> #yD27HvL99E
scheduleJul 06, 2025 @ 17:43:07 EDT (7 months ago)
imagesounds good.pngdownload(187x190, 51.34 KB)
1751838187_yD27HvL99E.png

it did used to work is a valid reason.

it's always the local government agencies with the worst security, bunch of old hats. :pepeLmao:

thumb_up1
thumb_down0


All trademarks and copyrights are owned by their respective parties.
Content uploaded is the responsibility of the Poster.
Messages are owned by the Poster.

(C) 2026 BitterliStudios