XSS, Cross Site Scripting in www.prostores.com, 01142012-01, CWE-79, CAPEC-86, Report



Netsparker - Scan Report Summary
TARGET URL
https://mystore.prostores.com/login.php?msg=Y...
SCAN DATE
1/13/2012 2:49:07 PM
REPORT DATE
1/13/2012 3:05:07 PM
SCAN DURATION
00:09:20

Total Requests

7906

Average Speed

14.10 req/sec.
5
identified
4
confirmed
0
critical
2
informational

SCAN SETTINGS

Scan Settings
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
40 %
LOW
20 %
INFORMATION
40 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/login.php Permanent Cross-site Scripting Yes
Cookie Not Marked As Secure Yes
Cookie Not Marked As HttpOnly Yes
/scr/ Forbidden Resource Yes
/scr/jqModal/jqModal.css E-mail Address Disclosure No
Permanent Cross-site Scripting

Permanent Cross-site Scripting

1 TOTAL
IMPORTANT
CONFIRMED
1

Netsparker confirmed this vulnerability by analyzing the execution of injected JavaScript.

Permanent XSS (Cross-site Scripting) allows an attacker to execute dynamic scripts (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 and to steal the user's credentials. This happens because the input entered by the user has been interpreted by HTML/Javascript/VbScript within the browser.

Permanent means that the attack will be stored in the back-end system. In normal XSS attacks an attack needs to e-mail the victim but in a permanent XSS an attacker can just execute the attack and wait for users to see the affected page. As soon as someone visits the page, the attacker's stored payload will get executed.

XSS targets the users of the application instead of the server. Although this is a limitation, since it only allows attackers to hijack other users' session the attacker might attack an administrator to gain full control over the application.

Impact

Permanent XSS is a dangerous issue that has many exploitation vectors, some of which includes:
  • User session sensitive information such as cookies can be stolen.
  • XSS can enable client-side worms which could modify, delete or steal other users' data within the application.
  • The website can be redirected to a new location, defaced or used as a phishing site.

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

Classification

OWASP A2 PCI v1.2-6.5.1 PCI v2.0-6.5.7 CWE-79 CAPEC-19 WASC-08
- /login.php

/login.php CONFIRMED

https://mystore.prostores.com/login.php?msg=%3Cscript%3Ens(0x0001EF)%3C/script%3E

Injection URL

https://mystore.prostores.com/login.php?msg=Your%20session%20is%20expired.

Injection Request

GET /login.php?msg=Your%20session%20is%20expired. HTTP/1.1
Referer: https://mystore.prostores.com/CP/
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Cache-Control: no-cache
Host: mystore.prostores.com
Cookie: PHPSESSID=832187c26b18be77de0cd5a4c02baef2
Accept-Encoding: gzip, deflate

Identification Request

GET /login.php?msg=%3Cscript%3Ens(0x0001EF)%3C/script%3E HTTP/1.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Cache-Control: no-cache
Host: mystore.prostores.com
Cookie: PHPSESSID=832187c26b18be77de0cd5a4c02baef2
Accept-Encoding: gzip, deflate

Injection Response

HTTP/1.1 200 OK
Date: Fri, 13 Jan 2012 20:48:40 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>ProStores - Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en-US" />

<link href="CP/css/cp_ps.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" src="../scr/jquery.js"></script>
<script type="text/javascript" src="../scr/jquery.form.js"></script>
<script type="text/javascript" src="../scr/jquery.JSON.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.core.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.draggable.js"></script>
<script type="text/javascript" src="../scr/jqAlerts/jquery.alerts.js"></script>
<link href="../scr/jqAlerts/jquery.alerts.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scr/jqModal/jqModal.js"></script>
<link href="../scr/jqModal/jqModal.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/CP/js/common.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//waiting modal
doInitActivityIndicator();
$('.forgot_pwd').click(
function(){jPrompt('Username:', $('#username').val(), 'Please enter your username to reset your password.', function(r) {
doPwdReset(r);
});}
);
});

