Giter VIP home page Giter VIP logo

Comments (3)

austintgriffith avatar austintgriffith commented on August 9, 2024

Sorry for the long delay. What is the status of this issue? Should we put a PR in on the contract?

from burner-wallet.

riusricardo avatar riusricardo commented on August 9, 2024

@catageek can you explain a little more?

The signature can then be used by the attacker in claim() after 100 blocks.

This part is not clear. How can it be used after 100 blocks? From my understanding, it gets locked in the contract.
I think that a fix to create a unique key even if an id is reused could be:
keccak256(id, destination, nonce, contract address)

from burner-wallet.

catageek avatar catageek commented on August 9, 2024

@riusricardo It's a misunderstanding of my part. In fact the Claim() can be done immediately before the expiration delay (which is 100 blocks).

I think that a fix to create a unique key even if an id is reused could be: keccak256(id, destination, nonce, contract address)

Yes, contract address being the address of the Wallet. To avoid signature domain collision, each contract should have a unique key that no other contract will generate, so keccak256(Id) in send() should be keccak256(Id, nonce, factory contract address, msg.sender) to be sure that the data is signed for your contract and not replayed from something else.

EDIT: I changed the order of arguments to keccak256(Id, nonce, factory contract address, msg.sender) in send() to never collide with keccak256(Id, destination, nonce, contract address) in claim()

from burner-wallet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.