prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
oracle
true
false
## Gas: State variables only set in the constructor should be declared `immutable` ### Description Avoids a Gsset (**20000 gas**) in the constructor, and replaces the first access in each transaction (Gcoldsload - **2100 gas**) and each access thereafter (Gwarmacces - **100 gas**) with a `PUSH32` (**3 gas**). While ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unclear External Interaction. ### Description **Severity**: Informational **Status**: Resolved **description** phenomenalLiquidityDistributor.sol: performUnlock(). The contract comments in the performUnlock() suggest that it should be called from the bpnmMain contract. However, there is no explicit enforcem...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Use of Solidity version 0.8.13 which has two known issues applicable to PuttyV2 ### Description _Submitted by hubble, also found by horsefacts_ The solidity version 0.8.13 has below two issues applicable to PuttyV2 1. Vulnerability related to ABI-encoding. ref : This vulnerability can be misused si...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: transferFrom uses allowance even if spender == from ### Description Pool#transferFrom attempts to use allowance even when spender = from. This breaks compatibility with a large number of protocol who opt to use the transferFrom method all the time (pull only) instead of using both transfer and transferFrom ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: Velodrome pool pauses can potentially lead to disrupting BTC bridging ### Description The Velodrome pool, which is used for swapping tokens in the gateway process, can be paused by the pool factory admin. If the pool is paused, the swap token for ETH function will revert, preventing BTC from being bridged to t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Initializing local variables in a loop. ### Description **Severity**: Informational **Status**: Resolved **Description** TestStake::unStakeAll() #1983. TestStake::updateStakeWallet()#2017-2019. The local variables are declared in a loop and, therefore, destroyed and initialized with each iteration. Declare ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
false
false
## High: Reentrancy exploit in initiateAdventure function. ### Description **Description:** The \_initiateAdventure function is called both by the goAdventure function and the contractAdventure function. In the contractAdventure function,the user needs to pay an amount of ether to rent the hero before starting the a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Business Logic
false
false
Source: https://github.com/sherlock-audit/2022-11-nounsdao-judging/issues/28 ## Found by neko\_nyaa, dipp, obront, cccz, WATCHPUG, 0xZakk, dic0de, adriro ## Summary If a different ERC20 is accidentally sent to the contract, the Payer can withdraw it using the `rescueERC20` function. However, if they accidentally s...
Sherlock
3
NounsDAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [03] Auctions cannot be created with 200 USDC interest value ### Description ### Finding description and impact `create_interest_auction_data` intends that interest value is at least 200 USDC; i.e., 200 USDC or more. However, due to the ` This was addressed [here](https://github.com/blend-capital/blend-contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Input Length Not Checked in votingPowerOfMultipleAt() ### Description The `votingPowerOfMultipleAt()` function is used to query the voting power of multiple users at given `snapshotIds`. The logic requires that the number of `snapshotIds` be at least equal to the number of accounts. However, there is no check ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Insufficient Validation on the Bounty Token ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > For this version, the contract is only intended to be used with the ARKM token, so we're not considering it necessary to check on-chain whether burnab...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
true
false
## Gas: Don't initialize to default values ### Description **Description:** Don't initialize to default values as Solidity already does this: **Rocko:** Fixed in commit [751e906](https://github.com/getrocko/onchain/commit/751e906b7c2df6cb587e709b12de25593eb02c75). **Cyfrin:** Verified.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `noticeReducedStakeWithoutStakeld` might revert if not first stake was reduced with ID. ### Description **Description** TokensFarmSDK.sol, Perpetual Tokens FarmSDK.sol: function notice ReducedStakeWithoutStakeld(). In case the user has more than one stake and withdraws any stake but the first one, lastStakeCo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Check if variables are initialized ### Description ## Handle pauliax ## Vulnerability details ## Impact A variable named fairSideConviction is set in the contract FSD function setFairSideConviction. However, functions that use this variable do not check if it is already initialized. For example, function t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unhandled `marketLockupFor()` Edge Case ### Description `marketLockupFor()` will revert if too much `ETH` is provided. This can be modified to refund any surplus `ETH` to the user's `FETH` balance.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: EMERGENCY_ADMIN cannot adequately fulfill emergency responsibilities ### Description The protocol implements the `EMERGENCY_ADMIN` and `EMERGENCY_ROLE` to perform emergency duties. However, the `EMERGENCY_ADMIN` in `BaseGauge` is blocked form performing Emergency withdrawal of tokens as required. ### Impact T...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: `setGuardian()` Wrong implementation ### Description _Submitted by WatchPug, also found by Meta0xNull, gzeon, fatima_naz, 0x0x0x, and ksk2345_ [`IbbtcVaultZap.sol` L116-L119](https://github.com/Badger-Finance/badger-ibbtc-utility-zaps/blob/6f700995129182fec81b772f97abab9977b46026/contracts/IbbtcVaultZap.sol#...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Not Taking Update's Next Sync Committee ### Description **Update** Marked as "Fixed" by the client. Addressed in: `12857652c77a46eb4c4754f67cc1a40e8e8e7e6b`. The client provided the following explanation: > As the audit team has described in the report, the `next_sync_committee` of the consensus state is desi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
critical
access-control
true
true
## Critical: USDs stability can be compromised as collateral can be stolen by removing Hypervisor tokens directly from a vault without repaying USDs debt ### Description When the owner of a Smart Vault calls [`SmartVaultV4::depositYield`](https://github.com/the-standard/smart-vault/blob/c6837d4a296fe8a6e4bb5e0280a66d6...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: Some state variables are not set during initialize ### Description The Audius contracts can be upgraded using the [unstructured storage proxy pattern](https://docs.openzeppelin.com/upgrades/2.8/proxies). This pattern requires the use of an initializer instead of the constructor to set the initial values of ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
token
true
false
## Medium: Users incur losses when selling seats ### Description Whenever a user buys or sells a seat, we calculate the seat price at that moment using the difference between `get_reserve` from the new/current position and the old position. ```rust pub fn get_place_buy_price(supply: u32, dec_factor: u32) -> Result...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: Collateral ratio does not account underlying value of collateral in strategy ### Description When collateral is moved into the strategy, the `totalBaseToken` amount remains unchanged. This does not account for shortfalls and surpluses in the value of the collateral moved into the strategy, and as a result, the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
false
## Low: Product Account Seed Collision ### Description ## Product Account Seed Recommendations It was noticed that only the `product.product_name` was being used to derive the product account seed. It is recommended to prefix the seed with a constant to avoid seed collision with other accounts. ## Code Example File...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: LibUsdOracle is completely broken for the to-deploy L2 chain ### Description The `LibUsdOracle` library would be completely non-functional and incompatible with the intended L2 deployment of the Beanstalk protocol due to its reliance on a hardcoded Chainlink registry address that only functions on the Ether...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Using `> 0` costs more gas than `!= 0` when used on a `uint` in a `require()` statement ### Description This change saves **[6 gas](https://aws1.discourse-cdn.com/business6/uploads/zeppelin/original/2X/3/363a367d6d68851f27d2679d10706cd16d788b96.png)** per instance. The optimization works until solidity version...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Registries - general inconsistencies  Pending ### Description * NodeRegistry - check for addr(0) being passed. This is anyway only done in the constructor and will not require a lot of gas. **code/in3-contracts/contracts/NodeRegistry.sol:L138-L139** ``` constructor(BlockhashRegistry \_blockRegistry) public...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Missing Validation Logic ### Description This document outlines necessary improvements to the current implementation of the `increase_validator_stake` function and the `split_n_sui` function within the Liquid Staking module. ### Recommendation - Add the above-stated validations.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Underscore function arguments ### Description Lack consistency function arguments structure e.g underscores _ ### Impact Informational: This leads to inconsistency in code affecting code quality, code readability and maintanability
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: processFees() can be called before Balance Tracker is initialized to take all fees as profit ### Description When `initialize()` is called on the Balance Tracker contract, it sets the storage variables of `systemAddresses` and `targetBalances` to the passed arguments. Later, when `processFees()` is called, it i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [5] Not verified owner ### Description ### Code instance: Ownable.sol.transferOwnership newOwner
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: [06] `ConduitTransfer` identifier field can be dirty and unused ### Description There are two external entry points `execute(ConduitBatch1155Transfer[] calldata batchTransfers)` and `executeWithBatch1155(ConduitTransfer[] calldata standardTransfers, ConduitBatch1155Transfer[] calldata batchTransfers)` which tr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Extra code ### Description At the lines in regular methods: - https://github.com/lidofinance/lido-dao/blob/5b449b740cddfbef5c107505677e6a576e2c2b69/contracts/0.4.24/nos/NodeOperatorsRegistry.sol#L541 - https://github.com/lidofinance/lido-dao/blob/5b449b740cddfbef5c107505677e6a576e2c2b69/contracts/0.4.24/nos/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: NFT transferring won't work because of the external call to `removeDelegation`. ### Description The `VoteEscrowDelegation._transferFrom` function won't work because it calls `this.removeDelegation(_tokenId)`. The `removeDelegation` function is external, so when the call is done by `this.removeDelegation(_toke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
false
false
## Medium: In de-peg scenario, forcing full exit from every derivative & immediately re-entering can cause big losses for depositors ### Description In a de-peg scenario, there will be a general flight to safety (`ETH`) from users across the board. All pools will have a uni-directional sell-pressure where users prefer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: TimelockTokenPool Signatures Can Be Replayed - Phase 2 ### Description The [`TimelockTokenPool`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/team/TimelockTokenPool.sol#L25) contract will be deployed multiple times to [allocate grants to inves...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Pragma non-specification can lead to non-functional / corrupted contract when deployed on Arbitrum ### Description Pragma has been set to ^0.8.19 allowing the contracts to be compiled with a compiler equal or greater than 0.8.19. The problem with compiling is that Arbitrum is NOT compatible with 0.8.20 and ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: uint literals used instead of enum s for record status ### Description A request can have 3 states: 1. Pending. 2. Complete. 3. Canceled. Currently, these are just `uint` literals when they can be an `enum` for easier understanding and readability. ### Recommendation Consider replacing the `uint` literals fo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Finalizing pending deposits can be blocked by changing `warmupPeriod`. ### Description **Description** TokensFarm.sol: function finalise Deposit(), line 1063. TokensFarmSDK.sol: function finalise Deposit(), line 1026. Perpetual TokensFarmSDK.sol: function finaliseDeposit(), line 1081. Perpetual TokensFarm.sol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: UtilizationRate should be upper capped by 1e18 ### Description Just as an additional security measure, by definition, the utilization of the assets in a pool can **NOT** exceed `1e18 = 100%` of the assets in a pool. Consider upper-capping the possible utilization to `1e18`, so that if it is higher, reverts the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: No null checks for input addresses ### Description Some code lacks a check for null address: admin: https://github.com/ibdotxyz/compound-protocol/blob/8cd45803b48552e344e22be280c9e1c03ec8644a/contracts/PriceOracle/PriceOracleProxyIB.sol#L157 ### Recommendation We recommend adding null checks.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Redundant return in EVMFetchTarget ✓ Fixed ### Description In the `EVMFetchTarget` contract in the `getStorageSlotsCallback` function, there is a `return` in the `assembly` block. However, the function is missing the modifier indicating that it will `return` any variable. Thus, the `assembly` block is executed...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
false
false
## High: Precision differences when calculating userCollateralRatioMantissa causes major issues for some token pairs ### Description When calculating userCollateralRatioMantissa in borrow and liquidate. It divides the raw debt value (in loan token precision) by the raw collateral balance (in collateral precision). Thi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Use != 0 instead of > 0 for unsigned integer comparison ### Description **Protocol:** Fixed in commit [4679de1](https://github.com/SwapExchangeio/Contracts/commit/4679de1c3f8adfc4122698fc82a529322ba4b5ed). **Cyfrin:** Verified.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Bad redirects can make it impossible to deposit & withdraw ### Description _Submitted by cmichel_ The `GatewayVault._push()` function gets `redirects` from the `strategyParams`. If `redirects[i] = j`, vault index `i`'s deposits are redirected to vault index `j`. Note that the deposits for vault index `i` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: Missing `last_time` Update in `spot_lp` Causes Incorrect Daily Trade Statistics ### Description The `spot_lp` function uses `instr_state.header.last_time` to determine if a day has passed, but never updates this field. In contrast, other trading functions (`swap, new_spot_order, spot_quotes_replace`) update `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: Users Impact Over Pool Price ### Description ## Technical Explanation In both engines, `mintLp` is taking the value of the base token as `quoteAmountLowX18` if the supply is zero. As users can set whatever price they want initially, it is not preferred to leave some control over the pricing to users. ### ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [22] Consider a two-way transfer of operators/governance ### Description Multiple instances where this bug case occurs in the protocol's logic: https://github.com/code-423n4/2024-08-axelar-network/blob/69c4f2c3fcefb1b8eb2129af9c3685a44ae5b6fe/axelar-gmp-sdk-solidity/contracts/gateway/AxelarAmplifierGateway.so...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
access-control
false
false
## Medium: No restriction on the contract owner becoming an authorized sender ### Description Due to the presence of the `onlyOwner` modifier applied to [`RiskOracle::addAuthorizedSender`](https://github.com/ChaosLabsInc/risk-oracle/blob/9449219174e3ee7da9a13a5db7fb566836fb4986/src/RiskOracle.sol#L67-L75), only the co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Avoid declaring unused variables ### Description **File:** `Constants.sol` [File: code/system-contracts/contracts/Constants.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/system-contracts/contracts/Constants.sol#L93) Constant `MAX_MSG_VALUE` is not used anymore, thus it should be removed f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
true
## High: Use of low-level calls can compromise access control ### Description The `CallbackModule`, `MultipleCallbacksModule`, and `CircuitResolverModule` contracts perform low-level calls with user-specified input data and target addresses. These contracts are trusted modules with substantial permissions in the overa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: `private` functions not called by the contract should be removed to save deployment gas ### Description 1. File: splits/contracts/Splitter.sol (lines [217-220](https://github.com/code-423n4/2022-03-joyn/blob/c9297ccd925ebb2c44dbc6eaa3effd8db5d2368a/splits/contracts/Splitter.sol#L217-L220)) 2. File: splits/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: `initialize` does not trigger `__ReentrancyGuard_init` ### Description `StakedENA` uses `ReentrancyGuardUpgradeable` but does not trigger `__ReentrancyGuard_init`. While this does not affect reentrancy protection, it is considered best practice to trigger the initializer for upgradable contracts.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: mintRollovers should require entitledShares >= relayerFee ### Description mintRollovers should require entitledShares >= relayerFee ### Impact This will prevent rollover even if the user has more assets than relayerFee ### Recommendation Change to ```diff if (entitledShares > queue[index].assets) { //...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unreachable code is present in contract ### Description **Description** The code in contract BondlyTokenSale (line 61) and BondlyTokenHolder (line 43) is unreachable. **Recommendation**: The unreachable code can be removed.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
token
true
false
When calling `isolateRepay()` we can specify `nftTokenIds` and `onBehalf`. The current implementation just restricts `onBehalf!=address(0)` and does not restrict `onBehalf == nftOwner`. ```solidity function validateIsolateRepayBasic( InputTypes.ExecuteIsolateRepayParams memory inputParams, DataTypes.PoolDat...
Code4rena
4
BendDAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Use of Post-Increment Operator in Loop (i++) ### Description **Severity**: Informational **Status**: **Location**: WalletAccount.sol **Explanation:** In the provided Solidity code, the loop iteration variable i is incremented using the post-increment operator (i.e., i++). In Solidity, the post-incremen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Incorrect fee due to double subtracting `requestSum.assets` ### Description The `_calculateFee` function in the `HyperEvmVault` contract incorrectly subtracts `$.requestSum.assets` from `grossAssets`, even though this subtraction has already been performed upstream in `_totalEscrowValue`. This results in an u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Stakers could lose extra rewards due to accrual on behalf ### Description **Severity** **Impact:** Medium, loss of extra rewards for users who want to accumulate unaccrued rewards and claim at max rewards multiplier **Likelihood:** High, always occurs as anyone can claim rewards on behalf **Description** ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Strategist nonce is not checked ### Description Strategist nonce is not checked while checking commitment. This makes impossible for strategist to cancel signed commitment. ### Impact Strategist can't cancel his commitment. User can use this commitment to borrow up to 5 times. ### Recommendation Give abil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Users May Lose USDs Yields when Redeeming Collateral ### Description **Update** **Quantstamp:** The Sperax team acknowledged the issue and explained the reason, however users should be aware that USDs yield could be lost if user will not call `rebase()` function before `redeem()`. **Update** Marked as "Ac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: TroveManager can make troves liquidatable by changing the batch interest rate ### Description **Impact** This is a finding to make a clear known risk more obvious Users that add their Trove to a Batch are allowing the BatchManager to charge a lot of fees by simply adjusting the interest rate as soon as they ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Duplicate Address Prevention ### Description ## Wallet Initialization Duplicate Address Check When initializing a new wallet, a list of owner addresses is provided. This vector should be explicitly checked for duplicate addresses. ## Remediation Define a helper function in the `utils.move` which checks if a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Average weight will always be 0, whenever period update occurs via `BaseGuage::updatePeriod()` function. ### Description The `BaseGuage::updatePeriod()` function is as follow - ```js /** * @notice Updates the period and calculates new weights */ function updatePeriod() external override onlyControl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: Initialize implementations for proxy contracts and protect initialization methods ✓ Addressed ### Description It should be avoided that the implementation for proxy contracts can be initialized by third parties. This can be the case if the `initialize` function is unprotected. Since the implementation contr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Vault may be drained after a liquidated NFT was claimed by the liquidator ### Description The owner of a collateral NFT that was liquidated and then claimed by the liquidator (after the auction had no bids) may drain the vault the loan was taken from. ### Proof of Concept There's an extreme situation when a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: The `settleCreditDeposit` function is incorrect. ### Description The `CreditDeposit` (providers' profit) was counted twice in the vault debt. ### Impact The vault's debt calculation was incorrect. Incorrect accounting results in losses for users.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
call vs transfer
true
true
The [`WithdrawQueue`](https://github.com/code-423n4/2024-04-renzo/blob/519e518f2d8dec9acf6482b84a181e403070d22d/contracts/Withdraw/WithdrawQueue.sol#L303) contract allows users to request withdrawals of their ezETH tokens in exchange for a selected asset, such as ETH or an ERC20 token. After a cooldown period, users c...
Code4rena
3
Renzo
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing Zero Address Checks in Constructor ### Description The issue is identified within the constructor of contract `LGEMigrationV1`. Multiple parameters, including `_owner`, `_l1StandardBridge`, `_l1LidoTokensBridge`, `_usdxBridge`, `_lgeStaking`, `_usdc`, and `_wstETH`, are not validated to ensure they are...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Misleading Public authorizeUpgrade() Function ### Description The `SwapManager` contract correctly overrides `_authorizeUpgrade()` as specified in OpenZeppelin's UUPS proxy pattern. However, it introduces an additional public `authorizeUpgrade()` function that serves no meaningful purpose: ``` function author...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
true
## Low: Withdrawing from the Controller allows accounts to contain dust ### Description The `withdraw` operation can break the assumption that no account can contain dust for certain collaterals. The `aboveDustOrZero` function enforces an invariant that prevents accounts from holding an amount of collateral smaller th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Possible confusion between borrower and delegatee when CdpUpdated events are emitted ### Description The delegation system allows a delegate to execute three operations: - **Adjust CDP** - **Open CDP** - **Close CDP** ### Recommendation As shown in the description above, the `_borrower` parameter of the event...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `TODO`s left in rule parameter descriptions ### Description **Description:** The three rules [`AntimomentumUpdateRule`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob/7213401491f6a8fd1fcc1cf4763b15b5da355f1c/pkg/pool-quantamm/contracts/rules/AntimomentumUpdateRule.sol#L17), [`MinimumVarianceUpdateRule`](...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Non-library/interface files should use fixed compiler versions, not floating ones ### Description *There are 12 instances of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Follow Checks-Effects-Interactions (CEI) Pattern ### Description The `ERC721F` contract implements a [`mint` function](https://github.com/fireblocks/reference-protocols/blob/e7003dfb9d89aa4b314a7428cbc59d07f178fd76/protocols/contracts/ERC721F.sol#L202) that does not follow the CEI pattern. The function mints a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: incorrect handling for deposit failure leads to stuck at `deposit_failed` status . ### Description When a deposit fails, the contract can become stuck in a `deposit_failed` status due to improper handling of debt repayment by swapping through the `swapTokensForExactTokens()` function.which leads to gas loss...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
true
false
## Low: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.12 to get `string.concat()` to be used instead of `abi.encodePacked(,)`. File: erc20-1.0.0-beta.2/contracts/ERC20.sol (line [2](https://github.com/maple-labs/erc20/blob/10ccf4aa0b2d6914e3c2d32e454e4d106a99a4fd/contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Yield Distribution Share Inflation ### Description ## Issue Overview The issue concerns how `receiveYield` in `YieldToken` interacts with the contract’s accounting, specifically the mechanism used to track user share values relative to the underlying assets. In the current implementation, when `receiveYield`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
flash-loan
true
false
## High: arbitrary synth mint/burn from pool ### Description _Submitted by jonah1005_ `Pool` can mint arbitrary `Synth` provided as long as it's a valid synth. When there are multiple curated pools and synth (which the protocol is designed for), hackers can mint expensive synthetics from a cheaper AMM pool. The hacke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
flash-loan
true
false
## Medium: Admin configuration isAllowedForCollateral(mode, pool) can be bypassed by donating asset to the pool directly and then trigger sync cash via flashloan ### Description In the current implementation, after user deposits funds into lending pool and mint lending pool shares, user can call collateralize function...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: User may not get IL protection if certain functions are called directly in `Pools.sol` ### Description Functions `removeLiquidity()` and `removeLiquidityDirectly()` when called directly, do not provide the the user with IL protection unlike when calling the corresponding `removeLiquidity()` function in `Rou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: `withdraw()` does not take into account the pending fee ### Description **Severity** **Impact:** Medium **Likelihood:** High **Description** The assets corresponding to the user's shares are: 1. liquidity 2. pending fee 3. the remaining balance in UniV3TokenizedLp. The `withdraw` function will call `_bu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: IsLtArraySubAiris unsound ### Description IsLtArraySubAir can be assigned `out = false` in cases where `x < y`. ### Recommendation Add a constraint to ensure we can't set the marker earlier than the first diff. For instance, constrain that if `diff_value = 0`, then `diff_marker[last] = 1` (the only condition...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing error messages in require statements ### Description There are several `require` statements without error messages in the audited code base. For instance, only three `require` statements include messages in the [`PricelessPositionManager` contract](https://github.com/UMAprotocol/protocol/tree/e6eaa4812...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
reentrancy
false
false
## Severity **Medium Risk** ## Context `SeaDrop.sol#L586` ## Description The contract that implements `IERC721SeaDrop` can work with multiple SeaDrop implementations. For example, a SeaDrop that accepts ETH as payment as well as another SeaDrop contract that accepts USDC as payment at the same time. This introduces t...
Spearbit
5
SeaDrop
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: UNBOUNDED FEES CALCULATION ### Description During the `ExecuteWithdraw` instruction, the program deducts various fees from the user's profit during the withdrawal process. The amount of fees depends on the following parameters: * leverage * fixed\_fee\_split * mfee\_percent Although these parameters can be s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Incorrect Decimals Setting for ckrBTC Token May Lead to User Confusion and Inaccurate Transaction Amounts ### Description ### Impact In the OpenZeppelin library, the decimals of the ERC20 component defaults to 18, which is abnormal for BTC. Incorrect decimal settings may result in users entering incorrect ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Double Relay of a rootBundle Is Possible ### Description The `HubPool` contract is able to send cross-chain messages to any L2 SpokePool through the specified adapter contract for this L2. There are two cases where `HubPool` sends cross-chain messages to one or more L2 SpokePools. First, the `HubPool`'s owner ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: Owner of a position can prevent liquidation due to the `onERC721Received` callback ### Description When liquidating a position, `_cleanUpLoan()` is called on the loan. This attempts to send the uniswap LP position back to the user via the following line: This `safeTransferFrom` function call invokes the `on...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
false
## Low: Missing version in EIP-712 domain type hash declaration causes unverifiable delegateBySig signatures ### Description The VotingEscrow contract does not follow EIP-712's hashing methodology for typed structured data due to a missing version parameter in the domain type hash declaration. This leads to unverifiabl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
false
false
## High: Reentrance in `partnerFreeMint` ### Description **Severity**: High **Status**: Resolved **Description** The `partnerFreeMint` function doesn’t implement the checks-effects-interactions pattern. The `_safeMint` function call occurs before updating the `lastMinted` mapping. If the to address is a contract, i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
true
false
## Low: Possible DOS of proposals ### Description One proposal can contain multiple operations in different contracts that have to be executed. Some governance proposals may require a sequence of operations to be executed in a specific order in order for the proposal to have an effect. Before the operations from the p...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Hardcoded handling of non-18 decimal token pools limits the interoperability of the protocol ### Description **Likelihood:** Medium, because even though at this point no such pools are added, it is possible that they are in the future **Impact:** Medium, because it limits the functionality of the protocol ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
logic
false
false
## High: Accuracy loss in calculations ### Description **Description** Incorrect order of operations lead to the accuracy losses and incorrect calculations. First of all - incorrect order of operations: division by total shares amount has to be provided after the multiplication. And the second problem - instead of fe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Infinite minting of FLUX through `voter.poke()` ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended eff...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: The amount of shares needed for redemption of borrow tokens is underquoted during the removal of leverage process leading to reverting. ### Description When removing leverage, some additional borrow amount is acquired in the `LeverageManager._acquireBorrowTokenForRepayment` function. The amount needed is ho...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
true
false
## Low: Checks, Effects & Interactions pattern not followed in the `unStake` function of `Staking.sol` ### Description **Severity**: Low **Status**: Resolved **Description** The `unStake()` and `unStakeByAdmin` functions in `staking.sol` are not following the check-effects-interactions pattern. These functions are...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: State Transition: Minipools can be created using other operator's AVAX deposit via recreateMinipool ### Description This issue is related to state transition of Minipools. According to the implementation, the possible states and transitions are as below. The Rialto may call `recreateMinipool` when the min...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Uniswap contract added to controller doesn't match with function signatures ### Description In the `ArbiDeploymentFlow.md` doc, it specifies the plan to add the UniV3Controller to controllerFacade, and then update it so it applies to Router (address: `0xE592427A0AEce92De3Edee1F18E0157C05861564`). However,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Inconsistent `VotingEscrow` implementation in `balanceOfNFT()` methods ### Description This is an unfixed issue in the forked repo ([link](https://github.com/spearbit/portfolio/blob/master/pdfs/Velodrome-Spearbit-Security-Review.pdf), 5.3.9 Inconsistent between balanceOfNFT, balanceOfNFTAt and \_balanceOfNF...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Anybody can buy collateral on behalf of other users without having any allowance using the multiHopBuyCollateral() ### Description * Malicious actors can buy collateral on behalf of other users without having any allowance to do so. * No unauthorized entity should be allowed to take borrows on behalf of oth...
0