Skip to content

Fix: Enforce canonical on-chain identity derivation in mintSBT#6

Open
NetGakarot wants to merge 2 commits into
SoulboundSecurity:masterfrom
NetGakarot:master
Open

Fix: Enforce canonical on-chain identity derivation in mintSBT#6
NetGakarot wants to merge 2 commits into
SoulboundSecurity:masterfrom
NetGakarot:master

Conversation

@NetGakarot

Copy link
Copy Markdown

Summary

This PR implements the mitigation for the Canonical Identity Derivation.

Changes Made

  • SoulBoundToken.sol:
    • Removed _encryptedAccountId from the mintSBT parameter list to prevent arbitrary identifier injection.
    • Enforced on-chain deterministic derivation of the encryptedAccountId using msg.sender, SBF_ALPHA_V1 and block.chainid.
  • PROTOCOL_SPEC.md: Updated the Mint Flow documentation to reflect the new internal derivation step.

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.

1 participant