This repository has been archived by the owner on Jan 22, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Limit extracted data size from genesis.tar.bz2 and snapshot.tar.bz2 #8427
Comments
@ryoqun - can you take this one please? |
Sure! I think this attack is one of those zip bomb attacks. |
@sakridge I think this fix will be really tiny but it would mildly conflict with split multi-file snapshot download you're working on now? |
@ryoqun shouldn't be a problem, I think the conflict will be small. |
With the |
The tarballs are still downloaded from any rando RPC node, so they can still blow up the disk before the actual contents (genesis/snapshot hash) can be approved or rejected |
4 tasks
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
As a DoS attack an RPC node could potentially serve up a genesis.tar.bz2 or snapshot.tar.bz2 that fills the disk of the victim validator, by building a file full of 0s or some other content that compresses very well.
The text was updated successfully, but these errors were encountered: