Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Snap] StarkNet #123

Closed
7 tasks done
kenhkan opened this issue Sep 8, 2023 · 2 comments
Closed
7 tasks done

[New Snap] StarkNet #123

kenhkan opened this issue Sep 8, 2023 · 2 comments

Comments

@kenhkan
Copy link
Contributor

kenhkan commented Sep 8, 2023

Checklist

All items in the list below needs to be satisfied.

@kenhkan
Copy link
Contributor Author

kenhkan commented Sep 8, 2023

@MetaMask MetaMask deleted a comment from kenhkan Sep 9, 2023
@Montoya
Copy link
Contributor

Montoya commented Sep 9, 2023

List of findings with fixes or reasoning:

4.1 RPC starkNet_sendTransaction - The User Displayed Message Generated With getSigningTxnText() Is Prone to Markdown/Control Chars Injection From contractCallData

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.2 Lax Validation Using@starknet::validateAndParseAddress Allows Short Addresses and Does Not Verify Checksums

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.3 RPC starkNet_signMessage - Fails to Display the User Account That Is Used for Signing the Message

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.4 RPC starkNet_signMessage - Inconsistency When Previewing the Signed Message (Markdown Injection)

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.5 UI/AlertView - Unnecessary Use of dangerouslySetInnerHTML

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.6 RPC starkNet_addErc20Token - Should Ask for User Confirmation

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.7 getKeysFromAddress - Possible Unchecked Null Dereference When Looking Up Private Key

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.8 RPC starkNet_getStoredTransactions - Lax or Missing Input Validation

This method is read only and therefore not needing input validation

4.9 Disable Debug Log for Production Build

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.10 package.json - Dependency Mixup

Fixed in https://github.com/Consensys/starknet-snap/tree/7231bb7fa4671283b2e7b4cbf5a519d56a57697a

4.11 package.json - Invalid License

This finding is incorrect. Dual license is a valid approach.

4.12 RPC starkNet_extractPrivateKey - Should Be Renamed to starkNet_displayPrivateKey

This is a minor issue and does not need to be fixed.

4.13 UI/hooks - detectEthereumProvider() Should Require mustBeMetaMask

This is a minor issue and does not need to be fixed.

4.14 RPC starkNet_addNetwork - Not Implemented, No User Confirmation

This is a minor issue and does not need to be fixed.

@Montoya Montoya closed this as completed Sep 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants