National Institute of Standards and Technology
Package illustrating a test case

Test case 144692

Description

CWE: 78 OS Command Injection
BadSource: getParameter_Servlet Read data from a querystring using getParameter()
GoodSource: A hardcoded string
BadSink: exec dynamic command execution with Runtime.getRuntime().exec()
Flow Variant: 10 Control flow: if(IO.staticTrue) and if(IO.staticFalse)

Flaws

Test Suites

Documentation

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