Skip to content

Miss to call clearPassword for PBEKeySpec #289

Open
@akwick

Description

@akwick

I am reaching out to you as we conducted an empirical study to understand the nature of cryptographic misuses in enterprise-driven projects on GitHub. During our study, we randomly inspected a few of the misuses. One of the misuses for which we could confirm the finding of the analysis, CogniCryptSAST is within this project.

In the class PasswordFactory$PBKDF2Password miss to call the method clearPassword after generating the password. This method (JCA) clears an internal copy of the password from memory. Thus, it should be called to ensure that an attacker can not obtain the password from memory.

We hope that this report helps you and would be glad to get your thoughts on this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions