Closed (fixed)
Project:
Commerce PayPal
Version:
7.x-2.x-dev
Component:
PayPal / IPN
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
2 Mar 2013 at 07:59 UTC
Updated:
4 Jul 2013 at 04:10 UTC
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
This line in commerce_paypal_api_request() disables peer verification, which allows man-in-the-middle attacks between sites running this module and PayPal's servers. See #1794680: HTTPS certificate verification and e.g. http://stackoverflow.com/questions/14914330/security-consequences-of-dis... for more information.
Comments
Comment #1
guguss commentedFor information, we had the same discussion for Payleap #1931768: CURLOPT_SSL_VERIFYPEER should not be disabled.
Comment #2
rszrama commentedMy solution here is two-fold based on other research (see also #1931760-2: CURLOPT_SSL_VERIFYPEER should not be disabled):
Commit: http://drupalcode.org/project/commerce_paypal.git/commitdiff/79fabf1