Apple offers temporary fix for in-app purchase hack ahead of iOS 6 patchApple on Friday issued a note to developers outlining a fix for an in-app purchasing exploit that allowed for the free download of for-pay content, and also announced that the loophole will be plugged when iOS 6 is released this fall.
In its support document for iOS app developers, reports CNET, Apple recommends that apps featuring in-app purchases follow a set of guidelines that includes confirming orders with the company's new receipt system.
The receipt validation protocol, which Apple unveiled on Wednesday, attaches a "unique identifier" to in-app purchase receipts. This tactic effectively thwarts the recently-discovered workaround that validated dubious "purchases" by routing them to a specialized DNS server and spoofing digital receipts. Previous to the discovery, Apple sent generic receipts containing no unique user data.
"We recommend developers follow best practices at developer.apple.com to help ensure they are not vulnerable to fraudulent In-App purchases," said Apple spokesman Tom Neumayr. "This will also be addressed with iOS 6."
Friday's document includes instructions on how to setup and use Apple's new validation system as well as how to validate transactions that have already gone through.
From the document:
A vulnerability has been discovered in iOS 5.1 and earlier related to validating in-app purchase receipts by connecting to the App Store server directly from an iOS device. An attacker can alter the DNS table to redirect these requests to a server controlled by the attacker. Using a certificate authority controlled by the attacker and installed on the device by the user, the attacker can issue a SSL certificate that fraudulently identifies the attackers server as an App Store server. When this fraudulent server is asked to validate an invalid receipt, it responds as if the receipt were valid.
As part of the damage control measures, Apple allowed apps to access certain non-public APIs pertaining to verification and security services.
Along with the support document Apple sent out an email to developers noting the exploit will be patched in iOS 6 when the mobile operating system is released alongside an expected next-generation iPhone sometime this fall.
On Topic: General
- This week on AI: 'Apple Car' delayed, new iOS 10 & macOS betas, 'iPhone 7' leaks & more
- Hacker who targeted celebrity Apple and Google accounts sentenced six months in prison
- US appeals court vacates Apple win in Unwired Planet patent suit
- Apple retakes top spot in FutureBrand 'perception strength' rankings
- Why Alphabet's Nest doesn't (and probably won't ever) support Apple's HomeKit