Closed rekmarks closed 3 years ago
deriveKeyFromPath takes a fullPath parameter without validating that the string is formatted correctly. We should do a RegEx pattern check to make sure that the path isn't obviously wrong.
deriveKeyFromPath
fullPath
Motivated by string splicing error here: https://github.com/MetaMask/metamask-snaps-beta/blob/f069030/app/scripts/controllers/permissions/restrictedMethods.js/#L159-L175
nice, added
deriveKeyFromPath
takes afullPath
parameter without validating that the string is formatted correctly. We should do a RegEx pattern check to make sure that the path isn't obviously wrong.Motivated by string splicing error here: https://github.com/MetaMask/metamask-snaps-beta/blob/f069030/app/scripts/controllers/permissions/restrictedMethods.js/#L159-L175