Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Two bad practices: use of hard-coded passwords and admin as default user #230

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

Comments

@akondasif
Copy link

Greetings,
I am a security researcher, who is looking for security smells in Puppet scripts.

I noticed two instances of hard-coded passwords, which are against the best practices
recommended by Common Weakness Enumeration (CWE) [https://cwe.mitre.org/data/definitions/259.html] and also by other security practitioners.

I have removed the hard-coded passwords to mitigate this smell. Feedback is welcome.
Pull request: #229

Here is where I noticed hard-coded passwords: https://github.com/biemond/biemond-oradb/blob/master/manifests/database.pp

@akondasif akondasif changed the title Use of hard-coded passwords is a bad practice Two bad practices: use of hard-coded passwords and admin as default user Jul 15, 2018
@akondasif
Copy link
Author

I also noticed instances of keeping admin users as default in Puppet classes. I think this is a smell related to security. The smell can violate the ‘principle of least privilege (https://en.wikipedia.org/wiki/Principle_of_least_privilege)’ property, which recommends practitioners to design and implement system in a manner so that by default the least amount of access necessary is provided to any entity.

Would you agree with my finding?

Source: https://github.com/biemond/biemond-oradb/blob/master/manifests/database_pluggable.pp

@biemond
Copy link
Owner

biemond commented Jul 15, 2018

Hi,
this is not a big issue and for production you can change this or change it after provisioning.
But we can better show a warning when the defaults are used or we can generate some random passwords and show the user these but then these passwords are in the puppet output.

Thanks

@akondasif
Copy link
Author

Thanks for the insightful feedback.
I am closing the issue, but feel free to re-open the issue if necessary.

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

No branches or pull requests

2 participants