doPwdReset = function(uname){
if($.trim(uname)){
var data = { action: "reset_pwd", username:'' };
data.username = $.trim(uname);

$.post("/CP/submit/index.php", data, procPwdResetResponse, "json");
$('#PwdResetMsgContainer').hide();
$('#ajax_busy').jqmShow();
}
};

procPwdResetResponse = function(data){
$('#ajax_busy').jqmHide();
$('#PwdResetMessage').html(data.message);

if(data.success){
$('#PwdResetMessage').removeClass('error');
$('#PwdResetMessage').addClass('success');
}else{
$('#PwdResetMessage').addClass('error');
$('#PwdResetMessage').removeClass('success');
}

$('#PwdResetMsgContainer').show('slow');
};
</script>
</head>
<body onload="document.forms[0].username.focus()">

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td width="35" background="/img/fade_left.gif">
<img src="/img/fade_left.gif" alt="image" border="0" width="35" />
</td>
<td bgcolor="#D3D2D2" background="/img/banner-blend.jpg" height="80" nowrap><img border="0" src="/img/storeadmin-banner-1.jpg" alt="image"><img border="0" src="/img/storeadmin-banner-2.jpg" alt="image" /></td><td align="right" nowrap background="/img/storeadmin-banner-3.jpg" width="591"><span class="customerservice">Customer Support: 866-643-4929</span></td><td width="35" align="right" background="/img/fade_right.gif"> <img src="/img/fade_right.gif" alt="image" border="0" width="35"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td valign="top" width="35" background="/img/fade_left.gif"><img src="/img/fade_left.gif" alt="image" border="0" width="35"></td>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top" bgcolor="#ACACAC" height="24">
<td class="navbartext" colspan="2" valign="middle">

<span style="float:right;white-space:nowrap;height:24px;padding-top:4px"><img src="/img/pixel.gif" alt="image" height="1" width="20" />
</span>
</td>
</tr>
<tr bgcolor="#D3D2D2">
<td colspan="2"><img src="/img/pixel.gif" alt="image" border="0" width="1" height="10" /></td>
</tr>
<tr valign="top">
<td colspan="2" nowrap class="breadcrumb" width="100%">
<img src="/img/pixel.gif" alt="" height="15" width="20" border="0" />
</td>
</tr>
<tr valign="top">
<td><img src="/img/pixel.gif" alt="image" height="1" width="20" border="0" /></td>
<td width="100%" class="content"><br/>
<!-- end of common header -->


<table class="signup">
<tbody>
<tr>
<td class="h1" colspan="3" width="100%" style="text-indent:-3px;"><strong>ProStores Sign In</strong></td>
</tr>
</tbody>
</table>

<div id="contentSingleCol2">
<div class="inner2">
<div class="step">
<form action="/CP/submit/" method="post">
<input type="hidden" name="action" value="login" />
<input type="hidden" name="form_token" value="56055507c6c2f76c3b3493693a9e6713" />

<p>Enter your user name and password, and then click <strong>Sign in</strong>.</p>

<div id="ErrMsgContainer" class="pglvlmessagecontainer" style="display:block;">
<div class="error">
<p><strong>Authentication Error:</strong></p>
<ul id='errlist' class="genList">
<li style="display:none;">
<!--Just a placeholder-->
</li>
<li>
Your session is expired. </li>
</ul>
</div>
</div>
<div id="PwdResetMsgContainer" class="pglvlmessagecontainer" style="display:none">
<div id="PwdResetMessage" class="error">

</div>
</div>
<div>
<strong>User Name</strong> <img width="76" height="20" style="vertical-align: middle;" alt="Required" src="img/requiredtext.gif" /> <br/>
<input id="username" class="text" style="width:20%" type="text" maxlength="35" value="" name="username" tabindex=1 />
<br/>
<strong>Password</strong> <span class="required"> <span>*</span> </span> <br/>
<input id="password" class="text" style="width:20%" type="password" maxlength="15" value="" name="password" tabindex=2 autocomplete="off" />
<a href="javascript:void(0)" class="forgot_pwd" tabindex=0>Forgot Your Password?</a>

<p>
<br />Your user name and password are case-sensitive.
</p>
</div>
<div class="step dots">

<input type="submit" name="submit" value="Sign In" class="orange_button" tabindex=3 />

