Tridge writes: AIX winbind debug logging appends authentication data, including passwords, to a predictable /tmp file without symlink or ownership protections. - nsswitch/winbind_nss_aix.c:41-42 - nsswitch/winbind_nss_aix.c:59-71 - nsswitch/winbind_nss_aix.c:777-783 - nsswitch/winbind_nss_aix.c:918-976 - Attacker role: Local AIX user or process able to pre-create/read predictable /tmp paths and trigger authentication or password-change operations when debug mode is enabled. - Entrypoint: AIX winbind NSS/authentication module configured with methods.cfg options containing debug. - Trust boundary: Local authentication inputs and secrets cross into a privileged module writing a predictable world-writable-directory log file. Attacker outcome: AIX winbind debug logging appends authentication data, including passwords, to a predictable /tmp file without symlink or ownership protections. #### Severity Final severity is **medium**. This has a concrete sink and plausible attacker path, but role, configuration, optional feature, or runtime preconditions bound practical exploitability. Additional runtime proof against a live Samba service or a default deployment configuration would raise confidence; evidence that the feature is unreachable, trusted-only, or fully mitigated in supported builds would lower severity. #### Remediation Write debug logs under a protected directory with open(O_NOFOLLOW|O_CREAT|O_APPEND, 0600), verify ownership, and never log passwords or password-change secrets. Add regression coverage that exercises the attacker-controlled input at the listed entry point and asserts the validation, authorization, containment, or size check occurs before the dangerous sink. | Severity | medium | | Confidence | high | | Confidence rationale | Static source tracing identifies the attacker input, broken control, and sink in repository code. Remaining uncertainty: No AIX privileged loader/runtime proof was run; validation is based on the module source and documented installation comments. |
This isn't good, but it has to be enabled in the options to the module, which is presumably privileged. It is not triggered by environment variables or similar. Moving to the non-embargo non-security bucket while I get comment on making this public.
[Bulk message on a number of bugs being made public at once] The embargo is being removed from this bug. That is not to say that the issue is not a real bug, but some things are better dealt with in public, where the normal process is both more available to external contributors and much, much more efficient. If you have a patch for this issue, please do contribute it via our normal GitLab process: https://wiki.samba.org/index.php/Contribute#Submitting_Patches_via_GitLab All patches to Samba must follow our copyright policy: https://www.samba.org/samba/devel/copyright-policy.html Thanks to all who report issues to Samba, we value your patience as we, along with the rest of the Open Source and Free Software communities, work though the reported issues.
It would be nice to fix this, but only so far as to use mktemp() to get a new path each time.