CVE-2022-35917
JavaScript vulnerability analysis and mitigation

Overview

Solana Pay, a protocol and set of reference implementations for decentralized payments in apps and services, was found to contain a vulnerability (CVE-2022-35917) in versions prior to 0.2.1. When using the validateTransfer function to verify a transaction with a reference key, an edge case could cause the validation logic to validate multiple transfers (GitHub Advisory).

Technical details

The vulnerability exists in the transfer validation mechanism of Solana Pay. When a Solana Pay transaction is located using a reference key and checked to represent a transfer using the supplied validateTransfer function, an edge case in the implementation could lead to validation of multiple transfers instead of a single intended transfer. The issue was assigned a CVSS v3.1 Base Score of 5.3 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N (NVD).

Impact

While the impact was considered moderate, the risk was mitigated by the fact that most known Solana Pay point of sale applications were running on physical point of sale devices, making the issue unlikely to occur. However, web-based point of sale applications using the protocol were potentially more vulnerable to exploitation (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.2.1 of Solana Pay. Users of the Solana Pay SDK should upgrade to this version or later. There are no known workarounds for this issue (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management