Alerts This Week
Warning Icon 1 677
Alerts This Week
Warning Icon 1 677

Rust: Crates.io Token Revocation Due To Serious Security Flaw

32.Lock Code Circular Esm H500

The project behind the Rust programming language has revoked all API keys from its package web app. These API keys were not randomly generated and were being stored in plain text.

 

The key revocation addresses a serious vulnerability affecting Rust's package system due to two factors. First, Rust developers learned that the PostgreSQL random function it used to generate API keys or tokens for crates.io was not a "cryptographically secure" random-number generator. 

"In theory, an attacker could observe enough random values to determine the internal state of the random-number generator, and use this information to determine previously created API keys up to the last database server reboot," it states. 

Your message here