Forums / Addon Payment Modules / Linkpoint / YourPay API - Security Related

Linkpoint / YourPay API - Security Related

Locked

Started by lib99 on 13 Jul 2006, 3:00 PM · Views: 2,768

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
13 Jul 2006, 3:00 PM
#1
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Location:
New York, USA
Posts:
965
Plugin Contributions:
0

Linkpoint / YourPay API - Security Related

Shops using the Linkpoint / YourPay API Payment Module (v1.2.x or v1.3.x), should be aware that your PEM file supplied from LP/YP is confidental!! Unless you specifically setup access restrictions to your PEM file, it can be viewed publically. This is dangerous for you the shop owner!!

This vulnerability had been reported late last year to the module's author with no resolution.

The solution is simple. Create a .htaccess file containing the below settings```php
<Files ~ ".(pem)$">
Order allow,deny
Deny from all
</Files>

Upload the newly created .htaccess file to directory (same as pem file location):
../includes/modules/payment/linkpoint_api/

**Remember to do this for your http and https related directories - if you have the PEM in both (and are using 2 separate directories for non-SSL and SSL)**

You can test the viewablity by typing the path to the file in your browser (remember to clear cache inbetween tests).
Ex. _www.YOURDOMAIN.com/includes/modules/payment/linkpoint_api/xxxxxx.pem

For some reason there is no official support thread for this payment module.
The closest one is [http://www.zen-cart.com/forum/showthread.php?t=39031](http://www.zen-cart.com/forum/showthread.php?t=39031) and is LOCKED to new posts. :(
13 Jul 2006, 5:34 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Linkpoint / YourPay API - Security Related

Contribution updated here:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&products_id=179

Added .htaccess and index.html to prevent theft and discovery of .PEM file.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

13 Jul 2006, 6:27 PM
#3
lib99 avatar

lib99

Totally Zenned

Join Date:
Dec 2004
Location:
New York, USA
Posts:
965
Plugin Contributions:
0

Re: Linkpoint / YourPay API - Security Related

Great!! Thanks for adding that to the packaged contribution DrByte!! :thumbsup: