Unlocking any car from X brand in most of the world
本文为原文前 6,000 字符的节选翻译,完整内容请查看原文。
Unlocking any car from X brand in most of the world
解锁全球大部分地区 X 品牌汽车
November 7 2026 I’ve always had a soft spot for this particular car brand. Our family has owned a few of them over the years, and they’ve served us incredibly well. In 2023, I bought a new four wheel drive/SUV from them, and it was the first time I had access to their connected car platform.
2026 年 11 月 7 日,我一直对这个特定的汽车品牌情有独钟。多年来,我们家拥有过几辆该品牌的汽车,它们的使用体验非常出色。2023 年,我购买了他们的一款新款四驱/SUV,这是我第一次使用他们的车联网平台。
Having looked at platforms like this before (previous works), I was sceptical about how secure they really were. I suspected there was something there, but life kept getting in the way of actually looking. This July, I collaborated with Sam Curry to take a look at the security of a major automaker’s connected car systems. Throughout this post, I’ll refer to them simply as “the automaker”.
由于之前研究过类似的平台(过往工作),我对它们的安全性持怀疑态度。我怀疑其中存在问题,但生活琐事一直阻碍我进行深入调查。今年 7 月,我与 Sam Curry 合作,对一家大型汽车制造商的车联网系统安全性进行了研究。在本文中,我将统称其为“该汽车制造商”。
When you typically think of car hacking, it’s often easy to jump into the hardware side of things, but my background sits pretty squarely in compromising internet-facing web applications and infrastructure. Regardless of all the hardware bits and bobs, it all connects back to some service that, by design, has to be reachable from the internet.
提到汽车黑客攻击,人们通常很容易想到硬件层面,但我的背景主要集中在攻破面向互联网的 Web 应用程序和基础设施上。无论硬件设备如何复杂,它们最终都必须连接到某个根据设计必须能够从互联网访问的服务。
The journey started with a simple question: what infrastructure does the app talk to when I remotely unlock my car? To work this out, I downloaded the APK and decompiled it, eventually reconstructing the API requests that were being made.
研究始于一个简单的问题:当我远程解锁汽车时,应用程序会与哪些基础设施进行通信?为了弄清楚这一点,我下载了 APK 并对其进行反编译,最终重构了其发出的 API 请求。
Going through the code, the primary point of contact seemed to be assets under *.redacted-telematics.com.au:dartExecutor.executeDartEntrypoint(createDefault, CollectionsKt.r(gson.toJson(new GlobalConfigParams(false, g11, com.redacted.app.xcapp.a.f69866f, “X”, str)), new Gson().toJson(new ApiConfig(“https://api.redacted-telematics.com.au”, “https://api.redacted-telematics.com.au”, “https://api.redacted-telematics.com.au” …Almost every part of the consumer application called back to redacted-telematics.com.au. What else existed under this domain?
通过查看代码,主要的联系点似乎是 *.redacted-telematics.com.au 下的资产:dartExecutor.executeDartEntrypoint(createDefault, CollectionsKt.r(gson.toJson(new GlobalConfigParams(false, g11, com.redacted.app.xcapp.a.f69866f, “X”, str)), new Gson().toJson(new ApiConfig(“https://api.redacted-telematics.com.au”, “https://api.redacted-telematics.com.au”, “https://api.redacted-telematics.com.au” … 消费者应用程序的几乎每个部分都会回调到 redacted-telematics.com.au。该域名下还存在什么?
The admin toolRunning connected car infrastructure can be quite complex, and managing it requires a mix of admin tools, staging, dev, and QA environments, to make sure that customers get a clean experience. Whether all of that should be sitting on the public internet, available to anyone willing to do some basic reconnaissance, is a different story.
管理工具:运行车联网基础设施可能非常复杂,需要结合管理工具、预发布环境、开发环境和质量保证环境,以确保客户获得良好的体验。但所有这些是否应该放在公共互联网上,并对任何愿意进行基本侦察的人开放,则是另一回事了。
One asset caught my attention more than the others. admintool.redacted-telematics.com.au returned a page titled TEST HARNESS. Who can resist a subdomain with admintool in it?
有一个资产引起了我的特别注意。admintool.redacted-telematics.com.au 返回了一个标题为“TEST HARNESS”(测试工具)的页面。谁能抵挡住带有“admintool”字样的子域名的诱惑呢?
Visiting this subdomain presented a very plain and grey login screen, which didn’t exactly ooze quality, given it presented a logout button before we’d logged in.
访问该子域名时,出现了一个非常朴素的灰色登录界面,考虑到我们在登录前就看到了注销按钮,这看起来并不怎么专业。
I love that most single-page applications ship their entire JavaScript bundle even when all they need to render is a login page. Sure, some more modern frameworks split out JavaScript files so that they only serve what is necessary, but in this case, we could comb through the large JavaScript bundle to understand what this “admin tool” actually let you do.
我喜欢大多数单页应用程序的做法,即使它们只需要渲染一个登录页面,也会发送整个 JavaScript 包。当然,一些更现代的框架会拆分 JavaScript 文件,只提供必要的部分,但在这种情况下,我们可以仔细梳理庞大的 JavaScript 包,以了解这个“管理工具”到底能做什么。
Oozing qualityWho even reads JavaScript bundles?Turns out this admin tool let you do quite a lot. It had a rich API that let the automaker’s employees interact with customer accounts and production vehicles with very few restrictions. Reconstructing the requests, we found that a lot of these APIs needed no authentication beyond the hardcoded API keys sitting in the JavaScript bundle.
质量堪忧,谁会去读 JavaScript 包呢?事实证明,这个管理工具的功能非常强大。它拥有丰富的 API,允许汽车制造商的员工在几乎没有任何限制的情况下与客户账户和生产车辆进行交互。通过重构请求,我们发现许多 API 除了 JavaScript 包中硬编码的 API 密钥外,根本不需要任何身份验证。
For example, we could look up user accounts by email address:But that’s just not good enough. If we want to unlock any of their cars from just knowing the number plate, we’re going to need to do better than that.
例如,我们可以通过电子邮件地址查找用户账户:但这还不够。如果我们想仅凭车牌号就解锁他们的任何车辆,我们需要做得更好。
In Australia, a number plate gets you the VIN (vehicle identification number) fairly easily through state-based registration lookup sites. This isn’t really a security flaw. There are plenty of legitimate reasons to want a VIN, like checking a car’s true repair and insurance history before buying second-hand. If we could go from VIN to a subscriber or email, we’d complete the chain.
在澳大利亚,通过各州的注册查询网站,可以很容易地根据车牌号获取 VIN(车辆识别码)。这本身并不是一个安全漏洞。获取 VIN 有很多正当理由,例如在购买二手车前检查车辆真实的维修和保险记录。如果我们能从 VIN 关联到订阅者或电子邮件,我们就能完成整个链条。
Fortunately, there was an API that let you do exactly that:With the subscriber GUID, you could pull the full account details (including the user’s email via the /v1/account endpoint) like so:Well, I guess we have the first part of our chain sorted. Plate -> VIN -> Subscriber GUID -> User Account PII (email) registered on the automaker’s identity platform (ForgeRock OpenIDM).
幸运的是,有一个 API 正好可以做到这一点:有了订阅者 GUID,你就可以提取完整的账户详细信息(包括通过 /v1/account 端点获取的用户电子邮件),如下所示:好吧,我想我们已经理清了链条的第一部分。车牌 -> VIN -> 订阅者 GUID -> 在汽车制造商身份平台(ForgeRock OpenIDM)上注册的用户账户个人身份信息(电子邮件)。
Now, how do we send commands to any car we want? Surely this admin tool would let us do that? Unfortunately, no. It let us provision features to a car, add ourselves to a user’s account as a secondary user, and even generate remote access codes. But for all that functionality, none of it actually got us remote control of a vehicle.
现在,我们如何向任何我们想要的汽车发送指令呢?这个管理工具肯定能做到吧?遗憾的是,不行。它允许我们为汽车配置功能、将自己添加为用户账户的次要用户,甚至生成远程访问代码。但尽管有这些功能,它们都无法让我们真正实现对车辆的远程控制。
The identity platformSam and I then spent two weeks digging into how the automaker manages their central identity system: the software they use, the way commands are issued, and how consumers authenticate.
身份平台:随后,Sam 和我花了两个星期深入研究该汽车制造商如何管理其核心身份系统:他们使用的软件、指令的发布方式以及消费者的身份验证方式。
When a user goes through the authentication flow for the automaker’s mobile app, requests are made to login.redacted-identity.com.au, and after going through an MFA flow, a consumer auth token is finally issued. This auth token is then used for subsequent requests to api.redacted-telematics.com.au (both REST APIs and GraphQL). Once you have that auth token, it’s pretty much game over. You can control a user’s car (remote unlock/lock, horns, engine, etc).
当用户通过汽车制造商移动应用程序的身份验证流程时,请求会发送到 login.redacted-identity.com.au,在经过多因素身份验证(MFA)流程后,最终会颁发一个消费者身份验证令牌。该令牌随后用于对 api.redacted-telematics.com.au 的后续请求(包括 REST API 和 GraphQL)。一旦你拥有了这个身份验证令牌,游戏基本就结束了。你可以控制用户的汽车(远程解锁/锁定、鸣笛、启动引擎等)。
So if we could mint a token for any user, we’d finally be able to control anyone’s connected car. This is the angle we went for.
因此,如果我们能为任何用户伪造一个令牌,我们最终就能控制任何人的联网汽车。这就是我们采取的切入点。
The automaker is a heavy user of ForgeRock’s identity software (OpenAM/OpenIDM). This is the cornerstone of their authentication mechanisms. Pulling the subdomains for *.redacted-identity.com.au, we quickly found their OpenIDM instance at openidm.redacted-identity.com.au. This is the system that manages every identity registered on the automaker’s connected car platform.
该汽车制造商大量使用 ForgeRock 的身份软件(OpenAM/OpenIDM)。这是其身份验证机制的基石。通过拉取 *.redacted-identity.com.au 的子域名,我们很快在 openidm.redacted-identity.com.au 找到了他们的 OpenIDM 实例。这是管理该汽车制造商车联网平台上注册的每一个身份的系统。
This all clicked together when we were combing through the JavaScript files under *.redacted-telematics.com.au and we came across an absolutely cursed vendor JavaScript bundle that embedded admin credentials for OpenIDM 😱:Even t
当我们梳理 *.redacted-telematics.com.au 下的 JavaScript 文件时,一切都串联起来了,我们偶然发现了一个极其糟糕的供应商 JavaScript 包,其中嵌入了 OpenIDM 的管理员凭据 😱:甚至……