<p>
<strong>Note:</strong> By logging in, you'll get a temporary &ldquo;cookie&rdquo; which will
remember your user name while your browser is open. If there is no activity for 15 minutes, or you
close your browser, the cookie will expire and you will need to login again.
</p>
</div>
</form>
</div>
</div>

</div>

<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff" class="footer">
<br><img src="/img/pixel.gif" alt="image" border="0" width="10">
&#169; Copyright 2012 <a href="http://www.prostores.com" target="_blank">ProStores Inc</a>. All Rights Reserved. <br><br>

</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff">
<img src="/img/pixel.gif" alt="image" border="0" width="902" height="1">
</td>
</tr>
</table>

</td>
<td width="35" align="right" background="/img/fade_right.gif">
<img src="/img/fade_right.gif" alt="image" border="0" width="35" />
</td>
</tr>
</table>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-645163-1");
pageTracker._setDomainName("prostores.com");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>

Identification Response

HTTP/1.1 200 OK
Date: Fri, 13 Jan 2012 20:48:40 GMT
Server: Apache
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>ProStores - Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en-US" />

<link href="CP/css/cp_ps.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" src="../scr/jquery.js"></script>
<script type="text/javascript" src="../scr/jquery.form.js"></script>
<script type="text/javascript" src="../scr/jquery.JSON.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.core.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.draggable.js"></script>
<script type="text/javascript" src="../scr/jqAlerts/jquery.alerts.js"></script>
<link href="../scr/jqAlerts/jquery.alerts.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scr/jqModal/jqModal.js"></script>
<link href="../scr/jqModal/jqModal.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/CP/js/common.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//waiting modal
doInitActivityIndicator();
$('.forgot_pwd').click(
function(){jPrompt('Username:', $('#username').val(), 'Please enter your username to reset your password.', function(r) {
doPwdReset(r);
});}
);
});

doPwdReset = function(uname){
if($.trim(uname)){
var data = { action: "reset_pwd", username:'' };
data.username = $.trim(uname);

$.post("/CP/submit/index.php", data, procPwdResetResponse, "json");
$('#PwdResetMsgContainer').hide();
$('#ajax_busy').jqmShow();
}
};

procPwdResetResponse = function(data){
$('#ajax_busy').jqmHide();
$('#PwdResetMessage').html(data.message);

if(data.success){
$('#PwdResetMessage').removeClass('error');
$('#PwdResetMessage').addClass('success');
}else{
$('#PwdResetMessage').addClass('error');
$('#PwdResetMessage').removeClass('success');
}

$('#PwdResetMsgContainer').show('slow');
};
</script>
</head>
<body onload="document.forms[0].username.focus()">

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td width="35" background="/img/fade_left.gif">
<img src="/img/fade_left.gif" alt="image" border="0" width="35" />
</td>
<td bgcolor="#D3D2D2" background="/img/banner-blend.jpg" height="80" nowrap><img border="0" src="/img/storeadmin-banner-1.jpg" alt="image"><img border="0" src="/img/storeadmin-banner-2.jpg" alt="image" /></td><td align="right" nowrap background="/img/storeadmin-banner-3.jpg" width="591"><span class="customerservice">Customer Support: 866-643-4929</span></td><td width="35" align="right" background="/img/fade_right.gif"> <img src="/img/fade_right.gif" alt="image" border="0" width="35"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td valign="top" width="35" background="/img/fade_left.gif"><img src="/img/fade_left.gif" alt="image" border="0" width="35"></td>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top" bgcolor="#ACACAC" height="24">
<td class="navbartext" colspan="2" valign="middle">

<span style="float:right;white-space:nowrap;height:24px;padding-top:4px"><img src="/img/pixel.gif" alt="image" height="1" width="20" />
</span>
</td>
</tr>
<tr bgcolor="#D3D2D2">
<td colspan="2"><img src="/img/pixel.gif" alt="image" border="0" width="1" height="10" /></td>
</tr>
<tr valign="top">
<td colspan="2" nowrap class="breadcrumb" width="100%">
<img src="/img/pixel.gif" alt="" height="15" width="20" border="0" />
</td>
</tr>
<tr valign="top">
<td><img src="/img/pixel.gif" alt="image" height="1" width="20" border="0" /></td>
<td width="100%" class="content"><br/>
<!-- end of common header -->


