ShadowFi Hack
Incident Overview
The ShadowFi project was exploited by a hacker who took advantage of a vulnerability in the $SDF token, making a profit of 1078 $BNB.
ShadowFi is a BEP20 token focused on anonymous payments, NFT, and passive income. The hack proceeds in two parts.
In the first part, the hacker used a scanner to track new token pairs, and stole $WBNB on PancakePair contract.
In the second part, another attacker used the burn function, which mistakenly allows any user to burn $SDF tokens from any address. The attacker burns almost all $SDF tokens on the liquidity pool, so the token price was unfairly high. He deployed an exploit smart contract to use the situation to swap 9 $SDF tokens for 1078 $WBNB and made a profit of 302,817 $USD. Consequently, he swapped all the stolen funds and transferred them to Tornado Cash.
Affected address of token pair:
https://www.bscscan.com/address/0xf9e3151e…ce650a
Address of attacker:
https://bscscan.com/address/0x64785767…492205
Swap transaction:
https://www.bscscan.com/tx/0xe30dc752…a01018
Incident Report
Protocol Information
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 ShadowFi, these are the critical security checks that could have prevented this incident (September 2022).
- Verify all logic paths related to Other are guarded by proper access controls and input validation
- 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 TrialSecurity Audit History
- InterFi Report unavailable
- Ether Authority Report unavailable
Sources & References
-
01
Source 1 https://archive.is/TjFOQ
Learn to Prevent the Next ShadowFi
The ShadowFi 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.