National Institute of Standards and Technology
Package illustrating a test case

Test case 48846

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: 113 HTTP Response Splitting
BadSource: getQueryStringServlet Parse id param out of the querystring without getParam
GoodSource: A hardcoded string
Sinks: setHeaderServlet
GoodSink: URLEncode input
BadSink : querystring to setHeader()
Flow Variant: 17 Control flow: for loops

Flaws

Test Suites

Documentation

    • CWE113_HTTP_Response_Splitting__getQueryStringServlet_setHeaderServlet_17.javaline 72
      • CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')
    • CWE113_HTTP_Response_Splitting__getQueryStringServlet_setHeaderServlet_17.javaline 131
      • CWE-113 Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Response Splitting')
src
main
java
testcases
CWE113_HTTP_Response_Splitting
CWE113_HTTP_Response_Splitting__getQueryStringServlet_setHeaderServlet_17.java
testcasesupport
AbstractTestCaseServlet.java
IO.java
manifest.sarif

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