Attacker runs commands on Elixir package registry through 2016 flaw

Picture for this story, with the CyberUnscripted cat hidden in it
Staged picture. The blue one is ours.

Six Hex.pm servers ran an attacker's operating system commands on Monday.

Maintainers patched every server within about 15 minutes of the first malicious request.

Hex.pm is where Elixir and Erlang developers fetch dependencies. A safety check removed in February 2016 let an unauthenticated request trigger an error whose reporting code ran a function of the attacker's choice. Three servers joined during the attack when a restart brought up machines still on the vulnerable build. Turning it off and on again, for once, made things worse.

Checks found no sign of altered packages, but the team cannot rule out that email addresses, password hashes and two factor secrets were read.

The registry signing key could also have been read and hasn't been replaced. Until a new client ships within days, the advice is to fetch packages only from repo.hex.pm, not mirrors.

Discuss on TelegramAll stories

Based on reporting by The Hacker News.