<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I have a weird issue with testing the submission of a form using POST. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Using live HTTP headers extension in FF I grabbed the whole form submission. Using the replay function in FF it works fine, however using nikto in debug mode I get the following info. (sanitized a few things) <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Any ideas are welcome. The form itself has a lot of hidden fields in it and I am trying to figure out which ones are absolutely required. <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks! <o:p></o:p></p><p class=MsoNormal>The contents of the udb_test line: <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>"400004","0","4","/mysearch/mySearchResults.jsp?_ARGS=/mysearch/gadgets/mySearch.jsp.searchform _dyncharset=ISO-8859-1&_dynSessConf=-6740532443327654779&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchString=%3E%5C%22%3E%3Cscript%3Ealert%284567890%29%3C%2Fscript%3E%3C&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchString=+&questionSaved=http%3A%2F%2F127.0.0.1%2Fmysearch%2FmySearchResults.jsp%3F_ARGS%3D%2Fmysearch%2Fgadgets%2FmySearch.jsp.searchform&catIdSaved=&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.goToPage=1&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.goToPage=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSort=relevance&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSort=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSortOrder=descending&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSortOrder=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.multiSearchSession=true&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.multiSearchSession=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.saveRequest=true&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.saveRequest=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.pageSize=12&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.pageSize=+&searchExecByFormSubmit=true&_ARGS=%2Fmysearch%2Fgadgets%2FmySearch.jsp.searchform","POST","alert(4567890)","","","","","Form Submission XSS vulnerability exists","",""<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>THE REQUEST: <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>D:Thu Dec 2 14:48:29 2010 'Request Hash' = {<o:p></o:p></p><p class=MsoNormal> 'whisker' => {<o:p></o:p></p><p class=MsoNormal> 'protocol' => 'HTTP',<o:p></o:p></p><p class=MsoNormal> 'require_newline_after_headers' => 0,<o:p></o:p></p><p class=MsoNormal> 'lowercase_incoming_headers' => 1,<o:p></o:p></p><p class=MsoNormal> 'uri_prefix' => '',<o:p></o:p></p><p class=MsoNormal> 'ssl_save_info' => 1,<o:p></o:p></p><p class=MsoNormal> 'http_space2' => ' ',<o:p></o:p></p><p class=MsoNormal> 'uri_param_sep' => '?',<o:p></o:p></p><p class=MsoNormal> 'timeout' => 10,<o:p></o:p></p><p class=MsoNormal> 'http_space1' => ' ',<o:p></o:p></p><p class=MsoNormal> 'method' => 'POST',<o:p></o:p></p><p class=MsoNormal> 'force_open' => 0,<o:p></o:p></p><p class=MsoNormal> 'include_host_in_uri' => 0,<o:p></o:p></p><p class=MsoNormal> 'ignore_duplicate_headers' => 1,<o:p></o:p></p><p class=MsoNormal> 'uri_postfix' => '',<o:p></o:p></p><p class=MsoNormal> 'keep-alive' => 1,<o:p></o:p></p><p class=MsoNormal> <span lang=FR>'ssl' => 0,<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> 'version' => '1.1',<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> 'data' => '',<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> 'port' => 80,<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> </span>'uri' => '/mysearch/mySearchResults.jsp?_ARGS=/mysearch/gadgets/mySearch.jsp.searchform _dyncharset=ISO-8859-1&_dynSessConf=-6740532443327654779&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchString=%3E%5C%22%3E%3Cscript%3Ealert%284567890%29%3C%2Fscript%3E%3C&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchString=+&questionSaved=http%3A%2F%2F127.0.0.1%2Fmysearch%2FmySearchResults.jsp%3F_ARGS%3D%2Fmysearch%2Fgadgets%2FmySearch.jsp.searchform&catIdSaved=&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.goToPage=1&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.goToPage=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSort=relevance&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSort=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSortOrder=descending&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSortOrder=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.multiSearchSession=true&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.multiSearchSession=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.saveRequest=true&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.saveRequest=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.pageSize=12&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.pageSize=+&searchExecByFormSubmit=true&_ARGS=%2Fmysearch%2Fgadgets%2FmySearch.jsp.searchform',<o:p></o:p></p><p class=MsoNormal> 'host' => '127.0.0.1',<o:p></o:p></p><p class=MsoNormal> 'retry' => 0,<o:p></o:p></p><p class=MsoNormal> 'normalize_incoming_headers' => 1,<o:p></o:p></p><p class=MsoNormal> 'invalid_protocol_return_value' => 1,<o:p></o:p></p><p class=MsoNormal> 'force_bodysnatch' => 0,<o:p></o:p></p><p class=MsoNormal> 'MAGIC' => 31339,<o:p></o:p></p><p class=MsoNormal> 'max_size' => 0,<o:p></o:p></p><p class=MsoNormal> 'trailing_slurp' => 0,<o:p></o:p></p><p class=MsoNormal> 'force_close' => 0,<o:p></o:p></p><p class=MsoNormal> 'http_eol' => "\r\n"<o:p></o:p></p><p class=MsoNormal> },<o:p></o:p></p><p class=MsoNormal> 'User-Agent' => 'Mozilla/4.75 (Nikto/2.1.3) (Evasions:None) (Test:400004)',<o:p></o:p></p><p class=MsoNormal> 'Connection' => 'Keep-Alive',<o:p></o:p></p><p class=MsoNormal> 'Content-Length' => 0,<o:p></o:p></p><p class=MsoNormal> <span lang=FR>'Content-Type' => 'application/x-www-form-urlencoded',<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> </span>'Host' => '127.0.0.1'<o:p></o:p></p><p class=MsoNormal>};<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>RESPONSE: <o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>D:Thu Dec 2 14:48:29 2010 'Result Hash' = {<o:p></o:p></p><p class=MsoNormal> 'connection' => 'close',<o:p></o:p></p><p class=MsoNormal> 'whisker' => {<o:p></o:p></p><p class=MsoNormal> 'protocol' => 'HTTP',<o:p></o:p></p><p class=MsoNormal> 'lowercase_incoming_headers' => 1,<o:p></o:p></p><p class=MsoNormal> 'http_space2' => ' ',<o:p></o:p></p><p class=MsoNormal> <span lang=FR>'stats_reqs' => 21,<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> 'http_space1' => ' ',<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> 'code' => 400,<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> 'stats_syns' => 6,<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> 'version' => '1.1',<o:p></o:p></span></p><p class=MsoNormal><span lang=FR> </span>'abnormal_header_spacing' => 1,<o:p></o:p></p><p class=MsoNormal> 'data' => '<html><body><b>Http/1.1 Bad Request</b></body> </html>',<o:p></o:p></p><p class=MsoNormal> 'uri' => '/mysearch/mySearchResults.jsp?_ARGS=/mysearch/gadgets/mySearch.jsp.searchform _dyncharset=ISO-8859-1&_dynSessConf=-6740532443327654779&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchString=%3E%5C%22%3E%3Cscript%3Ealert%284567890%29%3C%2Fscript%3E%3C&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchString=+&questionSaved=http%3A%2F%2F127.0.0.1%2Fmysearch%2FmySearchResults.jsp%3F_ARGS%3D%2Fmysearch%2Fgadgets%2FmySearch.jsp.searchform&catIdSaved=&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.goToPage=1&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.goToPage=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSort=relevance&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSort=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSortOrder=descending&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.docSortOrder=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.multiSearchSession=true&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.multiSearchSession=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.saveRequest=true&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.saveRequest=+&%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.pageSize=12&_D%3A%2Fmy%2Fsearch%2Fformhandlers%2FQueryFormHandler.searchRequest.pageSize=+&searchExecByFormSubmit=true&_ARGS=%2Fmysearch%2Fgadgets%2FmySearch.jsp.searchform',<o:p></o:p></p><p class=MsoNormal> 'message' => 'Bad Request',<o:p></o:p></p><p class=MsoNormal> 'header_order' => [<o:p></o:p></p><p class=MsoNormal> 'content-length',<o:p></o:p></p><p class=MsoNormal> 'connection'<o:p></o:p></p><p class=MsoNormal> ],<o:p></o:p></p><p class=MsoNormal> 'http_data_sent' => 1,<o:p></o:p></p><p class=MsoNormal> 'MAGIC' => 31340,<o:p></o:p></p><p class=MsoNormal> 'http_eol' => "\r\n",<o:p></o:p></p><p class=MsoNormal> 'socket_state' => 0<o:p></o:p></p><p class=MsoNormal> },<o:p></o:p></p><p class=MsoNormal> 'content-length' => 54<o:p></o:p></p><p class=MsoNormal>};<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>