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
low
token
true
false
## Low: Bribe::getRewardForOwner should not revert if there are no bribe rewards. ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Contract fails to deliver promised returns, but doesn't lose value ## Description ## Brief/Int...
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
true
false
## Medium: Using AAVE vaults for rehypothecation might lead to an underestimation of the value of the reserve ### Description For pools that support rehypothecation, the `previewRedeem` function of the vaults is called to obtain the value of the reserves represented in underlying assets. Both the whitepaper and the d...
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: Event is missing `indexed` fields ### Description Index event fields make the field more quickly accessible to off-chain tools that parse events. However, note that each index field costs extra gas during emission, so it's not necessarily best to index the maximum allowed per event (three fields). Each `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
front-running
false
false
## Low: aggregateAmount emitted but not validated ### Description In the `createMerkleLT()` function, the `aggregateAmount` (and `recipientCount`) specified as an input parameter is not used or validated except to be emitted in the `CreateMerkleLT` and `CreateMerkleLL` events. This data is used in the frontend to show...
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
liquidation
true
false
## Medium: Unrestricted “On-Behalf” Borrowing ### Description **Severity**: Medium **Status**: Resolved **Description** Evoq.sol → borrow() / internal call _borrow() PositionsManager.sol → borrowLogic() These functions allow specifying arbitrary _borrower and _receiver addresses without verifying that msg.sender is...
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
token
false
false
## High: Adversary can permanently break percentage tier bounties by funding certain ERC20 tokens then refunding ### Description Some ERC20 tokens don't support 0 value transfers. An adversary can abuse this by adding it to a percentage tier bounty then refunding it. This is because after the refund the token will sti...
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: Use of send ### Description Use of **send** is always risky and should be analyzed in detail. Three occurrences found in [line 427](https://github.com/WeTrustPlatform/rosca-contracts/blob/2af29be97d529488f5488fe0592f9e6b3585254f/contracts/ROSCA.sol#L427), [“>line 476](https://github.com/WeTrustPlatform/rosca-c...
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: Potential License Incompatibilities ### Description The project contains contracts with varying SPDX license identifiers: * Some contracts specify `// SPDX-License-Identifier: Apache-2.0`. * Others specify `// SPDX-License-Identifier: MIT`. * Some use `// SPDX-License-Identifier: UNLICENSED`. This incons...
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: Manager can be set to address(0), which prevents bounty from being closed ### Description When a bounty is completed, the `closeBounty()` function is called to send the funds back to the manager. `closeBounty()` uses the manager's address as a proxy for whether the bounty has already been closed. It checks for...
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: Use of custom errors instead of revert strings ### Description In Solidity development, replacing hard-coded revert message strings with the `Error()` syntax is an optimization strategy that can significantly reduce gas costs. Hard-coded strings, stored on the blockchain, increase the size and cost of deployin...
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: Timelock can be bypassed even when enabled ### Description Supposing that timelocks are enabled some time after the deploy, the timelock can still be skipped, as `addMarket` doesn't check if `scheduleAdd` is initialized. As such, new markets can be added without calling `scheduleAddMarket` and waiting for 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
false
false
## Low: Do not add Multicall to future versions of RepoDriver ### Description It must be noted that the current version of RepoDriver is incompatible with Multicall. If Multicall is ever added to the contract, the following issues will occur: - Attacker will be able to impersonate calls from other users due to the us...
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: Immediate Reward for the First Staker if Time Has Passed ### Description **Severity:** Medium **Path:** src/rewarders/AbstractRewarder.sol#L120-L135 **Description:** In the function `AbstractRewarder::_updateReward()`, the `lastUpdateBlock` is only updated if `rewardPerTokenStored` is greater than 0. Con...
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: Misleading Variable Name ### Description This variable stores the eligible claim time, not a duration. ### Recommendation A more precise name for the variable could be `claimEligibleAt` or `eligibleClaimTime` to indicate it stores the exact time a claim can be made rather than a duration.
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: `LockUpManager::LockUpStorage::_regLockUpTime` is never used ### Description **Description:** `LockUpManager::LockUpStorage::_regLockUpTime` is never used: Either remove it or add a comment noting it will be used in the future but is currently not used. **Remora:** Fixed in commit [91aed23](https://github.c...
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: LACK OF DELEGATE VALIDATION IN MAKE PAYMENT ### Description The `MakePayment` instruction facilitates a payment toward the credit line. It can be initiated by either the borrower or the **Sentinel Service** account, provided the borrower has granted the necessary allowance. However, the current implementation ...
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: Incorrect T emplate Removal on removeTemplate() ### Description The `removeTemplate()` function of the `KPITokensManager` contract removes a template from the templates array. The removed template is selected by the caller (owner) based on the template ID specified in the input `parameter_id`. To get the 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
false
false
## Low: Insu�cient event generation ### Description Several critical operations in the MesonPools contract do not emit events. As a result, it will be difficult to review the correct behavior of the contract once it has been deployed. The following operations should trigger events: - MesonPools.depositAndRegister - M...
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: Rollover rewards are permanently lost due to flawed `rewardRate` calculation ### Description The `notifyRewardAmount()` function miscalculates the `rewardRate` when a new epoch begins, causing `rollover` rewards from previous epochs to be permanently lost. When `block.timestamp >= _periodFinish`, the funct...
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
storage
true
false
## Medium: Proxy does not support payable functions in its implementation ### Description The `UpgradeableProxy.fallback` function that forwards the calls to the implementation contract is not defined as `payable`. If the implementation contract defines any functions that require ETH to be sent, they will be inaccessi...
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: Interest rate calculation may be error prone ### Description The Solo contracts calculate interest accumulated over time by incrementing an `index` which represents the total accumulated interest with a starting value of 1. The index is updated by taking the [per-second interest rate and multiplying by the num...
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: [01] There is no way to decrease the max number of active transcoders ### Description [`setNumActiveTranscoders()`](https://github.com/code-423n4/2023-08-livepeer/blob/main/contracts/bonding/BondingManager.sol#L182-L190) sets the maximum number of active transcoders however there is no way to decrease the numb...
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: Delegate rewards system is unfair to delegates with less tokens and reduces decentralization ### Description Reduces decentralization significantly and discourages delegates with less token power to vote. ### Proof of Concept The current math gives delegates rewards based on the square of their votes. Thu...
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
true
false
## Low: Reverted request IDs stay pending for the protocol ### Description The `ChainlinkClientUtils.validateChainlinkCallback` function deletes pending requests IDs from the protocol storage, i.e. makes them invalid. But in case of revert due to invalid candles the protocol storage returns in the previous state. So 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
medium
other
true
false
## Medium: IMPROPER LINKWALLET VALIDATION ### Description A wallet can be linked to a parent wallet by the `Owner` with the `linkWallet()` function of the `Compliance` contract. The contract assumes that it is not possible for a wallet to be both a child and a parent. Otherwise, there would be cases where the sanction...
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: Index compensate is 0 when totalLiquidity() is enough to cover the whole amount ### Description _Submitted by pauliax_ In IndexTemplate, function compensate, When `\_amount > \_value`, and ` Right. > totalLiquidity = underlyingValue + pendingPremium. > > I will discuss how to fix this issue with my team
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: _account_for_withdraw_liquidity rounding in the wrong direction will run out of the vault ### Description Vault implementers should be aware of the need for specific, opposing rounding directions across the different mutable and view methods, as it is considered most secure to favor the Vault itself during ...
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: Unrestricted Access Control Rule for Internal Transfers From Objects' Children ### Description **Update** Marked as "Fixed" by the client. Addressed in: `31bff1268847de2df699b37d4881ee8718e10989`. **File(s) affected:**`contracts-v3/TokenizedVaultFacet.sol` **Description:** The function `TokenizedVaultFace...
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: Double Normalization ### Description ## getCurrentAccrualIndices Function The `getCurrentAccrualIndices` function within `HubInterestUtilities` calculates a given asset’s current interest accrual indices. The values of deposited and borrowed assets are fetched from storage, where they are stored in a normali...
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
true
false
## Medium: `_onTransferReceived()` does not work as intended ### Description `_onTransferReceived` does not work as intended or described in the function [`natspec`](https://github.com/code-423n4/2024-08-superposition/blob/4528c9d2dbe1550d2660dac903a8246076044905/pkg/sol/OwnershipNFTs.sol#L65-L67). - It will not reve...
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: [02] Bootloader wrongly identifies the `RIGHT_PADDED_GET_ACCOUNT_VERSION_SELECTOR` as not attached with the `Contract Deployer` deployment execution ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-03-zksync/blob/4f0ba34f34a864c354c7e8c47643ed8f4a250e13/code/system-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: maxWithdraw /maxRedeem returns wrong values for fee recipient ### Description Withdrawals can result in a harvest with a positive yield from which a performance fee is credited to the fee recipient in terms of minted shares. The `maxWithdraw(user)` / `maxRedeem(user)` functions do not take into account this in...
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: addBucket has no upper bound on input ### Description The function [`addBucket` within the `PeriodicPriceBucket` contract](https://github.com/mcdexio/mai-fund-protocol/blob/98af0d1d7e9872ba2b5e734e2a43c161ef635608/contracts/oracle/PeriodicPriceBucket.sol#L84) adds a value to the the [`_periods` enumerable set]...
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: `Vault::withdraw()` withdraws too much liquidity leading to idle capital and loss of fees ### Description `Vault::withdraw()` [withdraws](https://github.com/sherlock-audit/2025-02-yieldoor/blob/main/yieldoor/src/Vault.sol#L96-L99) from the lp position whenever the idle capital is not enough. However, it wit...
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: Incorrect calculation of borrowed amount ### Description Total borrowed amount increases unequally, so total borrowed amount on credit accounts would be less than `totalBorrowed` on a `PoolService` which would lead to incorrect calcultaions for LP of a `PoolService`: https://github.com/Gearbox-protocol/gearbo...
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: createArbitraryGauge Should not allow to create gauges for legacy pools ### Description The Voter contract allows the creation of gauges for pools (pairs) in a 1:1 ratio. There are three different types of gauges: - Normal - CL gauge - Arbitrary gauge (meant to be created only by governance) Currently, it is ...
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
false
false
## Gas: `_calculateInterest()` in `Lender.sol` can be refactored to save gas ### Description `_calculateInterest()` parameter(s) can be refactored to save gas ### Impact Gas saved
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
liquidation
false
false
## Medium: Early liquidations via `repay()` front-running ### Description If a user's position is underwater, a partial `repay()` does not move the borrower's bands but merely reduces the `initial_debt`: ``` else: # partial repay if ns[0] > active_band: # Not in liquidation - can move bands ... else: # Underw...
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: `BetResolved` event in `Bet::resolve` will have the wrong `totalWinnings` when Aave pool is used ### Description In `Bet::resolve`, `BetResolved` is emitted with `totalWinnings = makerStake + takerStake` before checking the actual funds in Aave and capping `totalWinnings` to the contract’s `aTokenBalance`: ```...
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
false
false
## Low: Approve target contract test scripts sets approval to max ### Description The test scripts of the Approve target contract sets the proxy's allowance to max. This simplifies testing but doesn’t mimic real world conditions where the approval is most likely set each time a stream is created. More specifically, 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
liquidation
true
false
## Low: Function HubPoolLogicupdateWithWithdraw doesnt round up in favour of protocol if isFAmount false ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0x96e957bF63B5361C5A2F45C97C46B8090f2745C2 Impacts: * Protocol insolvency ## Description ## Brief/Intro Function `HubP...
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: PositionManager's `moveLiquidity` can set wrong deposit time and permanently freeze LP funds moved ### Description `moveLiquidity()` set new destination index LP entry deposit time to be equal to the source index deposit time, while destination bucket might have defaulted after that time. This is generally n...
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: Impossible situation ### Description `_index >= _length` can't be `true`: https://github.com/keep3r-network/StakingRewardsV3/tree/13ecc6966ae1a413f62224382bfd4d64b1a22351/contracts/StakingRewardsV3-1.sol#L236 ### Recommendation We recommend to call `revert` if `_index >= _length` is equal to `true`.
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: The totalNFTStaked\_ Variable Is Never Updated ### Description The `totalNftStaked_` variable in the `ContributorNFTV1Storage` contract is never updated within any function, resulting in its value persistently remaining at 0. This oversight implies that the contract fails to accurately track and report the tot...
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
signature
true
false
## High: Cross-Organization Signature Replay ### Description By using the `OrgStoryNFTFactory` contract, any organization can mint a new `OrgNFT` token and deploy a new `StoryBadgeNFT` contract (or the preferred template) via Beacon Proxy. On these `StoryBadgeNFT` contracts, end users can mint a badge NFT if they prov...
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
storage
true
false
## Medium: MultiSigWallet does not check contract existence before call ### Description Within the `MultiSigWallet` contract, the `_externalCall` function is used to perform calls to an external contract address. However, there is no check to ensure the destination is a contract. As a result, if the address provided 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
liquidation
true
false
## Low: Liquidation on equality in `getHandleRemoveCollateralCancelReason()` ### Description _Resolved_ In `getHandleRemoveCollateralCancelReason()` in the `TradingCallbacksLib` library, the condition for liquidation uses `<=`. This causes a position to be liquidated even when the trade value is exactly equal to 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...
solodit_api
medium
token
true
true
_Submitted by gpersoon, also found by kenzo and robee_ #### Impact Some functions, like rebalance() in RebalanceManagerV3 use \_deadline as a time limit for swapExactTokensForTokens() Other functions, like \_joinTokenSingle() of SingleTokenJoinV2.sol and \_exit() of SingleNativeTokenExitV2() use block.timestamp, alt...
Code4rena
5
Amun
[ { "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: `call()` should be used instead of `transfer()` on an address payable ### Description Source: https://github.com/sherlock-audit/2022-11-dodo-judging/issues/5 ## Found by virtualfact, Nyx, 0x4non, 8olidity, 0xNazgul, yixxas, pashov, rvierdiiev, Bnke0x0, sach1r0, Tomo, defsec, ElKu, ak1 ## Summary ## Vul...
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: Inconsistent math ### Description **Severity**: Medium **Status**: Acknowledged **Description** In contract FEYTraderJoeProduct, the math for _depositableJrTokens is inconsistent with the math for _depositableSrTokens in the invest() function. This is because, _depositableJrTokens = notionalMaxJr / Cons...
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
false
false
## Medium: xcall() may erroneously overwrite prior calls to bumpTransfer() ### Description The `bumpTransfer()` function allows users to increment the relayer fee on any given `transferId` without checking if the unique transfer identifier exists. As a result, a subsequent call to `xcall()` will overwrite the `s.relay...
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
overflow
true
false
## Low: partial repayment with collaterals will revert due to underflow ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0x2cAa1315bd676FbecABFC3195000c642f503f1C9 Impacts: * partial repayment reverts ## Description ## Title: repayWithCollateral will revert because of unde...
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
true
## High: Incorrect Condition for `post_only` Orders ### Description The issue is identified within the [`placeOrder`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L230) function of the `LOB` contract. There is a critical vulnerability in the `post_...
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: Pyth network URL is hardcoded ### Description The URL to access the Pyth network API is hardcoded in `nord/oracle.rs`. This configuration should be set in the `.env` configuration file. ### Recommendation Configure the Pyth network URL through the `.env` configuration 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
low
oracle
false
false
## Low: Typos, wrong comments and naming ### Description 1. These comments are copy-pasted from Auth.sol, we don't check the owner here https://github.com/code-423n4/2023-10-badger/blob/main/packages/contracts/contracts/Dependencies/AuthNoOwner.sol#L33-L34 https://github.com/code-423n4/2023-10-badger/blob/main/packa...
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: `TradingAccount::withdrawMarginUsd` transfers an incorrectly larger amount of margin collateral for tokens with less than 18 decimals ### Description **Description:** The `UD60x18` values are [scaled up to 18 decimal places](https://github.com/zaros-labs/zaros-core-audit/blob/de09d030c780942b70f1bebcb2d245214...
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
false
false
## Low: SphereXEngine Migration Flow Susceptible to Human Error ### Description The `SphereXEngine` migration process is currently prone to errors if it involves multiple smart contracts using `SphereXProtected`. When `SphereXEngine` requires a change, the admin of each contract must manually replace the engine addres...
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
true
false
## Medium: USDT is not applicable for IERC20Minimal interface ### Description When users want to increase liquidity, users can do liquidity via the function `_executeLiquidityIncrease`. In function `_executeLiquidityIncrease`, we will transfer assets to UniswapV3Staker, and then approve asset token to the `nonfungible...
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: A withdrawal root could be added again a�ter removal ### Description A deleted withdrawal root can be added again, leading to unexpected behavior for users. Within the `addWithdrawalRoot` function, there are validations to prevent a withdrawal root from being added if it is already present. However, in the eve...
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
false
false
## Medium: Missing `DIAOracleV2Meta.setThreshold()` and `DIAOracleV2Meta.setTimeoutSeconds()` Parameters Validation ### Description The issue has been located in the `setThreshold` and `setTimeoutSeconds` functions of the `DIAOracleV2Meta` contract. More specifically, it was found that the functions don't check for ze...
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
false
false
## Low: Only the huma master admin should be allowed to update poolFeeManager in PoolConfig ### Description An account with a `DEFAULT_ADMIN_ROLE` can rewrite `poolFeeManager`. The pool fee manager is in charge of setting the protocol fee among other fees. ### Recommendation It might be best to only allow the huma ma...
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
other
true
false
**Description:** `MetaVault::redeemRequiredBaseAssets` is supposed to iterate through the supported vaults, redeeming assets until the required amount of base assets is obtained: ```solidity /// @notice Iterates through supported vaults and redeems assets until the required amount of base tokens is obtained ``` Its im...
Cyfrin
5
Strata
[ { "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
false
false
## Low: Owner can renounce Ownership ### Description (`Position.sol#L12`) (`PositionMetadata.sol#L8`) Typically, the contract’s owner is the account that deploys the contract. As a result, the owner is able to perform certain privileged activities. The Openzeppelin’s Ownable used in this project contract implements...
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: Other issues regarding tokenId validation ### Description ## MonumentMarketplace.sol ## Issues 1. A moderator has the ability to pass an invalid `orderId` into the `placeOffer` function's `_tokenId` argument. This in turn will cause an order to be created that points to an invalid `tokenId`. 2. A moderator h...
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
true
false
## High: Wrong yield accumulation in claimYieldAndEnter ### Description The `claimYieldAndEnter` function does not accrue yield to the Gate contract itself (this) in case `xPYT` was specified. The idea is to accrue yield for the mint recipient first before increasing/reducing their balance to not interfere with the yi...
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: Inconsistent Duration Validation ### Description The current validation logic in the `BaseRewardStreams` contract for `EPOCH_DURATION` does not align with the specified requirement that epochs must be longer than 1 week (7 days). Specifically, the contract checks `_epochDuration < MIN_EPOCH_DURATION`, which ex...
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: Unwanted gas expenditure by recomputing already computed value ### Description Unwanted gas is spent on recomputing a value that has already been computed. ### Impact Unwanted gas expenditure
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: PlasmaFramework - Can omit inheritance of VaultRegistry ### Description The contract `PlasmaFramework` inherits `VaultRegistry` even though it does not use any of the methods directly. Also `BlockController` inherits `VaultRegistry` effectively adding all of the needed functionality in there. ### Recommendati...
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
false
false
## Medium: Oracle Data Lacks Validation ### Description Throughout the [codebase](https://github.com/Ion-Protocol/ion-protocol/tree/98e282514ac5827196b49f688938e1e44709505a/), there are several functions that use on-chain oracles to retrieve price data. These oracles consistently lack validation of the returned data. ...
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: Sender identification discrepancy (`msg.sender` vs `_msgSender()`) ### Description **Description** An issue lies in the way the_msgSender() function is used within the smart contracts. The _msgSender() function is part of the Context abstract contract, and it is designed to provide a way to determine the orig...
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: BathBuddy locks up Ether it receives ### Description _Submitted by Ruhum, also found by 0x1f8b and pauliax_ The BathBuddy contract is able to receive ETH. But, there's no way of ever retrieving that ETH from the contract. The funds will be locked up. Currently, there seems to be no logic in the protocol w...
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: Storage cache can become out of sync for reentrant and delegated calls ### Description A storage cache’s known values can become out of sync, causing storage reads to be outdated and storage write operations to be omitted. Storage caches take into account only their current call context. Every Stylus program ...
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: Error-Prone Call Encoding ### Description On [line 126](https://github.com/scroll-tech/scroll/blob/2eb458cf4224d82fc56254e91e297a9ed261cefb/contracts/src/libraries/ScrollMessengerBase.sol#L126) of [`ScrollMessengerBase.sol`](https://github.com/scroll-tech/scroll/blob/2eb458cf4224d82fc56254e91e297a9ed261cefb/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
high
cross-chain
false
false
## High: Concurrent relays deplete reserves ### Description The `relayDeposit` function of the `BridgePool` contract [ensures the contract has sufficient funds](https://github.com/UMAprotocol/protocol/blob/4cbb0986d80dfbb351caaadf203d74f0c50b4db8/packages/core/contracts/insured-bridge/BridgePool.sol#L423-L426) to exec...
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: Rounds can not be immediately drawn after fulfillRandomWords due to VRF contracts reentrancy guard ### Description Users can deposit ETH to multiple future rounds. If the future round can be "drawn" immediately when the current round ends this execution will revert because of chainlink contracts reentrancy ...
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: Players can call rebalanceBasket before rewards have been pushed to the game ### Description It's possible to manipulate game.sol to a state where players can call rebalanceBasket before rewards have been settled. In some cases, it's possible for a malicious user to profit. In other cases, it's possible for...
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
false
## Low: Unchecked Mode Parameter ### Description ## Vulnerability in check_refresh The vulnerability in `check_refresh` may allow a user to refresh the same collateral or debt farm twice while avoiding the refresh of the other farm associated with the reserve. A reserve may have multiple farms associated with it. Eac...
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
true
## Low: Potential Permanent Loss of Rewards when there 's no staker ### Description A rounding issue can cause potential permanent loss of rewards when there's no staker for a reward token. This vulnerability can be exploited through a grief attack or by users repeatedly calling `updateReward()` in an attempt to claim...
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
true
false
## Medium: A cross-chain message can be initiated with invalid parameters ### Description ### Impact Anyone can initiate a cross-chain ERC20 settlement with invalid parameters, breaking an invariant due to missing validations. For example if these values are non-existent or zero values, it would boil down to the fol...
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
overflow
false
false
## Low: Unsafe math ### Description There are many unchecked arithmetic operations in `GMToken` and `StandardToken`. It’s always better to be safe and perform checked operations. Consider using the [`SafeMath`](https://github.com/MercuryProtocol/global-messaging-token-contracts/blob/dfe4914c6856b06e3f02475cd6ee834855f...
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: Jump Of Epochs Is Possible ### Description Within the `EpochManager` contract, adjusting the `epochLength` parameter can result in abrupt transitions between epochs due to the recalibration of `lastLengthUpdateEpoch` and `lastLengthUpdateBlock` values. Specifically, changing the `epochLength` can cause a direc...
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: Assembly blocks could benefit from `"memory-safe"` annotation ### Description **Description:** When hashing request data in [`Spin::_hashParticipation`](https://github.com/Consensys/linea-hub/blob/295344925ec4321265f7cbac174fcf903b529a4e/contracts/src/Spin.sol#L383-L409) and [`Spin::_hashClaim`](https://github...
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
false
false
## Low: Centralization Risk ### Description **Severity** - Low **Status** - Acknowledged **Description** All the privileges to update system's critical state (setting sale configs and enabling transfers) lies with the owner's address. It should be ensured that the owner key is a multisig with a timelock in order to...
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
true
false
## Low: Chainlink feeds could have 18 decimals ### Description Multiple places in the code are built with the assumption that all Chainlink USD price feeds have 8 decimals, for example: However, there are USD price feeds that have 18 decimals, for example, PEPE/USD on Arbitrum: [Arbiscan link](https://arbiscan.io/ad...
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
overflow
false
false
## Medium: Insufficient input validation opens up multiple attack vectors ### Description **Impact:** High, as it can overflow a balance and re-mint burned NFTs **Likelihood:** Low, as it requires a malicious/compromised owner account or an owner input error **Description** The `adminTransferFrom` method does not v...
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
overflow
true
false
## Gas: Using unchecked blocks to save gas - Increments in for loop can be unchecked ( save 30-40 gas per loop iteration) ### Description The majority of Solidity for loops increment a uint256 variable that starts at 0. These increment operations never need to be checked for over/underflow because the variable will n...
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: Inflation Attack on Zero Total Stake ### Description ## Vulnerability Overview `staking::stake_thAPT_v2` is susceptible to an inflation attack, which may allow the first depositor to exploit subsequent depositors by manipulating the exchange rate. This can be achieved by making an initial deposit, which wo...
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
token
true
false
## High: Wrong amount is minted to user when they deposit into the lending pool ### Description Rtoken is a rebasing token that increases the asset deposited value for each increase in index but when a user add to their deposits in the lending pool, the contract fails to mint this user the scaled balance. This impleme...
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
other
true
false
## Medium: Forwarders who aren't also holders are unable to claim forwarded payouts ### Description Forwarders who aren't also holders are unable to claim forwarded payouts due to this check in `DividendManager::payoutBalance`: ```solidity function payoutBalance(address holder) public returns (uint256) { H...
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: `SwapPair` events use `msg.sender` but they should use the user taking on debt ### Description **Impact** Events in SwapPair are logging `msg.sender` which will always be `swapOperations` https://github.com/blkswnStudio/ap/blob/8fab2b32b4f55efd92819bd1d0da9bed4b339e87/packages/contracts/contracts/SwapPair.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...
solodit_api
medium
Fee On Transfer
true
true
In Numoen, it does not specifically restrict the type of ERC20 collateral used for borrowing. If fee on transfer token(s) is/are entailed, it will specifically make `mint()` revert in Lendgine.sol when checking if `balanceAfter < balanceBefore + collateral`. ### Proof of Concept [File: Lendgine.sol#L71-L102](https:...
Code4rena
5
Numoen
[ { "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: [04] Unused variables (missing logic?) ### Description In [bootloader, lines 2325 to 2326](https://github.com/code-423n4/2023-10-zksync/blob/72f5f16ed4ba94c7689fe38fcb0b7d27d2a3f135/code/system-contracts/bootloader/bootloader.yul#L2325C1-L2326C45), the local variables `dataLength` and `data` are not used. I'm ...
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
false
## Low: liquidationgraceperiod cannot be disabled anymore once configured ### Description Once the `liquidationGracePeriod` has been set for the asset, the admin won't be able to disable it completely. Let’s assume that `setReservePause(asset, false, 4 hours)` has been called. This means that the asset cannot be liqu...
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: LendingTerm `debtCeiling` function uses `creditMinterBuffer` incorrectly ### Description The `debtCeiling` function uses the minimum of `hardCap` and credit minter remaining buffer (`creditMinterBuffer`) as a hard limit on the term's `debtCeiling` in two places: Line 298: ```solidity if (totalBorrowedCred...
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
dos
true
false
## Low: Harvest Function Denial of Service Due to Single Strategy Revert ### Description The `harvest()` function in `StrategyManager` iterates through all registered single and pair allocations to harvest rewards. However, it performs these external calls to strategies without using a `try/catch` block. If a single ...
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
token
true
false
## Gas: Expressions for constant values, such as a call to `keccak256()`, should use immutable rather than constant ### Description The reason for this, is that constant variables are evaluated at runtime and their value is included in the bytecode of the contract. This means, any expensive operations performed as par...
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: Unnecessary Transfer Events ### Description The `openFor` function on line [51] in `Bundle.sol` can be called with a value of zero. While this correctly does not open any bundles, it will still emit Transfer events, which can poison the event log. ### Recommendation A `require` has been added, which prevents ...
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: `_getFirstSample` returns wrong sample if count < sampleMemory ### Description _Submitted by cmichel_ The `MovingAverage.sol` contract defines several variables that in the end make the `samples` array act as a ring buffer: * `sampleMemory`: The total length (buffer size) of the `samples` array. `samples...
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: Inconsistent payout handling due to mixing staker rewards with `lockedLiquidity` ### Description The `Staking.transferPayout()` function allows the **owner** to distribute rewards to **stakers**. However, this function deducts the rewards from the `lockedLiquidity` **that has been locked by game contracts**. 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...
solodit_api
high
Oracle
true
false
Source: https://github.com/sherlock-audit/2024-02-perennial-v2-3-judging/issues/6 ## Found by bin2chen, panprog ## Summary Each market action requests a new oracle version which must be commited by the keepers. However, if keepers are unable to commit requested version's price (for example, no price is available at...
Sherlock
5
Perennial V2 Update #2