Skip to content

Commit

Permalink
[bp-2.8] snmp_facts: Hide user sensitive information in console (#73189)
Browse files Browse the repository at this point in the history
**SECURITY** - CVE-2021-20178

Hide user sensitive information like `privkey` and `authkey`
while logging in console.

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
  • Loading branch information
Akasurde committed Feb 5, 2021
1 parent bfea16c commit 0785772
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions changelogs/fragments/snmp_facts.yml
@@ -0,0 +1,2 @@
security_fixes:
- 'snmp_facts - hide user sensitive information such as ``privkey`` and ``authkey`` from logging into the console (https://github.com/ansible-collections/community.general/pull/1621) (CVE-2021-20178).'
4 changes: 2 additions & 2 deletions lib/ansible/modules/net_tools/snmp_facts.py
Expand Up @@ -277,8 +277,8 @@ def main():
level=dict(type='str', choices=['authNoPriv', 'authPriv']),
integrity=dict(type='str', choices=['md5', 'sha']),
privacy=dict(type='str', choices=['aes', 'des']),
authkey=dict(type='str'),
privkey=dict(type='str'),
authkey=dict(type='str', no_log=True),
privkey=dict(type='str', no_log=True),
),
required_together=(
['username', 'level', 'integrity', 'authkey'],
Expand Down

0 comments on commit 0785772

Please sign in to comment.