Live data from Hacker News

WordPress base configuration files on GitHub

github.com

21–30 of 90 posts

Re: WordPress base configuration files on GitHub

#21
post #18
post #3

150,000,000+ database passwords, of which 99.9999%+ are from local development servers.

I agree with mahouse and of course are some of these password legit. But this is nothing new, don't store sensitive data in git. Everyone know you can search this stuff on GitHub and if we look back - Google was a nice password search engine too (and still today)

Don't store sensitive data in git, or don't store sensitive data on public github repos?

Re: WordPress base configuration files on GitHub

#22
post #11

Which is why I don't use any database password if the database is listening on localhost only, which is the case most of the time.

I don't think this is a good idea, even if the database is just listening to localhost. Say a malicious script gets uploaded to the machine, it will be able to dump the entire database without any need to seek out credentials.

Re: WordPress base configuration files on GitHub

#24
post #3

150,000,000+ database passwords, of which 99.9999%+ are from local development servers.

If you're the sort of developer who puts a wp-config.php file in a git repo (eg no proper deploy process.. otherwise that file wouldn't exist in the repo, or no reference to the config file in .git-ignore), you're probably the sort of developer who'll use the same password on your local dev machine and your live site because "setting up MySQL users is hard."

Re: WordPress base configuration files on GitHub

#26
post #3

150,000,000+ database passwords, of which 99.9999%+ are from local development servers.

Excluding localhost and some obvious cases where the values are in a local config file still leaves around 111,000: https://github.com/search?p=1&q=filename%3Awp-config.php+DB_...

localhost in the case of Wordpress just means the database is running on the same machine as the web server. Practically every WP instance is set up that way.

Re: WordPress base configuration files on GitHub

#29
post #11

Which is why I don't use any database password if the database is listening on localhost only, which is the case most of the time.

I don't think this is a good idea, even if the database is just listening to localhost. Say a malicious script gets uploaded to the machine, it will be able to dump the entire database without any need to seek out credentials.

Agree... it's better to still have credentials, but ALSO only listen locally. At least that way the credentials need to be found first!

Re: WordPress base configuration files on GitHub

#30
post #21
post #18

Earlier quoted context omitted.

I agree with mahouse and of course are some of these password legit. But this is nothing new, don't store sensitive data in git. Everyone know you can search this stuff on GitHub and if we look back - Google was a nice password search engine too (and still today)

Don't store sensitive data in git, or don't store sensitive data on public github repos?

Don't even store sensitive data in git, it can be a bad idea: http://www.jamiembrown.com/blog/one-in-every-600-websites-ha...

Store credentials in environment variables.

Post reply on HN