Vulnerability library
Security checkJanuary 27, 2023

Solana Pay Vulnerable to Weakness in Transfer Validation Logic

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpm@solana/pay

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

When a Solana Pay transaction is located using a reference key, it may be checked to represent a transfer of the desired amount to the recipient, using the supplied validateTransfer function. An edge case regarding this mechanism could cause the validation logic to validate multiple transfers.

Recommendation

Update the @solana/pay package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 0.2.0
  • Patched version(s): 0.2.1

References

Could your website be exposed too?

SmartScanner can check your website for Solana Pay Vulnerable to Weakness in Transfer Validation Logic and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated January 27, 2023