开发者

Securing a payment gateway POST

I'm setting up a payment gateway on our site that we can post information to via php (so all information is hidden from prying eyes) which will post to authorize.net, post back to our gateway and post back to our current page. The purpose for this is to give us a streamlined method of processing payments and easier debugging.

I have an auth key that is required to be posted to our gateway for the transaction to be processed. Is it worth it for me to secure a list of approved URLs to accept posts from, or is that too easily manipulated?

Do you have any other ideas on what I should focus on in regards to securing my gateway?

update

This gateway has a login/key pair used for authorize.net that it submits to. I have a 64 digit md5 encoded key that I use for domain.com to communicate with gateway.domain.com which happens of course over SSL. I'm inquiring as to whether that key is enough. Given, anyone with that key could run a transaction, but why would they... it would only be giving us m开发者_运维百科oney.


A list of approved URLs will do very little to protect your gateway:

curl -H "Referrer: http://happy.example.com" -D "pay_to=evil@example.com&amount=$100,000" http://example.com/gateway.php

You should take a look at using something like OAuth, where each request contains a unique token that only an authorized actor could provide.

Also remember that POSTing data only provides the illusion of security. It's easy (nay, trivial) to see what data is posted.

Oh, and this should be a no-brainer, but make sure you're using SSL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