<table class="signup">
<tbody>
<tr>
<td class="h1" colspan="3" width="100%" style="text-indent:-3px;"><strong>ProStores Sign In</strong></td>
</tr>
</tbody>
</table>

<div id="contentSingleCol2">
<div class="inner2">
<div class="step">
<form action="/CP/submit/" method="post">
<input type="hidden" name="action" value="login" />
<input type="hidden" name="form_token" value="6a1814c4332ca9083c7d5acc5a416fff" />
<input type="hidden" name="redirect" value="/CP/?'"--></style></script><script>netsparker(0x0001EE)</script>"/>

<p>Enter your user name and password, and then click <strong>Sign in</strong>.</p>

<div id="ErrMsgContainer" class="pglvlmessagecontainer" style="display:block;">
<div class="error">
<p><strong>Authentication Error:</strong></p>
<ul id='errlist' class="genList">
<li style="display:none;">
<!--Just a placeholder-->
</li>
<li>
&#60;script&#62;ns(0x0001EF)&#60;/script&#62; </li>
</ul>
</div>
</div>
<div id="PwdResetMsgContainer" class="pglvlmessagecontainer" style="display:none">
<div id="PwdResetMessage" class="error">

</div>
</div>
<div>
<strong>User Name</strong> <img width="76" height="20" style="vertical-align: middle;" alt="Required" src="img/requiredtext.gif" /> <br/>
<input id="username" class="text" style="width:20%" type="text" maxlength="35" value="" name="username" tabindex=1 />
<br/>
<strong>Password</strong> <span class="required"> <span>*</span> </span> <br/>
<input id="password" class="text" style="width:20%" type="password" maxlength="15" value="" name="password" tabindex=2 autocomplete="off" />
<a href="javascript:void(0)" class="forgot_pwd" tabindex=0>Forgot Your Password?</a>

<p>
<br />Your user name and password are case-sensitive.
</p>
</div>
<div class="step dots">

<input type="submit" name="submit" value="Sign In" class="orange_button" tabindex=3 />

<p>
<strong>Note:</strong> By logging in, you'll get a temporary &ldquo;cookie&rdquo; which will
remember your user name while your browser is open. If there is no activity for 15 minutes, or you
close your browser, the cookie will expire and you will need to login again.
</p>
</div>
</form>
</div>
</div>

</div>

<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff" class="footer">
<br><img src="/img/pixel.gif" alt="image" border="0" width="10">
&#169; Copyright 2012 <a href="http://www.prostores.com" target="_blank">ProStores Inc</a>. All Rights Reserved. <br><br>

</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff">
<img src="/img/pixel.gif" alt="image" border="0" width="902" height="1">
</td>
</tr>
</table>

</td>
<td width="35" align="right" background="/img/fade_right.gif">
<img src="/img/fade_right.gif" alt="image" border="0" width="35" />
</td>
</tr>
</table>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-645163-1");
pageTracker._setDomainName("prostores.com");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</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.

Classification

OWASP A6 PCI v2.0-6.5.4 CWE-16 WASC-15
- /login.php

/login.php CONFIRMED

https://mystore.prostores.com/login.php?msg=Your%20session%20is%20expired.

Identified Cookie

PHPSESSID

Request

GET /login.php?msg=Your%20session%20is%20expired. HTTP/1.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Cache-Control: no-cache
Host: mystore.prostores.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Fri, 13 Jan 2012 20:48:11 GMT
Server: Apache
Set-Cookie: PHPSESSID=b2e4ae683a8bb71f62ff6f2438cbc48e; path=/; domain=.prostores.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>ProStores - Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en-US" />

