National Institute of Standards and Technology
Package illustrating a test case

Test case 134801

Description

CWE: 319 Cleartext Transmission of Sensitive Information
BadSource: URLConnection Read password from a web server with URLConnection
GoodSource: Set password to a hardcoded value (one that was not sent over the network)
Sinks: passwordAuth
GoodSink: Decrypt password before using in PasswordAuthentication()
BadSink : Use password directly in PasswordAuthentication()
Flow Variant: 74 Data flow: data passed in a HashMap 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.