SQL Injection occurs when data input for example by a user is interpreted as a SQL command rather than normal data by the backend database. This is an extremely common vulnerability and its successful exploitation can have critical implications. Netsparker confirmed the vulnerability by executing a test SQL Query on the back-end database. In these tests, SQL Injection was not obvious but the different responses from the page based on the injection test allowed Netsparker to identify and confirm the SQL Injection.
Impact
Depending on the backend database, the database connection settings and the operating system, an attacker can mount one or more of the following type of attacks successfully:
Reading, Updating and Deleting arbitrary data from the database
Executing commands on the underlying operating system
Reading, Updating and Deleting arbitrary tables from the database
Actions to Take
See the remedy for solution.
If you are not using a database access layer (DAL), consider using one. This will help you to centralise the issue. You can also use an ORM (object relational mapping). Most of the ORM systems use only parameterised queries and this can solve the whole SQL Injection problem.
Locate all of the dynamically generated SQL queries and convert them to parameterised queries. (If you decide to use a DAL/ORM change all legacy code to use these new libraries)
Use your weblogs and application logs to see if there was any previous but undetected attack to this resource.
Remedy
The best way to protect your code against SQL Injections is using parameterised queries (prepared statements). Almost all modern languages provide built in libraries for this. Wherever possible do not create dynamic SQL queries or SQL queries with string concatenation.
Required Skills for Successful Exploitation
There are numerous freely available tools to exploit SQL Injection vulnerabilities. This is a complex area with many dependencies, however it should be noted that the numerous resources available in this area have raised both attacker awareness of the issues and their ability to discover and leverage them.
SQL Injection occurs when data input for example by a user is interpreted as a SQL command rather than normal data by the backend database. This is an extremely common vulnerability and its successful exploitation can have critical implications. Even though Netsparker believes that there is a SQL Injection in here it could not confirm it. There can be numerous reasons for Netsparker not being able to confirm this. We strongly recommend investigating the issue manually to ensure that it is an SQL Injection and that it needs to be addressed. You can also consider sending the details of this issue to us, in order that we can address this issue for the next time and give you a more precise result.
Impact
Depending on the backend database, database connection settings and the operating system, an attacker can mount one or more of the following type of attacks successfully:
Reading, Updating and Deleting arbitrary data from the database
Executing commands on the underlying operating system
Reading, Updating and Deleting arbitrary tables from the database
Actions to Take
See the remedy for solution.
If you are not using a database access layer (DAL) within the architecture consider its benefits and implement if appropriate. As a minimum the use of s DAL will help centralize the issue and its resolution. You can also use an ORM (object relational mapping). Most ORM systems use parameterized queries and this can solve many if not all SQL Injection based problems.
Locate all of the dynamically generated SQL queries and convert them to parameterised queries. (If you decide to use a DAL/ORM, change all legacy code to use these new libraries)
Monitor and review weblogs and application logs in order to uncover active or previous exploitation attempts.
Remedy
A very robust method for mitigating the threat of SQL Injection based vulnerabilities is to use parameterized queries (prepared statements). Almost all modern languages provide built in libraries for this. Wherever possible do not create dynamic SQL queries or SQL queries with string concatenation.
Required Skills for Successful Exploitation
There are numerous freely available tools to test for SQL Injection vulnerabilities. This is a complex area with many dependencies, however it should be noted that the numerous resources available in this area have raised both attacker awareness of the issues and their ability to discover and leverage them. SQL Injection is one of the most common web application vulnerabilities.
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.
GET /copy1/ResMain.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x00011E))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/webview.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C%7C%B2%A8%95J%9B%9D%A8%B4%BE%A8%93w%AE%8D%AF%BD%A7%C7%BF%A2y%84%93%A2%BBh Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:00:37 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x00011E))><br>
GET /copy1/webviewstyle.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000126))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:00:44 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000126))><br>
GET /copy1/Res_3.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000131))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:00:59 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000131))><br>
GET /copy1/Res_1.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x00013C))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:01:11 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x00013C))><br>
GET /copy1/Res_2.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x00015D))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:01:24 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x00015D))><br>
GET /copy1/res_avail.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000168))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_3.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:01:43 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000168))><br>
POST /copy1/res_avail.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000180))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_3.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Content-Length: 7 Expect: 100-continue Accept-Encoding: gzip, deflate
text2=1
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:02:25 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000180))><br>
GET /copy1/res_1_BNR.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x0001B3))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_1.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:03:09 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x0001B3))><br>
GET /copy1/Res_2Send.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x00022E))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_2.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=FJDOLOPAFCLNHGBMFFHFHCPM Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:04:30 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x00022E))><br>
GET /copy1/webroom.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000256))%3E&Rnum=3 HTTP/1.1 Referer: https://www.superinn.com/copy1/res_avail.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=FJDOLOPAFCLNHGBMFFHFHCPM Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:05:39 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000256))><br>
GET /copy1/Res_1.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000261))%3E&mdate=8/14/2011&rnum=1 HTTP/1.1 Referer: https://www.superinn.com/copy1/res_avail.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=FJDOLOPAFCLNHGBMFFHFHCPM Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:05:55 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000261))><br>
GET /copy1/wrong.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000288))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_2Send.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=HODOLOPAHMABPMFNCAABJGKP Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:06:20 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000288))><br>
POST /copy1/Res_2Send.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000294))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_2.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=HODOLOPAHMABPMFNCAABJGKP Content-Length: 27 Expect: 100-continue Accept-Encoding: gzip, deflate
text2=3&text1=3&Submit=VIEW
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:07:17 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000294))><br>
GET /copy1/res_1_B.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x0002C4))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_1.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C&mdate=8/14/2011&rnum=1 Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=HODOLOPAHMABPMFNCAABJGKP Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:08:01 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x0002C4))><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:08:49 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x0002D1))><br>
POST /copy1/res_avail.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000324))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_3.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=HODOLOPAHMABPMFNCAABJGKP Content-Length: 47 Expect: 100-continue Accept-Encoding: gzip, deflate
text1=8%2f11%2f2011&text2=12&Submit2=VIEW+CHART
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:10:57 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000324))><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:14:12 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000396))><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:17:43 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000431))><br>
<script> function CheckDate() { d=form1.text1.value; //if none selected d = false if (d=='') { alert('Please enter a check-in date.'); form1.text1.focus(); return false ; }
e=form1.text2.value; //if none selected d = false if (e=='' || isNaN(e)) { alert('Please enter a number under number of nights.'); form1.text2.focus(); return false ; }
f= 0 + form1.text3.value; //if none selected d = false if (f<1 || isNaN(f)) { alert('Please enter a number under number of guests.'); form1.text3.focus(); return false ; } } </script>
POST /copy1/res_avail.asp?crypt=%3C/a%20style=x:expre/**/ssion(netsparker(0x000478))%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/res_avail.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=NNEOLOPACIJJPGIHLLPPAKFH Content-Length: 19 Expect: 100-continue Accept-Encoding: gzip, deflate
submit=Next+12+days
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:19:49 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000478))><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:22:29 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x0004DF))><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:25:11 GMT X-Powered-By: ASP.NET Content-Length: 154 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:</a style=x:expre/**/ssion(netsparker(0x000586))><br>
<script> function CheckDate() { d=form1.text1.value; //if none selected d = false if (d=='') { alert('Please enter a check-in date.'); form1.text1.focus(); return false ; }
e=form1.text2.value; //if none selected d = false if (e=='' || isNaN(e)) { alert('Please enter a number under number of nights.'); form1.text2.focus(); return false ; }
f= 0 + form1.text3.value; //if none selected d = false if (f<1 || isNaN(f)) { alert('Please enter a number under number of guests.'); form1.text3.focus(); return false ; } } </script>
A Cookie was not marked as secure and transmitted over HTTPS. This means the cookie could potentially be stolen by an attacker who can successfully intercept and decrypt the traffic or following a successful MITM (Man in the middle) attack.
Impact
This cookie will be transmitted over a HTTP connection, therefore if this cookie is important (such as a session cookie) an attacker might intercept it and hijack a victim's session. If the attacker can carry out a MITM attack, he/she can force victim to make a HTTP request to steal the cookie.
Actions to Take
See the remedy for solution.
Mark all cookies used within the application as secure. (If the cookie is not related to authentication or does not carry any personal information you do not have to mark it as secure.))
Remedy
Mark all cookies used within the application as secure.
Required Skills for Successful Exploitation
To exploit this issue, the attacker needs to be able to intercept traffic. This generally requires local access to the web server or victim's network. Attackers need to be understand layer 2, have physical access to systems either as way points for the traffic, or locally (have gained access to) to a system between the victim and the web server.
Netsparker detected that your web server is configured to support secure communication over an insecure transporation protocol (SSLv2).
SSLv2 is an insecure protocol and has several flaws. Your secure traffic can be observed when you have established it over SSLv2.
Impact
Attackers can perform MITM attacks and observe the encryption traffic beetwen your website and the visitors.
Remedy
Configure your webserver to disallow using weak ciphers.
For Apache, you should modify the SSLProtocol directive in the httpd.conf.
SSLProtocol -ALL +SSLv3 +TLSv1
For Microsoft IIS, you should make some changes on the system registry.
Click Start, click Run, type regedt32 or type regedit, and then click OK.
In Registry Editor, locate the following registry key :
HKey_Local_Machine\System\CurrentControlSet\Control\SecurityProviders \SCHANNEL\Protocols\SSL2\Server
There may or may not be a DWORD value named 'Enabled'.
Type 00000000 in Binary Editor to set the value of the new key equal to "0".
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.
Netsparker believes that there is a XSS (Cross-site Scripting) in here it could not confirm it. We strongly recommend investigating the issue manually to ensure that it is an XSS (Cross-site Scripting) and needs to be addressed.
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 / encoded. Output should be filtered / encoded according to the output format and location.
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.
GET /copy1/ResMain.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00006C)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/webview.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C%7C%B2%A8%95J%9B%9D%A8%B4%BE%A8%93w%AE%8D%AF%BD%A7%C7%BF%A2y%84%93%A2%BBh Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=KNCOLOPACJONFJEFEPJIPOOA Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 03:58:31 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x00006C)</script><br>
GET /copy1/webviewstyle.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000082)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=OOCOLOPAFGCMOAILKDGABGLE Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 03:58:41 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000082)</script><br>
GET /copy1/Res_3.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000098)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=OOCOLOPAFGCMOAILKDGABGLE Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 03:58:53 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000098)</script><br>
GET /copy1/Res_1.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0000AE)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=OOCOLOPAFGCMOAILKDGABGLE Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 03:59:06 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x0000AE)</script><br>
GET /copy1/Res_2.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0000D8)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/ResMain.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=OOCOLOPAFGCMOAILKDGABGLE Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 03:59:25 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x0000D8)</script><br>
GET /copy1/res_avail.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000104)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_3.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 03:59:49 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000104)</script><br>
POST /copy1/res_avail.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000108)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_3.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Content-Length: 7 Expect: 100-continue Accept-Encoding: gzip, deflate
text2=1
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:00:30 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000108)</script><br>
GET /copy1/res_1_BNR.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000156)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_1.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:01:19 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000156)</script><br>
GET /copy1/Res_2Send.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00019B)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_2.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=MBDOLOPADOELCGIFCEGGLPMB Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:02:38 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x00019B)</script><br>
GET /copy1/webroom.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00020A)%3C/script%3E&Rnum=3 HTTP/1.1 Referer: https://www.superinn.com/copy1/res_avail.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=FJDOLOPAFCLNHGBMFFHFHCPM Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:03:56 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x00020A)</script><br>
GET /copy1/Res_1.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00020B)%3C/script%3E&mdate=8/14/2011&rnum=1 HTTP/1.1 Referer: https://www.superinn.com/copy1/res_avail.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=FJDOLOPAFCLNHGBMFFHFHCPM Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:04:10 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x00020B)</script><br>
GET /copy1/wrong.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000244)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_2Send.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=FJDOLOPAFCLNHGBMFFHFHCPM Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:04:38 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000244)</script><br>
POST /copy1/Res_2Send.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00024B)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_2.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=FJDOLOPAFCLNHGBMFFHFHCPM Content-Length: 27 Expect: 100-continue Accept-Encoding: gzip, deflate
text2=3&text1=3&Submit=VIEW
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:05:28 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x00024B)</script><br>
GET /copy1/res_1_B.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000285)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_1.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C&mdate=8/14/2011&rnum=1 Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=HODOLOPAHMABPMFNCAABJGKP Accept-Encoding: gzip, deflate
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:06:19 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000285)</script><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:06:55 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000289)</script><br>
POST /copy1/res_avail.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0002B4)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_3.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=HODOLOPAHMABPMFNCAABJGKP Content-Length: 28 Expect: 100-continue Accept-Encoding: gzip, deflate
text1=8%2f11%2f2011&text2=12
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:07:44 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x0002B4)</script><br>
POST /copy1/res_avail.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0002C6)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/Res_3.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=HODOLOPAHMABPMFNCAABJGKP Content-Length: 47 Expect: 100-continue Accept-Encoding: gzip, deflate
text1=8%2f11%2f2011&text2=12&Submit2=VIEW+CHART
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:08:27 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x0002C6)</script><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:11:00 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000326)</script><br>
<script> function CheckDate() { d=form1.text1.value; //if none selected d = false if (d=='') { alert('Please enter a check-in date.'); form1.text1.focus(); return false ; }
e=form1.text2.value; //if none selected d = false if (e=='' || isNaN(e)) { alert('Please enter a number under number of nights.'); form1.text2.focus(); return false ; }
f= 0 + form1.text3.value; //if none selected d = false if (f<1 || isNaN(f)) { alert('Please enter a number under number of guests.'); form1.text3.focus(); return false ; } } </script>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:15:02 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x0003BB)</script><br>
POST /copy1/res_avail.asp?crypt='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0003F3)%3C/script%3E HTTP/1.1 Referer: https://www.superinn.com/copy1/res_avail.asp?crypt=%BF%7Fp%5B%98%BB%B4%B2%A6%98b%7FkP%C1%A8%A6%9A%C1%7DX%B2%9A%B9%C7%AF%AA%7C Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Content-Type: application/x-www-form-urlencoded Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=NNEOLOPACIJJPGIHLLPPAKFH Content-Length: 19 Expect: 100-continue Accept-Encoding: gzip, deflate
submit=Next+12+days
Response
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:16:53 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x0003F3)</script><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:19:35 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x00046F)</script><br>
HTTP/1.1 200 OK Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 04:23:07 GMT X-Powered-By: ASP.NET Content-Length: 164 Content-Type: text/html Cache-control: private
We detected a possible encryption ERROR<br>please contact info@sarktech.com?subject=Encryption Error:'"--></style></script><script>netsparker(0x000500)</script><br>
<script> function CheckDate() { d=form1.text1.value; //if none selected d = false if (d=='') { alert('Please enter a check-in date.'); form1.text1.focus(); return false ; }
e=form1.text2.value; //if none selected d = false if (e=='' || isNaN(e)) { alert('Please enter a number under number of nights.'); form1.text2.focus(); return false ; }
f= 0 + form1.text3.value; //if none selected d = false if (f<1 || isNaN(f)) { alert('Please enter a number under number of guests.'); form1.text3.focus(); return false ; } } </script>
The Server responded with an HTTP status 500. This indicates that there is a server-side error. Reasons may vary. The behavior should be analysed carefully. If Netsparker is able to find a security issue in the same resource it will report this as a separate vulnerability.
Impact
The impact may vary depending on the condition. Generally this indicates poor coding practices, not enough error checking, sanitization and whitelisting. However there might be a bigger issue such as SQL Injection. If that's the case Netsparker will check for other possible issues and report them separately.
Remedy
Analyse this issue and review the application code in order to handle unexpected errors, this should be a generic practice which does not disclose further information upon an error. All errors should be handled server side only.
Cookie was not marked as HTTPOnly. HTTPOnly cookies can not be read by client-side scripts therefore marking a cookie as HTTPOnly can provide an additional layer of protection against Cross-site Scripting attacks..
Impact
During a Cross-site Scripting attack an attacker might easily access cookies and hijack the victim's session.
Actions to Take
See the remedy for solution
Consider marking all of the cookies used by the application as HTTPOnly (After these changes javascript code will not able to read cookies.
Remedy
Mark the cookie as HTTPOnly. This will be an extra layer of defence against XSS. However this is not a silver bullet and will not protect the system against Cross-site Scripting attacks. An attacker can use a tool such as XSS Tunnel to bypass HTTPOnly protection.
The error message may disclose sensitive information and this information can be used by an attacker to mount new attacks or to enlarge the attack surface. In rare conditions this may be a clue for an SQL Injection vulnerability. Most of the time Netsparker will detect and report that problem separately.
Remedy
Do not provide any error messages on production environments. Save error messages with a reference number to a backend storage such as a text file or database, then show this number and a static user-friendly error message to the user.
Netsparker identified a programming error message.
Impact
The error message may disclose sensitive information and this information can be used by an attacker to mount new attacks or to enlarge the attack surface. Source code, stack trace, etc. type data may be disclosed. Most of these issues will be identified and reported separately by Netsparker.
Remedy
Do not provide error messages on production environments. Save error messages with a reference number to a backend storage such as a log, text file or database then show this number and a static user-friendly error message to the user.
Netsparker identified that the TRACE/TRACK method is allowed.
Impact
If the application is vulnerable to Cross-site Scripting and uses Http-Only Cookies then an attacker can bypass the Http-Only cookies limitation and read the cookies in an XSS attack.
Remedy
Disable this method in all production systems. Even though the application is not vulnerable to Cross-site Scripting a debugging feature such as TRACE/TRACK should not be required in a production system and therefore should be disabled.
GET /copy1/Images/ HTTP/1.1 Referer: https://www.superinn.com/copy1/Images/superinnsmall.gif Accept: text/xml,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 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10 Cache-Control: no-cache Host: www.superinn.com Cookie: ASPSESSIONIDCADAAARA=KNCOLOPACJONFJEFEPJIPOOA Accept-Encoding: gzip, deflate
Response
HTTP/1.1 403 Access Forbidden Server: Microsoft-IIS/5.0 Date: Fri, 12 Aug 2011 03:57:58 GMT Connection: close Content-Type: text/html Content-Length: 172
<html><head><title>Directory Listing Denied</title></head><body><h1>Directory Listing Denied</h1>This Virtual Directory does not allow contents to be listed.</body></html>
Netsparker found e-mail addresses on the web site.
Impact
E-mail addresses discovered within the application can be used by both spam email engines and also brute force tools. Furthermore valid email addresses may lead to social engineering attacks .
Remedy
Use generic email addresses such as contact@ or info@ for general communications, remove user/people specific e-mail addresses from the web site, should this be required use submission forms for this purpose.
Netsparker identified that the target web server is disclosing the web server's version in the HTTP response. This information can help an attacker to gain a greater understanding of the system in use and potentially develop further attacks targeted at the specific web server version.
Impact
An attacker can look for specific security vulnerabilities for the version identified through the SERVER header information.
Remediation
Configure your web server to prevent information leakage from the SERVER header of its HTTP response.
Netsparker identified that the target web site is using Microsoft Access as its backend database. This issue is reported for information purposes only.
Impact
This issue is reported as additional information only. There is no direct impact arising from this issue.