National Institute of Standards and Technology
Package illustrating a test case

Test case 52396

Deprecated test case

This version contains mistakes, making it deprecated. Deprecated test cases should not be used for new work. However, They remain in the SARD as a reference to redo previous work.

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: PropertiesFile Read data from a .properties file (from the property named data)
GoodSource: Read data from the console using readLine
Sinks: basic
GoodSink: Use decrypted data as password to connect to DB
BadSink : Use data as password to connect to DB
Flow Variant: 53 Data flow: data passed as an argument from one method to another to another in three different classes in the same package

Flaws

Test Suites

Documentation

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