osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Blind SQL injections on product_info.php page

This is a discussion on Blind SQL injections on product_info.php page within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Can anyone help me with removing the Blind SQL injection vulnerability. I installed Security Pro and I thought I put ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Reply

 

LinkBack Thread Tools
  #1  
Old 06-04-2009, 09:00 AM
New Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lindsay is on a distinguished road
Default Blind SQL injections on product_info.php page

Can anyone help me with removing the Blind SQL injection vulnerability. I installed Security Pro and I thought I put in the Cross Site script but all of a sudden I'm getting a failed PCI scan. Any suggestions?? Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 06-04-2009, 01:58 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Blind SQL injections on product_info.php page

Are you using the latest osCommerce Online Merchant v2.2 Release Candidate 2a?

Double check all your editing for Security Pro.

If not - consider osCMax - no known SQL vulnerabilities or cross-site scripting issues.
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 06-05-2009, 06:52 AM
New Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lindsay is on a distinguished road
Default Re: Blind SQL injections on product_info.php page

I am using osc rc2a. I use Security Metrics to scan and this has happened before but I fixed it or so I thought. I will double check the security pro code that I put in. Maybe I will consider osmax. Is it pretty much the same? Thanks!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 06-05-2009, 04:34 PM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
Default Re: Blind SQL injections on product_info.php page

Yes - but NO.

It has a whole lot more than just osCommerce
__________________
JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
Try out our osCMax at: Live Catalog Demo
Limited access Admin: Live Admin Demo
Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 06-10-2009, 10:52 AM
New Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lindsay is on a distinguished road
Default Re: Blind SQL injections on product_info.php page

How can I fix this? I am using Security Pro from FWR media in my osc store.


The true statement:

http://www.domainname.com/index.php?...=2%20and%201=0

Is returning a 403 Forbidden error.

The false statement:

http://www.domainname.com/index.php?...=2%20and%201=1

Is returning the product page.

In order to become compliant, both the true and false statements must return the same page whether it be the 403 error or the product page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 06-10-2009, 12:57 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,738
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Blind SQL injections on product_info.php page

I don't think it has anything to do with osC. You are probably tripping a mod_security rule which gives the 403 forbidden message. osCommerce does not determine what is forbidden, that is an account level or server level issue.

Check to see if mod_security is filtering the one that is 403. I bet it is.

I had a discussion about this with another osC user that has Security Metrics. Their service seems to be the commonality...
http://www.facebook.com/pages/osCMax...re/57253524785
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 06-10-2009, 01:01 PM
New Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lindsay is on a distinguished road
Default Re: Blind SQL injections on product_info.php page

How do I go about doing that? Do I ask my my web hosting provider?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 06-10-2009, 01:10 PM
michael_s's Avatar
osCMax Developer


 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 15,738
Thanks: 139
Thanked 609 Times in 521 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default Re: Blind SQL injections on product_info.php page

Yes, check with them if mod_security is installed and if so, see if they can provide the log entries from mod_security that show the blocking. Then send that to your PCI scan company and tell them it is a false positive.
__________________
Michael Sasek
osCMax Developer

*** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers ***

Stay Up To Date with everything osCMax:
Free osCMax Newsletters - Security notices, New Releases, osCMax News
osCMax on Twitter - Up to the minute info as it happens. Know it first.

osCMax User Manual - osCMax Templates - Advanced Template Tutorial

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 06-10-2009, 01:25 PM
New Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lindsay is on a distinguished road
Default Re: Blind SQL injections on product_info.php page

Thanks a bunch! I am waiting to hear back from my web hosts. I was reading on the Zen Cart forum and they mentioned that this happens often with SM. This has been driving me nuts all day! Especially since the last scan didn't have this issue. I really appreciate your help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 06-11-2009, 06:59 AM
New Member
 
Join Date: Sep 2008
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
lindsay is on a distinguished road
Default Re: Blind SQL injections on product_info.php page

My other store is doing the same thing but this time its not showing a forbidden page and mod_security is not installed. The pages are just showing up in an empty shopping cart and the other page shows the normal store. So they are not showing the same results. Any suggestions?

Possible blind sql injection on https://domain.com/catalo g/shopping_cart.php?osCsid=0b8dc0b901af51a 14c3ddadc6471266b wp --bsql "https://domain.com/catalog/shopping_cart.php?osCsid=0b8dc0b901af51a14c3ddadc6 471266b" style="display: none;"> "https://domain.com/catalog/shopping_cart.php?osCsid=0b8dc0b901af51a14c3ddadc6 471266b+and+1%3D1" "https://domain.com/catalog/shopping_cart.php?osCsid=0b8dc0b901af51a14c3ddadc6 471266b+and+1%3D0" cat <<EOF > bsql.sh curl -L -k "https://domain.com/catalog/shopping_cart.php?osCsid=0b8dc0b901af51a14c3ddadc6 471266b+and+1%3D1"> a curl -L -k "https://domain.com/catalog/shopping_cart.php?osCsid=0b8dc0b901af51a14c3ddadc6 471266b+and+1%3D0"> b diff a b EOF sh bsql.sh This website may have other injection related vulnerabilities. [More]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
Show data file in product_info/Anzeige Datei in product_info michael_s New osCommerce Contributions 0 04-18-2008 03:21 AM
Category & Manufacturers name in Product_Info Page michael_s New osCommerce Contributions 0 12-13-2007 06:15 AM
Wholesale price shows in uindex but not product_info page ozstar osCMax v2 Customization/Mods 4 04-25-2007 09:43 PM
Product_info page won't stay at 800 width on osC template! toddhata osCMax v1.7 Installation 5 01-19-2005 05:57 PM
Error on product_info page Anonymous osCMax v1.7 Installation 2 02-13-2004 12:53 PM


All times are GMT -8. The time now is 07:04 AM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design