Report generated by XSS.CX at Sat Nov 06 21:21:25 CDT 2010.


Cross Site Scripting Reports | Hoyt LLC Research

The DORK Report

Loading

1. SQL injection

1.1. http://barronsonline.fundinfo.wilink.com/v5/index.asp [REST URL parameter 1]

1.2. http://barronsonline.fundinfo.wilink.com/v5/index.asp [REST URL parameter 2]



1. SQL injection
There are 2 instances of this issue:

Issue background

SQL injection vulnerabilities arise when user-controllable data is incorporated into database SQL queries in an unsafe manner. An attacker can supply crafted input to break out of the data context in which their input appears and interfere with the structure of the surrounding query.

Various attacks can be delivered via SQL injection, including reading or modifying critical application data, interfering with application logic, escalating privileges within the database and executing operating system commands.

Remediation background

The most effective way to prevent SQL injection attacks is to use parameterised queries (also known as prepared statements) for all database access. This method uses two steps to incorporate potentially tainted data into SQL queries: first, the application specifies the structure of the query, leaving placeholders for each item of user input; second, the application specifies the contents of each placeholder. Because the structure of the query has already defined in the first step, it is not possible for malformed data in the second step to interfere with the query structure. You should review the documentation for your database and application platform to determine the appropriate APIs which you can use to perform parameterised queries. It is strongly recommended that you parameterise every variable data item that is incorporated into database queries, even if it is not obviously tainted, to prevent oversights occurring and avoid vulnerabilities being introduced by changes elsewhere within the code base of the application.

You should be aware that some commonly employed and recommended mitigations for SQL injection vulnerabilities are not always effective:



1.1. http://barronsonline.fundinfo.wilink.com/v5/index.asp [REST URL parameter 1]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://barronsonline.fundinfo.wilink.com
Path:   /v5/index.asp

Issue detail

The REST URL parameter 1 appears to be vulnerable to SQL injection attacks. A single quote was submitted in the REST URL parameter 1, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be Microsoft SQL Server.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request 1

GET /v5'/index.asp HTTP/1.1
Host: barronsonline.fundinfo.wilink.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 1

HTTP/1.1 500 Internal Server Error
Connection: close
Date: Sat, 06 Nov 2010 16:27:34 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 349
Content-Type: text/html
Set-Cookie: ASPSESSIONIDASQRRRDD=GGJKKIFBPGAGGLGLPJCNGINN; path=/
Cache-control: private

<font face="Arial" size=2>
<p>Microsoft OLE DB Provider for ODBC Drivers</font> <font face="Arial" size=2>error '80040e14'</font>
<p>
<font face="Arial" size=2>[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near the keyword 'index'.</font>
...[SNIP]...

Request 2

GET /v5''/index.asp HTTP/1.1
Host: barronsonline.fundinfo.wilink.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 2

HTTP/1.1 200 OK
Connection: close
Date: Sat, 06 Nov 2010 16:27:35 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 0
Content-Type: text/html
Set-Cookie: ASPSESSIONIDASQRRRDD=HGJKKIFBJEMLOHLBJMFFFLFH; path=/
Cache-control: private


1.2. http://barronsonline.fundinfo.wilink.com/v5/index.asp [REST URL parameter 2]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://barronsonline.fundinfo.wilink.com
Path:   /v5/index.asp

Issue detail

The REST URL parameter 2 appears to be vulnerable to SQL injection attacks. A single quote was submitted in the REST URL parameter 2, and a database error message was returned. Two single quotes were then submitted and the error message disappeared. You should review the contents of the error message, and the application's handling of other input, to confirm whether a vulnerability is present.

The database appears to be Microsoft SQL Server.

Remediation detail

The application should handle errors gracefully and prevent SQL error messages from being returned in responses.

Request 1

GET /v5/index.asp' HTTP/1.1
Host: barronsonline.fundinfo.wilink.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 1

HTTP/1.1 500 Internal Server Error
Connection: close
Date: Sat, 06 Nov 2010 16:27:37 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 395
Content-Type: text/html
Set-Cookie: ASPSESSIONIDASQRRRDD=CHJKKIFBEKCGNEFILKGDPKEP; path=/
Cache-control: private

<font face="Arial" size=2>
<p>Microsoft OLE DB Provider for ODBC Drivers</font> <font face="Arial" size=2>error '80040e14'</font>
<p>
<font face="Arial" size=2>[Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation mark before the character string 'fundinfo.wilink.com/v5/index.asp''.</font>
...[SNIP]...

Request 2

GET /v5/index.asp'' HTTP/1.1
Host: barronsonline.fundinfo.wilink.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 2

HTTP/1.1 200 OK
Connection: close
Date: Sat, 06 Nov 2010 16:27:37 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
Content-Length: 0
Content-Type: text/html
Set-Cookie: ASPSESSIONIDASQRRRDD=DHJKKIFBNCJIMGDGEFGEKOBH; path=/
Cache-control: private


Report generated by XSS.CX at Sat Nov 06 21:21:25 CDT 2010.