The Hex platform, which specializes in managing software packages for the Elixir and Erlang programming languages, has been subjected to a cyberattack involving unauthorized access to its web servers, raising concerns about the potential leakage of sensitive user data.
The incident occurred on November 23, when attackers exploited a security vulnerability on the hex.pm website to execute code on the servers. The platform's management stated that the attack was detected and blocked immediately. The security flaw was addressed and servers were updated within just twenty minutes of the start of the attack, which involved sending 69 malicious requests targeting six web servers between 18:16 and 18:29 UTC, before replacement, updated servers were deployed to reject attack payloads and fully activate firewall rules.
Impact and Potentially Compromised Data
Although the platform announced that no evidence was found to suggest that the attackers modified software packages or databases, or maintained persistent access to the systems, it noted that the possibility of database contents being accessed cannot be ruled out. This potentially affected data includes email addresses, password hashes, API keys, user sessions, two-factor authentication (2FA) secrets, and audit logs.
Because the attackers' commands allowed for the reading of credentials used by the servers, the platform, as a precautionary measure, replaced all credentials for storage, content delivery networks (CDNs), email, databases, session signing keys, and access tokens. This action resulted in all users being automatically logged out of the hex.pm website and platform clients.
Precautionary Measures and Recommendations for Users
In light of these developments, Hex management has recommended that all account holders change their passwords and reset their two-factor authentication settings immediately. They also emphasized the necessity of avoiding fetching packages from any third-party mirrors and relying exclusively on the official repository (repo.hex.pm) until new versions of Hex clients are available that support the new registry signing system currently under development.
Furthermore, the investigation led to the discovery of vulnerabilities related to the same programming pattern in other frameworks and libraries in the Elixir language, including the Ash framework and the db_connection and flop libraries, for which the developers have quickly issued security patches to address remote code execution and SQL injection vulnerabilities.