CVE-2020-27199 (Magic Home Pro - Authentication Bypass)
The Magic Home Pro mobile app's API allowed any authenticated user to enumerate other users' devices by MAC address and forge a JWT with the 'None' algorithm to impersonate them. An attacker could then add a victim's device to their own account, gaining full control of the victim's device group.
9lyph.github.io
Published on 9lyph.github.io
Multiple vulnerabilities found in the Magic Home Pro Mobile Application which is used to interface with the JadeHomic LED Strip RGB Kit. The most significant of these vulnerabilities is an Authentication Bypass (CVE-2020-27199) vulnerability, which ultimately allows for full takeover and control of a victims’ entire…
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the server accepted JWTs with the 'None' algorithm and did not enforce authorisation checks on device enumeration and sharing endpoints.
Impact
An attacker with a valid account could take full control of a victim's entire device group, including switching devices on and off.
What the attacker needed
A valid registered account; rooted Android device for analysis; victim's MAC address known or enumerable
How it was found
- Authenticate to the API with a valid account to obtain a token.
- Enumerate MAC addresses via the getBindedUserListByMacAddress endpoint to obtain userID and uniID.
- Forge a JWT using the enumerated userID and uniID with the 'None' algorithm.
- Send a POST request to /app/shareDevice/ZG001 with the forged token and the attacker's email as friendUserID to take over the device.
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 write-up has not been written yet. The Original tab links to the source.
The app talks to a server that trusts a token (a small piece of data proving who you are) without checking its signature. Because the token's algorithm could be set to 'None', an attacker could make their own token claiming to be someone else. They also found an endpoint that leaked other users' identifiers, making the forgery easy.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.