Menu

A Decade-Old Bug Owned the Elixir Registry in 13 Minutes
📰

A Decade-Old Bug Owned the Elixir Registry in 13 Minutes

DEV Community: security·Mohammad Taha Azizi Ahad·10 days ago
#JrbCefTE
#devtosecurity#devto#dev#registry#team
Long article (1744 words) — no AI summary yet.
Reading 0:00
15s threshold

A Decade-Old Bug Owned the Elixir Registry in 13 Minutes

On Monday evening, someone sent 69 requests to Hex.pm and walked away with operating system command execution on six production servers. The whole thing took 13 minutes. The bug they used had been sitting in the code since February 2016.

I do not write Elixir. I have never shipped a line of it. But I build a messenger, and my messenger pulls dozens of packages from a registry every time I run an install. So when a package registry gets owned, I pay attention, because the registry is the one place in my whole build where I have decided to simply trust someone else.

Here is what happened, what the Hex team did right, and the part that should bother you more than the hack itself.

What Hex.pm is, and why it matters to you anyway

Hex.pm is the package registry for Elixir and Erlang. Every mix deps.get in the world talks to it. It is the npm of that ecosystem, just smaller and quieter, which is exactly why this story is interesting.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.