fix: fail closed for RWA geoblocking#7621
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Deploying explorer-dev with
|
| Latest commit: |
84e4a42
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d8da9364.explorer-dev-dxz.pages.dev |
| Branch Preview URL: | https://deepsec-medium-05-rwa-geoblo.explorer-dev-dxz.pages.dev |
Deploying swap-dev with
|
| Latest commit: |
84e4a42
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://508c4090.swap-dev-5u6.pages.dev |
| Branch Preview URL: | https://deepsec-medium-05-rwa-geoblo.swap-dev-5u6.pages.dev |
✅ AI Review (Codex GPT-5, worked 2m): no new non-duplicate findingsReview completed. I found no new non-duplicate comments worth posting. Review scope and related contextRelated context checked:
|
|
d157226 to
c7ef197
Compare
c7ef197 to
f04d966
Compare
f04d966 to
856978f
Compare
856978f to
d20d9b1
Compare
…ardening' into deepsec/medium-05-rwa-geoblock-hardening # Conflicts: # apps/cowswap-frontend/src/locales/en-US.po # apps/cowswap-frontend/src/modules/rwa/hooks/useRwaTokenStatus.ts # apps/cowswap-frontend/src/modules/tradeFormValidation/services/validateTradeForm.test.ts # apps/cowswap-frontend/src/modules/tradeFormValidation/services/validateTradeForm.ts # libs/tokens/src/hooks/useRestrictedTokensCache.ts
…ardening' into deepsec/medium-05-rwa-geoblock-hardening
What changed
Why
RWA checks fail open before restricted-token metadata is available,RWA trade confirmation can fail open while restriction metadata is unavailable, andRWA restricted-token checks fail open while lists load or partially fail.Only one side of a two-token RWA trade is evaluated,EthFlow swap continuation bypasses RWA consent gate, andAccount-proxy verification failures are collapsed into an unblocked state.Token-list geoblocking can be bypassed by spoofing widget mode or blocking geo lookup.RWA/geoblock enforcement fails open when client flags or restricted-token data are unavailableandRWA list blocking fails open when geolocation or the feature flag is unavailable: unresolved and failed client states now fail closed, but a deliberately false or tampered client-side flag is not a trusted enforcement boundary.RWA geoblock and consent enforcement depends on client-side feature flag state. Closing that remaining HIGH finding requires backend or orderbook enforcement.QA Testing
Preview URL QA:
Developer verification:
Reviewer note:
Preview URLs