source
large_stringclasses
5 values
contract_code
large_stringlengths
884
1.24M
num_lines
int64
42
25.8k
has_vuln_labels
bool
2 classes
vuln_labels
large_stringclasses
109 values
contract_hash
large_stringlengths
64
64
slither-audited
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks...
3,009
true
reentrancy|unchecked-calls|access-control|arithmetic|other
50021bb7c36d83090595f944a541c3277e28bb9ecd45f8182c85902d412fc968
slither-audited
pragma solidity 0.6.12; library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a contract. * * Among o...
1,452
true
other
3c0d1855a4f61f703e10cb2d96bd77971139e1938ccad8075d4235892d37d7b3
slither-audited
pragma solidity 0.5.15; contract IFactRegistry { /* Returns true if the given fact was previously registered in the contract. */ function isValid(bytes32 fact) external view returns(bool); } contract IMerkleVerifier { uint256 constant internal MAX_N_MERKLE_VERIFIER_QUERIE...
855
true
arithmetic
5c79a8a1bfa53b069ad3e405f984371782f3e4a20b9c2e46c3c3f3eb49ab3099
slither-audited
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; library Address { function isContract( address account ) internal view returns (bool) { uint256 size; assembly { size := extcodesize(account) } return size > 0; } function sendValue( address payable recipient, uint256...
1,629
true
arithmetic|other
02ee57c901b91a55ea619f4cebc99d006463d800f3533e7e5eec3ee7ecb0da84
slither-audited
pragma solidity 0.5.4; interface IERC20 { function balanceOf(address account) external view returns (uint256); function transfer(address recipient, uint256 amount) external returns (bool); function allowance(address owner, address spender) external view returns (uint256); function approve(ad...
287
true
arithmetic
190b410af400485495d468623ffdd514e486f5c96eca65606f5b31b719211f8a
slither-audited
pragma solidity 0.6.10; pragma experimental ABIEncoderV2; library BokkyPooBahsDateTimeLibrary { uint constant SECONDS_PER_DAY = 24 * 60 * 60; uint constant SECONDS_PER_HOUR = 60 * 60; uint constant SECONDS_PER_MINUTE = 60; int constant OFFSET19700101 = 2440588; uint constant DOW_MON = 1; ...
4,600
true
reentrancy|arithmetic|other
8e307858f102e4f4e68aca322e382a01524fb9961f39ce5a2d2d24da3c0ff2c0
slither-audited
pragma solidity 0.7.4; enum MathError { NO_ERROR, DIVISION_BY_ZERO, INTEGER_OVERFLOW, INTEGER_UNDERFLOW, MODULO_BY_ZERO } library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function ret...
1,630
true
unchecked-calls|other
24e27dcc3a3251318cc81fdd9c3c4a3c79fb52b082b2de88457084eab65eb25a
slither-audited
pragma solidity 0.7.0; interface IOwnershipTransferrable { function transferOwnership(address owner) external; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); } abstract contract Ownable is IOwnershipTransferrable { address private _owner; constructor(address ...
387
true
reentrancy|arithmetic|other
95f25afb4dc057a58015ff510a4ae5b25b2cf7457470d489c46a40c701fed922
slither-audited
pragma solidity 0.7.0; interface IOwnershipTransferrable { function transferOwnership(address owner) external; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); } abstract contract Ownable is IOwnershipTransferrable { address private _owner; constructor(address owner)...
280
true
reentrancy|arithmetic|unchecked-calls
f1a9da3fcfaa0458bae22c842473ce7f65097cdac514dec04fd189cae02dd7bc
slither-audited
pragma solidity 0.5.0; interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender, uint256 value) external returns (bool); function transferFrom(address from, address to, uint256 value) external returns (bool); function totalSuppl...
527
true
reentrancy|arithmetic
dec0f886345dbcdf6ef6aadd3a147dbde11dbdb55776e36cd81f6bdfb4fad9fd
slither-audited
pragma solidity 0.6.12; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c;} function sub(uint256 a, uint256 b) internal pure returns (uint256) { ...
345
true
reentrancy|arithmetic|unchecked-calls
886efb473ba6a445be8f5c599d26658b14a40dd448126639f76a2a4c200889fc
slither-audited
pragma solidity 0.6.12; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytec...
322
true
reentrancy|unchecked-calls
f312ac2c5609ab798871e289de187b4ca0d6f9cf69d14274dcba58e27d6852b8
slither-audited
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. */ function balanceOf(a...
470
true
unchecked-calls|other
de5da18c8fafd1b1638a42c7028cfac13515179e324b92f58ae4195b40178058
slither-audited
pragma solidity 0.6.12; library EnumerableSet { struct AddressSet { // Storage of set values address[] _values; // Position of the value in the `values` array, plus 1 because index 0 // means a value is not in the set. mapping (address => uint256) _indexes; } ...
903
true
arithmetic|reentrancy|unchecked-calls|other
0810d8c7e0c3f63c7447029217707581ff082020d15aad8ff0d03a525c5ec115
slither-audited
pragma solidity 0.7.0; interface IOwnershipTransferrable { function transferOwnership(address owner) external; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); } abstract contract Ownable is IOwnershipTransferrable { address private _owner; constructor(address owner)...
279
true
reentrancy|arithmetic|unchecked-calls
08e3981b6d9fddda58f351e384d5e9b68310a29846b9260082ba33155fe311df
slither-audited
pragma solidity 0.6.11; pragma experimental ABIEncoderV2; struct FullTokenBalance { TokenBalanceMeta base; TokenBalanceMeta[] underlying; } struct TokenBalanceMeta { address token; uint256 amount; ERC20Metadata erc20metadata; } struct ERC20Metadata { string name; string symbol; ...
265
true
other
3108705a1f4d49b018947548384e1ecfcdbfd4765b690d7c76d835bf1765af72
slither-audited
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; interface PotLike { function chi() external view returns (uint); function pie(address) external view returns (uint); function drip() external returns (uint); function join(uint) external; function exit(uint) external; } interface GemL...
4,910
true
access-control|reentrancy|unchecked-calls|other
250b7b0438d6403765adc16b0c1819219d2821257bfbe9a78bec37d042c04da3
slither-audited
pragma solidity 0.5.17; contract InterestRateModel { /// @notice Indicator that this is an InterestRateModel contract (for inspection) bool public constant isInterestRateModel = true; /** * @notice Calculates the current borrow interest rate per block * @param cash The total amount of ca...
238
true
arithmetic
e0184715c62ab30c5d61c10a1120b80713c247bc3f6e8a915f7fdf7770d7ab5a
slither-audited
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; interface PotLike { function chi() external view returns (uint); function pie(address) external view returns (uint); function drip() external returns (uint); function join(uint) external; function exit(uint) external; } interface GemL...
4,910
true
access-control|reentrancy|unchecked-calls|other
cb6589791491a034de1729b259f85ffbd412a551c8fe326f59694194cd2dbdb9
slither-audited
pragma solidity 0.6.5; pragma experimental ABIEncoderV2; contract ERC20SubToken { // TODO add natspec, currently blocked by solidity compiler issue event Transfer(address indexed from, address indexed to, uint256 value); // TODO add natspec, currently blocked by solidity compiler issue event Appr...
1,471
true
other
5d2f678d7437663741827b034875f0051981dd43080caeecd09aaf2b213f7d04
slither-audited
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; interface AggregatorV3Interface { function decimals() external view returns (uint8); function description() external view returns (string memory); function version() external view returns (uint256); // getRoundData and latestRoundData should bot...
517
true
other
56145d08939c4f7b66c6b75b015c64bf846d14757b1d2134e05637c011f29715
slither-audited
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; contract sbGovernor { // The number of votes in support of a proposal required in order for a quorum to be reached and for a vote to succeed function quorumVotes() public pure returns (uint256) { return 400000e18; } // 400,000 = 4% of STRONG ...
363
true
unchecked-calls|access-control
03c03aa01f4ad568c9023cfae47e48cfff4a8e454e10eff194e847ccb5f4585a
slither-audited
pragma solidity 0.7.4; enum MathError { NO_ERROR, DIVISION_BY_ZERO, INTEGER_OVERFLOW, INTEGER_UNDERFLOW, MODULO_BY_ZERO } library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function ret...
941
true
unchecked-calls|other
23bba3ff7e30c13cd83ca45ddca9e1173be4349a1ba7b9637e585774a52656f2
slither-audited
pragma solidity 0.6.12; pragma experimental ABIEncoderV2; interface IComptroller { function enterMarkets(address[] calldata _cTokens) external returns (uint[] memory); function exitMarket(address _cToken) external returns (uint); function getAssetsIn(address _account) external view returns (address[] me...
835
true
unchecked-calls|other
1049c154acc1bcf4b5a0d1fe47fd050d3518940035118efd901e3f7e8f30d7a8
slither-audited
pragma solidity 0.6.10; pragma experimental ABIEncoderV2; library Address { /** * @dev Returns true if `account` is a contract. * * [IMPORTANT] * ==== * It is unsafe to assume that an address for which this function returns * false is an externally-owned account (EOA) and not a...
4,176
true
reentrancy|arithmetic|other
8e61cd695592fae2f7362710f5194b45efb43c7f16da6e23a48140a3aac33461
slither-audited
pragma solidity 0.7.0; library AdditionalMath { using SafeMath for uint256; function max16(uint16 a, uint16 b) internal pure returns (uint16) { return a >= b ? a : b; } function min16(uint16 a, uint16 b) internal pure returns (uint16) { return a < b ? a : b; } /** ...
2,437
true
reentrancy|other
ac54f52b1901d8afbe59031108cf6bf818a921dc94028e5d5bcb844035b6611b
slither-audited
pragma solidity 0.7.0; interface IOwnershipTransferrable { function transferOwnership(address owner) external; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); } abstract contract Ownable is IOwnershipTransferrable { address private _owner; constructor(address ...
280
true
reentrancy|arithmetic|unchecked-calls
0bfe11a0b4f00f2428970f7d68374d21f62319799a921cb619e9e45f944a11a8
slither-audited
pragma solidity 0.6.0; contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks function _msgSender() inter...
551
true
arithmetic
e1f7027b7a3a0df748b6e09e09ec48b575e638375d19663e31cda7e08ea0159b
slither-audited
pragma solidity 0.5.17; interface IUniswapV2Pair { event Approval(address indexed owner, address indexed spender, uint value); event Transfer(address indexed from, address indexed to, uint value); function name() external pure returns (string memory); function symbol() external pure returns (stri...
785
true
arithmetic|reentrancy|access-control|other
5eace2ac3f9013b9a4f64f6da9125e6c601a7b895ca027f223428522b5bd5924
slither-audited
pragma solidity 0.5.17; pragma experimental ABIEncoderV2; contract Context { // Empty internal constructor, to prevent people from mistakenly deploying // an instance of this contract, which should be used via inheritance. constructor () internal { } // solhint-disable-previous-line no-empty-blocks...
2,959
true
reentrancy|unchecked-calls|access-control|arithmetic|other
6b2d2e85e665c1c98d985bb8156a8cf93ad300bb98c6563ccf688671429e2750
slither-audited
pragma solidity 0.7.0; interface IOwnershipTransferrable { function transferOwnership(address owner) external; event OwnershipTransferred(address indexed previousOwner, address indexed newOwner); } abstract contract Ownable is IOwnershipTransferrable { address private _owner; constructor(address ...
280
true
reentrancy|arithmetic|unchecked-calls
2ffd59cf9a122794f6cca79ba2fae189aebd38ce5e3657dd6ca01eb600e3ce9b
slither-audited
pragma solidity 0.6.6; abstract contract Context { function _msgSender() internal view virtual returns (address payable) { return msg.sender; } function _msgData() internal view virtual returns (bytes memory) { this; // silence state mutability warning without generating bytecode - s...
234
true
reentrancy
d3d49f7e2a14f05cc6d3c2382b0994a55921303853b2a8f74dcfe85ef244ea0d
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity 0.8.18; import "forge-std/Test.sol"; import "./interface.sol"; /* Name: Read-Only Reentrancy Vulnerability Description: The Read-Only Reentrancy Vulnerability is a flaw in smart contract design that allows attackers to exploit the "read-only" nature of a function to ma...
142
true
ReadOnlyReentrancy
456f87e96fd5f5a3c1a82203790c31d8a1acebac01f5a357661d54c05166e56d
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Reentrancy Vulnerability Description: The EtherStore Reentrancy Vulnerability is a flaw in the smart contract design that allows an attacker to exploit reentrancy and withdraw more funds than they are entitled to from the...
103
true
Reentrancy
2190248a2b8f955c4758dee4ddf7323aecb416f099a3a141d4e71f06fa920622
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /* Name: No Revert on Failure Description: Some tokens do not revert on failure, but instead return false (...
42
true
Returnfalse
9ee0a5c034e4182e60f6670b039725421ab02438b63257dddc3a0c389877a500
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /* Name: Unchecked return value Description: EIP20 standard: Returns a boolean value indicating whether the operation succeeded. function transfer(address to, uint25...
53
true
Returnvalue
cc2f8f86f93d7db65f98a4c88eaf55e09400861d943c374c6e051517131d5d96
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Self-Destruct Vulnerability Description: The EtherGame Self-Destruct Vulnerability is a flaw in the smart contract code that allows an attacker to disrupt the game by causing the EtherGame contract to self-destruct (using...
91
true
Selfdestruct
3438ad66fc99cefff38c6a6bf700fad518c59fba0cc6a7e9eb0f8a6d3e5fc020
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* This excersise is about selfdestructing (deprecated) and force sending ether to a contract Force implements neither receive nor fallaback functions. Calls with any value will revert. */ contract ContractTest is Test { Force ...
45
true
Selfdestruct2
212d8ca8dca86c461b4ed3c5558c893c113b18887c2cdf295a8930b82247a0a8
DeFiVulnLabs
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.18; import "forge-std/Test.sol"; import "./interface.sol"; // this excersise is about direct token manipulation interface ISpace { function onSwap( SwapRequest memory request, uint256 reservesTokenIn, uint256 reservesTokenOut ...
65
true
SenseFinance exp
9dcc767513aba5c3200b597154f917ac63e9456b6b337f835ebbfe0554ecc748
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Signature Replay Vulnerability Description: In this scenario, Alice signs a transaction that allows Bob to transfer tokens from Alice's account to Bob's account. Bob then replays this signature on multiple contracts (in ...
209
true
SignatureReplay
5c546a7c902fae58d0d91df704885b33f21a0ad82b263724d4d22364fb9e123c
DeFiVulnLabs
// SPDX-License-Identifier: UNLICENSED pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "./interface.sol"; /* Name: NFT Mint via Exposed Metadata Vulnerability Description: The contract is vulnerable to CVE-2022-38217, this could lead to the early disclosure of metadata of all NFTs in the project. As a ...
74
true
NFTMint exposedMetadata
cd5bfb0e01c1e20e7630375c0b518f64a45534040ae9b2be5ddfc3de5cfe941d
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Oracle data feed is insufficiently validated Description: Chainlink price feed latestRoundData is used to retrieve price feed from chainlink. We need to makes sure that the answer is not negative and price is not stale. ...
63
true
Oracle stale
66efdc41a0edb30fe1bdcb6bcb0f7cd2c0a07507b33090c3bd99dbbfaa34997a
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; // this need to be older version of solidity from 0.8.0 solidty compiler checks for overflow and underflow import "forge-std/Test.sol"; /* Name: Integrate Overflow Description: The TimeLock has a flaw in the smart contract code that allows an attacker to pr...
90
true
Overflow
a1c2e990f9ba9c3e0d939694694c2889c05b7e4f4b68ad273a6344e53e5a1362
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.7.6; // this need to be older version of solidity from 0.8.0 solidty compiler checks for overflow and underflow import "forge-std/Test.sol"; /* Name: Token Whale Overflow Vulnerability Description: This contract demonstrates an integer underflow vulnerability in an ...
102
true
Overflow2
da3c5342d7a77a84d9fe2fea32ce20fb6434f63431c855e2dcfc8ac4885dbc6e
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Precision Loss - rounding down to zero Description: Support all the ERC20 tokens, as those tokens may have different decimal places. For example, USDT and USDC have 6 decimals. So, in the calculations, one must be careful...
57
true
Precision loss
050c38b678593d13d3ef10b6115c17997d230ca158d2d512fdb6bf7665a66621
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /* Name: Price manipulation Description: Incorrect price calculation over balanceOf, getReverse may refer to a situation ...
151
true
Price manipulation
87a8f549fe141c1e6d69ec6620d1ae836e997a9df3ea782afaec25ff1115f8e3
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Private Data Exposure Description: Solidity stores the variables defined in the contract in slots. Each slot can accommodate up to 32 bytes or 256 bits. Given that all data stored on-chain, whether public or private, can b...
57
true
Privatedata
766050e159fc1cc6eaccc967cd71ad0522ce8f7314571b2c98c03d7399dce06f
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Predictable Randomness Vulnerability Description: Use of global variables like block hash, block number, block timestamp and other fields is insecure, miner and attacker can control it. Scenario: GuessTheRandomNumber is ...
78
true
Randomness
da1c04497d1791922394c145fe7eec9325070939d2be37a7c758a3f0dec4bac2
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Use of return in inner loop iteration leads to unintended termination. Description: This demonstrates the difference between using 'return' and 'break' in nested loop iterations. When removing multiple banks from a list, ...
221
true
return break
2e40eb7973f8104b5c0ff0f266397f2409ad77154690aec15176c5506513e61a
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Missing Check for Self-Transfer Allows Funds to be Lost Description: The vulnerability in the code stems from the absence of a check to prevent self-transfers. This oversight allows the transfer function to erroneously tr...
79
true
self transfer
afe6a7edcfaf9f4512ca20d4521ec3c4966c1e3ff1bf7062fe1ef3dd2d085f45
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "forge-std/Test.sol"; /* Name: Insecure tx.origin Vulnerability Description: tx.origin is a global variable in Solidity; using this variable for authentication in a smart contract makes the contract vulnerable to phishing attacks. Scenario: Wallet is ...
68
true
txorigin
e327031f73cfbba206506d18d557f09096b871ac0f30d3ae1b15bfe9f7cbd337
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; // Import the SafeCast library import "@openzeppelin/contracts/utils/math/SafeCast.sol"; /* Name: Unsafe downcasting Description: Downcasting from a larger integer type to a smaller one without checks can lead to unexpected behavio...
68
true
unsafe downcast
e6d52d653e5c33ffcccc726840766c2e71294f8f6a7122dda536911e372057da
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/utils/Address.sol"; import "@openzeppelin/contracts/utils/StorageSlot.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/proxy/utils/Initializable.sol"; //#Spot...
58
true
Immunefi ch2
dcf89562afab000e0227bb5e8d3d6edd59861460f0987d97707d163f21d80173
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /* Name: Incorrect sanity checks - Multiple Unlocks Before Lock Time Elapse Description: The bug lies in the unlockToken ...
188
true
Incorrect sanity checks
64f438b857416475b6c9e60b6d9c059384f9ff9c15182c483e3513dacad025cd
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.7.0; // this need to be older version of solidity from 0.8.0 solidty compiler checks for overflow and underflow import "forge-std/Test.sol"; /* Name: Invariant issue Description: Assert is used to check invariants. Those are states our contract or variables should n...
59
true
Invariant
98ed384a8713c5f6296ef6f8d9e539d18ccd4dc7023b22812c94466ae4a0ae42
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /* Name: Unauthorized NFT Transfer in custom ERC721 implementation. Description: Custom transferFrom function in contrac...
94
true
NFT transfer
e127cb0ce4d7f1b8fd26cc9cfc515df49287fb49eb43edc070baabe42355f0ca
slither-audited
pragma solidity 0.6.5; abstract contract Proxy { // /////////////////////// EVENTS /////////////////////////////////////////////////////////////////////////// event ProxyImplementationUpdated( address indexed previousImplementation, address indexed newImplementation ); // ////...
146
true
access-control
6f066ef45917f360e7df7945ee8a1c071e638f782f7022e79ad0ba381d8decbc
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: STA token had a deflationary model with transfer fee of 1% charged from a recipient. Description: The actual deposited amount might be lower than the specified depositAmount of the function parameter. VulnVault: Incompata...
307
true
fee on transfer
ee55f0b4735afb9889e1da1415c5d67111e44b6ad33364a295b82ed09f0c5dae
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; /* Name: First deposit bug Description: First pool depositor can be front-run and have part of their deposit stolen In th...
120
true
first deposit
2c7d6961bcd30d726fd39a8a139c7ab6db1e99e16ef59eb9e98fb35c349a8648
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: txGasPrice manipulation Description: Manipulation of the txGasPrice value, which can result in unintended consequences and potential financial losses. In the calculateTotalFee function, the total fee is calculated by mult...
49
true
gas price
4a2131df0f160cf7056a721bc742d5bc44db6613f0edf29d35bb39d54778d2f2
DeFiVulnLabs
// SPDX-License-Identifier: UNLICENSED pragma solidity 0.8.18; import "forge-std/Test.sol"; interface CheatCodes { // This allows us to getRecordedLogs() struct Log { bytes32[] topics; bytes data; } // Set block.timestamp (newTimestamp) function warp(uint256) external; // Se...
230
true
interface
dc7c5733e8060e18f9348934f646e07e31b477ea7519bcc4a4460a42d00edc09
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; /* Name: Incorrect use of payable.transfer() Description: After the implementation of EIP 1884 in the Istanbul hard fork, the gas cost of the SLOAD operation was increased, resulting in the breaking of some existing smart contrac...
77
true
payable transfer
b783ecf84072dd455d6db357a1d1b44fe4d200e6873fe53991928ab8229a11cf
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; /* Name: Phantom function - Permit Function Description: Phantom function: Accepts any call to a function that it doesn't actually define, without reverting. key: 1.Token th...
181
true
phantom permit
9dc02781826bc4469c6167cdcc70ade855670efa375469e7076d10b934795e68
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /* Name: Incorrect implementation of the recoverERC20() f...
131
true
recoverERC20
aa44ceacb93352b7629fb33dea4ce8f9c1ef472b0f2d45e9387adf5e1494a6e0
slither-audited
// Sources flattened with hardhat v2.3.3 https://hardhat.org // File contracts/interfaces/IOracle.sol pragma solidity 0.8.4; interface IOracle { function getTokensOwed(uint256 ethOwed, address pToken, address uTokenLink) external view returns (uint256); function getEthOwed(uint256 tokensOwed, address pToken,...
843
true
reentrancy|access-control|unchecked-calls|other
da90d491cb5189c2b72471c04d7eb0621fb817fc1bacfc5753a8267804f942cc
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; contract Bobave...
1,455
true
unchecked-calls
00eb0ccbaa7dc2d7998cfd3e233ac711bc9fc6e1e23db4ce9bd91e7763649a85
slither-audited
// SPDX-License-Identifier: MIT /** !Disclaimer! These contracts have been used to create tutorials, and was created for the purpose to teach people how to create smart contracts on the blockchain. please review this code on your own before using any of the following code for production. Ha...
1,173
true
unchecked-calls|other
aae0467d0bb3f8210ed4d0448fd25bb871815705fb966a4534d299f8f187a445
slither-audited
// SPDX-License-Identifier: None pragma solidity ^0.7.5; import "./interfaces/IBFactory.sol"; import "./interfaces/IBPool.sol"; import "./interfaces/ICover.sol"; import "./interfaces/ICoverERC20.sol"; import "./interfaces/ICoverRouter.sol"; import "./interfaces/IERC20.sol"; import "./interfaces/IProtocol.sol"; import ...
943
true
reentrancy|arithmetic|unchecked-calls
656dc3bb2d96d1fe2b93125b209a2c3f7d415c2a76aa27142b1d97089e60797b
slither-audited
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol"; import "@openzeppelin/contracts/utils/cryptography/draft-EIP712.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage....
1,955
true
unchecked-calls
2c13241398dc617711835ec5d57f295cac03ba086fcc081949aa30368ae22579
slither-audited
// SPDX-License-Identifier: LGPL-3.0-only pragma solidity ^0.7.0; /// @title ViewStorageAccessible - Interface on top of StorageAccessible base class to allow simulations from view functions interface ViewStorageAccessible { /** * @dev Same as `simulateDelegatecall` on StorageAccessible. Marked as view so tha...
657
true
access-control|unchecked-calls
cf2b150bb33e3d986572637b6dde663567cdb2f8d0f97d267a881d9b4f292e1c
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; pragma abicoder v2; import "base64-sol/base64.sol"; /// @title Earrings SVG generator library EarringsDetail { /// @dev Earrings N°1 => Classic function item_1() public pure returns (string memory) { return ""; } /// @dev Earrings N°2 =...
231
true
arithmetic
2719da98bf5d6e8e5e47caf4d6a1f5170c2ce77f5817bf5b148bca45de0898ca
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.8.2; import "@openzeppelin/contracts/utils/Context.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/math/SafeMath.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppeli...
1,492
true
unchecked-calls
8e117574e898dbc79dc4e9decf904ce420a0fee646ca74cfe40f8e47c8f2e4be
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.6.0; /* * @dev Provides information about the current execution context, including the * sender of the transaction and its data. While these are generally available * via msg.sender and msg.data, they should not be accessed in such a direct * manner, since when d...
896
true
other
6bc9092166fbd248faee184996a50bfe5603f5afb0793f76e4dc3ea38b5ddabf
slither-audited
pragma solidity ^0.5.15; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view returns (uint256); /** * @dev Returns the amount of tokens owned by `account`. ...
1,664
true
arithmetic|reentrancy|unchecked-calls|other
872929e19d7526378c78a4afb519a045aa3762925bdc9e98a9a8fd4d7b63e90c
slither-audited
/* Built and deployed using FTP Deployer, a service of Fair Token Project. Deploy your own token today at https://app.fairtokenproject.com#deploy BlackFridayToken Socials: Telegram: t.me/BlackFriday_Token_Entry Twitter: https://twitter.com/blackfriday1126?t=AnKcGNWJLlHzdPT8GS_xcA&s=09 Whitepaper: https://link.medium....
439
true
arithmetic|reentrancy|unchecked-calls|access-control
6815b47bde5dabe8a22dc8f1b0b19b78d6cfb9cad81fec9bf0ebb675e84ae946
slither-audited
/* Animal Crossing Token Telegram: https://t.me/AnimalCrossingToken Twitter: https.//twitter.com/AnimalCrossingToken For all fans of the popular classic. 🌾 Harvestor: Every transaction, holders of the coins will receive tokens that were collected by the fees. This feature encourage...
320
true
reentrancy|unchecked-calls
25acbf24078e4b5089804b6dc636a76c7aee56c5bdd56cb1e14b3deb2ab398c0
slither-audited
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) in...
96
true
reentrancy|unchecked-calls
8ae6334efdd995450798a154574dbba87c7af0497badd82797acae1ece9ea664
slither-audited
contract PIG_BANK { function Put(uint _unlockTime) public payable { var acc = Acc[msg.sender]; acc.balance += msg.value; acc.unlockTime = _unlockTime>now?_unlockTime:now; LogFile.AddMessage(msg.sender,msg.value,"Put"); } ...
64
true
reentrancy|access-control
3416ba2cf44cd14db0b05cbe0753ef3671431aaec875f09b9ec32fab6c0eb1ce
slither-audited
/* -------------------------------------------------------------------------------- The Bethereum [BETHER] Token Smart Contract Credit: Bethereum Limited ERC20: https://github.com/ethereum/EIPs/issues/20 ERC223: https://github.com/ethereum/EIPs/issues/223 MIT Licence -------------------------------------------------...
473
true
arithmetic|reentrancy|unchecked-calls|other
6b483bb033dda58bdb315c2f04859901214c08a073e569c92a3e6f0ea2683b6e
slither-audited
// SPDX-License-Identifier: MIT // File: @openzeppelin/contracts/utils/introspection/IERC165.sol pragma solidity ^0.8.0; /** * @dev Interface of the ERC165 standard, as defined in the * https://eips.ethereum.org/EIPS/eip-165[EIP]. * * Implementers can declare support of contract interfaces, which can then be * qu...
1,195
true
unchecked-calls|other
f82fc6eceb8bb5566527e01a48688d26668eb8d2c8949c5aa93d8579031c69b8
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title: One Reality NFT Minter /// @author: manifold.xyz import "./ERC721Creator.sol"; //////////////////////////////////////////////////////////////////////////////////////////// // ...
435
true
unchecked-calls
94e47d013d97a5d40989e3d9c629f15a9aeb47110897772110c3b1a4fb634ffe
slither-audited
// SPDX-License-Identifier: MIT pragma solidity =0.7.0; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a, "SafeMath: addition overflow"); return c; } function sub(uint256 a, uint256 b) internal pure returns ...
194
true
other
560954203a7b329a6b9239e05e9bdfb97743fa0ae6b9f07f8495c0e78058767c
slither-audited
//SPDX-License-Identifier: MIT /* ________ _ _____________ ____ ______ ________ ________ _ ______ ____ ________ __ / ____/ /| | / / ____/ ___/ / __ \/ ____/ /_ __/ / / / ____/ / | / / __ \/ __ \/_ __/ / / / / __/ / / | | / / __/ \__ \ / / / / /_ / / / /_/ / __/ / |/ / / / ...
1,425
true
unchecked-calls
e9205f72ea810c0246f79353d9a71f56230cd123d38ad4ea6bf78e7da0aed44b
slither-audited
//! A Multi-signature, daily-limited account proxy/wallet library. //! //! Inheritable "property" contract that enables methods to be protected by //! requiring the acquiescence of either a single, or, crucially, each of a //! number of, designated owners. //! //! Usage: use modifiers onlyowner (just own owned) or only...
377
true
reentrancy|access-control|other
995b5f61ab84717384f0a4f223eecb3b4e449fe60fad45fc1e024b7bd72939b4
slither-audited
// File: contracts/intf/IDODOApprove.sol /* Copyright 2020 DODO ZOO. SPDX-License-Identifier: Apache-2.0 */ pragma solidity 0.6.9; interface IDODOApprove { function claimTokens(address token,address who,address dest,uint256 amount) external; function getDODOProxy() external view returns (address); ...
535
true
access-control
f8def8c29d00a6e8cb1063db61961173c8a6581da237d43440011036e7eb7e92
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @title: pi /// @author: manifold.xyz import "./ERC721Creator.sol"; //////////////////////////////////////////////// // // // // // 3.1415926535897932384626433832795028...
409
true
unchecked-calls
2c0f64744a2e2ef4cd7a6e2da70fe84e70e7e3837cf3ee07a38724d0ee62f948
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import '@openzeppelin/contracts/token/ERC20/ERC20.sol'; import "@openzeppelin/contracts/access/Ownable.sol"; import '@openzeppelin/contracts/token/ERC721/IERC721.sol'; import '@openzeppelin/contracts/token/ERC1155/IERC1155.sol'; import "hardhat/console.sol"; im...
2,073
true
other
9bb99307201115761d7fd6a5f2356cabb2cb41cc99940b1ec7eb8bd278a399fb
slither-audited
// SPDX-License-Identifier: MIT pragma solidity 0.6.12; pragma experimental ABIEncoderV2; import "../vendors/libraries/SafeMath.sol"; import "../vendors/libraries/SafeERC20.sol"; import "../vendors/interfaces/IERC20.sol"; import "./UsersStorage.sol"; import "./StagesStorage.sol"; abstract contract AbstractFarm is Use...
583
true
reentrancy|arithmetic|unchecked-calls|other
105ad8d8ce049b7c5b20a1500e74f56ad576d90329841240b6e24155063a5b5a
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol"; /* Name: Missing flash loan initiator check Description:...
153
true
Flashloan flaw
c18cf53ebf80d163f478ca3ebe31d50b271fef6b515f235747814cc8ef08f082
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.15; import "forge-std/Test.sol"; /* Name: abi.encodePacked() Hash Collisions Description: Using abi.encodePacked() with multiple variable length arguments can, in certain situations, lead to a hash collision. Hash functions are designed to be unique for each inp...
65
true
Hash collisions
fb2e779616fd16ad6360f30de80f020ee0b4add82897207b969b9c5f345e78b2
DeFiVulnLabs
// SPDX-License-Identifier: MIT pragma solidity ^0.8.18; import "forge-std/Test.sol"; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; import "@openzeppelin/contracts/utils/Counters.sol"; // Immunefi #spotthebugchallenge! // https://twitter.com/immunefi/st...
53
true
Immunefi ch1
85aef5f86aeb4291b2ca665422d5e9ecdeee443d3793d837073670a6f9b8a0b7
slither-audited
// SPDX-License-Identifier: MIT pragma solidity >=0.8.0 <0.9.0; // File: @openzeppelin/contracts/security/ReentrancyGuard.sol // OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol) /** * @dev Contract module that helps prevent reentrant calls to a function. * * Inheriting from `ReentrancyGuard` will ma...
1,383
true
reentrancy|unchecked-calls
8863fb7566d4aada101c3c6f0502be7974e5d8edc3ab361fa249651aafc95f15
slither-audited
pragma solidity ^0.4.18; /** * @title SafeMath * @dev Math operations with safety checks that throw on error */ library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a * b; assert(a == 0 || c / a == b); return c; } function div(uint256 a, uint256 b) inter...
96
true
reentrancy|unchecked-calls
b1928b5be7d41fd33eead80bb7b1a9710a113545bdb53d54b68d4da54da0efbd
slither-audited
pragma solidity ^0.4.23; contract LotteryFactory { // contract profit uint public commissionSum; // default lottery params Params public defaultParams; // lotteries Lottery[] public lotteries; // lotteries count uint public lotteryCount; // contract owner address address public owner; struct Lottery { m...
495
true
arithmetic|access-control|other
d11a1cf11731ce90626e7489a9b1bc0e4aac8b71bd30a68c8b53188695ffd94e
slither-audited
// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; /// @author: manifold.xyz import "@openzeppelin/contracts-upgradeable/token/ERC1155/ERC1155Upgradeable.sol"; import "@manifoldxyz/libraries-solidity/contracts/access/AdminControlUpgradeable.sol"; import "./core/ERC1155CreatorCore.sol"; /** * @dev ERC1155Crea...
2,533
true
unchecked-calls|other
b51e7eaf468653327afb8fb424ade45f91eb76735c53e62b9ad30b27d06d3c15
slither-audited
// SPDX-License-Identifier: MIT // OpenZeppelin Contracts v4.4.0 (token/ERC20/IERC20.sol) pragma solidity ^0.8.0; /** * @dev Interface of the ERC20 standard as defined in the EIP. */ interface IERC20 { /** * @dev Returns the amount of tokens in existence. */ function totalSupply() external view re...
1,944
true
reentrancy|arithmetic|unchecked-calls
07cf8a1f3c9fbea765673f4e2b9fb841c745eadaa5aca1115aa7cbb9d7e98be8
slither-audited
/** *Submitted for verification at Etherscan.io on 2021-06-14 */ pragma solidity ^0.5.17; interface IERC20 { function totalSupply() external view returns(uint); function balanceOf(address account) external view returns(uint); function transfer(address recipient, uint amount) external returns(bool); ...
282
true
access-control|unchecked-calls
44521e15cff0e6d3f5460404ce03852a17500bc2cddb14e575bbe382454f8454
slither-audited
pragma solidity ^0.4.18; /** * @title ERC20Basic * @dev Simpler version of ERC20 interface * @dev see https://github.com/ethereum/EIPs/issues/179 */ contract ERC20Basic { uint256 public totalSupply; function balanceOf(address who) constant returns (uint256); function transfer(address to, uint256 value) retu...
316
true
reentrancy|unchecked-calls
0f4ae2811a346ecb327c6bed0b5953999fa4eb1831b8751178175d3f291cb7be
slither-audited
// SPDX-License-Identifier: MIT pragma solidity 0.8.4; import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; import "@openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol"; import "@openzeppelin/contracts/utils/Strings.sol"; import "@openzeppelin/contracts/access/Ownable.sol"; contract UkrNoWar i...
1,168
true
unchecked-calls
f2b9fc1a258038b089c89d54188cc711665a9aa3c73b55757584b1cc67900490
slither-audited
// File: @openzeppelin/contracts/utils/Strings.sol // OpenZeppelin Contracts v4.4.1 (utils/Strings.sol) pragma solidity ^0.8.0; /** * @dev String operations. */ library Strings { bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef"; /** * @dev Converts a `uint256` to its ASCII `string` decimal...
1,194
true
reentrancy|unchecked-calls
d7b38bd1f8e3d606cfcdc6b77f86fa71d7f19bc358a0195f67bd010fadc1d89a