IBM / ansible-power-aix

Developer contributions for Ansible Automation on Power
https://ibm.github.io/ansible-power-aix/
GNU General Public License v3.0
81 stars 95 forks source link

if state: modify and the username don't exist, module creates a new user. Which can be a security issue. #571

Open doharvey opened 3 weeks ago

doharvey commented 3 weeks ago

I'm not a developer, but based on the discussion at https://github.com/IBM/ansible-power-aix/pull/294, if we try to change the password of an existing user with a misspelled username, Ansible will create a new user with the misspelled name.

This is a security concern because it could allow hackers to request a password change on an intentionally misspelled username, potentially gaining unauthorized access by creating a new user in the system.

This could be an issue when implementing a self-service portal for password changes.

nitismis commented 2 weeks ago

We are removing state: modify in user module. If that helps.