News for hackers. Stuff that matters.
Re:Accidentally destroyed production database on first day o... by xoa on Saturday June 03, 2017 @10:49AM (#14476615)
>"i instead for whatever reason used the values the document had."

>They put full access plaintext credentials for their production database in their tutorial documentation

WHAT THE HELL. Wow. I'd be shocked at that sort of thing being written out in a non-secure setting, like, anywhere, at all, never mind in freaking documentation. Making sure examples in documentation are never real and will hard fail if anyone tries to use them directly is not some new idea, heck there's an entire IETF RFC (#2606) devoted to reserving TLDs specifically for testing and example usage. Just mind blowing, and yeah there are plenty of WTFs there that have already been commented on in terms of backups, general authentication, etc. But even above all that, if those credentials had full access then "merely" having their entire db deleted might even have been a good case scenario vs having the entire thing stolen which seems quite likely if their auth is nothing more then a name/pass and they're letting credentials float around like that.

It's a real bummer this guy had such an utterly awful first day on a first job, particularly since he said he engaged in a huge move and sunk quite a bit of personal capital from the sound of it in taking that job. At the same time that sounds like a pretty shocking place to work and it might have taught a ton of bad habits. I don't think it's salvageable but I'm not even sure he should try, they likely had every right to fire him but threatening him at all with "legal" for that is very unprofessional and dickish. I hope he'll be able to bounce back and actually end up in a much better position a decade down the line, having some unusually strong caution and extra care baked into him at a very junior level.

Re:Accidentally destroyed production database on first day o... by ncantelmo on Saturday June 03, 2017 @11:41AM (#14476888)
There's also a high chance that document was shared on Slack. In which case, they were one Slack breach away from the entire world having write access to their prod database.

It's depressing how many companies blindly throw unencrypted credentials around like this.

Re:Accidentally destroyed production database on first day o... by kefka on Saturday June 03, 2017 @11:53AM (#14476940)
Tell me about it. Fortunately where I work is sane and reasonable about it.

We have a password sheet. You have to be on the VPN(login/password). Then you can log in. Login/Password(diff from above)/2nd password+OTP. Then a password sheet password.

I'm still rooting out passwords from our repo with goobers putting creds in sourcecode (yeah, not config files....grrrrr). But I attack them as I find them. Ive only found 1 root password for a DB in there... and thankfully changed!

Re:Accidentally destroyed production database on first day o... by posixplz on Saturday June 03, 2017 @01:43PM (#14477466)
A plaintext password sheet? Despite the layers of network access control, this is a horribly bad practice in our modern age. Vault is free and encrypted secret storage systems are hardly a new concept.
Re:Accidentally destroyed production database on first day o... by kefka on Saturday June 03, 2017 @04:34PM (#14478346)
Not at all. The password sheet password is actually a GPG key. Everything stored encrypted.

We suffer from NIH greatly. We end rolling our own stuff because either we don't trust 3rd party stuff, or it doesn't work in our infrastructure. In this case, multiple access locks with GPG is sufficient.

Re:Accidentally destroyed production database on first day o... by posixplz on Monday June 12, 2017 @02:59PM (#14539994)
A response 8 days later is better than no response at all, right? :)

I agree that a multi-recipient GPG protected file is sufficient for a small org. In fact, that's how I used to do it Circa 2011. We found it worked quite well - we committed the GPG protected files to a version control system (git) and used githooks to make sure that only encrypted files were permitted, preventing users from intentionally/accidentally defeating gitignore.

Re:Accidentally destroyed production database on first day o... by tayo42 on Saturday June 03, 2017 @01:53PM (#14477510)
Slack getting hacked would definitely be a mess. There's going to be so many cloud credentials, passwords, keys, customer info...
Re:Accidentally destroyed production database on first day o... by RugnirViking on Monday June 12, 2017 @05:53AM (#14536099)
The exact same slack that he remained in for several hours after being fired. Even worse way to provoke a response from a disgruntled employee...
Re:Accidentally destroyed production database on first day o... by CodeWriter23 on Saturday June 03, 2017 @02:29PM (#14477703)
The document is probably in Google Docs too.