Ownly Hack
Incident Overview
Hacker used smart contract vulnerability on OWN Platform Staking to drain all $OWN tokens
Ownly is a NFT platform providing staking opportunity to users. The hacker was able to unstake unlimited times due to a staking contract vulnerability. He created a smart contract which repetitively staked and unstaked, so all remaining $OWN tokens were drained and swapped on SparkSwap and PancakeSwap for the total amount of 19,219 $BUSD.
0x81d3ec77438b4e99aa99ba25b1dbc3fea317fe3b0x81d3ec77438b4e99aa99ba25b1dbc3fea317fe3b
Drainer transaction:
https://bscscan.com/tx/0x2cbe47ed…ea072f
Affected contract address:
https://bscscan.com/address/0x421f3041…9d7e92
Address of attacker:
https://bscscan.com/address/0xba310583…ebd38a
Address of attackers smart contract:
https://bscscan.com/address/0xa81ea095…620386
Incident Report
What the Attacker Needed to Succeed
Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.
What Auditors Should Check
If you're auditing a protocol with similar architecture to Ownly, these are the critical security checks that could have prevented this incident (May 2022).
- Verify all logic paths related to Reentrancy are guarded by proper access controls and input validation - see the Reentrancy attack class for patterns
- Check that all state-changing functions follow the Checks-Effects-Interactions (CEI) pattern to prevent reentrancy and logic ordering bugs
- Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs
Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.
Free TrialRelated Attack Classes
The technique used in this hack maps to these vulnerability classes in our security curriculum:
Sources & References
-
01
Source 1 https://archive.is/7xaJz
Learn to Prevent the Next Ownly
The Ownly hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.