Vulnerability · Published Aug 1, 2022 · Assigned by GitHub_M
CVE-2022-35917Weakness in Transfer Validation Logic in @solana/pay
Medium 5.3
In plain English
A medium-severity security flaw in solana-pay from solana-labs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
Solana Pay is a protocol and set of reference implementations that enable developers to incorporate decentralized payments into their apps and services. 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. This issue has been patched as of version `0.2.1`. Users of the Solana Pay SDK should upgrade to it. There are no known workarounds for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | @solana/pay | 0.2.1 | GHSA-j47c-j42c-mwqq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| solana-labs | solana-pay | < 0.2.1 |
Weakness: CWE-670 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
References
- https://github.com/solana-labs/solana-pay/security/advisories/GHSA-j47c-j42c-mwqq x_refsource_CONFIRM
- https://github.com/solana-labs/solana-pay/commit/ac6ce0d0a81137700874a8bf5a7caac3be999fad x_refsource_MISC
- https://github.com/solana-labs/solana-pay/blob/master/SPEC.md#reference x_refsource_MISC
- https://github.com/solana-labs/solana-pay/blob/master/core/src/validateTransfer.ts x_refsource_MISC