Skip to content

Authenticate pruning metadata to Core release #207

Description

@BenWestgate

On first install, install-core downloads chainparams.cpp from the mutable bitcoin/bitcoin master branch independently of the authenticated Bitcoin Core release. It extracts numeric storage-size values from that unsigned file and uses them to calculate the prune value written to settings.json.

Affected code: bails/.local/bin/install-core.

Impact: manipulated sizing metadata can disable or badly size pruning, allowing Bitcoin Core to exhaust Persistent Storage on constrained devices and cause denial of service.

Expected fix: obtain sizing metadata from the exact authenticated Bitcoin Core release/tag, validate the parsed values against conservative local bounds, and fail safely to pruning if authenticity, parsing, or version matching fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions