CVE-2021-32738

Medium

Description

js-stellar-sdk is a Javascript library for communicating with a Stellar Horizon server. The `Utils.readChallengeTx` function used in SEP-10 Stellar Web Authentication states in its function documentation that it reads and validates the challenge transaction including verifying that the `serverAccountID` has signed the transaction. In js-stellar-sdk before version 8.2.3, the function does not verify that the server has signed the transaction. Applications that also used `Utils.verifyChallengeTxThreshold` or `Utils.verifyChallengeTxSigners` to verify the signatures including the server signature on the challenge transaction are unaffected as those functions verify the server signed the transaction. Applications calling `Utils.readChallengeTx` should update to version 8.2.3, the first version with a patch for this vulnerability, to ensure that the challenge transaction is completely valid and signed by the server creating the challenge transaction.

SeverityMedium
CVSS6.5
Exploit probability—
ProductJs-stellar-sdk
PublishedJul 2, 2021
First seenJul 2, 2021

How to fix

Update
  • stellar js-stellar-sdk8.2.3 or later
  • stellar-sdk8.2.3 or later

Affected products

ProductAffected versionsFixed in
stellar js-stellar-sdkv < 8.2.38.2.3
stellar-sdknpmv < 8.2.38.2.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.