National Institute of Standards and Technology
Package illustrating a test case

Test case 134536

Description

CWE: 256 Plaintext Storage of a Password. Read the password from a Properties file or a regular file. In the good case, read the file from the console.
BadSource: Read password from a .properties file (from the property named password)
GoodSource: Read password from a .properties file (from the property named password) and then decrypt it
Sinks:
GoodSink: Decrypt password and use decrypted password as password to connect to DB
BadSink : Use password as password to connect to DB
Flow Variant: 66 Data flow: data passed in an array from one method to another in different source files in the same package

Flaws

Test Suites

Documentation

Have any comments on this test case? Please, send us an email.