FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
The $17M Arbitrary External Call Exploit: How Unchecked call() Targets Drained SwapNet and Aperture Finance
How-ToSecurity

The $17M Arbitrary External Call Exploit: How Unchecked call() Targets Drained SwapNet and Aperture Finance

via Dev.toohmygod3h ago

DeFi Security Research — Vulnerability Analysis It's the simplest vulnerability class in smart contracts, and it just caused $17 million in losses across four chains in a single day. On January 25, 2026, attackers exploited SwapNet ($13.4M) and Aperture Finance ($3.67M) using the same fundamental flaw: arbitrary external calls with user-controlled targets . Both protocols allowed users to specify call targets and calldata in swap functions — without validating that those targets were actually swap routers. The result? Attackers simply pointed the call() at token contracts and invoked transferFrom(victim, attacker, amount) , draining every token that users had approved to the protocol. Let's break down exactly how this happened, why existing checks failed, and how to build contracts that are immune to this pattern. The Vulnerability Pattern At its core, the arbitrary external call vulnerability is deceptively simple: // ❌ VULNERABLE: User controls both target and calldata function swap(

Continue reading on Dev.to

Opens in a new tab

Read Full Article
0 views

Related Articles

The Struggle of Building in Public and How Automation Can Help
How-To

The Struggle of Building in Public and How Automation Can Help

Dev.to Tutorial • 1h ago

Reverse Proxy vs Load Balancer
How-To

Reverse Proxy vs Load Balancer

Medium Programming • 2h ago

How I synced real-time CS2 predictions with Twitch stream delay
How-To

How I synced real-time CS2 predictions with Twitch stream delay

Dev.to • 4h ago

The Go Paradox: Why Go’s Simplicity Creates Complexity
How-To

The Go Paradox: Why Go’s Simplicity Creates Complexity

Medium Programming • 10h ago

How-To

The Cube That Taught Me to Code

Medium Programming • 11h ago

Discover More Articles