News for hackers. Stuff that matters.
Re:In second largest DeFi hack, Blockchain Bridge loses $320... by pcmonk on Wednesday February 02, 2022 @10:23PM (#30188148)
I found it interesting that the patch was apparently published before it was exploited: https://twitter.com/kelvinfichter/status/1489050921938132996
Re:In second largest DeFi hack, Blockchain Bridge loses $320... by astrange on Wednesday February 02, 2022 @11:13PM (#30188565)
I wonder how their deployment system works. They should probably be deploying security patches before they land in a public repo.

Also, if it auto deploys from a git repo, then you just need a committer's git keys to exploit it. Having code auditing and multisig git tags has to be rare.

Re:In second largest DeFi hack, Blockchain Bridge loses $320... by 8note on Wednesday February 02, 2022 @11:28PM (#30188679)
Doesn't it have to land in a public repo before it can be patched?

Somebody else is going to run that code publicly, and each person who runs it will find out about the patch with some time delay

Re:In second largest DeFi hack, Blockchain Bridge loses $320... by runeks on Thursday February 03, 2022 @02:51AM (#30189835)
> Doesn't it have to land in a public repo before it can be patched?

No, they could have patched the contract before publishing the commit on GitHub. Granted, an attacker could watch the chain for such "contract upgrade" transactions and attempt to front-run it, but that would be a lot harder than just discovering undeployed security patches on GitHub.

Re:In second largest DeFi hack, Blockchain Bridge loses $320... by astrange on Wednesday February 02, 2022 @11:29PM (#30188691)
If it's a library normally you'd share a security patch with important customers privately, if they're otherwise going to lose $300 million. I thought this was the service's own repo though.
Re:In second largest DeFi hack, Blockchain Bridge loses $320... by kuschku on Thursday February 03, 2022 @04:48AM (#30190587)
Smart Contracts always have their source openly available on the chain, so it’s not that easy
Re:In second largest DeFi hack, Blockchain Bridge loses $320... by astrange on Thursday February 03, 2022 @05:35PM (#30200008)
But that's also the executable form of it - just patch it first, and then people can't hack it when they see fixes land in the +1 release somewhere else.
Re:In second largest DeFi hack, Blockchain Bridge loses $320... by jazzyjackson on Thursday February 03, 2022 @06:12AM (#30191051)
I could be wrong but I believe only the compiled machine code is on-chain, you don't have to publish the source

this just happens to be a project that does

Re:In second largest DeFi hack, Blockchain Bridge loses $320... by resonious on Thursday February 03, 2022 @04:15AM (#30190394)
Yeah that definitely smells like someone was watching the commits for a security patch so that they could exploit it quickly before it deploys.