E-junkie - We help you sell online
World Class Solution - Damon @ PayPal
Sell & promote your productsJoin affiliate programs offered by sellers Shop Community
community home . login . register . forums . submit content
 

E-junkie Ecommerce Forums » E-junkie Discussions

Tag Cloud for this topic:

Security Question regarding Handhshake protocol



GuestUser
member
Posts: 808


Hi,
I was just reading http://www.e-junkie.com/ej/help.selling-codes.php and I really liked the way you had the registration codes set up. That is, until I looked at it further.

Based on the example, the handshake is _always_ going to be the same. Therefore, very easy for someone to spoof.
Also, the idea of having the ejunkie login/password embedded in the php file makes me cringe (although, you could figure out the md5 of the pw and just use that). Would it be possible to make it a little more sophisticated? I was thinking along the lines of using a 'shared secret' key + hmac. The handshake would then be: hmac('shared secret', 'transaction id') If php is your thing, there is code here: http://www.php.net/sha1 This will prevent someone from just spoofing the handshake.

What are your thoughts about this? The current implementation is rather weak. Unless I'm missing something??
Thanks, I look forward to hearing back from you!


#
POSTED ON: October 22, 2007 @ 14:12 GMT -7
MODIFIED ON: October 22, 2007 @ 14:14 GMT -7




E-JunkieExpert
member
Posts: 804


I do agree with you more or less apart from the fact that current implementation is rather weak. The shared secret is going to be same but it's never public unless someone has access to your server logs, and if buyers can breach your server security then they already have the access they need.

As for storing the password in the script, as you said you can simply just store it's md5 in the php script. Better yet, you can simply store the shared secret in the php file.

That said, we will eventually start passing HMAC hash as well but handshake will stay the same to be backward compatible.


#
POSTED ON: October 22, 2007 @ 14:14 GMT -7


You must be logged in to make a post. Please click here to login.

about | contact | resell | terms of service | privacy policy © 2008 19.5 Degrees. All rights reserved.
Designated trademarks and brands are the property of their respective owners.
Use of this Web site constitutes acceptance of the Terms of Service and Privacy Policy.
PayPal Certified Integration Google Checkout Certified Integrattion 30 Day Money Back Guarantee
 Share this page!