This security company hacked Apple services twice in a row
The security team of Resecurity has published a report on how they accessed one of the Apple API’s which is responsible for the Apply Payment supplies.
Finding their target
The security team of Resecurity quickly identified an domain of interest, the domain in question provides Apple Pay Supplies, which allows the users to order Apple related Kits such as `Apple Pay Decals Kit` and `Apple Pay Signage Kit`.
Resecurity is a cyber security company that delivers a unified platform for endpoint protection, risk management, and threat intelligence for large enterprises and government agencies worldwide.Resecurity
Their initial access point
Once on the site, the security team created an order, in the order URL, they noticed that the orderid string could be bruteforced. They created an quick tool and after a while, they noticed that this was an dead end as the data was not provided via the browser as they would get a blank page.
They continued to investigate the site and they found an API. The API didn’t have the needed checks to counter the previous steps taken by the team of Resecurity and by bruteforcing the API they were actually able to retrieve data. This attack allowed anyone to view the post address of the orders which were made in the past. Resecurity of course reported this and Apple fixed the bug.
The security team continued to check the site after the fix, and again they were able to brute force the orderID by encrypting their queries with CryptoJS. This was also reported to Apple. Apple responded and performed the fixes on this.
We analyzed how the Encryption is implemented within the Application, and with the help of our Friend Max (h1 Profile), We wrote a script to encrypt the required values using the CryptoJS library as the Application did, we could then brute force the Order Number again.Resecurity on the second fix of Apple