fix(eip712): reject nonempty fee granter on EIP-712 signing paths #1107
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 165 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.306
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #1107"
general
weight: 0.35
thomas-nguy
What
Reject transactions with a nonempty
AuthInfo.Fee.granteron every EIP-712 signing path: the legacyExtensionOptionsWeb3Txante verifier and the four sign-doc decoders behind theethsecp256k1pubkey fallback (amino and protobuf, current and legacy).Issue
EIP-712 typed data commits
Fee.amount,Fee.gasand (legacy)Fee.feePayer, but neverFee.granter. The verifier rebuildsStdFeefrom amount and gas only, so a relayer can setgranterafter signing and the signature still verifies.DeductFeeDecoratorthen charges the granter throughx/feegrant. The mutation reproduces on the legacy Web3Tx path and on the protobuf sign-doc fallback. The amino fallback only failed by accident, because go-ethereum rejects extra message keys.Adding
granterto the typed schema would change the hash every existing wallet produces, so the fix rejects the field instead. Same approach as thetimeout_heightguard in #1074.Solution
ante/cosmos/eip712.go: rejecttx.FeeGranter()nonempty next to thetimeout_heightcheck.ethereum/eip712/encoding.go,encoding_legacy.go: rejectfee.granterin the amino decoders andAuthInfo.Fee.Granterin the protobuf decoders.