<link href="CP/css/cp_ps.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" src="../scr/jquery.js"></script>
<script type="text/javascript" src="../scr/jquery.form.js"></script>
<script type="text/javascript" src="../scr/jquery.JSON.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.core.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.draggable.js"></script>
<script type="text/javascript" src="../scr/jqAlerts/jquery.alerts.js"></script>
<link href="../scr/jqAlerts/jquery.alerts.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scr/jqModal/jqModal.js"></script>
<link href="../scr/jqModal/jqModal.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/CP/js/common.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//waiting modal
doInitActivityIndicator();
$('.forgot_pwd').click(
function(){jPrompt('Username:', $('#username').val(), 'Please enter your username to reset your password.', function(r) {
doPwdReset(r);
});}
);
});

doPwdReset = function(uname){
if($.trim(uname)){
var data = { action: "reset_pwd", username:'' };
data.username = $.trim(uname);

$.post("/CP/submit/index.php", data, procPwdResetResponse, "json");
$('#PwdResetMsgContainer').hide();
$('#ajax_busy').jqmShow();
}
};

procPwdResetResponse = function(data){
$('#ajax_busy').jqmHide();
$('#PwdResetMessage').html(data.message);

if(data.success){
$('#PwdResetMessage').removeClass('error');
$('#PwdResetMessage').addClass('success');
}else{
$('#PwdResetMessage').addClass('error');
$('#PwdResetMessage').removeClass('success');
}

$('#PwdResetMsgContainer').show('slow');
};
</script>
</head>
<body onload="document.forms[0].username.focus()">

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td width="35" background="/img/fade_left.gif">
<img src="/img/fade_left.gif" alt="image" border="0" width="35" />
</td>
<td bgcolor="#D3D2D2" background="/img/banner-blend.jpg" height="80" nowrap><img border="0" src="/img/storeadmin-banner-1.jpg" alt="image"><img border="0" src="/img/storeadmin-banner-2.jpg" alt="image" /></td><td align="right" nowrap background="/img/storeadmin-banner-3.jpg" width="591"><span class="customerservice">Customer Support: 866-643-4929</span></td><td width="35" align="right" background="/img/fade_right.gif"> <img src="/img/fade_right.gif" alt="image" border="0" width="35"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td valign="top" width="35" background="/img/fade_left.gif"><img src="/img/fade_left.gif" alt="image" border="0" width="35"></td>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top" bgcolor="#ACACAC" height="24">
<td class="navbartext" colspan="2" valign="middle">

<span style="float:right;white-space:nowrap;height:24px;padding-top:4px"><img src="/img/pixel.gif" alt="image" height="1" width="20" />
</span>
</td>
</tr>
<tr bgcolor="#D3D2D2">
<td colspan="2"><img src="/img/pixel.gif" alt="image" border="0" width="1" height="10" /></td>
</tr>
<tr valign="top">
<td colspan="2" nowrap class="breadcrumb" width="100%">
<img src="/img/pixel.gif" alt="" height="15" width="20" border="0" />
</td>
</tr>
<tr valign="top">
<td><img src="/img/pixel.gif" alt="image" height="1" width="20" border="0" /></td>
<td width="100%" class="content"><br/>
<!-- end of common header -->


<table class="signup">
<tbody>
<tr>
<td class="h1" colspan="3" width="100%" style="text-indent:-3px;"><strong>ProStores Sign In</strong></td>
</tr>
</tbody>
</table>

<div id="contentSingleCol2">
<div class="inner2">
<div class="step">
<form action="/CP/submit/" method="post">
<input type="hidden" name="action" value="login" />
<input type="hidden" name="form_token" value="c99ca8c1ddea7e58bd2cbc59b6a0a13b" />

<p>Enter your user name and password, and then click <strong>Sign in</strong>.</p>

<div id="ErrMsgContainer" class="pglvlmessagecontainer" style="display:block;">
<div class="error">
<p><strong>Authentication Error:</strong></p>
<ul id='errlist' class="genList">
<li style="display:none;">
<!--Just a placeholder-->
</li>
<li>
Your session is expired. </li>
</ul>
</div>
</div>
<div id="PwdResetMsgContainer" class="pglvlmessagecontainer" style="display:none">
<div id="PwdResetMessage" class="error">

