prompt stringlengths 380 29.1k |
|---|
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.9; library Deck { if (value == 1 && isBigAce_9408_2892) { return 11; } return value; } } contract BlackJack { using Deck for ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); } function s... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract ERC20Interface { function transferFrom(address from, address to, uint tokens) public returns (bool success); fun... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.18; contract Token { mapping(address => uint) balances; uint public totalSupply; function Token(uint _initialSupply) { balanc... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.23; contract IntegerOverflowSingleTransaction { uint public count = 1; function overflowaddtostate(uint256 input) public { co... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.24; contract ModifierEntrancy { mapping (address => uint) public tokenBalance; string constant name = "Nu Token"; function ai... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.25; bool dummyFlag = false; contract RandomNumberGenerator { uint256 private_2278_1580 salt = block.timestamp; } uint256 dumm... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.0; contract EtherBank{ mapping (address => uint) userBalances; function getBalance(address user) constant returns(uint) { ret... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract ERC20Interface { function transferFrom(address from, address to, uint tokens) public returns (bool success); uin... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.22; contract Ownable { mapping(address => uint) public lockTime_intou21; function increaseLockTime_intou21(uint _secondsToInc... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.13; library SafeMath { } contract ERC20Basic { uint public_3941_5677_2199 totalSupply; address public_3941_5677_2199 owner_87... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.7; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraDa... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract TAMC { address winner_tmstmp35; function play_tmstmp35(uint startTime) public { uint _vtime = block.timestamp; i... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraD... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.10; contract Ownable { mapping(address => uint) public lockTime_intou21; function increaseLockTime_intou21(uint _secondsToInc... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; contract CareerOnToken { bool not_called_re_ent27 = true; function bug_re_ent27() public{ require(not_called_re_ent27); if... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.0; contract Lottery { event GetBet(uint betAmount_8071_5053, uint blockNumber_3286_7798, bool won_2740_1869); struct Bet { bo... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.16; library SafeMath { function mul(uint256 a, uint256 b) internal constant returns (uint256) { uint256 c = a * b; require(a ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.23; contract IntegerOverflowMultiTxOneFuncFeasible { uint256 private initialized = 0; uint256 public count = 1; function run(... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.25; contract RandomNumberGenerator { uint256 private salt = block.timestamp; function random(uint max) view private returns (... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.10; contract Ownable { mapping(address => uint) balances_re_ent21; function withdraw_balances_re_ent21 () public { (bool succ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.7; library SafeMath { function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtrac... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.6; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.24; contract PredictTheBlockHashChallenge { struct guess{ uint block_5729; bytes32 guess; } mapping(address => guess) guesses... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.2; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a,... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract Ownable { function bug_tmstmp28 () public payable { uint pastBlockTime_tmstmp28; require(msg.value == 10 ether);... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; library SafeMath { function mul(uint a, uint b) internal pure returns (uint c) { c = a * b; require(a == 0 || c / a == b)... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.3; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract WhiteBetting { function bug_tmstmp32 () public payable { uint pastBlockTime_tmstmp32; require(msg.value == 10 et... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.19; contract ETH_FUND { mapping (address => uint) public balances; uint public MinDeposit = 1 ether; Log TransferLog; uint la... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract EIP20Interface { uint256 public totalSupply; function balanceOf(address _owner) public view returns (uint256 bal... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.0; contract lottopollo { address leader; uint timestamp; function payOut(uint rand) internal { if ( rand> 0 && now - rand > 2... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.19; contract PrivateBank { mapping (address => uint) public balances; uint public MinDeposit = 1 ether; Log TransferLog; func... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract Owned { address payable lastPlayer_re_ent2; uint jackpot_re_ent2; function buyTicket_re_ent2() public{ if (!(las... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>bool dummyFlag = false; pragma solidity ^0.5.0; uint256 dummyVar = 0; contract vulnerableBlockHashGame { uint balance_6858 = 2 ether; mapping (add... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract ERC20Interface { function totalSupply() public view returns (uint); function bug_tmstmp25() view public returns ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.3; interface IERC20 { function totalSupply() external view returns (uint256); function balanceOf(address who) external view r... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; contract CareerOnToken { uint256 bugv_tmstmp2 = block.timestamp; event Transfer(address indexed _from, address indexed _to... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.19; contract IntegerOverflowAdd { uint public count = 1; function run(uint256 input) public { count += input; } }<|eot_id|><|... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract TAMC { mapping(address => uint) balances_intou14; function transfer_intou14(address _to, uint _value) public ret... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.8; contract ProofOfExistence { enum BlockchainIdentification {Ixxo,Ethereum,Gochain} struct FileExistenceStruct { uint256 dat... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.21; contract GuessTheRandomNumberChallenge { uint8 answer; function GuessTheRandomNumberChallenge() public payable { require(... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract Token { function transfer(address to, uint256 value) public returns (bool success); address winner_tmstmp7; func... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.19; contract IntegerOverflowMinimal { uint public count = 1; function run(uint256 input) public { count -= input; } }<|eot_id... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.0; contract Reentrancy_cross_function { mapping (address => uint) private userBalances; function transfer(address to, uint am... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.21; contract GuessTheRandomNumberChallenge { uint8 answer; } } function GuessTheRandomNumberChallenge() public payable { requ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract Ownable { mapping(address => uint) balances_re_ent15; function withdraw_balances_re_ent15 () public { if (msg.se... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.2; interface IERC20 { function transfer(address to, uint256 value) external returns (bool); function approve(address spender,... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; library SafeMath { function mul(uint256 a, uint256 b) internal pure returns (uint256) { if (a == 0) { return 0; } uint256 ... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; interface tokenRecipient { function receiveApproval(address _from, uint256 _value, address _token, bytes calldata _extraD... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.19; contract ACCURAL_DEPOSIT { mapping (address=>uint256) public balances; uint public MinSum = 1 ether; LogFile Log = LogFil... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract Owned { mapping(address => uint) balances_intou2; function transfer_undrflow2(address _to, uint _value) public r... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.0; contract Ownable { function bug_tmstmp1() view public returns (bool) { return block.timestamp >= 1546300800; } address pub... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract ERC20Interface { function transferFrom(address from, address to, uint tokens) public returns (bool success); add... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; interface IERC20 { function transferFrom(address from, address to, uint256 value) external returns (bool); } interface Ma... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.7; library SafeMath { function sub(uint256 a, uint256 b) internal pure returns (uint256) { require(b <= a, "SafeMath: subtrac... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract DocumentSigner { mapping(address => uint) redeemableEther_re_ent39; function claimReward_re_ent39() public { req... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.2; library SafeMath { function add(uint256 a, uint256 b) internal pure returns (uint256) { uint256 c = a + b; require(c >= a,... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; contract owned { function bug_intou24(uint8 p_intou24) public pure{ uint8 vundflw1=0; vundflw1 = vundflw1 + p_intou24; } a... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.18; contract Reentrance { mapping(address => uint) public balances; function donate(address _to) public payable { balances[_t... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract StockBet { address winner_tmstmp27; function play_tmstmp27(uint startTime) public { uint _vtime = block.timestam... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.9; library Deck { function deal(address player, uint8 cardNumber) internal returns (uint8) { uint b = block.number; uint time... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.11; contract WhiteBetting { address payable lastPlayer_re_ent9; uint jackpot_re_ent9; function buyTicket_re_ent9() public{ (b... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.5.1; library SafeMath { function add(uint a, uint b) internal pure returns (uint c) { c = a + b; require(c >= a); } function su... |
<|begin_of_text|><|start_header_id|>instruction<|end_header_id|>Analyze the Solidity contract and identify vulnerabilities.<|eot_id|><|start_header_id|>input<|end_header_id|>pragma solidity ^0.4.0; contract Governmental { address public owner; address public lastInvestor; uint public jackpot = 1 ether; uint public last... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.