I'm just going to use sscrypto framework for it...

On Jan 29, 2009, at 12:39 PM, glenn andreas wrote:


On Jan 29, 2009, at 12:20 PM, Mr. Gecko wrote:

Hello, I'm trying to make my own licenses system and I need MD5 to verify that the key in the file is right and isn't a fake. what I've got now is a NSTask that runs md5 -s salt+key+salt2 and it works, but I am getting a leak with NSTask...


Regardless of any other problems, you've introduced a serious weakness - a hacker just needs to temporarily change /sbin/md5 to a shell script that cats the expected output. For that matter, they could easily edit the binary to change the string "/sbin/md5" to another path that does the deed (to avoid having to mess with sbin each time)

If you are trying to write secure code, don't execute external binaries that you have no control over and expect it to be secure.


Glenn Andreas                      [email protected]
<http://www.gandreas.com/> wicked fun!
JSXObjC | the easy way to unite JavaScript and Objective C





_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to