# Forbidden encoding blocks creation

Identifier built from user input plus a delimiter that the downstream mint or registry validator rejects, blocking all creation

_Area: Smart contract access control and control flow. Seen in 3 disclosed reports; 2 confirmed bounties: $1,500 and $6,000; latest 2025-04-10. Updated 2026-11-17._

## How it works
A creation path builds an identifier (token ID, name, key) by concatenating user input with a delimiter or suffix, then hands it to a downstream mint or registry that enforces its own character rules. If the delimiter or any injected character is on the downstream forbidden list, every call aborts. The assumption that breaks: the caller assumes any string it composes is acceptable downstream, but the validator's rules were written for a different producer and were never reconciled with the caller's format. Because the rejection is unconditional, the failure is total, not partial: no input can succeed [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-02.md).

## Where it shows up
- Identifier construction like `domain + ":" + timestamp` feeding a mint/registry call [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-02.md).
- Downstream validators (`assert_token_id`, name/URI checks, key-format checks) with character allow/deny lists.
- Any place a caller injects a delimiter, prefix, or suffix the validator did not anticipate.
- Registration, minting, and naming modules that compose IDs from user input plus metadata.
- Tests that only exercise the happy path through one layer, never the composed value against the validator.

## How to review
Trace the exact string that reaches the validator, not the string the caller intended. The invariant: for every input the creation path accepts, the composed identifier must satisfy the downstream validator's character and format rules. Check the validator's forbidden set against every character the caller adds (delimiters, separators, timestamps, prefixes). Confirm at least one end-to-end test drives a real input through composition into the validator and succeeds. A creation path with no passing end-to-end test is a red flag.

## How finders spotted it
- Ran the module's own end-to-end unit test, saw it abort inside the stdlib validator, added a debug print of the constructed name, and traced the call stack from the registration entry point through the mint call to the character check [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-02.md).

## Variants seen
- Delimiter injected by the caller (`:`) is explicitly forbidden by the stdlib NFT validator, so every registration reverts [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-02.md).

## Impact and severity
Complete denial of the feature: all domain registrations permanently blocked, no workaround from user input [E3](https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-02.md). Severity is high because the failure is total and unconditional, though it is a functional DoS rather than data exposure. Impact scales with how central the blocked creation path is to the protocol.

## Seen in real software
Open-source packages and projects, and products, where this pattern was found. If the target runs one, compare the version it runs with the fix.
- **Istio** (multicluster secret loader) fixed in 1.12.1: Remote code execution in Managed Anthos Service Mesh control plane. Report: https://bugbountylibrary.com/r/blog%3Alf-lc-vrp-203177829.md

## Evidence
- E1: https://bugbountylibrary.com/r/blog%3Alf-lc-vrp-203177829.md
- E2: https://bugbountylibrary.com/r/h1%3A98259.md
- E3: https://bugbountylibrary.com/r/c4%3A2025-01-initia-move%3AH-02.md
