Re:WordPress base configuration files on GitHub
by mahouse on Monday August 17, 2015 @09:40AM
(#10072864)
150,000,000+ database passwords, of which 99.9999%+ are from local development servers.
[ Parent
| on HN ]
Re:WordPress base configuration files on GitHub
by mattgibson on Monday August 17, 2015 @09:50AM
(#10072926)
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_...
Re:WordPress base configuration files on GitHub
by onion2k on Monday August 17, 2015 @10:09AM
(#10073037)
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
by panopticon on Monday August 17, 2015 @10:32AM
(#10073196)
> localhost in the case of Wordpress
Uh, the concept of localhost is not unique to Wordpress in the slightest.
Re:WordPress base configuration files on GitHub
by erikb on Monday August 17, 2015 @10:47AM
(#10073323)
That's not what he meant. What he meant was reading that the database is on localhost doesn't mean it's a development system. Many production instances of Wordpress run the database on the same host. Therefore localhost can also mean production. That might not be true for other services, but for Wordpress that's common. This is what he meant.
Re:WordPress base configuration files on GitHub
by sarciszewski on Monday August 17, 2015 @10:02AM
(#10072989)
Excluding localhost will exclude a lot of legitimate installs.
Re:WordPress base configuration files on GitHub
by austenallred on Monday August 17, 2015 @10:03AM
(#10072997)
Most wordpress devs support multiple environments in their .wpadmin (dev -> localhost, prod -> some server). So this is creating a lot of false negatives.
Re:WordPress base configuration files on GitHub
by bdcravens on Monday August 17, 2015 @10:47AM
(#10073328)
Which would be 99.99926% :-)
Re:WordPress base configuration files on GitHub
by JosephRedfern on Monday August 17, 2015 @09:52AM
(#10072933)
How can you tell that? Just because it specifies "localhost" doesn't necessarily mean it's a dev box.
Re:WordPress base configuration files on GitHub
by ishener on Monday August 17, 2015 @10:01AM
(#10072984)
Exactly. Also remember that on many many wordpress servers you also have phpMyAdmin. You can use the username + password to login, and you'll get access even when it's restricted to localhost.
Re:WordPress base configuration files on GitHub
by 0x0 on Monday August 17, 2015 @10:19AM
(#10073101)
It's pretty scary to have phpMyAdmin public facing. IIRC some older versions of mysql-server even had a bug where it'd let you in with a random password in 1/256 chance!
Re:WordPress base configuration files on GitHub
by leni536 on Monday August 17, 2015 @10:43AM
(#10073286)
It should be really bad, since phpmyadmin get attempts are the most frequent on my home webserver and I don't even have it installed. Maybe older vulnerable versions are still around though.
Re:WordPress base configuration files on GitHub
by ins0 on Monday August 17, 2015 @10:02AM
(#10072991)
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)
Re:WordPress base configuration files on GitHub
by reustle on Monday August 17, 2015 @10:05AM
(#10073012)
Don't store sensitive data in git, or don't store sensitive data on public github repos?
Re:WordPress base configuration files on GitHub
by archimedespi on Monday August 17, 2015 @10:14AM
(#10073067)
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.
Re:WordPress base configuration files on GitHub
by Huggernaut on Monday August 17, 2015 @10:30AM
(#10073184)
How would you go about making a repeatable, automated deployment if you don't store configuration information in source control to load into the environment variables?
Re:WordPress base configuration files on GitHub
by aaronbasssett on Monday August 17, 2015 @10:52AM
(#10073377)
Depends on what you're using for your deployments, for example if you were using Puppet you might use something like https://github.com/TomPoulton/hiera-eyaml
Re:WordPress base configuration files on GitHub
by Huggernaut on Tuesday August 18, 2015 @03:37AM
(#10077984)
Sorry, how does this prevent you requiring configuration in source control, or are you just suggesting that those credentials should be encrypted?
Re:WordPress base configuration files on GitHub
by archimedespi on Monday August 17, 2015 @01:05PM
(#10074462)
Consul and Vault go a long way to achieving that.
Re:WordPress base configuration files on GitHub
by Huggernaut on Tuesday August 18, 2015 @03:37AM
(#10077980)
Doesn't this just push the problem up (down?) a level in the hierarchy? I mean, you still need to deploy these and configure them with the information the rest of your deployment requires right?
Re:WordPress base configuration files on GitHub
by jessaustin on Monday August 17, 2015 @10:28AM
(#10073168)
That link is talking about a problem with e.g. .htaccess and basic directory permissions, not a problem using git per se. But yeah, put that stuff in envars.
Re:WordPress base configuration files on GitHub
by jessaustin on Monday August 17, 2015 @10:20AM
(#10073102)
If there's any question, I think the rule has to be the former. There are standard, auditable ways to keep sensitive data out of git: .gitignore, environmental vars, etc. Once it's in git, any attempts to keep it out of a public repo will probably be manual and ad hoc.
If the organization is "closed" by default, i.e. it only rarely releases code to the public, this may not matter as much.
Re:WordPress base configuration files on GitHub
by onion2k on Monday August 17, 2015 @10:07AM
(#10073027)
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
by cstuder on Monday August 17, 2015 @09:50AM
(#10072925)
And how many of those MySQL passwords are also used by the WordPress admin account?
Even if it's just 0.1%, that would be still 150'000 valid passwords.
Re:WordPress base configuration files on GitHub
by Cthulhu_ on Monday August 17, 2015 @10:17AM
(#10073084)
And the other 95% doesn't allow external connections.
Re:WordPress base configuration files on GitHub
by 0xffffabcd on Monday August 17, 2015 @10:01AM
(#10072977)
Found several working username+password for FTP accounts.
Re:WordPress base configuration files on GitHub
by userbinator on Monday August 17, 2015 @09:58AM
(#10072965)
I'd guess that a large portion of those which aren't localhost are also firewalled or otherwise inaccessible from the public Internet.
Re:WordPress base configuration files on GitHub
by hobs on Monday August 17, 2015 @09:52AM
(#10072932)
Keep clicking, because I found what appear to be two valid passwords in 5 different config files (with public hosts.)
Obviously I didnt test them, so you might be right that they change or are in dev mode, but that smells like a lot more than 6 9s.