Passwords submitted over an unencrypted connection are vulnerable to capture by an attacker who is suitably positioned on the network. This includes any malicious party located on the user's own network, within their ISP, within the ISP used by the application, and within the application's hosting infrastructure. Even if switched networks are employed at some of these locations, techniques exist to circumvent this defense and monitor the traffic passing through switches.
Issue remediation
The application should use transport-level encryption (SSL or TLS) to protect all sensitive communications passing between the client and the server. Communications that should be protected include the login mechanism and related functionality, and any functions where sensitive data can be accessed or privileged actions can be performed. These areas of the application should employ their own session handling mechanism, and the session tokens used should never be transmitted over unencrypted communications. If HTTP cookies are used for transmitting session tokens, then the secure flag should be set to prevent transmission over clear-text HTTP.
HTTP/1.1 200 OK Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Vary: Accept-Encoding Expires: Sun, 26 Dec 2010 14:24:12 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:24:12 GMT Connection: close Content-Length: 105738
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lamps Plus S ...[SNIP]... </div>
The ViewState is a mechanism built in to the ASP.NET platform for persisting elements of the user interface and other data across successive requests. The data to be persisted is serialised by the server and transmitted via a hidden form field. When it is POSTed back to the server, the ViewState parameter is deserialised and the data is retrieved.
By default, the serialised value is signed by the server to prevent tampering by the user; however, this behaviour can be disabled by setting the Page.EnableViewStateMac property to false. If this is done, then an attacker can modify the contents of the ViewState and cause arbitrary data to be deserialised and processed by the server. If the ViewState contains any items that are critical to the server's processing of the request, then this may result in a security exposure.
You should review the contents of the deserialised ViewState to determine whether it contains any critical items that can be manipulated to attack the application.
Issue remediation
There is no good reason to disable the default ASP.NET behaviour in which the ViewState is signed to prevent tampering. To ensure that this occurs, you should set the Page.EnableViewStateMac property to true on any pages where the ViewState is not currently signed.
A cookie's domain attribute determines which domains can access the cookie. Browsers will automatically submit the cookie in requests to in-scope domains, and those domains will also be able to access the cookie via JavaScript. If a cookie is scoped to a parent domain, then that cookie will be accessible by the parent domain and also by any other subdomains of the parent domain. If the cookie contains sensitive data (such as a session token) then this data may be accessible by less trusted or less secure applications residing at those domains, leading to a security compromise.
Issue remediation
By default, cookies are scoped to the issuing domain and all subdomains. If you remove the explicit domain attribute from your Set-cookie directive, then the cookie will have this default scope, which is safe and appropriate in most situations. If you particularly need a cookie to be accessible by a parent domain, then you should thoroughly review the security of the applications residing on that domain and its subdomains, and confirm that you are willing to trust the people and systems which support those applications.
The highlighted cookies appear to contain session tokens, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.
The highlighted cookies appear to contain session tokens, which may increase the risk associated with this issue. You should review the contents of the cookies to determine their function.
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /design-it/Pattern-Colorize.aspx HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 70729 Content-Type: text/html; charset=us-ascii Location: /design-it/pattern.aspx Server: Microsoft-IIS/7.5 X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET Expires: Sun, 26 Dec 2010 14:32:48 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:32:48 GMT Connection: close Set-Cookie: error=session expired; domain=.lampsplus.com; path=/ Set-Cookie: lpcoremetricscid=105; domain=.lampsplus.com; path=/
<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="%2fdesign-it%2fpattern.aspx">here</a>.</h2> </body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit ...[SNIP]...
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /portfolio/default.aspx HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
Response
HTTP/1.1 200 OK Content-Length: 80093 Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET Expires: Sun, 26 Dec 2010 14:33:18 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:33:18 GMT Connection: close Set-Cookie: MyPortfolioView=standard; domain=.lampsplus.com; path=/ Set-Cookie: lpcoremetricscid=116; domain=.lampsplus.com; path=/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /products/Linair-Plasma-TV-Entertainment-Console__F6506.html HTTP/1.1 Host: www.lampsplus.com Proxy-Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: QureyStringParameters=sourceid=DFBCMEF6506&cm_mmc=BCME-SH-_-Cabinets%20and%20Storage-_-Cabinets%20and%20Storage-_-F6506
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
LPSiteClarity=categoryid=55&categoryname=cabinets and storage&styleid=0&stylename=; domain=.lampsplus.com; path=/
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /products/s_contemporary-transitional-espresso-wood-wood-veneer-entertainment-centers-tv-solutions/category_cabinets-and-storage/ HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cabinets And ...[SNIP]...
4. Password field with autocomplete enabledpreviousnext
Summary
Severity:
Low
Confidence:
Certain
Host:
http://www.lampsplus.com
Path:
/htmls/cart/shoppingcart.aspx
Issue detail
The page contains a form with the following action URL:
The form contains the following password fields with autocomplete enabled:
passName
pass
Issue background
Most browsers have a facility to remember user credentials that are entered into HTML forms. This function can be configured by the user and also by applications which employ user credentials. If the function is enabled, then credentials entered by the user are stored on their local computer and retrieved by the browser on future visits to the same application.
The stored credentials can be captured by an attacker who gains access to the computer, either locally or through some remote compromise. Further, methods have existed whereby a malicious web site can retrieve the stored credentials for other applications, by exploiting browser vulnerabilities or through application-level cross-domain attacks.
Issue remediation
To prevent browsers from storing credentials entered into HTML forms, you should include the attribute autocomplete="off" within the FORM tag (to protect all form fields) or within the relevant INPUT tags (to protect specific individual fields).
HTTP/1.1 200 OK Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Vary: Accept-Encoding Expires: Sun, 26 Dec 2010 14:24:12 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:24:12 GMT Connection: close Content-Length: 105738
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lamps Plus S ...[SNIP]... </div>
The application appears to disclose some server-side source code written in ASP.
Issue background
Server-side source code may contain sensitive information which can help an attacker formulate attacks against the application.
Issue remediation
Server-side source code is normally disclosed to clients as a result of typographical errors in scripts or because of misconfiguration, such as failing to grant executable permissions to a script or directory. You should review the cause of the code disclosure and prevent it from happening.
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 SiteClarity_f6506 cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 287d1'-alert(1)-'f91df2e6f0e was submitted in the SiteClarity_f6506 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 /htmls/cart/add.aspx HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary287d1'-alert(1)-'f91df2e6f0e; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
Response (redirected)
HTTP/1.1 200 OK Content-Length: 105297 Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Expires: Sun, 26 Dec 2010 14:33:04 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:33:04 GMT Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lamps Plus S ...[SNIP]... Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary287d1'-alert(1)-'f91df2e6f0e',1,999.91); //--> ...[SNIP]...
The value of the SiteClarity_f6506 cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload ffe22'-alert(1)-'1bad6312fb6 was submitted in the SiteClarity_f6506 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.
HTTP/1.1 200 OK Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Vary: Accept-Encoding Expires: Sun, 26 Dec 2010 14:28:34 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:28:34 GMT Connection: close Content-Length: 105766
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lamps Plus S ...[SNIP]... Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporaryffe22'-alert(1)-'1bad6312fb6',1,999.91); //--> ...[SNIP]...
The value of the QureyStringParameters cookie is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3213d'-alert(1)-'e19f768bd9b was submitted in the QureyStringParameters 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 /products/Linair-Plasma-TV-Entertainment-Console__F6506.html HTTP/1.1 Host: www.lampsplus.com Proxy-Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: QureyStringParameters=sourceid=DFBCMEF6506&cm_mmc=BCME-SH-_-Cabinets%20and%20Storage-_-Cabinets%20and%20Storage-_-F65063213d'-alert(1)-'e19f768bd9b
The application's responses appear to depend systematically on the presence or absence of the Referer header in requests. This behaviour does not necessarily constitute a security vulnerability, and you should investigate the nature of and reason for the differential responses to determine whether a vulnerability is present.
Common explanations for Referer-dependent responses include:
Referer-based access controls, where the application assumes that if you have arrived from one privileged location then you are authorised to access another privileged location. These controls can be trivially defeated by supplying an accepted Referer header in requests for the vulnerable function.
Attempts to prevent cross-site request forgery attacks by verifying that requests to perform privileged actions originated from within the application itself and not from some external location. Such defenses are not robust - methods have existed through which an attacker can forge or mask the Referer header contained within a target user's requests, by leveraging client-side technologies such as Flash and other techniques.
Delivery of Referer-tailored content, such as welcome messages to visitors from specific domains, search-engine optimisation (SEO) techniques, and other ways of tailoring the user's experience. Such behaviours often have no security impact; however, unsafe processing of the Referer header may introduce vulnerabilities such as SQL injection and cross-site scripting. If parts of the document (such as META keywords) are updated based on search engine queries contained in the Referer header, then the application may be vulnerable to persistent code injection attacks, in which search terms are manipulated to cause malicious content to appear in responses served to other application users.
Issue remediation
The Referer header is not a robust foundation on which to build any security measures, such as access controls or defenses against cross-site request forgery. Any such measures should be replaced with more secure alternatives that are not vulnerable to Referer spoofing.
If the contents of responses is updated based on Referer data, then the same defenses against malicious input should be employed here as for any other kinds of user-supplied data.
HTTP/1.1 200 OK Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Vary: Accept-Encoding Expires: Sun, 26 Dec 2010 14:27:49 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:27:49 GMT Connection: close Content-Length: 105738
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lamps Plus S ...[SNIP]... <!-- FrameBreaker Code On. Domain Not Allowed: www.lampsplus.com --> <script language='javascript' src='/js/framebreaker.js'></script>
<div id="expeditePop" class="overlay"> <h2>Same Day Expedited Processing</h2>
<p>If your order is time sensitive, request Same Day Expedited Processing!</p>
<p>This means that we will pick, process and put your order on an outgoing truck that same day or first thing the next business day. A single $15 fee covers all eligible items in your order. Orders are sent by ground shipping unless otherwise requested. </p>
HTTP/1.1 200 OK Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Vary: Accept-Encoding Expires: Sun, 26 Dec 2010 14:28:26 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:28:26 GMT Connection: close Content-Length: 105648
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lamps Plus S ...[SNIP]... <!-- FrameBreaker Code On. --> <script language='javascript' src='/js/framebreaker.js'></script>
<div id="expeditePop" class="overlay"> <h2>Same Day Expedited Processing</h2>
<p>If your order is time sensitive, request Same Day Expedited Processing!</p>
<p>This means that we will pick, process and put your order on an outgoing truck that same day or first thing the next business day. A single $15 fee covers all eligible items in your order. Orders are sent by ground shipping unless otherwise requested. </p>
<p>Orders must be received by 1 pm Pacific Time to be ...[SNIP]...
8. Cross-domain script includepreviousnext There are 4 instances of this issue:
When an application includes a script from an external domain, this script is executed by the browser within the security context of the invoking application. The script can therefore do anything that the application's own scripts can do, such as accessing application data and performing actions within the context of the current user.
If you include a script from an external domain, then you are trusting that domain with the data and functionality of your application, and you are trusting the domain's own security to prevent an attacker from modifying the script to perform malicious actions within your application.
Issue remediation
Scripts should not be included from untrusted domains. If you have a requirement which a third-party script appears to fulfil, then you should ideally copy the contents of that script onto your own domain and include it from there. If that is not possible (e.g. for licensing reasons) then you should consider reimplementing the script's functionality within your own code.
If the HttpOnly attribute is set on a cookie, then the cookie's value cannot be read or set by client-side JavaScript. This measure can prevent certain client-side attacks, such as cross-site scripting, from trivially capturing the cookie's value via an injected script.
Issue remediation
There is usually no good reason not to set the HttpOnly flag on all cookies. Unless you specifically require legitimate client-side scripts within your application to read or set a cookie's value, you should set the HttpOnly flag by including this attribute within the relevant Set-cookie directive.
You should be aware that the restrictions imposed by the HttpOnly flag can potentially be circumvented in some circumstances, and that numerous other serious attacks can be delivered by client-side script injection, aside from simple cookie stealing.
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /design-it/Pattern-Colorize.aspx HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
Response
HTTP/1.1 302 Moved Temporarily Content-Length: 70729 Content-Type: text/html; charset=us-ascii Location: /design-it/pattern.aspx Server: Microsoft-IIS/7.5 X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET Expires: Sun, 26 Dec 2010 14:32:48 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:32:48 GMT Connection: close Set-Cookie: error=session expired; domain=.lampsplus.com; path=/ Set-Cookie: lpcoremetricscid=105; domain=.lampsplus.com; path=/
<html><head><title>Object moved</title></head><body> <h2>Object moved to <a href="%2fdesign-it%2fpattern.aspx">here</a>.</h2> </body></html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transit ...[SNIP]...
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /portfolio/default.aspx HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
Response
HTTP/1.1 200 OK Content-Length: 80093 Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 2.0.50727 X-Powered-By: ASP.NET Expires: Sun, 26 Dec 2010 14:33:18 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:33:18 GMT Connection: close Set-Cookie: MyPortfolioView=standard; domain=.lampsplus.com; path=/ Set-Cookie: lpcoremetricscid=116; domain=.lampsplus.com; path=/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
The cookie does not appear to contain a session token, which may reduce the risk associated with this issue. You should review the contents of the cookie to determine its function.
Request
GET /products/Linair-Plasma-TV-Entertainment-Console__F6506.html?sourceid=DFBCMEF6506&cm_mmc=BCME-SH-_-Cabinets%20and%20Storage-_-Cabinets%20and%20Storage-_-F6506 HTTP/1.1 Host: www.lampsplus.com Proxy-Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response
HTTP/1.1 301 Moved Permanently Content-Length: 0 Location: /products/Linair-Plasma-TV-Entertainment-Console__F6506.html Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Expires: Sun, 26 Dec 2010 14:22:57 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:22:57 GMT Connection: close Set-Cookie: QureyStringParameters=sourceid=DFBCMEF6506&cm_mmc=BCME-SH-_-Cabinets%20and%20Storage-_-Cabinets%20and%20Storage-_-F6506; path=/
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /products/Linair-Plasma-TV-Entertainment-Console__F6506.html HTTP/1.1 Host: www.lampsplus.com Proxy-Connection: keep-alive Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: QureyStringParameters=sourceid=DFBCMEF6506&cm_mmc=BCME-SH-_-Cabinets%20and%20Storage-_-Cabinets%20and%20Storage-_-F6506
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
LPSiteClarity=categoryid=55&categoryname=cabinets and storage&styleid=0&stylename=; domain=.lampsplus.com; path=/
The cookies do not appear to contain session tokens, which may reduce the risk associated with this issue. You should review the contents of the cookies to determine their function.
Request
GET /products/s_contemporary-transitional-espresso-wood-wood-veneer-entertainment-centers-tv-solutions/category_cabinets-and-storage/ HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Cabinets And ...[SNIP]...
The following email addresses were disclosed in the response:
sales@LampsPlus.com
sales@lampsplus.com
Issue background
The presence of email addresses within application responses does not necessarily constitute a security vulnerability. Email addresses may appear intentionally within contact information, and many applications (such as web mail) include arbitrary third-party email addresses within their core content.
However, email addresses of developers and other individuals (whether appearing on-screen or hidden within page source) may disclose information that is useful to an attacker; for example, they may represent usernames that can be used at the application's login, and they may be used in social engineering attacks against the organisation's personnel. Unnecessary or excessive disclosure of email addresses may also lead to an increase in the volume of spam email received.
Issue remediation
You should review the email addresses being disclosed by the application, and consider removing any that are unnecessary, or replacing personal addresses with anonymous mailbox addresses (such as helpdesk@example.com).
HTTP/1.1 200 OK Content-Type: text/html; charset=us-ascii Server: Microsoft-IIS/7.5 X-AspNet-Version: 1.1.4322 X-Powered-By: ASP.NET Vary: Accept-Encoding Expires: Sun, 26 Dec 2010 14:24:12 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:24:12 GMT Connection: close Content-Length: 105738
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Lamps Plus S ...[SNIP]... <a href="mailto:sales@lampsplus.com">sales@LampsPlus.com</a> ...[SNIP]...
The response contains multiple Content-type statements which are incompatible with one another. The following statements were received:
Content-Type: application/x-javascript
text/html; charset=UTF-8
Issue background
If a web response specifies multiple incompatible content types, then the browser will usually analyse the response and attempt to determine the actual MIME type of its content. This can have unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.
In most cases, the presence of multiple incompatible content type statements does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.
Issue remediation
For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.
If a web response states that it contains HTML content but does not specify a character set, then the browser may analyse the HTML and attempt to determine which character set it appears to be using. Even if the majority of the HTML actually employs a standard character set such as UTF-8, the presence of non-standard characters anywhere in the response may cause the browser to interpret the content using a different character set. This can have unexpected results, and can lead to cross-site scripting vulnerabilities in which non-standard encodings like UTF-7 can be used to bypass the application's defensive filters.
In most cases, the absence of a charset directive does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.
Issue remediation
For every response containing HTML content, the application should include within the Content-type header a directive specifying a standard recognised character set, for example charset=ISO-8859-1.
GET /htmls/projects/manage.asp HTTP/1.1 Host: www.lampsplus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: hs_basket=337~F6506|; GUID=917b51e2-22e5-4314-8874-93fc786f91fe; lpqs_sd=False; ATC-AddedItems-ShortSKUs=F6506; portid=00000000-0000-0000-0000-000000000000; SiteClarity_f6506=shortsku=f6506&categoryid=55&categoryname=cabinets+and+storage&styleid=13&stylename=contemporary; CMCookieFooterPlacement=Cabinets%20and%20Storage; CoreAt=90065468=1|2|0|0|0|1|0|1|0|0|0|0|1|1293373360||&; frompage=; remarketing_return=1293373428457; ATC-YouMayAlsoLikeItems-ShortSKUs=F6466,87534-45518,F9542-G4269; CMCookieFooterCategory=Cabinets%20and%20Storage; CMCookieFooterItem=F6506; cmTPSet=Y; __utma=116051099.234523245.1293373357.1293373357.1293373357.1; __utmc=116051099; ASP.NET_SessionId=hlnweb45azhifu45evtsxk2a; __utmb=116051099.2.10.1293373357; custid=178857560152101226; CMCookieFooterVendor=BCME-SH; cmRS=&t1=1293373357153&t2=-1&t3=1293373422001<i=1293373422000&ln=&hr=%23&fti=&fn=Products%3A0%3BUNDEFINED%3A1%3B&ac=&fd=&uer=&fu=&pi=Product%3A%20Linair%20Plasma%20TV%20Entertainment%20Console%20%28F6506%29&ho=www9.lampsplus.com/cm%3F&ci=90065468; __utmz=116051099.1293373357.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); QureyStringParameters=; cid=20101226062301596; F6506=1|999.91|131~Linair+Plasma+TV+Entertainment+Console~1012~F6506~1007~http%3a%2f%2fimage.lampsplus.com%2fis%2fimage%2fF6506.fpx%3fqlt%3d75%26wid%3d85%26hei%3d85%26fmt%3djpeg~1113~55~1112~cabinets+and+storage~1138~13~1139~contemporary; source=DFBCMEF6506;
Response
HTTP/1.1 200 OK Content-Length: 65192 Content-Type: text/html Server: Microsoft-IIS/7.5 X-Powered-By: ASP.NET Expires: Sun, 26 Dec 2010 14:32:13 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sun, 26 Dec 2010 14:32:13 GMT Connection: close Set-Cookie: lpcoremetricscid=117; domain=.lampsplus.com; path=/
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <TITLE>Lamps Plus - Project ...[SNIP]...
13. Content type incorrectly statedprevious There are 3 instances of this issue:
If a web response specifies an incorrect content type, then browsers may process the response in unexpected ways. If the specified content type is a renderable text-based format, then the browser will usually attempt to parse and render the response in that format. If the specified type is an image format, then the browser will usually detect the anomaly and will analyse the actual content and attempt to determine its MIME type. Either case can lead to unexpected results, and if the content contains any user-controllable data may lead to cross-site scripting or other client-side vulnerabilities.
In most cases, the presence of an incorrect content type statement does not constitute a security flaw, particularly if the response contains static content. You should review the contents of the response and the context in which it appears to determine whether any vulnerability exists.
Issue remediation
For every response containing a message body, the application should include a single Content-type header which correctly and unambiguously states the MIME type of the content in the response body.