</div>
</div>
<div>
<strong>User Name</strong> <img width="76" height="20" style="vertical-align: middle;" alt="Required" src="img/requiredtext.gif" /> <br/>
<input id="username" class="text" style="width:20%" type="text" maxlength="35" value="" name="username" tabindex=1 />
<br/>
<strong>Password</strong> <span class="required"> <span>*</span> </span> <br/>
<input id="password" class="text" style="width:20%" type="password" maxlength="15" value="" name="password" tabindex=2 autocomplete="off" />
<a href="javascript:void(0)" class="forgot_pwd" tabindex=0>Forgot Your Password?</a>

<p>
<br />Your user name and password are case-sensitive.
</p>
</div>
<div class="step dots">

<input type="submit" name="submit" value="Sign In" class="orange_button" tabindex=3 />

<p>
<strong>Note:</strong> By logging in, you'll get a temporary &ldquo;cookie&rdquo; which will
remember your user name while your browser is open. If there is no activity for 15 minutes, or you
close your browser, the cookie will expire and you will need to login again.
</p>
</div>
</form>
</div>
</div>

</div>

<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff" class="footer">
<br><img src="/img/pixel.gif" alt="image" border="0" width="10">
&#169; Copyright 2012 <a href="http://www.prostores.com" target="_blank">ProStores Inc</a>. All Rights Reserved. <br><br>

</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff">
<img src="/img/pixel.gif" alt="image" border="0" width="902" height="1">
</td>
</tr>
</table>

</td>
<td width="35" align="right" background="/img/fade_right.gif">
<img src="/img/fade_right.gif" alt="image" border="0" width="35" />
</td>
</tr>
</table>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-645163-1");
pageTracker._setDomainName("prostores.com");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</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

Classification

OWASP A6 PCI v2.0-6.5.4 CWE-16 WASC-15
- /login.php

/login.php CONFIRMED

https://mystore.prostores.com/login.php?msg=Your%20session%20is%20expired.

Identified Cookie

PHPSESSID

Request

GET /login.php?msg=Your%20session%20is%20expired. HTTP/1.1
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Cache-Control: no-cache
Host: mystore.prostores.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Fri, 13 Jan 2012 20:48:11 GMT
Server: Apache
Set-Cookie: PHPSESSID=b2e4ae683a8bb71f62ff6f2438cbc48e; path=/; domain=.prostores.com
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html; charset=UTF-8



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
<head>
<title>ProStores - Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Language" content="en-US" />

<link href="CP/css/cp_ps.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" src="../scr/jquery.js"></script>
<script type="text/javascript" src="../scr/jquery.form.js"></script>
<script type="text/javascript" src="../scr/jquery.JSON.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.core.js"></script>
<script type="text/javascript" src="../scr/jqUI/ui.draggable.js"></script>
<script type="text/javascript" src="../scr/jqAlerts/jquery.alerts.js"></script>
<link href="../scr/jqAlerts/jquery.alerts.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../scr/jqModal/jqModal.js"></script>
<link href="../scr/jqModal/jqModal.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/CP/js/common.js"></script>
<script type="text/javascript">
$(document).ready(function(){
//waiting modal
doInitActivityIndicator();
$('.forgot_pwd').click(
function(){jPrompt('Username:', $('#username').val(), 'Please enter your username to reset your password.', function(r) {
doPwdReset(r);
});}
);
});

doPwdReset = function(uname){
if($.trim(uname)){
var data = { action: "reset_pwd", username:'' };
data.username = $.trim(uname);

$.post("/CP/submit/index.php", data, procPwdResetResponse, "json");
$('#PwdResetMsgContainer').hide();
$('#ajax_busy').jqmShow();
}
};

procPwdResetResponse = function(data){
$('#ajax_busy').jqmHide();
$('#PwdResetMessage').html(data.message);

if(data.success){
$('#PwdResetMessage').removeClass('error');
$('#PwdResetMessage').addClass('success');
}else{
$('#PwdResetMessage').addClass('error');
$('#PwdResetMessage').removeClass('success');
}

$('#PwdResetMsgContainer').show('slow');
};
</script>
</head>
<body onload="document.forms[0].username.focus()">

