Skip to content

Error in case the delegated role is missing from the snapshot#652

Merged
rdimitrov merged 1 commit intomasterfrom
fix-nil-reference
Oct 1, 2024
Merged

Error in case the delegated role is missing from the snapshot#652
rdimitrov merged 1 commit intomasterfrom
fix-nil-reference

Conversation

@rdimitrov
Copy link
Copy Markdown
Contributor

The following PR fixes the issue where go-tuf will SIGSEGV if a top-level target delegates to another role but that role is not listed in the snapshot metadata.

This is highly unlikely to happen because the attacker must have the ability to create a delegation to a new role in the repository and must be able to prevent this delegation from being included in snapshot metadata in the repository. This implies a significant compromise of a repository. If these requirements are met and client tries to download anything delegated to the new role, it will segfault. In any case it's worth fixing it.

Thanks to @jku for reporting this issue! 👏

@rdimitrov rdimitrov requested a review from a team as a code owner October 1, 2024 12:00
@rdimitrov rdimitrov self-assigned this Oct 1, 2024
@rdimitrov rdimitrov merged commit 4eb06c8 into master Oct 1, 2024
@rdimitrov rdimitrov deleted the fix-nil-reference branch October 1, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants