Results 1 to 3 of 3
  1. #1
    Join Date
    May 2010
    Posts
    8
    Plugin Contributions
    0

    Default bug in custom "card on file" payment module

    We had a customer sign up with an apostrophe in their last name and this caused a SQL error in modules/payment/cardonfile.php.

    I replaced this on line 39:

    $sql = "SELECT customers_id FROM customers WHERE customers_firstname = '{$order->customer['firstname']}' AND customers_lastname = '{$order->customer['lastname']}'";

    with this:

    $lastname = addslashes($order->customer['lastname']);
    $firstname = addslashes($order->customer['firstname']);

    $sql = "SELECT customers_id FROM customers WHERE customers_firstname = '{$firstname}' AND customers_lastname = '{$lastname}'";

    We have ver. v1.3.9b.



    I am surprised this has not come up before!

  2. #2
    Join Date
    Jun 2005
    Location
    Cumbria, UK
    Posts
    10,263
    Plugin Contributions
    3

    Default Re: bug in "card on file" payment module

    Quote Originally Posted by saxtuplet View Post
    I am surprised this has not come up before!
    Probably because the module is not a core module, and neither is it available in the plugins area.

    Looks like you're the only one using it. Be interested to know where you got it from, and whether your server meets PCI compliances. If not, this presents a massive security risk to your customers.
    20 years a Zencart User

  3. #3
    Join Date
    May 2010
    Posts
    8
    Plugin Contributions
    0

    Default Re: bug in "card on file" payment module

    I just found out this was a custom module added when someone worked on the site's linkpoint integration. Looks like it uses similar logic to the Ceon card module - it just stores the 4 digits at each end of the card number and the admin then looks up the number at linkpoint.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 12 Dec 2014, 05:37 AM
  2. Custom Payment module won't redirect to "checkout success" page
    By eurorage in forum Addon Payment Modules
    Replies: 2
    Last Post: 5 Feb 2011, 08:14 PM
  3. Credit Card Module disabled, yet order placed with "Credit Card"
    By retrobec in forum Built-in Shipping and Payment Modules
    Replies: 17
    Last Post: 2 Apr 2010, 03:22 AM
  4. Replies: 1
    Last Post: 25 Feb 2010, 10:23 AM
  5. How does the generic credit card module "verify" card numbers?
    By LRS in forum Built-in Shipping and Payment Modules
    Replies: 12
    Last Post: 4 Dec 2008, 04:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR