Vulnerability · Published Aug 26, 2024 · Assigned by GitHub_M
CVE-2024-45036Improper Access Control Vulnerability When Accessing a Maliciously Crafted Tophat Link
Medium 4.3
In plain English
A medium-severity improper authentication in tophat from Shopify. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 21% of all known vulnerabilities).
Official description
Tophat is a mobile applications testing harness. An Improper Access Control vulnerability can expose the `TOPHAT_APP_TOKEN` token stored in `~/.tophatrc` through use of a malicious Tophat URL controlled by the attacker. The vulnerability allows Tophat to send this token to the attacker's server without any checks to ensure that the server is trusted. This token can then be used to access internal build artifacts, for mobile applications, not intended to be public. The issue has been patched as of version 1.10.0. The ability to request artifacts using a Tophat API has been deprecated as this flow was inherently insecure. Systems that have implemented this kind of endpoint should cease use and invalidate the token immediately. There are no workarounds and all users should update as soon as possible.
Affected products (as reported)
Weakness: CWE-287 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
References
- https://github.com/Shopify/tophat/security/advisories/GHSA-p7xh-6hjr-mmg6 x_refsource_CONFIRM
- https://github.com/Shopify/tophat/pull/10 x_refsource_MISC