Skip to content
This repository has been archived by the owner on Feb 4, 2020. It is now read-only.

Binding to 0.0.0.0 and use of empty passwords are bad practices #89

Open
akondasif opened this issue Jul 14, 2018 · 3 comments
Open

Binding to 0.0.0.0 and use of empty passwords are bad practices #89

akondasif opened this issue Jul 14, 2018 · 3 comments

Comments

@akondasif
Copy link

Greetings,

I am a security researcher, who is looking for security smells in Puppet scripts. I noticed instances of binding to 0.0.0.0. Binding an address to 0.0.0.0 indicates allowing connections from all IP addresses. I would like to draw attention to these instances. Binding to 0.0.0.0 may lead to denial of service attacks. Practitioners have reported how binding to 0.0.0.0 facilitated security issues for MySQL (https://serversforhackers.com/c/mysql-network-security), Memcached (https://news.ycombinator.com/item?id=16493480), and Kibana (https://www.elastic.co/guide/en/kibana/5.0/breaking-changes-5.0.html).

I suggest to use a dedicated IP address other than 0.0.0.0.

Any feedback is appreciated.

Source: https://github.com/Yelp/puppet-uchiwa/blob/master/manifests/params.pp

@akondasif
Copy link
Author

I also noticed instances of empty passwords. Empty passwords increase the guessability of passwords. The Common Weakness Organization (CWE) identifies use of empty passwords as a security weakness (https://cwe.mitre.org/data/definitions/258.html).

I suggest that to follow the strong password guidelines, and manage passwords with hiera.

Source: https://github.com/Yelp/puppet-uchiwa/blob/master/manifests/params.pp

@akondasif akondasif changed the title Binding to 0.0.0.0 is a bad practice Binding to 0.0.0.0 and use of empty passwords are bad practices Jul 15, 2018
@solarkennedy
Copy link
Contributor

We are mimicking the defaults provided by upstream:
https://docs.uchiwa.io/uchiwa/1.0/getting-started/configuration/#uchiwa-configuration

I would accept a pull request to do a default of 127.0.0.1 and to have some sort of default password, granted this is an open source project, so everyone would see what that default password would be.

@akondasif
Copy link
Author

Thanks for the valuable feedback. I have submitted a PR #90

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants