User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 14

Thread: Secure in-app purchases

  1. #1
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    949
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Post Secure in-app purchases

    A lot of users in my online game have way too much currency, i started logging it on my server, and most purchases, especially the big ones, are illegitimate. Apparently it's done through something called freedom or freecard, a hack that enables users to buy in-app products for free. Whenever i see someone buying 4-5 of my biggest purchases in a row, i am manually disabling features for that user, but i am looking to secure it properly and automatically. (so far i have taken action against 37 of the worst offenders)

    Is there a way my server could verify if a purchase is valid? i imagine i could send a get request to my own server after retrieving purchased items from inventory query and then delay consuming the products until i get a response. but i haven't figured out how my server can tell if it's valid or not (using php), i can obviously tell by manually looking at my google merchant account. but is it possible to extract this data to my own server? or secure it another way?

  2. #2
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    Location
    www.anathemagame.com
    Posts
    1,105
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    I just read about Freedom. +1 to secure IAPs.

  3. #3
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,826
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)
    Interesting topic.
    Sure seems like something Google needs to fix at the base of the problem.
    I am not even sure how you can counter this since its a general fault of the Google in-app purchasing system.

    If there any advice you have found from some of the big Android developers on how they prevent the fault?
    Maybe we could put together some advice for other Fusion users on how to protect their apps.

  4. #4
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    Sorry, i had been absent, some problem with my laptop (Vista) during the whole weekend but now i almost corrected them.

    inside In-App Object you have one action where you set a developer Payload where you can add a string that will be saved when you do the purchase process, and can be different or set as you need it, this is the best way to control the purchase process, also you can save data and save the string you use to register the purchase among a variable name, this saving process save the string in a private way (encrypted).

    What i will add inside the android object is a new expression to read the email account used to buy the goods that you may also use to verify the origin.

    if you find any other way implemented by others, please let me know
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleXNA Export ModuleFirefly 3D ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    piscesdreams's Avatar
    Join Date
    Dec 2007
    Location
    www.anathemagame.com
    Posts
    1,105
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Excellent. Thanks Fernando!

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    949
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    freedom already got the payload cracked, it's returning the same payload as i am giving it. getting the users email wouldn't really help me i think..

  7. #7
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    it does if you do a dynamic payload, not the same a unique payload for each purchase
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  8. #8
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    949
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    that doesn't make sense to me.. since the first purchase (with unique payload) goes through.
    but i found one way that might be very effective, the legit order id's are long floats, but the freedom order id's are integer, i just check if the order id string is longer than 25, if it's not, then i consume without adding in-game data and display an error.

  9. #9
    Clickteam Clickteam
    Fernando's Avatar
    Join Date
    Dec 2006
    Posts
    7,376
    Mentioned
    298 Post(s)
    Tagged
    4 Thread(s)
    try and let us know, how it goes.
    Regards,


    Fernando Vivolo

    ... new things are coming ...

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Muldoon's Avatar
    Join Date
    Dec 2013
    Posts
    36
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I found this posted HERE:

    Check the orderId returned. Correct orderIDs are of the form: [merchant ID].[actual order ID]
    Find your merchant ID in your Wallet account (last line on order page) and check in your app if it's the same.
    As the Freedom hack cannot by any means know your Wallet ID, the returned ID of hacked payments differs.
    Just refuse those payments.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Get Object with https:// (secure)
    By manwich in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 24th May 2013, 02:04 PM
  2. I'm looking for a secure way to connect the users
    By Nekorai in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 25th March 2013, 09:25 PM
  3. In-game purchases, NOT in-app purchases.
    By XStar in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th September 2012, 08:44 PM
  4. How secure are extensions like URL Encoder?
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 3rd March 2009, 05:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •