GHSA-j47c-j42c-mwqq

Suggest an improvement
Source
https://github.com/advisories/GHSA-j47c-j42c-mwqq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-j47c-j42c-mwqq/GHSA-j47c-j42c-mwqq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-j47c-j42c-mwqq
Aliases
Published
2022-08-06T05:39:18Z
Modified
2023-11-08T04:09:52Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N CVSS Calculator
Summary
Solana Pay Vulnerable to Weakness in Transfer Validation Logic
Details

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.

Impact

Most known Solana Pay point of sale applications are currently run on physical point of sale devices, which makes this issue unlikely to occur. However, there may be web-based point of sale applications using the protocol where it may be more likely to occur.

Patches

This issue has been patched as of version 0.2.1. Users of the Solana Pay SDK should upgrade to it.

Database specific
{
    "cwe_ids":  [
        "CWE-670"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-08-06T05:39:18Z",
    "nvd_published_at":  "2022-08-01T22:15:00Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / @solana/pay

Package

Name
@solana/pay
View open source insights on deps.dev
Purl
pkg:npm/%40solana/pay

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.2.1

Database specific

last_known_affected_version_range
"<= 0.2.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/08/GHSA-j47c-j42c-mwqq/GHSA-j47c-j42c-mwqq.json"