SQL Injection, SQLi, Report, Proof of Concept, link.mavnt.com

SQL Injection in link.mavnt.com | Vulnerability Crawler Report

Report generated by Unforgivable Vulnerabilities, DORK Search, Exploit Research at Sun Jan 09 07:29:07 CST 2011.



DORK SQL Injection Report

Loading

1. SQL injection

1.1. http://link.mavnt.com/1x1.php [51270 parameter]

1.2. http://link.mavnt.com/1x1.php [name of an arbitrarily supplied request parameter]

1.3. http://link.mavnt.com/1x1_map.php [51270 parameter]

1.4. http://link.mavnt.com/1x1_map.php [name of an arbitrarily supplied request parameter]



1. SQL injection
There are 4 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://link.mavnt.com/1x1.php [51270 parameter]  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://link.mavnt.com
Path:   /1x1.php

Issue detail

The 51270 parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the 51270 parameter, 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 MySQL.

Remediation detail

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

Request 1

GET /1x1.php?51270' HTTP/1.1
Host: link.mavnt.com
Proxy-Connection: keep-alive
Referer: http://www.pogo.com/action/pogo/confirmation.do
Accept: */*
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 1 (redirected)

HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 02:22:45 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 682
Content-Type: text/html

<br />
<b>Fatal error</b>: Uncaught exception 'DBException' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''51270''' at line 1' in /var/data/adventv2/htdocs/tracking/AdventDBMySQL.class.php:204
Stack trace:
#0
...[SNIP]...

Request 2

GET /1x1.php?51270'' HTTP/1.1
Host: link.mavnt.com
Proxy-Connection: keep-alive
Referer: http://www.pogo.com/action/pogo/confirmation.do
Accept: */*
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 2 (redirected)

HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 02:22:48 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 49
Content-Type: image/gif

GIF89a...................!.......,...........T..;

1.2. http://link.mavnt.com/1x1.php [name of an arbitrarily supplied request parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://link.mavnt.com
Path:   /1x1.php

Issue detail

The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the name of an arbitrarily supplied request parameter, 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 MySQL.

Remediation detail

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

Request 1

GET /1x1.php?1'=1 HTTP/1.1
Host: link.mavnt.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 1 (redirected)

HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 02:22:20 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 675
Connection: close
Content-Type: text/html

<br />
<b>Fatal error</b>: Uncaught exception 'DBException' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1' in /var/data/adventv2/htdocs/tracking/AdventDBMySQL.class.php:204
Stack trace:
#0 /var/d
...[SNIP]...

Request 2

GET /1x1.php?1''=1 HTTP/1.1
Host: link.mavnt.com
Accept: */*
Accept-Language: en
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)
Connection: close

Response 2 (redirected)

HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 02:22:20 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 49
Connection: close
Content-Type: image/gif

GIF89a...................!.......,...........T..;

1.3. http://link.mavnt.com/1x1_map.php [51270 parameter]  previous  next

Summary

Severity:   High
Confidence:   Certain
Host:   http://link.mavnt.com
Path:   /1x1_map.php

Issue detail

The 51270 parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the 51270 parameter, 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 MySQL.

Remediation detail

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

Request 1

GET /1x1_map.php?51270' HTTP/1.1
Host: link.mavnt.com
Proxy-Connection: keep-alive
Referer: http://www.pogo.com/action/pogo/confirmation.do
Accept: */*
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 1

HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 02:22:37 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 682
Content-Type: text/html

<br />
<b>Fatal error</b>: Uncaught exception 'DBException' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''51270''' at line 1' in /var/data/adventv2/htdocs/tracking/AdventDBMySQL.class.php:204
Stack trace:
#0
...[SNIP]...

Request 2

GET /1x1_map.php?51270'' HTTP/1.1
Host: link.mavnt.com
Proxy-Connection: keep-alive
Referer: http://www.pogo.com/action/pogo/confirmation.do
Accept: */*
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 2

HTTP/1.1 200 OK
Date: Sun, 09 Jan 2011 02:22:39 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 49
Content-Type: image/gif

GIF89a...................!.......,...........T..;

1.4. http://link.mavnt.com/1x1_map.php [name of an arbitrarily supplied request parameter]  previous

Summary

Severity:   High
Confidence:   Certain
Host:   http://link.mavnt.com
Path:   /1x1_map.php

Issue detail

The name of an arbitrarily supplied request parameter appears to be vulnerable to SQL injection attacks. A single quote was submitted in the name of an arbitrarily supplied request parameter, 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 MySQL.

Remediation detail

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

Request 1

GET /1x1_map.php?1'=1 HTTP/1.1
Host: link.mavnt.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 200 OK
Date: Sun, 09 Jan 2011 02:22:23 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 675
Connection: close
Content-Type: text/html

<br />
<b>Fatal error</b>: Uncaught exception 'DBException' with message 'You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1' in /var/data/adventv2/htdocs/tracking/AdventDBMySQL.class.php:204
Stack trace:
#0 /var/d
...[SNIP]...

Request 2

GET /1x1_map.php?1''=1 HTTP/1.1
Host: link.mavnt.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
Date: Sun, 09 Jan 2011 02:22:23 GMT
Server: Apache
X-Powered-By: PHP/5.2.9
Content-Length: 49
Connection: close
Content-Type: image/gif

GIF89a...................!.......,...........T..;

Report generated by Unforgivable Vulnerabilities, DORK Search, Exploit Research at Sun Jan 09 07:29:07 CST 2011.