This is the report from a security audit performed on Dai Token by gorbunovperm.
Audit Top 200 CoinMarketCap tokens. Dai (DAI) stablecoin.
In total, 4 issues were reported including:
-
0 high severity issue.
-
0 medium severity issues.
-
3 low severity issues.
-
1 owner privileges.
-
0 note.
-
It is possible to double withdrawal attack. More details here
-
Lack of transaction handling mechanism issue. WARNING! This is a very common issue and it already caused millions of dollars losses for lots of token users! More details here
Add into a function transfer(address _to, ... )
following code:
require( _to != address(this) );
The contract owner allowed to block transfer functions( transferFrom
, approve
, mint
, burn
).
- Line 234.
According to ERC20 standard when coins are minted(or burned) a Transfer
event should be emitted.
- Lines 423, 428, 303.
Incoming addresses should be checked for an empty value(0x0
address) to avoid loss of funds or blocking some functionality.
- Lines 133, 424, 400.
There are no dangerous vulnerabilities were discovered here.