Skip to content

fix(privy): secure SIWE verification with domain validation#1545

Open
maho0638 wants to merge 1 commit into
base:masterfrom
maho0638:patch-6
Open

fix(privy): secure SIWE verification with domain validation#1545
maho0638 wants to merge 1 commit into
base:masterfrom
maho0638:patch-6

Conversation

@maho0638
Copy link
Copy Markdown

Security Fix

Addresses the cross-domain replay attack vulnerability in the Privy integration guide.

Changes

  • Added import { verifySiweMessage } from 'viem/siwe';
  • Replaced client.verifyMessage with verifySiweMessage.
  • Added domain and nonce validation parameters.

This ensures the signature is verified against the correct domain and prevents nonce reuse.

Replaced client.verifyMessage with verifySiweMessage to prevent cross-domain replay attacks. Added domain and nonce validation.
@cb-heimdall
Copy link
Copy Markdown
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

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.

2 participants