National Institute of Standards and Technology
Package illustrating a test case

Test case 142178

Description

CWE: 643 Xpath Injection
BadSource: console_readLine Read data from the console using readLine()
GoodSource: A hardcoded string
Sinks:
GoodSink: validate input through StringEscapeUtils
BadSink : user input is used without validate
Flow Variant: 68 Data flow: data passed as a member variable in the a class, which is used by a method in another class in the same package

Flaws

Test Suites

Documentation

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