input stringlengths 32 47.6k | output stringclasses 657
values |
|---|---|
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ACT876506' token contract
//
// Deployed to : 0x3f70c0B02879c36162C2C902ECfe9Ac0a8a8a187
// Symbol : ACT876506
// Name : ADZbuzz Torrentfreak.com Community Token
// T... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functio... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) unused-return with Medium impact
3) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// 'YFTrade AI' token contract
//
// Deployed to : 0xace3C69a43233D2B99bb4113Fd1aEfD7cD833aBB
// Symbol : YFTR
// Name : YFTrade AI
// Total supply: 666666
// Decimals : 18
// Safe maths
// ----------------------------------------------------------------------------
contract Sa... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/*
* (c) 2021 Ever Rest Coin
* https://t.me/EverRestCoin
*/
pragma solidity 0.5.16;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view retur... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact
3) incorrect-equality with Medium impact |
pragma solidity ^0.4.24;
//Safe Math Interface
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) public pure returns (uint c) {
require(b <= a);
c = a - b;
}
fun... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'Anonymous' token contract
//
// Deployed to : 0xF21936F4633eb93FF24b2fFfB52FA3890aB72A47
// Symbol : ANS
// Name : Anonymous
// Total supply: 10000000
// Decimals : 9
//
// Enjoy.
//
// (c) by Mo... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers ov... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) reentrancy-no-eth with Medium impact
3) locked-ether with Medium impact |
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 returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.23;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
functio... | These are the vulnerabilities found
1) reentrancy-eth with High impact
2) reentrancy-no-eth with Medium impact
3) locked-ether with Medium impact |
// Dependency file: @openzeppelin/contracts/utils/Context.sol
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
// pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are ... | No vulnerabilities found |
pragma solidity >=0.4.22 <0.6.0;
interface tokenRecipient {
function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraData) external;
}
contract MECA{
// Public variables of the token
string public name;
string public symbol;
uint8 public decimals = 18;
// ... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'ESCOIN' token contract
//
// Deployed to : 0x437A7633a7361c91C524581b66109198b0b7629C
// Symbol : EZYCOIN
// Name : EZYCOIN Token
// Total supply: 100000000
// Decimals : 18
//
// Enjoy.
//
// (c... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.5.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 (uint256) {
return sub(a, ... | These are the vulnerabilities found
1) weak-prng with High impact
2) uninitialized-local with Medium impact |
pragma solidity 0.5.16;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-equality with Medium impact |
pragma solidity ^0.4.25;
/**
* @title Ownable
* @dev The Ownable contract has an owner address, and provides basic authorization control
* functions, this simplifies the implementation of "user permissions".
*/
contract Ownable {
address public owner;
/**
* @dev The Ownable constructor sets the original ... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) unchecked-send with Medium impact |
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol";
/**
@title Contract to exchange REPT-b for FEI
*/
contract REPTbRedeemer {
using SafeERC20 for IERC20;
event Exchange(address indexed from, address indexed to, uint256 amount);
IERC2... | No vulnerabilities found |
pragma solidity ^0.4.18;
// File: contracts/SafeMath.sol
/*
Copyright 2018, All rights reserved.
_ _
\ \ / / ___ ___ _ __
\ \ / / / _ \ / _ \| '_ \
\ \/ / | __/| __/| | | |
\__/ \___| \___||_| |_|
@title SafeMath
@author OpenZeppelin
@dev Math operations wi... | These are the vulnerabilities found
1) constant-function-asm with Medium impact
2) uninitialized-local with Medium impact
3) locked-ether with Medium impact |
/**
*
Tibetan Mastiff Protocol ($TIBETAN)
*
*/
pragma solidity >=0.5.17;
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function m... | No vulnerabilities found |
/**
https://t.me/koopid
*/
pragma solidity ^0.5.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP. Does not include
* the optional functions; to access them see `ERC20Detailed`.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply(... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: None
pragma solidity ^0.8.6;
interface IERC20ish {
function decimals() external view returns (uint8);
function balanceOf(address account) external view returns (uint256);
}
contract Contract {
function random(uint16 floor,uint16 ceil) external view returns (uint) {
uint r... | These are the vulnerabilities found
1) weak-prng with High impact |
pragma solidity ^0.4.19;
contract BaseToken {
string public name;
string public symbol;
uint8 public decimals;
uint256 public totalSupply;
mapping (address => uint256) public balanceOf;
mapping (address => mapping (address => uint256)) public allowance;
event Transfer(address indexed from... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.5.4;
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a * b;
require(a == 0 || c / a == b);
return c;
}
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a);
return c... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
import "./CROWDValidator.sol";
import "./ICROWDToken.sol";
contract CrowdBridge is Ownable, CROWDValidator {
mapping(address => bool) public regist... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/*
GoalTime N(GTX) is a Ethereum BlockChain based CryptoCurrency which is used to mine GTX tokens for those people who use GoalTime N Apps.
For benefits of users,GTX can be converted to Bitcoin,Ethereum or other crypto using third party exchanges.
GoalTime N App is a social networking app that makes it easy for you ... | These are the vulnerabilities found
1) uninitialized-state with High impact
2) locked-ether with Medium impact |
pragma solidity ^0.4.0;
contract AgentContract {
address __owner;
address target;
mapping(address => uint256) agent_to_piece_of_10000;
address [] agents;
event SendEther(address addr, uint256 amount);
function AgentContract(address tar_main,address tar1,address tar2,uint256 stake1,uint256 sta... | These are the vulnerabilities found
1) unchecked-send with Medium impact
2) controlled-array-length with High impact |
pragma solidity ^0.4.24;
contract Owned {
address public aOwner;
address public coOwner1;
address public coOwner2;
constructor() public {
aOwner = msg.sender;
coOwner1 = msg.sender;
coOwner2 = msg.sender;
}
/* Modifiers */
modifier onlyOwner {
require(msg.s... | These are the vulnerabilities found
1) weak-prng with High impact
2) incorrect-equality with Medium impact
3) tautology with Medium impact |
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity 0.8.7;
/// @notice Modern and gas efficient ERC20 + EIP-2612 implementation.
/// @author Modified from Uniswap (https://github.com/Uniswap/uniswap-v2-core/blob/master/contracts/UniswapV2ERC20.sol)
/// Taken from Solmate: https://github.com/Rari-Capital/solmate
... | No vulnerabilities found |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'GAY$' token contract
//
// Deployed to : 0x854f7f6688ba120cc4d446472c8e255a58791ded
// Symbol : GAY$
// Name : GAY$
// Total supply: 100000000
// Decimals : 18
//
//
// --------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'PizzaFox' token contract
//
// Deployed to : 0x3fb99E47D787F4A24e888d6e3409Ab595d6ab62c
// Symbol : FXSlICE
// Name : PizzaFox
// Total supply: 1000000000000000
// Decimals : 18
//
// https://t.m... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2021-02-23
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.7.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, ui... | No vulnerabilities found |
pragma solidity ^0.5.0;
/*****************************************************************************
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*/
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
... | No vulnerabilities found |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// Sample token contract
//
// Symbol : BTC
// Name : Bitcoin
// Total supply : 2758296667808794
// Decimals : 8
// Owner Account : 0x0500d4b6cF061AAF5c003Df60f8C093887D6AF94
//
// Enjoy.
//
/... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns... | No vulnerabilities found |
/*
kevin n his frens
*/
// SPDX-License-Identifier: MIT
// 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` ... | These are the vulnerabilities found
1) unused-return with Medium impact
2) msg-value-loop with High impact
3) uninitialized-local with Medium impact |
pragma solidity ^0.8.0;
// SPDX-License-Identifier: MIT
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// (c) CHAIN MAFIA CAPITAL
pragma solidity 0.8.10;
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
this;
return msg.data;
}
}
interface IERC20... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact
3) incorrect-equality with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity >=0.4.22 <0.9.0;
contract Migrations {
address public owner = msg.sender;
uint public last_completed_migration;
modifier restricted() {
require(
msg.sender == owner,
"This function is restricted to the contract's owner"
);
_;
}
functio... | These are the vulnerabilities found
1) weak-prng with High impact
2) unused-return with Medium impact
3) incorrect-equality with Medium impact
4) uninitialized-local with Medium impact |
pragma solidity 0.5.16;
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the token decimals.
*/
function decimals() external view returns (uint8);
/**
* @dev Returns the token symbol.
*/
... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact
3) incorrect-equality with Medium impact |
pragma solidity >=0.4.21 <0.6.0;
interface ERC20 {
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function transferFrom(address fro... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'Infinite Corridor' token contract
//
// Deployed to : 0x1E37f08D1EcB2E98330f20F90fFF0A0b45A85Fea
// Symbol : INFCOR
// Name : Infinite Corridor
// Total supply: 100000000
// Decimals : 18
//
// (... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// Dependency file: @openzeppelin/contracts/math/SignedSafeMath.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.6.0;
/**
* @title SignedSafeMath
* @dev Signed math operations with safety checks that revert on error.
*/
library SignedSafeMath {
int256 constant private _INT256_MIN = -2**255;
... | No vulnerabilities found |
// SPDX-License-Identifier: SEE LICENSE IN LICENSE
pragma solidity 0.6.12;
interface IERC20Token {
function allowance(address _owner, address _spender) external view returns (uint256);
function transferFrom(address _from, address _to, uint256 _value) external returns (bool);
}
contract DefenderOSZeppelin{
... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
//
/*
* @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 w... | No vulnerabilities found |
pragma solidity ^0.4.24;
// ----------------------------------------------------------------------------
// 'DeFiCoin' token contract
//
// Deployed to : 0xFd7A09ca82601fb3a5CB355dE8812177a5BD6597
// Symbol : DFC
// Name : DeFiCoin
// Total supply: 100000000
// Decimals : 8
//
//
//
//
// -------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.23;
// ----------------------------------------------------------------------------
// 'GLX' token contract
//
// Deployed to : 0x1d5B6586dD08fF8E15E45431E3dfe51493c83B5C
// Symbol : GLX
// Name : Golix Token
// Total supply: 1274240097
// Decimals : 18
//
// Enjoy.
//
// -----------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity 0.6.12;
import "@openzeppelin/contracts/access/Ownable.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20.sol";
import "@openzeppelin/contracts/token/ERC20/ERC20Burnable.sol";
import "@openzeppelin/contracts/math/SafeMath.sol";
interface IBrincStaking {
function ... | No vulnerabilities found |
// Verified using https://dapp.tools
// hevm: flattened sources of /nix/store/n0zrh7hav4swn38ckv0y2panmrlaxy1s-geb-fsm/dapp/geb-fsm/src/OSM.sol
pragma solidity =0.6.7;
////// /nix/store/3d3msxain9q01swpn63dsh9wl2hsal24-geb-treasury-reimbursement/dapp/geb-treasury-reimbursement/src/math/GebMath.sol
/* pragma solidity ... | These are the vulnerabilities found
1) unused-return with Medium impact
2) weak-prng with High impact
3) divide-before-multiply with Medium impact
4) uninitialized-local with Medium impact |
pragma solidity 0.4.23;
/**
* @title Math
* @dev Assorted math operations
*/
library Math {
function max64(uint64 a, uint64 b) internal pure returns (uint64) {
return a >= b ? a : b;
}
function min64(uint64 a, uint64 b) internal pure returns (uint64) {
return a < b ? a : b;
}
function max256(ui... | No vulnerabilities found |
// 0.4.20+commit.3155dd80.Emscripten.clang
pragma solidity ^0.4.20;
contract owned {
address public owner;
function owned() public { owner = msg.sender; }
modifier onlyOwner {
if (msg.sender != owner) { revert(); }
_;
}
function changeOwner( address newowner ) public onlyOwner {
owner = newown... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | These are the vulnerabilities found
1) tx-origin with Medium impact
2) reentrancy-no-eth with Medium impact
3) incorrect-equality with Medium impact
4) weak-prng with High impact
5) unused-return with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
requi... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
*Submitted for verification at Etherscan.io on 2020-11-02
*/
/**
*Submitted for verification at Etherscan.io on 2020-10-26
*/
pragma solidity ^0.5.11;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function allow... | These are the vulnerabilities found
1) unchecked-transfer with High impact
2) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "../utils/Context.sol";
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the on... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
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 returns (uint256);
/**
* @dev Returns the amount... | No vulnerabilities found |
pragma solidity ^0.4.21;
// ----------------------------------------------------------------------------
// Safe maths
// ----------------------------------------------------------------------------
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity 0.5.16; /*
___________________________________________________________________
_ _ ______
| | / / /
--|-/|-/-----__---/----__----__---_--_----__-------/-------__------
|/ |/ /___) / ... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) locked-ether with Medium impact
3) uninitialized-local with Medium impact
4) controlled-array-length with High impact |
pragma solidity ^0.7.0;
contract Owned {
modifier onlyOwner() {
require(msg.sender == owner);
_;
}
address owner;
address newOwner;
function changeOwner(address payable _newOwner) public onlyOwner {
newOwner = _newOwner;
}
function acceptOwnership() public {
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol";
import "@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol";
interface ILosslessController {
... | No vulnerabilities found |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
// File: @openzeppelin/contracts/introspection/IERC165.sol
/**
* @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
* queried... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact |
pragma solidity ^0.5.0;
// ----------------------------------------------------------------------------
// ERC Token Standard #20 Interface
//
// ----------------------------------------------------------------------------
contract ERC20Interface {
function totalSupply() public view returns (uint);
function ba... | No vulnerabilities found |
pragma solidity ^0.4.21;
// ----------------------------------------------------------------------------
// @Project YouRyuCoin (YRC)
// @Creator RyuChain
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// ... | No vulnerabilities found |
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);
function allowance(address owner, address spender) external view r... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.4.18;
// ----------------------------------------------------------------------------
// 'CHFO' token contract
//
// Deployed to : 0x6d8d30e6c418E322Fb20b9F01115858cDF1e979E
// Symbol : CHFO
// Name : CHF_Omnidollar
// Total supply: 100000000000.000000000000000000
// Decimals : 18
//
... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// _ _ _ _ __ _
// | | (_) | | | / _(_)
// | | ___| |_| |_ ___ _ __ | |_ _ _ __ __ _ _ __ ___ ___
// | |/ / | __| __/ _ \ '_ \ | _| | '_ \ / _` | '_ \ / __/ _ \
// | <| | |_| || __/ | | |_| | | | | | | (_| | | | |... | These are the vulnerabilities found
1) weak-prng with High impact
2) reentrancy-no-eth with Medium impact
3) unused-return with Medium impact |
// File: contracts/utils/Context.sol
pragma solidity ^0.8.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... | No vulnerabilities found |
pragma solidity ^0.4.26;
contract SafeMath {
function safeAdd(uint256 a, uint256 b) public pure returns (uint256 c) {
c = a + b;
require(c >= a);
}
function safeSub(uint256 a, uint256 b) public pure returns (uint256 c) {
require(b <= a);
c = a - b;
}
function safeMu... | These are the vulnerabilities found
1) locked-ether with Medium impact |
pragma solidity ^0.5.0;
interface ENS {
// Logged when the owner of a node assigns a new owner to a subnode.
event NewOwner(bytes32 indexed node, bytes32 indexed label, address owner);
// Logged when the owner of a node transfers ownership to a new account.
event Transfer(bytes32 indexed node, addre... | These are the vulnerabilities found
1) mapping-deletion with Medium impact
2) reentrancy-no-eth with Medium impact
3) unused-return with Medium impact
4) locked-ether with Medium impact |
pragma solidity ^0.4.24;
// Safe Math library
library SafeMath {
function mul(uint256 a, uint256 b) internal pure returns (uint256 c) {
if (a == 0) {
return 0;
}
c = a * b;
assert(c / a == b);
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// File: @openzeppelin/contracts/math/SafeMath.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.6.0;
/**
* @dev Wrappers over Solidity's arithmetic operations with added overflow
* checks.
*
* Arithmetic operations in Solidity wrap on overflow. This can easily result
* in bugs, because programmers usually... | No vulnerabilities found |
pragma solidity ^0.4.20;
contract Lottery{
/*=================================
= MODIFIERS =
=================================*/
// Only owner allowed.
modifier onlyOwner()
{
require(msg.sender == owner);
_;
}
// The tokens can never be stolen.... | These are the vulnerabilities found
1) reentrancy-eth with High impact
2) weak-prng with High impact
3) unused-return with Medium impact
4) arbitrary-send with High impact |
// ----------------------------------------------------------------------------
// 'CTB' 'CrypTollBooth Token' token contract
//
// Symbol : CTB
// Name : CrypTollBooth
// Total supply: 50,000,000.000000000
// Decimals : 9
//
// Enjoy.
//
// (c) BokkyPooBah / Bok Consulting Pty Ltd 2017. The MIT Licence.... | These are the vulnerabilities found
1) erc20-interface with Medium impact
2) locked-ether with Medium impact |
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
// Lib: Safe Math
// ---------
// ----------------------------------------------------------------------------
//
// Symbol : PUTINU
// Name : P... | These are the vulnerabilities found
1) locked-ether with Medium impact |
contract ERC20Basic {
uint public totalSupply;
function balanceOf(address who) constant returns (uint);
function transfer(address to, uint value);
event Transfer(address indexed from, address indexed to, uint value);
}
contract ERC20 is ERC20Basic {
function allowance(address owner, address spender) constant... | These are the vulnerabilities found
1) erc20-interface with Medium impact |
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function mul(uint a, uint b) internal pure returns (uint... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// ----------------------------------------------------------------------------
// JZ allows users to trade their value of JZ and JZCoin
// Total allocation of 100m
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
* @dev Cryptolotto referral system interface.
*/
contract iCryptolottoReferral {
/**
* @dev Get partner by referral.
*/
function getPartnerByReferral(address) public constant returns (address) {}
/**
* @dev Get partner percent.
*/
function getPartnerPercent(address) public view ... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) arbitrary-send with High impact
3) reentrancy-eth with High impact
4) weak-prng with High impact
5) controlled-array-length with High impact |
contract noFoundationProposal {} | No vulnerabilities found |
// ----------------------------------------------------------------------------
// (c) by Moritz Neto with BokkyPooBah / Bok Consulting Pty Ltd Au 2017. The MIT Licence.
// ----------------------------------------------------------------------------
// ------------------------------------------------------------------... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// CGT meme list (join us https://discord.gg/jbHKHTS )
// goodbye motherfucker, get the fuck off this Scam.wish to your intestine affected on the sidewalk motherfucker.goodbye fucking asshole!
// hellina, poorguy, papaprek, spydr
// AAAAA
// ALL MY LINK IS GONE
// can harj make a video about this ?
// 69 wei
// CAN... | No vulnerabilities found |
contract RNG{
/** @dev Contribute to the reward of a random number.
* @param _block Block the random number is linked to.
*/
function contribute(uint _block) public payable;
/** @dev Request a random number.
* @param _block Block linked to the request.
*/
function requestRN(uint ... | These are the vulnerabilities found
1) unchecked-send with Medium impact
2) incorrect-equality with Medium impact |
contract META {
string public name = "Dunaton Metacurrency 2.0";
uint8 public decimals = 18;
string public symbol = "META";
address public _owner;
address public dev = 0xC96CfB18C39DC02FBa229B6EA698b1AD5576DF4c;
uint256 public _tokePerEth = 156;
uint256 public _totalSupply = 21000000; //... | These are the vulnerabilities found
1) unchecked-send with Medium impact
2) tautology with Medium impact
3) erc20-interface with Medium impact |
/*
Subrosa is a contract designed to behave exactly like a pyramid economy. Based on previous projects such as Proof of Weak Hands and EthPhoenix.
The problem with PoWH and EthPhoenix is that the incentive to spread the contract is limited. In PoWH's case, masternodes only work for people that put down a lot of time ... | No vulnerabilities found |
//
// by Agustin Aguilar <agusxrun@gmail.com>
//
contract NanoUniversalDeployer {
event Deploy(address _addr) anonymous;
fallback() external payable {
address addr;
bytes memory code = msg.data;
assembly { addr := create2(callvalue(), add(code, 32), mload(code), 0) }
emit Deploy... | These are the vulnerabilities found
1) locked-ether with Medium impact |
library IterableMapping {
// Iterable mapping from address to uint;
struct Map {
address[] keys;
mapping(address => uint) values;
mapping(address => uint) indexOf;
mapping(address => bool) inserted;
}
function get(Map storage map, address key) public view returns (uint) ... | No vulnerabilities found |
library Keep3Library {
function getReserve(address pair, address reserve) external view returns (uint) {
(uint _r0, uint _r1,) = IUniswapV2Pair(pair).getReserves();
if (IUniswapV2Pair(pair).token0() == reserve) {
return _r0;
} else if (IUniswapV2Pair(pair).token1() == reserve) {
... | No vulnerabilities found |
interface IERC1155 {
function safeTransferFrom(address _from, address _to, uint256 _id, uint256 _amount, bytes calldata _data) external;
}
contract NftDistributor {
function distribute(IERC1155 nft, address[] memory to, uint[] memory ids, uint[] memory amounts) public {
for(uint i = 0; i < to.length; i++) {
... | No vulnerabilities found |
contract Token {
/// @return total amount of tokens
function totalSupply() constant returns (uint256 supply) {}
/// @param _owner The address from which the balance will be retrieved
/// @return The balance
function balanceOf(address _owner) constant returns (uint256 balance) {}
/// @notice s... | No vulnerabilities found |
contract Kingdom {
struct City {
mapping(uint => uint) resources; //food, wood, stone, iron, gold, ... special
mapping(uint => mapping(uint => uint)) map;
mapping(uint => uint) resourceFactors; //population, food, wood, stone, iron, gold, woodWork, mason, blacksmith, goldforge, spirit, ... | These are the vulnerabilities found
1) weak-prng with High impact
2) divide-before-multiply with Medium impact
3) tautology with Medium impact |
// EtherGen Contract:
// Base Minting Contract
contract CardMintingFacilitator {
CardConfig schema = CardConfig(0x08584271df3d0249c2c06ac1bc1237a1dd30cb9a);
EtherGenCore storageContract = EtherGenCore(0x677aa1dc08b9429c595efd4425b2d218cc22fd6e);
address public owner = 0x08F4aE96b647B30177cc15B2119596062... | These are the vulnerabilities found
1) reentrancy-no-eth with Medium impact
2) constant-function-asm with Medium impact
3) incorrect-equality with Medium impact
4) uninitialized-local with Medium impact
5) weak-prng with High impact
6) controlled-array-length with High impact |
contract Trongold {
/* Public variables of the token */
string public standard = 'Token 0.1';
string public name;
string public symbol;
uint8 public decimals;
uint256 public initialSupply;
uint256 public totalSupply;
/* This creates an array with all balances */
mapping (address =>... | These are the vulnerabilities found
1) erc20-interface with Medium impact |
/**
* @title NumberLottery
* @dev NumberLottery contract starts with a random,
* hashed number that the player can try to guess. If the guess is correct,
* they receive the balance of the contract as a reward (including their bet).
* If they guess incorrectly, the contract keeps the player's bet amount. Have fun!
... | These are the vulnerabilities found
1) uninitialized-storage with High impact
2) weak-prng with High impact
3) incorrect-equality with Medium impact
4) controlled-array-length with High impact |
// ----------------------------------------------------------------------------
// F0rxed by DEFI-led LABS
// ----------------------------------------------------------------------------
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
require(c >= a);... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// CryptoRoulette
//
// Guess the number secretly stored in the blockchain and win the whole contract balance!
// A new number is randomly chosen after each try.
//
// To play, call the play() method with the guessed number (1-10). Bet price: 0.1 ether
contract CryptoRoulette {
uint256 private secretNumber;
... | These are the vulnerabilities found
1) uninitialized-storage with High impact
2) weak-prng with High impact
3) incorrect-equality with Medium impact
4) controlled-array-length with High impact |
// GoGoPay Token
// Symbol : GoGoPay
// Name : GoPay
// Total supply: 16,000,000,000
// Decimals : 18
//
//
// GoGoPay - Technology Which Will Change The World
//
// GoGopay.com // GoPayForum.com
//
//
contract Token {
/// @return total amount of tokens
function totalSu... | No vulnerabilities found |
library SafeMath {
function add(uint a, uint b) internal pure returns (uint c) {
c = a + b;
require(c >= a);
}
function sub(uint a, uint b) internal pure returns (uint c) {
require(b <= a);
c = a - b;
}
function mul(uint a, uint b) internal pure returns (uint... | These are the vulnerabilities found
1) locked-ether with Medium impact |
contract SafeMath {
function safeAdd(uint a, uint b) public pure returns (uint c) {
c = a + b;
require(c >= a);
}
function safeSub(uint a, uint b) public pure returns (uint c) {
require(b <= a);
c = a - b;
}
function safeMul(uint a, uint b) public pure returns (uin... | These are the vulnerabilities found
1) locked-ether with Medium impact |
/**
* @dev Cryptolotto referral system interface.
*/
contract iCryptolottoReferral {
/**
* @dev Get partner by referral.
*/
function getPartnerByReferral(address) public view returns (address) {}
/**
* @dev Get partner percent.
*/
function getPartnerPercent(address) public view retu... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) arbitrary-send with High impact
3) reentrancy-eth with High impact
4) weak-prng with High impact
5) controlled-array-length with High impact |
// ________ __
// | \| \
// __ __ | $$$$$$$$| $$ __ __ __ __
//| \ | \| $$__ | $$| \ | \| \ / \
//| $$ | $$| $$ \ | $$| $$ | $$ \$$\/ $$
//| $$ | $$| $$$$$ | $$| $$ | $$ >$$ $$
//| $$__/ $$| $$ | $$| $$__/ $$ /... | These are the vulnerabilities found
1) locked-ether with Medium impact |
// Abstract contract for the full ERC 20 Token standard
// https://github.com/ethereum/EIPs/issues/20
contract Token {
/* This is a slight change to the ERC20 base standard.
function totalSupply() constant returns (uint256 supply);
is replaced with:
uint256 public totalSupply;
This automatically cr... | No vulnerabilities found |
/* LeewayHertz - AIG - Investment v0.79 - Pre-Prod
* Developed and Deployed by LeewayHertz Blockchain Team C - Dhruv Govila, Rajat Singla, Jayesh Chaudhari, Deepak Shokeen, Raghav Gulati, Rohit Tandon
* Global Repo Name: CA-LHTAIGLenderPlatform
*/
contract AIGInvestment {
uint constant LONG_PHASE = 4; ... | These are the vulnerabilities found
1) divide-before-multiply with Medium impact
2) tautology with Medium impact
3) unchecked-send with Medium impact
4) arbitrary-send with High impact
5) uninitialized-local with Medium impact |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.