<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top">
<td width="35" background="/img/fade_left.gif">
<img src="/img/fade_left.gif" alt="image" border="0" width="35" />
</td>
<td bgcolor="#D3D2D2" background="/img/banner-blend.jpg" height="80" nowrap><img border="0" src="/img/storeadmin-banner-1.jpg" alt="image"><img border="0" src="/img/storeadmin-banner-2.jpg" alt="image" /></td><td align="right" nowrap background="/img/storeadmin-banner-3.jpg" width="591"><span class="customerservice">Customer Support: 866-643-4929</span></td><td width="35" align="right" background="/img/fade_right.gif"> <img src="/img/fade_right.gif" alt="image" border="0" width="35"></td>
</tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%" height="100%">
<tr>
<td valign="top" width="35" background="/img/fade_left.gif"><img src="/img/fade_left.gif" alt="image" border="0" width="35"></td>
<td valign="top" colspan="2">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr valign="top" bgcolor="#ACACAC" height="24">
<td class="navbartext" colspan="2" valign="middle">

<span style="float:right;white-space:nowrap;height:24px;padding-top:4px"><img src="/img/pixel.gif" alt="image" height="1" width="20" />
</span>
</td>
</tr>
<tr bgcolor="#D3D2D2">
<td colspan="2"><img src="/img/pixel.gif" alt="image" border="0" width="1" height="10" /></td>
</tr>
<tr valign="top">
<td colspan="2" nowrap class="breadcrumb" width="100%">
<img src="/img/pixel.gif" alt="" height="15" width="20" border="0" />
</td>
</tr>
<tr valign="top">
<td><img src="/img/pixel.gif" alt="image" height="1" width="20" border="0" /></td>
<td width="100%" class="content"><br/>
<!-- end of common header -->


<table class="signup">
<tbody>
<tr>
<td class="h1" colspan="3" width="100%" style="text-indent:-3px;"><strong>ProStores Sign In</strong></td>
</tr>
</tbody>
</table>

<div id="contentSingleCol2">
<div class="inner2">
<div class="step">
<form action="/CP/submit/" method="post">
<input type="hidden" name="action" value="login" />
<input type="hidden" name="form_token" value="c99ca8c1ddea7e58bd2cbc59b6a0a13b" />

<p>Enter your user name and password, and then click <strong>Sign in</strong>.</p>

<div id="ErrMsgContainer" class="pglvlmessagecontainer" style="display:block;">
<div class="error">
<p><strong>Authentication Error:</strong></p>
<ul id='errlist' class="genList">
<li style="display:none;">
<!--Just a placeholder-->
</li>
<li>
Your session is expired. </li>
</ul>
</div>
</div>
<div id="PwdResetMsgContainer" class="pglvlmessagecontainer" style="display:none">
<div id="PwdResetMessage" class="error">

</div>
</div>
<div>
<strong>User Name</strong> <img width="76" height="20" style="vertical-align: middle;" alt="Required" src="img/requiredtext.gif" /> <br/>
<input id="username" class="text" style="width:20%" type="text" maxlength="35" value="" name="username" tabindex=1 />
<br/>
<strong>Password</strong> <span class="required"> <span>*</span> </span> <br/>
<input id="password" class="text" style="width:20%" type="password" maxlength="15" value="" name="password" tabindex=2 autocomplete="off" />
<a href="javascript:void(0)" class="forgot_pwd" tabindex=0>Forgot Your Password?</a>

<p>
<br />Your user name and password are case-sensitive.
</p>
</div>
<div class="step dots">

<input type="submit" name="submit" value="Sign In" class="orange_button" tabindex=3 />

<p>
<strong>Note:</strong> By logging in, you'll get a temporary &ldquo;cookie&rdquo; which will
remember your user name while your browser is open. If there is no activity for 15 minutes, or you
close your browser, the cookie will expire and you will need to login again.
</p>
</div>
</form>
</div>
</div>

</div>

<p>&nbsp;</p>
</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff" class="footer">
<br><img src="/img/pixel.gif" alt="image" border="0" width="10">
&#169; Copyright 2012 <a href="http://www.prostores.com" target="_blank">ProStores Inc</a>. All Rights Reserved. <br><br>

