Bug 2215945 - TRIAGE shadow-utils: possible password leak during passwd(1) change
Summary: TRIAGE shadow-utils: possible password leak during passwd(1) change
Keywords:
Status: NEW
Alias: None
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2215947 2215948 2215949 2215950
Blocks: 2215939
TreeView+ depends on / blocked
 
Reported: 2023-06-19 13:03 UTC by ybuenos
Modified: 2023-07-07 08:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description ybuenos 2023-06-19 13:03:56 UTC
When gpasswd(1) asks for the new password, it asks twice (as is usual for confirming the new password).  Each of those 2 password prompts uses agetpass() to get the password.  If the second agetpass() fails, the first password, which has been copied into the 'static' buffer 'pass' via STRFCPY(), wasn't being zeroed.


Note You need to log in before you can comment on or make changes to this bug.