News for hackers. Stuff that matters.
Re:Hosting Provider Leaked 63M Records Including Magento and... by jyriand on Thursday November 05, 2020 @05:09AM (#24996973)
How did they manage to store passwords in plain texts. I thought most of the services (wordpress etc) will create passwords for you with a proper encryption?
Re:Hosting Provider Leaked 63M Records Including Magento and... by ThePadawan on Thursday November 05, 2020 @08:08AM (#24997895)
The author points out that these were monitoring logs (and the screenshot looks very much like an Elastic cluster).

Thus this could be a missing or misconfigured log filter for PII.

Re:Hosting Provider Leaked 63M Records Including Magento and... by user5994461 on Thursday November 05, 2020 @08:38AM (#24998107)
Looks like they had tasks to run their services like "wordpress --user alice --password 123 --host alice.cloudclusters.com ..." and they systematically logged all the commands with all arguments/settings/variables.

Way too verbose logging. Should never have logged that.

The logging database (elasticsearch) was exposed to the internet without authentication. Free credentials for all.

Re:Hosting Provider Leaked 63M Records Including Magento and... by formerly_proven on Thursday November 05, 2020 @09:18AM (#24998387)
> Way too verbose logging. Should never have logged that.

It's interesting to observe the contrast between this and "We're a SaaS startup and we log every.single. RPC request across all services forever including performance data".

Re:Hosting Provider Leaked 63M Records Including Magento and... by user5994461 on Thursday November 05, 2020 @10:19AM (#24998952)
You can log all HTTP requests and it is standard practice to do so at the load balancer level (haproxy and co have very configurable logging).

However you MUST NOT logs cookies or headers or content, because these can contain private information.

Last but not least, developers should never pass tokens/passwords in the request path because it will be systematically logged and leaked /api/token/abcdec. That should go into a header or the body.

Re:Hosting Provider Leaked 63M Records Including Magento and... by happy_pancake on Thursday November 05, 2020 @10:26AM (#24999027)
Single-used tokens are fine to be passed in the path right? Like email verification /token/{token}
Re:Hosting Provider Leaked 63M Records Including Magento and... by tialaramex on Thursday November 05, 2020 @07:57PM (#25003804)
For email verification it's less scary if that was really all you wanted.

If you believe you're verifying that the email went to your user, this isn't enough. Lots of systems parse URLs out of emails and follow them, you probably want to look for a a pre-existing session cookie, or insist the user log in from the verification page and confirm this is what they wanted.

Otherwise you've merely got two unrelated facts:

1. Some user of your system (maybe happy_pancake) says [email protected] is their email address

2. Mail to [email protected] is received by a machine or person which reads web pages.

It would be foolish to conclude from these facts that happy_pancake is actually [email protected] or that [email protected] wants to use your service.

Re:Hosting Provider Leaked 63M Records Including Magento and... by stonemetal12 on Thursday November 05, 2020 @04:09PM (#25002004)
Defense in depth says No, not Ok.

For example: Accidentally open to the internet log server(as above). Attacker sends password reset request. Attacker checks log to steal token. Attacker now has stolen account until owner can't log in and does reset, or perhaps semi-permanently if attacker steals all tokens for said account and invalidates them before owner can use them.

Re:Hosting Provider Leaked 63M Records Including Magento and... by Closi on Thursday November 05, 2020 @05:19AM (#24997032)
They are a fully managed service for these services, so I'm assuming they store their own set of credentials separately to maintain access.
Re:Hosting Provider Leaked 63M Records Including Magento and... by lioeters on Thursday November 05, 2020 @05:42AM (#24997149)
That's what I'm guessing too. Magento and WordPress both store only the hashed passwords in the database; however, a screenshot from the article shows that the hosting company had stored plain-text passwords for an admin user, which were likely generated automatically, and stored in a separate (and publicly accessible) database.
Re:Hosting Provider Leaked 63M Records Including Magento and... by josefresco on Thursday November 05, 2020 @06:38AM (#24997369)
My hosting provider (to remain nameless) also offers a global login bypass for WP and it gives me the willies.
Re:Hosting Provider Leaked 63M Records Including Magento and... by rograndom on Thursday November 05, 2020 @10:30AM (#24999062)
There are a few hosting billing system -> account creation products that will generate the login information at purchase time so they can be presented to the user in plain text before being sent over to the provisioned server. It could be being logged accidentally at that point.
Re:Hosting Provider Leaked 63M Records Including Magento and... by duckmysick on Thursday November 05, 2020 @07:11AM (#24997533)
What would be a proper way to handle it?
Re:Hosting Provider Leaked 63M Records Including Magento and... by dboreham on Thursday November 05, 2020 @07:42AM (#24997724)
Implement a proxy authentication scheme for the hosted services (WP, etc). Now an admin working for the hosting provider can log in using a password checked against a hash stored in their hosting system. No plaintext passwords stored.
Re:Hosting Provider Leaked 63M Records Including Magento and... by Closi on Thursday November 05, 2020 @02:35PM (#25001186)
> the hosting provider can log in using a password checked

Hmm, but where is this password stored? This sounds like exactly what they were doing!

Re:Hosting Provider Leaked 63M Records Including Magento and... by part1of2 on Thursday November 05, 2020 @07:20AM (#24997585)
They have access to the DB users. You can craft a new user & password-hash pair and insert it into the DB to create your own Wordpress user to manage on their behalf, or the lazy way is to just update the user’s password hash with your own. Then when you fix the issue, revert it. Worked for me years ago, not sure if something fundamental changed
Re:Hosting Provider Leaked 63M Records Including Magento and... by fogihujy on Thursday November 05, 2020 @09:04AM (#24998272)
Logging of credentials supplied for 1-Click installs comes to mind.