</td>
</tr>
<tr valign="top">
<td>&nbsp;</td>
<td nowrap width="100%" bgcolor="#ffffff">
<img src="/img/pixel.gif" alt="image" border="0" width="902" height="1">
</td>
</tr>
</table>

</td>
<td width="35" align="right" background="/img/fade_right.gif">
<img src="/img/fade_right.gif" alt="image" border="0" width="35" />
</td>
</tr>
</table>


<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-645163-1");
pageTracker._setDomainName("prostores.com");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</body>
</html>
Forbidden Resource

Forbidden Resource

1 TOTAL
INFORMATION
CONFIRMED
1
Access to this resource has been denied by the web server. This is generally not a security issue, and is reported here for information purposes.

Impact

There is no impact resulting from this issue.
- /scr/

/scr/ CONFIRMED

https://mystore.prostores.com/scr/

Request

GET /scr/ HTTP/1.1
Referer: https://mystore.prostores.com/scr/jquery.js
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Cache-Control: no-cache
Host: mystore.prostores.com
Cookie: PHPSESSID=08ce6d3698889a520ed40fa96128c399
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 403 Forbidden
Date: Fri, 13 Jan 2012 20:48:12 GMT
Server: Apache
Content-Length: 277
Connection: close
Content-Type: text/html; charset=iso-8859-1


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>403 Forbidden</title></head><body><h1>Forbidden</h1><p>You don't have permission to access /scr/on this server.</p><hr><address>Apache Server at mystore.prostores.com Port 80</address></body></html>
E-mail Address Disclosure

E-mail Address Disclosure

1 TOTAL
INFORMATION
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 .

Remedy

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

Classification

OWASP A6 PCI v1.2-6.5.6 WASC-13
- /scr/jqModal/jqModal.css

/scr/jqModal/jqModal.css

https://mystore.prostores.com/scr/jqModal/jqModal.css

Found E-mails

bhb@iceburg.net

Request

GET /scr/jqModal/jqModal.css HTTP/1.1
Referer: https://mystore.prostores.com/login.php?msg=Your%20session%20is%20expired.
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
Cache-Control: no-cache
Host: mystore.prostores.com
Cookie: PHPSESSID=08ce6d3698889a520ed40fa96128c399
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 13 Jan 2012 20:48:12 GMT
Server: Apache
Last-Modified: Thu, 15 Sep 2011 12:11:14 GMT
ETag: "794-4acf9c5e81c80"
Accept-Ranges: bytes
Content-Length: 1940
Connection: close
Content-Type: text/css


/* jqModal base Styling courtesy of;
Brice Burgess <bhb@iceburg.net> */

/* The Window's CSS z-index value is respected (takes priority). If none is supplied,
the Window's z-index value will be set to 3000 by default (via jqModal.js). */

.jqmWindow {
display: none;

position: fixed;
top: 17%;
left: 50%;

margin-left: -300px;
width: 600px;

background-color: #EEE;
color: #333;
border: 1px solid black;
padding: 12px;
}

.jqmOverlay { background-color: #000; }

/* Background iframe styling for IE6. Prevents ActiveX bleed-through (<select> form elements, etc.) */
* iframe.jqm {position:absolute;top:0;left:0;z-index:-1;
width: expression(this.parentNode.offsetWidth+'px');
height: expression(this.parentNode.offsetHeight+'px');
}

/* Fixed posistioning emulation for IE6
Star selector used to hide definition from browsers other than IE6
For valid CSS, use a conditional include instead */
* html .jqmWindow {
position: absolute;
top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}
/* jqmModal dialog CSS courtesy of;
Brice Burgess <bhb@iceburg.net> */

div.jqmDialog {
display: none;

position: fixed;
top: 17%;
left: 50%;

margin-left: -200px;
width: 400px;

overflow: hidden;
font-family:verdana,tahoma,helvetica;
}

/* Fixed posistioning emulation for IE6
Star selector used to hide definition from browsers other than IE6
For valid CSS, use a conditional include instead */
* html div.jqmDialog {
position: absolute;
top: expression((document.documentElement.scrollTop || document.body.scrollTop) + Math.round(17 * (document.documentElement.offsetHeight || document.body.clientHeight) / 100) + 'px');
}