Lack of SSL Pinning on POS Application ( iOS )
The iOS POS app does not verify the SSL certificate belongs to Shopify, relying only on the OS certificate store. An attacker who installs a malicious certificate could perform MiTM attacks.
- Disclosed after 41 days
Description
Given that this is a POS application and handle CHD, cryptographic security is of most importance. Applications such as Square, Amazons POS, etc. have already implemented this. The iOS application is correctly checking for SSL certs using the os keychain, but due to the lack of checking for wether or not the certificate actually belongs to Sopify, the mobile app is vulnerable to MiTM attacks in which an attacker is able to install or force the user to install a certificate on the device. Given today's known issues with CAs and the lack of trust they are generating lately, Pinning on mobile devices is a technique that is becoming a standard practice. SSL Pinning is a technique for which you pin your applications or clients to one or more SSL Certificates, keys or CAs. This technique allows you to perform the normal SSL chain of trust exchange during SSL transmissions, but also checks that the SSL certificate or key within that cert is actually the one you know and trust.
Vulnerable platform
iOS - entire application.
Proof of Concept
A simple way of testing this will be to use a tool like Burp Proxy and/or mitmproxy. Step 1) install the "malicious" cert on device and trust it. An attacker can easily trick a user to install a profile, and/or malicious applications could potentially do it as part of installation. Step 2) Proxy all the communication through them. Step 3) You will confirm that your application is no longer using the Certificate it should trust.
Recommendation
Even though this is not a high risk vulnerability, lack of SSL Pinning certainly creates an unnecessary risk for applications on mobile devices. It is our recommendation that Shopify implements SSL Pinning on iOS, and do not trust the os-level certificate store since other applications might have control over it and there is no guarantees they won't be maliciously altered. Additionally, you might have other types of attacks in which CA issue wild-card certificates to random entities, as it was recently seen with Google and a Chinese CA. For more information please refer to https://www.owasp.org/index.php/Certificate_and_Public_Key_Pinning
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the app relies solely on the OS certificate store and does not implement certificate or public key pinning to ensure the certificate belongs to Shopify.
Impact
An attacker who can install a malicious certificate on the device could perform MiTM attacks, though the report notes this is not a high risk vulnerability.
What the attacker needed
Attacker can install a malicious certificate on the device; user trusts the installed certificate
The fix
Shopify should implement SSL Pinning on iOS and not trust the OS-level certificate store.
How it was found
- Install a malicious certificate on the device and trust it.
- Proxy all communication through a tool like Burp Proxy or mitmproxy.
- Confirm that the application no longer uses the certificate it should trust.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When your phone connects to a website, it checks that the website's certificate is signed by a trusted authority. This app only checks that the certificate is trusted by the phone's operating system, not that it specifically belongs to Shopify. So if someone tricks you into installing a fake certificate, they can pretend to be Shopify and read your data.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.