Science & Tech · Cybersecurity · 4 hrs ago

Flaw exposed more than 1,500 npm packages to takeover

Flaw exposed more than 1,500 npm packages to takeover

A flaw put more than 1,500 npm packages at risk of being taken over, according to security researchers at Bloom Security.

The packages use npm, a service for sharing software code, and GitHub’s Trusted Publishing feature to publish updates without long-lived access tokens.

Attackers could claim an abandoned GitHub repository name and use it to get permission to publish a package they did not own.

A harmful update could include code that runs automatically when people install it.

GitHub says it changed the system so unvalidated publishing setups expire after 48 hours and cannot authorize publishing.

It is unclear whether the change also protected setups that had already published successfully, and researchers do not know whether attackers used the flaw.

The exposed packages had more than 10 million downloads combined, making the flaw a potential risk for people and software that depend on them.

What people are saying

Golan Myerssecurity researcher at Bloom Security
We took this into account. Everything we considered vulnerable was pertaining to claimable slugs.
via Help Net Security
GitHub spokespersonspokesperson for GitHub
We learned of this event through our bug bounty program and worked to validate the report and ship fixes to remediate the issue. Unvalidated Trusted Publishing configurations now expire 48 hours after creation and can no longer authorize publishing. This limits the risk of trusting a repository or project name that changes ownership.
via Help Net Security

Sources

Related news