I swear companies would rather b...
comment 2
image 2
comment 2
image 2
Loading...
comment 2
image 2
schedule Jul 06, 2025 @ 04:33:47 EDT (14 days ago)
image 1191980935877492747.webp download 3.85 KB
I 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
schedule Jul 06, 2025 @ 17:43:07 EDT (13 days ago)
image sounds good.png download 51.34 KB
comment 2
image 2
Last Update: Jul 19, 2025 @ 20:58:15 EDT
All trademarks and copyrights are owned by their respective parties.
Content uploaded is the responsibility of the Poster.
Messages are owned by the Poster.