National Institute of Standards and Technology
Package illustrating a test case

Test case 134531

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: 51 Data flow: data passed as an argument from one function to another in different classes in the same package

Flaws

Test Suites

Documentation

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