Skip to content

Instantly share code, notes, and snippets.

@yuriy77k
Created June 8, 2019 19:25
Show Gist options
  • Save yuriy77k/92d2fd8753e36b00ae7c95bf08c97f4e to your computer and use it in GitHub Desktop.
Save yuriy77k/92d2fd8753e36b00ae7c95bf08c97f4e to your computer and use it in GitHub Desktop.
Airswap Security Audit Report

Airswap Security Audit Report

1. Summary

Airswap smart contract security audit report performed by Callisto Security Audit Department

2. In scope

Сommit hash 04b71ad419ef645e8bd9b50e9998819b7a450616.

3. Findings

In total, 2 issues were reported including:

  • 1 low severity issues.

  • 1 owner privileges (the ability of an owner to manipulate contract, may be risky for investors).

No critical security issues were found.

3.1. Known vulnerabilities of ERC-20 token

Severity: low

Description

  1. It is possible to double withdrawal attack. More details here.

  2. 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.

Recommendation

Add the following code to the transfer(_to address, ...) function:

require( _to != address(this) );

3.2. Owner Privileges

Severity: owner privileges

Description

Contract owner allow himself to pause/unpause transfer/transferFrom.

Code snippet

https://github.com/airswap/contracts/blob/04b71ad419ef645e8bd9b50e9998819b7a450616/contracts/lib/Pausable.sol#L21

4. Conclusion

The audited smart contract can be deployed. Only low severity issues were found during the audit.

5. Revealing audit reports

https://gist.github.com/yuriy77k/905181d824e4345254d585a5ee0a7678

https://gist.github.com/yuriy77k/ae19a33b19da449f409e088097d467b5

https://gist.github.com/yuriy77k/aff5fda81293578bec43ad72576450a1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment