Skip to content

Commit

Permalink
fix security report error
Browse files Browse the repository at this point in the history
  • Loading branch information
BlaineHeffron committed Jun 27, 2024
1 parent e7c024e commit 5382431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/e2e/src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ module.exports.friendbotUrl = friendbotUrl;

async function generateFundedKeypair() {
const keypair = Keypair.random();
await fetch(friendbotUrl.indexOf('friendbot.stellar.org') !== -1 ? `${friendbotUrl}/?addr=${keypair.publicKey()}` : `${friendbotUrl}/friendbot?addr=${keypair.publicKey()}`);
await fetch(friendbotUrl.indexOf('https://friendbot.stellar.org') !== -1 ? `${friendbotUrl}/?addr=${keypair.publicKey()}` : `${friendbotUrl}/friendbot?addr=${keypair.publicKey()}`);

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
https://friendbot.stellar.org
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
return keypair;
}
module.exports.generateFundedKeypair = generateFundedKeypair;
Expand Down

0 comments on commit 5382431

Please sign in to comment.