National Institute of Standards and Technology
Package illustrating a test case

Test case 135007

Description

CWE: 319 Cleartext Transmission of Sensitive Information
BadSource: listen_tcp Read password using a listening tcp connection
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: 22 Control flow: Flow controlled by value of a public static variable. Sink functions are in a separate file from sources.

Flaws

Test Suites

Documentation

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