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
other
false
false
## Low: Judge can designate arbitrary winner who is neither maker nor taker ### Description **Description:** When calling `Bet::resolve`, the nominated judge can designate an arbitrary winner to receive the winnings. **Impact:** The judge can send the winnings to themselves or to any other non-related party who didn'...
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: Anyone can call the flashRepayFromColl function for any loan ### Description ## Context (No context files were provided by the reviewer) ## Finding Description After borrowing GT tokens, the borrower can repay their debt using their collateral with the `flashRepay` function if they wish to do so. The func...
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: BalanceRedirectPresale - Tokens vest during the Presale phase  Won't Fix ### Description Tokens are directly minted and assigned to contributors during the Presale. While this might not be an issue if the minted token does not give any voting power of some sort in a DAO it can be a problem for scenarios whe...
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: Chainlink's `latestRoundData` might return stale or incorrect results ### Description _Submitted by nikitastupin, also found by cmichel, defsec, leastwood, and WatchPug_ #### Proof of Concept [`ChainlinkAdapter.sol` L49](https://github.com/code-423n4/2021-10-mochi/blob/8458209a52565875d8b2cefcb611c477cefb9...
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: Remove duplicate calculation in `TokenLocker::withdrawWithPenalty` ### Description Remove duplicate [calculation](https://github.com/Bima-Labs/bima-v1-core/blob/09461f0d22556e810295b12a6d7bc5c0efec4627/contracts/dao/TokenLocker.sol#L878-L879) in `TokenLocker::withdrawWithPenalty`: ```diff - accountData.locked ...
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: Owner cannot withdraw all interest due to wrong calculation of accrued interest in `WithdrawCarry` ### Description The current `withdrawCarry` function in the contract underestimates the accrued interest due to a miscalculation. This error prevents the rightful owner from withdrawing their accrued interest, e...
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: `VaultFundraiseAdmin.withdraw()` reverts if the vault has multiple tokens ### Description `VaultFundraiseAdmin.withdraw()` can be called by the admin to withdraw all USDC deposited in the vault after the fundraiser is over. The function iterates over all USDC addresses registered in the vault and transfers 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
medium
access-control
false
false
## Medium: `TimelockSafeGuard.cancel` Not Whitelisted for Immediate Execution ### Description `TimelockSafeGuard.checkTransaction` skips the timelock for `schedule` and `scheduleSimple` but still enforces the delay for `cancel`. If the Safe itself is a `CANCELLER_ROLE` holder, any attempt to cancel a malicious proposa...
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: Basket:handleFees fee calculation is wrong ### Description ## Handle GiveMeTestEther ## Vulnerability details ## Impact The fee calculation on L141 is wrong. It should only get divided by BASE and not (BASE - feePct) ## Proof of Concept This shows dividing only by BASE is correct: Assumptions: - BASE ...
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
oracle
false
false
## High: Price manipulation by calling `updatePhase` prematurely ### Description When `updatePhase` is called before the current phase has ended, it records an incorrect `endRoundId` value. Additionally, if `updatePhase` is not called after the phase has ended, the price calculation will be compromised in a manner sim...
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
true
false
## Medium: Rounding Direction for secondsDebtDeltaX96 Should Depend on Sign of liquidityDelta ✓ Fixed ### Description The debt mechanism to calculate the period\-seconds the position has been in range from its liquidity and period\-SPL at the end of the period has already been discussed briefly in [issue 6\.1](#debt-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
high
flash-loan
false
false
## High: An attacker can steal the StabilityPool depositors profit ### Description The liquidation flow of the protocol is supposed to be as follows: - users open troves and join `StabilityPool` - anyone calls the `liquidateTroves` function that iterates the given troves and liquidates them one by one - `StabilityPool...
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: Implement Timeout Handling in HTTP Utility Functions ### Description The current HTTP utility functions (Http and HttpVal) do not implement any timeout mechanism. This could lead to hanging requests if the server doesn't respond. Current behavior: - HTTP requests are made using the default HTTP clien...
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
false
false
## Low: Clearing LTV is unsafe and poses system at risk of permanently locking in bad debt ### Description ## Governance.sol Vulnerability Overview ## Context **Lines:** Governance.sol#L315-L320 ## Impact The `clearLTV` function can be exploited to create unliquidatable bad debt for the protocol. When `clearLTV` 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
liquidation
true
false
## High: Malicious borrowers will never repay loans with high interest ### Description > > Issue [#10](https://github.com/code-423n4/2024-04-lavarage-findings/issues/10) describes how because loans have no fixed duration and interests are not taken into account into the liquidiation mechanism, lenders cannot count 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
other
false
false
## Low: Best bid is replaced when bids are equal ### Description When bidding, `bidAmount >= currentBid` is required, which means that even if the bids are the same, the new bid will become the best bid. Moreover, if `bidAmount > currentBid`, the user can add 1 wei to become the best bid. Since the prices aren't diffe...
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: The current implementation allows null state transition ### Description Currently, the contract allows performing `sumbitStateUpdate` and `updateSate` full transitions several times while keeping the same state hash without any other verification. This is considered by the LayerN team to be the null state tran...
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
liquidation
true
false
Source: https://github.com/sherlock-audit/2023-01-ajna-judging/issues/100 ## Found by hyh ## Summary Interest rates algorithm is based on `MAU` to `TAU` dynamics, where TAU is 3.5 day EMA of total debt to LUP * total collateral. The latter value can be manipulated by a big collateral holder by becoming a borrower ...
Sherlock
5
Ajna
[ { "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
false
false
## Low: Missing reentrancy guard in `TokenFacet::transferToken` ### Description Unlike most other external and potentially state-modifying functions in `TokenFacet`, [`TokenFacet::transferToken`](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/beanstalk/farm...
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: `collectFees()` updates delinquency wrongly as `_writeState()` is called before assets are transferred ### Description The `collectFees()` function calls `_writeState()` before transferring assets to the `feeRecipient`: [WildcatMarket.sol#L106-L107](https://github.com/code-423n4/2023-10-wildcat/blob/main/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
other
false
false
## Medium: forceDeallocate allows user to avoid incurring in losses and dump them on other suppliers ### Description The current implementation of `forceDeallocate` allows a user to deallocate from any whitelisted adapter (+ data) an arbitrary amount of assets (which could be equal to the adapter's allocation when `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
true
false
## Low: Token deployer can avoid g8keep fees ### Description In the g8keepLiquidityLocker contract, calling `collectFees` allows collecting fees earned from UniV3. n% of the UniV3 fee must be given as g8keep fees. This function can only be called by the administrator(token deployer). However, the `release` 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...
solodit_api
high
ERC4626
true
false
Source: https://github.com/sherlock-audit/2022-10-mycelium-judging/tree/main/001-H ## Found by Ruhum, ctf\_sec, cccz, joestakey, ellahi, \_\_141345\_\_, 8olidity, hansfriese, minhquanym, 0x52, caventa, rvierdiiev, Sm4rty, rbserver, IllIllI, sorrynotsorry, JohnSmith, defsec, WATCHPUG, berndartmueller, ak1 ## Summary...
Sherlock
5
Mycelium
[ { "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: Ownership can be lost if transferred to an incorrect address ### Description **Severity**: Low **Status**: Acknowledged **Description**: The EvoqStorage.sol and Treasury contract does not implement a two-step process for transferring ownership. In its current state, ownership can be transferred in 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
low
initialization
true
false
## Low: Lack of proposal expiry mechanisms can lead to governance exploits. ### Description Approved proposals could remain in a Ready state indefinitely, and malicious user can take advantage of this and execute the proposal under different conditions than the one under which the proposal was submitted. ### Impact 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
token
false
false
## Medium: IERC20.transfer does not support all ERC20 token ### Description _Submitted by VAD37, also found by AuditsAreUS, IllIllI, MaratCerby, rfa, and sorrynotsorry_ [ForgottenRunesWarriorsGuild.sol#L173-L176](https://github.com/code-423n4/2022-05-runes/blob/060b4f82b79c8308fe65674a39a07c44fa586cd3/contracts/Forgo...
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: Consider unusual ERC20 token semantics ### Description Whilst being compliant with the ERC20 standard, some implementations extend the specification by adding functionality or alternative behaviors to various operations. Some particularly notable examples of this are: - **Transfer fees** - Where fees are dedu...
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: Privileged Roles and Ownership ### Description **Update** The Talentir team acknowledged the issue. Furthermore we note that the owner role now has some additional permissions: * The owner can cancel orders. * The owner can now revoke approvals from the old marketplace/minter when changing the marketplace/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: No check for sequencer uptime can lead to Zeno auctions being executed at lower prices or may result in incomplete auctions ### Description Since sequencer liveness is not checked and the protocol will be deployed in any EVM-compatible chain including L2s, Zeno tokens will not be completely sold or will be ...
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: Add to *blacklist function* ### Description NFT thefts have increased recently, so with the addition of hacked NFTs to the platform, NFTs can be converted into liquidity. To prevent this, I recommend adding the blacklist function. Marketplaces such as Opensea have a blacklist feature that will not list NFTs 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
access-control
false
false
## Medium: Fallback handlers can trick users into calling functions of the AmbireAccount contract ### Description Selector clashing can be used to trick users into calling base functions of the wallet. Fallback handlers provide extensibility to the Ambire wallet. The main idea here is that functions not present in 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
oracle
true
false
## Low: Extra dust amount of GNS minted ### Description The `TriggerRewardsUtils#distributeTriggerReward` function counts an equal amount of rewards per oracle at L46: However, due to rounding down the sum of saved rewards `rewardPerOracleGns * oracles.length` often would be less than the actual minted amount at L52...
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: Owner Can Renounce Ownership ### Description It was identified that the `StakingVault` contract inherited from OpenZeppelin's `Ownable2StepUpgradeable` library. In the `Ownable2StepUpgradeable` contracts, the `renounceOwnership()` function is used to renounce the `Owner` permission. Renouncing ownership before...
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
logic-error
true
true
## Critical: All CCIP messages reverts when decoded ### Description YieldFi has integrated Chainlink CCIP alongside its existing LayerZero support to enable cross-chain token transfers using multiple messaging protocols. To support this, a custom message payload is used to indicate the token transfer. This payload 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
low
other
true
false
## Low: Cors Policy Not Strict Enough ### Description ## CORS Vulnerability Report CORS is a mechanism that enables web applications to access resources from other domains. It can be used to bypass the same-origin policy, which restricts scripts from accessing resources from different domains. However, the website cu...
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
**Description:** `pUSDeVault::_withdraw` assumes any `USDe` shortfall is covered by the multi-vaults; however, `redeemRequiredBaseAssets()` does not guarantee that the required assets are available or actually withdrawn, so the subsequent ERC-20 token transfer could fail and DoS withdrawals if the ERC-4626 withdrawal d...
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
other
false
false
## Low: Upgradeable contracts don’t have storage gaps ### Description **Severity**: Informational **Status**: Unresolved **Description** All the contracts also have the possibility to be upgradeable as they are implementing the UUPS pattern, however, they are not implementing storage gaps to ensure there are no sto...
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: LendingAssetVault should also call `_updateInterestAndMdInAllVaults()` in multiple functions. ### Description In LendingAssetVault.sol, There are four functions that should call `_updateInterestAndMdInAllVaults()` when it didn't: 1. whitelistWithdraw 2. whitelistDeposit 3. depositToVault 4. redeemFromVault...
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: Increments can be unchecked in for-loops ### Description *This one isn't covered by [c4udit](https://gist.github.com/JustDravee/4b13fe17b1b8aa7e01a2369b92719e38)* In Solidity 0.8+, there's a default overflow check on unsigned integers. It's possible to uncheck this in for-loops and save some gas at each itera...
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: Liquidity Providers Can Lose Tokens Due to Unsafe Casting ### Description **Update** Marked as "Fixed" by the client. Addressed in: `284504531f3c964ec2c8967336ba76f705905f08`. **File(s) affected:**`DebtLibrary.sol` **Description:** The `DebtLibrary.createDebt()` function returns a new `Debt` object with 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...
cyfrin_structured
low
upgrade
false
false
## Low: Upgradeable contracts which are inherited from should use ERC7201 namespaced storage layouts or storage gaps to prevent storage collision ### Description The protocol has upgradeable contracts which other contracts inherit from. These contracts should either use: * [ERC7201](https://eips.ethereum.org/EIPS/eip-...
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: Double Pause/Unpause in `pause` and `unpause` ### Description This issue has been identified within the `pause` and `unpause` functions of the `AcountantWithRateProviders`, `DelayedWithdraw`, `ManagerWithMerkleVerification` and `TellerWithMultiAssetSupport` contracts. The current implementation allows the `pa...
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: TRST-L-1 Attacker can take over GMXAdapter implementation contract ### Description **Description:** GMXAdapter inherits from BaseExchangeAdapter. It is an implementation contract for a transparent proxy and has the following initializer: Therefore, an attacker can call initialize() on the implementation 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: Inconsistent validation while creating/updating a perp market ### Description **Description:** `GlobalConfigurationBranch::createPerpMarket` [reverts](https://github.com/zaros-labs/zaros-core-audit/blob/de09d030c780942b70f1bebcb2d245214144acd2/src/perpetuals/branches/GlobalConfigurationBranch.sol#L351-L353) if...
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: Incomplete Docstrings [core and samples] ### Description Throughout the [codebase](https://github.com/eth-infinitism/account-abstraction/tree/9879c931ce92f0bee1bca1d1b1352eeb98b9a120/), there are several parts that have incomplete docstrings: * In the [updateCachedPrice](https://github.com/eth-infinitism/acc...
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: Validation Missing for `_end` Exceeding `_start` in `_redistribute()` ### Description The `Redistributor._redistribute()` function lacks validation to ensure that `_end` is greater than `_start`, which could lead to an underflow in the loop condition and subsequent out-of-bounds array access. If `_start > _end...
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
dos
true
false
## High: Liquidity is incorrectly calculated during `addLiquidity()` for V3AMO, causing DoS. ### Description SolidlyV3 has the same liquidity calculation as UniswapV3. Currently, when adding liquidity, the liquidity calculation is wrong, and may lead to DoS in some cases. ### Impact Attackers can deposit LP to make 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
low
other
false
false
## Low: Some variables have a implicit default visibility ### Description Consider always adding an explicit visibility modifier for variables, as the default is `internal`. *There are 8 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
other
false
false
## Low: Contract Address Could Change Domain Separator ### Description In `TokenWrapped.DOMAIN_SEPARATOR()`, the chain ID is checked and, if it is different than the deployment chain ID, the domain separator is recalculated. This is to prevent signed permits with the wrong chain ID being generated, which could then be...
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: BE - POTENTIAL RISK OF SENSITIVE DATA EXPOSURE THROUGH CLIPBOARD ### Description The wallet application facilitates copying sensitive data, specifically mnemonic and private key passphrases, to the clipboard. This functionality presents a significant security risk, as clipboard data can be accessed both loc...
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
false
false
## High: Inflation attack can cause early users to lose their deposit ### Description **Severity:** High **Description:** A malicious `StakePet` contract creator can steal funds from depositors by launching a typical inflation attack. To execute the attack, the creator can first deposit `1 wei` to get `1 wei` of owne...
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 checking in _assertUserHasEnoughGiantLPToClaimVaultLP ### Description ## Lines of code https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantPoolBase.sol#L93-L97 ## Vulnerability details ## Impact The batch operations of `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
low
initialization
true
false
## Low: Additional Safety Checks ### Description ## Token Account Handling in CreatePool 1. **Utilize `init_if_needed` for the TokenAccount in CreatePool** The `pool_base_token_account` should use `init_if_needed`, as initialization may result in the creation of the ATAs (Associated Token Accounts). These account...
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: [22] Use of `ecrecover` is susceptible to signature malleability ### Description The built-in EVM precompile `ecrecover` is susceptible to signature malleability, which could lead to replay attacks. References: https://swcregistry.io/docs/SWC-117, https://swcregistry.io/docs/SWC-121, and https://medium.com/...
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: Total minted check in `mintReceipt` can be refactored ### Description In the function `mintReceipt` a check is made to see if the amount of already minted receipts doesn't exceed the amount of total participants allowed and the following if statement is used below. Instead of adding 1 to the total amount of mi...
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
logic-error
true
false
## Low: Move shared logic to internal functions called within a modifier
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
true
## High: 3S-LENFT-C01 protocol/FeeDistributor.sol: claiming rewards will not allow for future checkpoints ### Description The current implementation of the [FeeDistributor](https://github.com/leNFT/contracts/blob/master/contracts/protocol/FeeDistributor.sol) requires an always increasing balance for correct operation....
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: Redundant cast ### Description The type of the variable is the same as the type to which the variable is being cast *There is 1 instance of this issue:* https://github.com/code-423n4/2022-05-sturdy/blob/78f51a7a74ebe8adfd055bdbaedfddc05632566f/smart-contracts/LidoVault.sol#L140
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
false
false
## High: Lack of access control for FeeProvider setter functions ### Description The `setFeesCollectionAddress` and `setLoanOriginationFeePercentage` functions in the FeeProvider contract can be called by anyone. This allows an attacker to modify the loan origination fee percentage and the address to which the fees ar...
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: Fund Immobilization Risk Due to Null Strategy Address ### Description The `setTokenStrategy` function in the `OperatorDelegator` contract allows for the strategy of a specific ERC20 token to be set to the zero address, effectively disabling the strategy. This operation does not include checks or mechanisms 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
medium
other
false
false
## Medium: Failure to use platform encryption ### Description Data at rest is stored without using platform encryption. Tools such as the MacOS keychain or the Windows certificate store are not used to protect the highly sensitive financial data contained by this application from tampering and abuse. Data is instead 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
cross-chain
true
false
## Medium: Withdraw amount returned by `getLiquidityAmountsAndPositions` may be incorrect ### Description The `getLiquidityAmountsAndPositions()` function in the `liquidity_lockbox` contract is used to calculate the liquidity amounts and positions to be withdrawn for a given total withdrawal amount. It iterates throug...
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
true
false
## High: Multisig wallets that call `StargateLbpHelper.participate()` could cause received token to be stolen ### Description **Severity** **Impact:** High, as received tokens on destination chain will be lost **Likelihood:** Medium, this occurs when caller is a multisig wallet contract **Description** `StargateLb...
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: `MintStarted`modifier missing ### Description **Description:** `MintStarted`modifier is missing meaning the owner can mint even when minting operation is paused. **Recommendations:** Add `MintStarted`modifier in the `mintTo`function. **Status:** Resolved.
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: DistributionModule: feeAmountfor ERC20 $.usual.safeTransfer can be zero ### Description The DistributionModule distributes fees based on basis points. ```solidity feeAmount = Math.mulDiv(feeSwept, $.usualXFeeRate, BASIS_POINT_BASE, Math.Rounding.Floor); ``` The resulting actual `feeAmount` can be zero. This ...
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: [13] Accumulator code depends on memory usage ### Description The accumulator is used in [`BasicOrderFulfiller`](https://github.com/ProjectOpenSea/seaport/blob/49799ce156d979132c9924a739ae45a38b39ecdd/contracts/lib/BasicOrderFulfiller.sol#L196), [`OrderFulfiller`](https://github.com/ProjectOpenSea/seaport/blob...
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: limit amount for a bridge will result in a rate per second equal to zero ### Description In the `changeBurnerLimit` and `changeMintingLimit` functions, which are executed via `setBridgeLimits()`, any limit set below `86400` (equal to `1 days` in Solidity) will result in a zero rate per second, affecting the po...
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: Inconsistent handling of token pairs in `dex-swap-factory` PBC leads to DoS ### Description In the `dex-swap-factory` PBC, when a swap contract is delisted using the `delist_swap_contract` action, the associated token pair is **not removed** from the `token_pair_map`. This map tracks deployed token pairs and 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
oracle
true
false
## Medium: LATESTANSWER CALL MAY RETURN STALE RESULTS ### Description In the `ChainlinkOracle` contract, the function `getChainlinkPrice()` is used to retrieve prices from different Chainlink aggregators: ### Recommendation **SOLVED:** The `Irrigation Protocol team` solved the issue by implementing the recommended 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...
skyward_49k
low
other
true
false
## Low: Add brackets around `10 ** multiplier` to improve code readability and provide clarity in which operation takes precedence first ### Description There is 1 instance of this issue: Instead of this: Use this: **[pi0neerpat (OpenDollar) confirmed](https://github.com/code-423n4/2023-10-opendollar-findings/issu...
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: Erroneous documentation in initialize functions ### Description Initialize functions (in [`Escrow`](https://github.com/jeualvarez/Token-Audit/blob/e946177747e57312690775204834b8fca1bbb0d5/contracts/Escrow.sol#L31) and [`RenderToken`](https://github.com/jeualvarez/Token-Audit/blob/e946177747e57312690775204834b8...
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: Consider optimizing the poolconfigurator::setreserveinterestrate... functions ### Description Both functions mentioned above invoke the `Pool::getReserveData` function in order to retrieve a copy of the reserve state data from the Pool's storage. However, the `getReserveData` function will now perform extra me...
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: Duplicate fees will be paid by `LibTransfer::transferFee` when transferring fee-on-transfer tokens with `EXTERNAL_INTERNAL` 'from' mode and `EXTERNAL` 'to' mode ### Description **Description:** Beanstalk utilizes an internal virtual balance system that significantly reduces transaction fees when using token...
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: The owner can set allocation for one wallet only once ### Description **Description** The owner can set allocation for one wallet only once and only with one vesting type, if the owner tries to add allocation for a wallet that already exists, even if this new allocation will have a different vesting type he ...
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
Validation
false
false
<https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/StakingFundsVault.sol#L218> claimRewards in StakingFundsVault.sol has this code: if (i == 0 && !Syndicate(payable(liquidStakingNetworkManager.syndicate())).isNoLongerPartOfSyndicate(_blsPubKey...
Code4rena
5
Stakehouse Protocol
[ { "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 Validation of Enum Parameter months ### Description **Severity**: Low **Status**: Resolved **Description** The contract accepts a months parameter of type MONTHS (an enum) in several functions without validating that the value is within the valid range. Enums in Solidity are represented as uint8, an...
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: Precision loss leads to locked incentives in `DebitaIncentives::claimIncentives()` ### Description When a lender or borrwer calls `DebitaIncentives::claimIncentives()` to claim a share of the incentives for a specific token pair they interacted with during an epoch, their share is calculated as a [percentag...
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: Duplicate Event Emission and Unnecessary Memory Variable in `updateUnderlyingBalance()` ### Description - The `updateUnderlyingBalance()` function in `VaultFundManager` contains an unnecessary memory variable and emits a duplicate event. - The `onUnderlyingBalanceUpdate()` function in `MultipliVault` already e...
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: Incorrect summation of curator shares in `claimUndistributedRewards` leads to deficit in claimed undistributed rewards ### Description **Description:** The `claimUndistributedRewards` function is designed to allow a `REWARDS_DISTRIBUTOR_ROLE` to collect any rewards for a specific `epoch` that were not claimed...
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: Allowing merge of expired locks may prevent reward claiming and break some invariants ### Description The merge function in the ZeroLocker contract is designed to combine the stakes of two NFTs, transferring the locked tokens from one NFT (from tokenId) to another (to tokenId). The merge function updates ...
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
signature
true
false
## Gas: Empty blocks should be removed or emit something ### Description The code should be refactored such that they no longer exist, or the block should do something useful, such as emitting an event or reverting. If the contract is meant to be extended, the contract should be abstract and the function signatures be...
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: Suppliers will be able to mint new shares even if vaultCache.totalShares is virtually above the MAX_SANE_AMOUNT ### Description Like for the `totalBorrows`, the `Cache.initVaultCache` could also overflow for the `totalShares`. This scenario happens when part of the accrued interest must be accounted to the pro...
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: Operation between two numbers based on different decimals. ### Description **Severity**: Medium **Status**: Acknowledged **Description** In the `investInProjects()` function, `investorInvestedAmountPerProjectInETH` is set to `msg.value` which is 18 decimal. But in the `refund()` function, `investorInvest...
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: enableTradingWithWeights allow the Treasury to change the pool’s weights even if the swap is not disabled ### Description `enableTradingWithWeights` is a function that can only be called by the owner of the Aera Vault contract and that should be used only to re-enable the swap feature on the pool while upda...
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: zAuction - accountant allows zero value withdrawals/deposits/exchange ✓ Fixed ### Description Zero value transfers effectively perform a no-operation sometimes followed by calling out to the recipient of the withdrawal. A transfer where `from==to` or where the value is `0` is ineffective. ### Recommendation...
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: Unable to Transfer ETH to Pool ### Description **Update** Marked as "Fixed" by the client. Addressed in: `9c16b033f3fca4423a35a02d9f0b2ab2232bf651`. **File(s) affected:**`Bridge.sol` **Description:** The `Bridge.deposit()` contract is `payable`. However, the `IBCUtils.safeTransferFrom()` function does not su...
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: Comment in _canTransfer() can be improved to be easier to understand ### Description The following comment in `InvestmentManager::_canTransfer()` can be improved to make it more readable: - **Original:** Sender (from) and receiver (to) have both to pass - **Improved:** Sender (from) and receiver (to) have 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...
cyfrin_structured
low
other
true
false
## Low: State variables should be cached to avoid unnecessary storage accesses
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 events for critical operations ### Description Several critical operations do not trigger events. As a result, it is difficult to check the behavior of the contracts. Ideally, the following critical operations should trigger events:
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: Owner Check in Repay ### Description ## Repay Instruction Review The Repay instruction restricts debt payers to only the Vault owner. This check is not required as the debt payer doesn’t have to be the vault owner. Ideally, any user should be able to invoke this instruction in order to repay the debt. ## Cod...
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: Risks due to centralization ### Description A number of functions are protected by the `onlyOwner` modifier and are all vulnerable to the actions of a malicious or compromised admin. Some functions are however worth taking a look at and having protections in place to protect users from the potential ramificati...
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
true
false
## Medium: initVaultCache can revert breaking liveness assumptions ### Description While some parts of the `initVaultCache` gracefully handle overflows, other parts can still revert: ```solidity // multiplication can overflow uint256 newTotalBorrows = vaultCache.totalBorrows.toUint() * newInterestAccumulator / vaultC...
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: ERC20 implementations may revert on zero approval ### Description In the ERC4626 implementation, token allowances follow a pattern where approval is granted for the required amount before executing an operation and then reset to zero afterward: However, some ERC20 implementations [revert when approving a zer...
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: Second per liquidity inside could overflow `uint256` causing the LP position to be locked in `UniswapV3Staker` ### Description `UniswapV3Staker` depends on the second per liquidity inside values from the `Uniswap V3 Pool` to calculate the amount of rewards a position should receive. This value represents 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
high
other
true
false
## High: Repeated Invocation Resulting in Excessive Claims ### Description ## Timelock Claim Vulnerability In `timelock::claim`, the module does not fully account for the cumulative claims an owner may make on the unlocked tokens. Without this additional check, a user may exploit the function to repeatedly claim 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
initialization
true
false
## Low: Incorrect symbol for staked token ### Description The current symbol from staked carrot is set to `sCarrot`, in lowercase: ```solidity constructor(address carrot, address initialOwner) ERC20("Staked Carrot", "sCarrot") Ownable(initialOwner) { ``` However, if the symbol of the CARROT token is set uppercase. ...
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: Test Coverage ### Description ## Test Suite Coverage Assessment While testing, it was noticed that the test suite for the program does not provide enough coverage. Multiple vulnerabilities found throughout this audit could’ve been caught with more coverage. For example, OS-CEG-ADV-01 results in significantl...
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
oracle
false
false
Source: https://github.com/sherlock-audit/2023-03-olympus-judging/issues/2 ## Found by 0x52 ## Summary getTknOhmPrice uses the stETH/ETH chainlink oracle to calculate the current price of the OHM token. This token valuation is used to determine the amount of stETH to skim from the user resulting from oracle arb. T...
Sherlock
5
Olympus Update
[ { "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: Re-adding removed vault assets duplicates accounting in `lastTotalAssets` ### Description _Acknowledged_ When a strategy vault is removed via emergency removal while it still holds assets (`strategy.balanceOf(address(EulerEarn)) > 0`), these unrecoverable assets are added to the `lostAssets` variable in `_acc...
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: Uniswap V3 can’t be fully used, contrary to docs ### Description ### Proof of Concept Per the docs, protocol should be able to seamlessly work on both V2 and V3, with even a hint of V4 in the abstract, see here: Issue however is that provision is only made for V2 in scope, see: Note that this address is t...
0