National Institute of Standards and Technology
Package illustrating a test case

Test case 60781

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: 89 SQL Injection
BadSource: fromFile Read data from file (named c:\data.txt)
GoodSource: A hardcoded string
Sinks: executeBatch
GoodSink: prepared sqlstatement, batch
BadSink : untrusted input to raw update batch
Flow Variant: 09 Control flow: if(IO.static_final_t) and if(IO.static_final_f)

Flaws

Test Suites

Documentation

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