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
medium
other
false
false
## Medium: One can become referral of hash 0x0 and because all users default referral hash is 0x0 so he would become all users referral by default and earn a lot of fees while users didn't approve it ### Description ### Impact By default the value of `_referred[user]` is 0x0 for all users and if one set 0x0 as his re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [29] Can use ternary ### Description The following instance can use a ternary expression instead of a conditional. https://github.com/code-423n4/2023-03-asymmetry/blob/main/contracts/SafEth/SafEth.sol#L78-L81
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
flash-loan
true
false
## High: Attacker can specify any `receiver` in `USD0.flashLoan()` to drain `receiver` balance ### Description The flash loan feature in USD0's `flashLoan()` function allows the caller to specify the `receiver` address. USD0 is then minted to this address and burnt from this address plus a fee after the callback. Sinc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: POSSIBLE MISUSE OF PUBLIC FUNCTIONS ### Description In public functions, array arguments are immediately copied to memory, while external functions can read directly from `calldata`. Reading `calldata` is cheaper than memory allocation. Public functions need to write the arguments to memory because public 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
low
liquidation
true
false
## Low: Pending redemptions in LevelMinting can exceed the protocol 's balance ### Description In `LevelMinting`, users can call `initiateRedeem()` to initiate a redemption for any amount of collateral asset: ```solidity UserCooldown memory newCooldown = UserCooldown({ cooldownEnd: uint104(block.timestamp + cooldow...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: An attacker will steal value from cross-chain swaps by manipulating liquidity used in `_swapAndSendERC20Tokens()` ### Description The reliance on spot reserves from `UniswapV2Library.getAmountsIn()` will cause a loss of value for cross-chain users as an attacker will manipulate liquidity pools to skew price...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Forwarder and Withdrawal Helper Contracts Do Not Handle ETH Transfers Correctly ### Description The [`WithdrawalHelperBase`](https://github.com/across-protocol/contracts/blob/5a0c67c984d19a3bb843a4cec9bb081734583dd1/contracts/chain-adapters/l2/WithdrawalHelperBase.sol#L18) and [`ForwarderBase`](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
other
true
false
## Low: `IERC7160` specification requires `pinTokenURI` to revert for non-existent `tokenId` ### Description **Description:** Per the specification of `IERC7160`: But the implementation of `pinTokenURI` doesn't revert for tokens which don't exist, since `_tokenURIs[tokenId].length` will always equal 2 even for non-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
oracle
false
false
## Low: The wstETH price Displayed Incorrectly to End Users ### Description **Update** Marked as "Fixed" by the client. Addressed in: `d0a7a805d1534b5a947be95c092cbf2a28e9afbc`. The client provided the following explanation: > The source of the error was a function that was incorrectly interpreting different collater...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: optimisation in `mul` and `rmul` ### Description The `_rmul` function can be optimized: ``` assembly { let prod := mul(x, y) if iszero(eq(div(prod, x), y)) { revert(0, 0) } z := div(prod, RAY) } ``` The `_mul` function optimization ``` assembly { z := mul(x, y) if iszero(eq(div(z, x), y)...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing sanity checks in `RewardAuctionHouse` ### Description **Severity**: Low **Status**: Resolved **Description** There is Missing sanity checks for parameters in initialize() function. Here the minimumBid can be accidentally set to zero, or the auctionDuration can be zero as well as the beneficiary 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
true
false
## Low: Code Maturity ### Description ## Report on Authorizer Invocation ## 1. require_authorizer_invoked The `require_authorizer_invoked` loops through transaction instructions to locate the relevant authorizer instruction. If it encounters an instruction from the same authorizer before locating the expected one, 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
high
token
true
false
## High: No returning of premium if there is no swap to PT ### Description Swivel version of Lender's lend() has optional premium conversion parameter. If it is set, the underlying funds are swapped to Swivel PTs and Illuminate PTs are minted to the caller. If it is not set, the underlying funds resulted from filling ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused Imports ✓ Fixed ### Description In the following locations, there are unused imports: * In `ETHRegistrarController.sol#L17`, the `NameEncoder` import is unused. * In `NameWrapper.sol#L4`, the `IERC165` import is unused. * In `NameWrapper.sol#L6`, the `CAN_DO_EVERYTHING` import is unused. * In `NameWra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Race Condition ### Description ## Potential Race Condition in `vault::check_rebalance_loop` There is a potential race condition in `vault::check_rebalance_loop`, as it iterates through vaults with `vault_id_option`, which points to vaults within the strategy. Thus, another user may try to close the same vault...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
rounding
false
false
## Low: Maximum bid and offer prices are scaled up ### Description `TermAuctionBidLocker.MAX_BID_PRICE()` and `TermAuctionOfferLocker.MAX_OFFER_PRICE()` are both set at \(10^{22}\). As clearing prices are scaled at \(10^{9}\), this value is not the commented 10,000%, but rather \(10^{13}\) percent. ### 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
other
true
false
## Low: Race Condition In Pot Deployment ### Description ## Analysis of Race Condition in `deploy_pot` The `pots_by_id` is only populated in `deploy_pot_callback`, thus creating a potential race condition for `deploy_pot` with the same `pot_account_id` to pass existence checks. The impacts of this issue are limited 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
low
other
false
false
## Low: Insufficient coverage ### Description The test coverage rate of the project is ~85%. Testing all functions is best practice in terms of security criteria. Due to its capacity, test coverage is expected to be 100%. ```js ---------------------------|----------|----------|----------|----------|----------------...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: `unchecked{++i}` instead of `i++` (or use assembly when applicable) ### Description Use `++i` instead of `i++`. This is especially useful in for loops but this optimization can be used anywhere in your code. You can also use `unchecked{++i;}` for even more gas savings but this will not check to see if `i` over...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
false
false
## Medium: It is required to redo the logic of working with quorum ### Description At the following lines there is the value of the `quorum` variable changed: - https://github.com/lidofinance/lido-dao/blob/5b449b740cddfbef5c107505677e6a576e2c2b69/contracts/0.8.9/DepositSecurityModule.sol#L265 when adding one guardian...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
initialization
true
true
_Submitted by IllIllI_ Since the Lens platform is a blockchain-based social media platform, it's important that information relevant to users be emitted so that light clients need not continually refer to the blockchain, which can be expensive. From the docs: `Events are emitted at every state-changing function call,...
Code4rena
5
Aave Lens
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of incentives if total weight in an epoch is zero ### Description If during an epoch, the total weight is zero, then the staking incentives related to that epoch will be lost, while it is expected that they will be refunded to tokenomics inflation. ### Proof of Concept During claiming the staking inc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minimum deposit value not enforced in `LINKMigrator` ### Description **Description:** The `LINKMigrator` contract includes a `queueDepositMin` field intended to define the minimum deposit amount. However, this value is currently unused, allowing users to deposit amounts as small as 1 juel (1e-18 LINK). **Impa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect event emission ### Description The `UniswapWindowUpdate` event of the `UniswapAnchoredView` contract is currently [being emitted in the `pokeWindowValues` function](https://github.com/compound-finance/open-oracle/blob/d0a0d0301bff08457d9dfc5861080d3124d079cd/contracts/Uniswap/UniswapAnchoredView.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...
solodit_api
high
NFT
true
true
## Lines of code https://github.com/with-backed/papr/blob/9528f2711ff0c1522076b9f93fba13f88d5bd5e6/src/PaprController.sol#L159 ## Vulnerability details ## Impact Users will lose collateral NFTs when they are transferred to `PaprController` by an approved address or an operator. ## Proof of Concept The `PaprControll...
Code4rena
5
Backed 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: In LiquidVestingTokenFactory contract you are declaring the usage of AbiEncoderV2 with pragma experimental ABIEncoderV2, but since solidity 0.7.4 that feature is not experimental anymore, ### Description **Recommendation**: It can be easily replaced with pragma abicoder v2: https://docs.soliditylang.org/en/v0...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: yVaultLPFarming: No guarantee JPEG currentBalance > previousBalance ### Description ## Lines of code https://github.com/code-423n4/2022-04-jpegd/blob/main/contracts/farming/yVaultLPFarming.sol#L169-L170 ## Vulnerability details ## Details & Impact yVault users participating in the farm have to trust that...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dynamic LP fees will remain zero by default unless explicitly updated ### Description **Description:** As given by the logic in `LPFeeLibrary::getInitialLPFee`, dynamic fee pools initialize with an LP fee of 0%: While `AngstromL2::setPoolLPFee` allows the contract owner to update the dynamic LP fee, there wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Address Normalization ### Description ## Issue in handle_complete_transfer_token Within `handle_complete_transfer_token`, an issue arises when the target receiver is a 32-byte address (CosmWasm contract) that starts with `[0, 0, 0, ...]` (twelve zeros). In such a case, there is a potential for the a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: No revocation for previous liquidation manager ### Description In the `setLiquidationManager()` function of the `PositionManager` contract, when changing the `liquidationManager` address, the approval of the previous `liquidationManager` address **is not revoked from all registered vaults**. This oversight cou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Contracts should be robust to upgrades of underlying gauges and eventually changes of the underlying tokens ### Description _Submitted by Picodes_ For some veAsset project (for example Angle’s [gauges](https://github.com/AngleProtocol/angle-core/blob/main/contracts/staking/LiquidityGaugeV4UpgradedToken.vy)...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: Refinanceloan() places old lender on at unfair disadvantage ### Description ## RefinanceController.sol#L130 **Description:** A loan can be refinanced approximately 2 days after its creation. However, due to the permissionless nature of `refinanceLoan()`, this could place the old lender at an unfair disadva...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: New opcodes are not supported by all chains (solidity version >= 0.8.20) ### Description Solc compiler `version 0.8.20` switches the default target EVM version to Shanghai. The generated bytecode will include **PUSH0** opcodes. The recently released Solc compiler `version 0.8.25` [switches the default target 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
token
true
false
## Low: Typo ### Description `_accumuatedRewards` => `_accumulatedRewards` - https://github.com/reserve-protocol/protocol/blob/9ee60f142f9f5c1fe8bc50eef915cf33124a534f/contracts/plugins/assets/erc20/RewardableERC20.sol#L57
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
true
## Medium: Role management vulnerability in `assignRole()` function ### Description Reference Finding: [Link](https://solodit.cyfrin.io/issues/m-01-admin-role-evasion-risk-pashov-audit-group-none-reyanetwork-june2-markdown) The `assignRole` function in the `RoleBasedAccessControl` contract is protected by the `onlySu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: setMinimumDistribution is not protected ### Description An attacker can call the `setMinimumDistribution` function in `MultiDistributor` to add useless values to the tokens list and increase the gas cost of all related functions. The `setMinimumDistribution` function allows a trusted participant to add a dist...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M04] The identity precompile return value is ignored ### Description ###### Medium In the `innerModExp` function of the `BigNumber` library, the identity precompiled contract stored at address `0x4` is called in [L543](https://github.com/BeamNetwork/currency/blob/de81d9bad4195e03f07aedd2a6817f0cb04a8c8d/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
high
front-running
false
false
## High: Anyone Can Arbitrarily Mint Fungible Tokens In VaderPoolV2.mintFungible() ### Description ## Handle leastwood ## Vulnerability details ## Impact The `mintFungible()` function is callable by any user that wishes to mint liquidity pool fungible tokens. The protocol expects a user to first approve the contr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: vars.availableLiquidity is not capped by the reserve's total managed assets ### Description The following formula assumes there is enough liquidity in the corresponding tranched reserve in the lending pool to cover the unused flow (which might not be the case). ```plaintext vars.availableLiquidity = IERC20...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of event emissions on important state changes ### Description **Description:** The following functions change state but doesn't emit an event. Consider emitting an event from the following: - [`Access::setAdministrator`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Protocol allows non-existent loanable value as Senior Bond gain ### Description When purchasing a new Senior Bond, users call the [`buyBond` function](https://github.com/BarnBridge/BarnBridge-SmartYieldBonds/blob/943df3a8fcd8dd128af3beb0c85a0480c0e95ead/contracts/SmartYield.sol#L179), which performs a number ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards are lost if user requests unstake in less than one day ### Description In the `DIAWhitelistedStaking` contract's `getRewardForStakingStore` function, there is a potential loss in rewards calculation if a user requests unstake in less than one day. The function uses the formula: ```solidity passedDays ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _acceptedCurrency could be misleading ### Description Due to the support of ERC20s and blockchain native currencies, payments are settled through the currency indicated by the [`_acceptedCurrency` variable](https://github.com/freeverseio/crypto-payments/blob/956a98e53ef540f7b2b40f3b923d0b0e3e5d32ef/contracts/b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Timestamp usage in AdaswapPair update. ### Description **Description** A block.timestamp value can be manipulated by miners. Location: -./core/contracts/AdaswapPair.sol #60-73 **Recommendation** Be aware of miner influence on block.timestamp. If used for critical calculations sensitive to manipulation, 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
low
initialization
false
false
## Low: Setting ownerships directly rather than via API ### Description The [`Directory`](https://github.com/notional-finance/contracts/blob/b6fc6be4622422d0e34c90e77f2ec9da18596b8c/contracts/utils/Directory.sol) and [`Governed`](https://github.com/notional-finance/contracts/blob/b6fc6be4622422d0e34c90e77f2ec9da18596b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The total voting power of all veRAAC tokens is wrongly assigned ### Description The total voting power of all veRAAC tokens is wrongly assigned. ### Impact 1. Governance propsal can never meet quorum; 2. Rewards stuck in `FeeCollector`.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Missing validation in DharmaSmartWalletImplementationV2 ### Description Within the DharmaSmartWalletImplementationV2 contract, the `withdrawDai` and `withdrawUSDC` functions do not perform adequate validation of their amount and recipient parameters (Figures 12.1 and 12.2). ### Recommendation **Short term:** ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `CompensationPriceFinder` amount delta rounding directions are not consistent with Uniswap ### Description `CompensationPriceFinder::getZeroForOne` and `CompensationPriceFinder::getOneForZero` both round down in every instance when invoking `SqrtPriceMath::getAmount0Delta` and `SqrtPriceMath::getAmount1Delta`:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MarginalV1LBLiquidityReceiver.mintMarginalV1() refunds to treasury, instead of liquidity owner ### Description The `MarginalV1LBLiquidityReceiver.mintMarginalV1` function deposits funds as liquidity to a Marginal pool. At the end, the function refunds all unspent funds to the treasury address: ```solidity //...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible inaccuracy in PeriodSpend end could result in incorrect integrations/events ### Description This code allows for the `PeriodSpend.end` to be greater than `SpendPermission.end`. While this does not result in spending after the `SpendPermission.end`, this could cause confusion for any integrations liste...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe downcasting ### Description `feeds[i].length` might be downcasted wrongly when it's greater than `type(uint8).max`. `maxFeedsLength()` might pass the [requirement](https://github.com/reserve-protocol/protocol/blob/9ee60f142f9f5c1fe8bc50eef915cf33124a534f/contracts/plugins/assets/curve/PoolTokens.sol#L10...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setLiquidityAdapter and setLiquidityData are not time locked ### Description `setLiquidityAdapter` and `setLiquidityData` are not time locked even though changing their values might pose some unwanted risks for the shareholders. This is especially important for those who want to exit from the vault where there...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Insufficient signature validation ### Description The `unpackSignature` function in the **RegistrarController** contract does not include critical validations present in OpenZeppelin's **ECDSA** implementation, including: 1. Verifying that the signature length is exactly 65 bytes. An invalid length cou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AuctionBurnReserveSkew.getPegDeltaFrequency() Wrong implementation can result in an improper amount of excess Liquidity Extension balance to be used at the end of an auction ### Description ## Handle WatchPug ## Vulnerability details https://github.com/code-423n4/2021-11-malt/blob/c3a204a2c0f7c653c6c2dda9...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interfaces do not need to be implemented for the compiler to access their selectors. ✓ Fixed ### Description In `Assimilators.sol` the interface for the assimilators is implemented in a state variable constant as an interface to the zeroth address in order to make use of it’s selectors. **src/Assimilators.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: Consider removing redundant checks from function _execUSDPriceUpdate() ### Description [Link to instance](https://github.com/code-423n4/2024-05-munchables/blob/57dff486c3cd905f21b330c2157fe23da2a4807d/src/managers/LockManager.sol#L508) The first check can be removed since _execUSDPriceUpdate() is only execute...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Imprecise Naming of Transaction Struct Elements ### Description In the [`bootloader` contract](https://github.com/matter-labs/system-contracts/blob/4ad1f26ae205d5a973216d141833e0ac37d72ec8/bootloader/bootloader.yul), inside of the `validateTypedTxStructure` function, [it is stated](https://github.com/matter-la...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_lockOnTOB` function of MagnetarMintCommonModule will not work due to the missing approved asset for YieldBox before depositing ### Description In MagnetarMintCommonModule, the `_lockOnTOB` function is used to pull the singularity tokens from the user and lock them into the TapiocaOptionBroker contract. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper naming of the contracts ### Description **Severity**: Informational **Status**: Acknowledged **Description** The file LibSubnetRegistryStorage is named LibSubnetRegistryStorage but it actually contains just a struct. **Recommendation**: Consider moving it to structs folder or rename the file t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Several fields could be declared immutable  Acknowledged ### Description Several fields could be declared immutable to make clear that they never change after construction: ### Recommendation Comment from Flexa team: > > We tried to add this, but found that it made validating the contract on Etherscan impo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Any envoy with access to SablierV2ProxyTarget can steal all funds in proxy ### Description Envoys are given permissions on a target-by-target basis, with the assumption that they are not fully trusted with the assets of the proxy. When a proxy owner gives an envoy permissions on the `SablierV2ProxyTarget`, it...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bad parameter encoding and deployment when using wrong initializers ### Description The initializers used to encode the arguments when deploying a new pool in `PoolDeployer` might not be the initializers that the proxy factory will use for the default version. This could lead to bad parameter encoding and depl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Recovered tokens are locked in the contract with the current implementation ### Description In Goldsand.sol, we have ERC20 and ERC721 token recovery functions that recover any tokens in the WithdrawalVault, transferring them to Goldsand: ```solidity /** * @notice Calls the withdrawal vault to recover ERC20 t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Malicious borrower cycle exploits to inflate interest rates ### Description ### Impact The current implementation allows a malicious actor to artificially inflate interest rates for all borrowers in the system through rapid borrow-and-repay cycles. This exploit can lead to: 1. Increased costs for legitimate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `wrappedNative`, `curveRouter`, `uniswapRouter` and `feeReceiver` addresses are hard-coded. ### Description **Severity**: Low **Status**: Resolved **Description** It's generally recommended to use a factory pattern or a configuration mechanism to allow flexibility in changing the router address in the f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Improper ETH Refund Handling in GatewaySend.onRevert() ### Description The GatewaySend contract’s onRevert() function mishandles native ETH refunds for failed cross-chain transactions by using TransferHelper.safeTransfer(), which is designed exclusively for ERC20 tokens. When the function attempts to refund...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] Use `continue` instead of `return` in `_beforeTokenTransfer()` ### Description [LenderPool.sol#L686-L688](https://github.com/sublime-finance/sublime-v1/blob/46536a6d25df4264c1b217bd3232af30355dcb95/contracts/PooledCreditLine/LenderPool.sol#L686-L688) Should the contract be upgraded to use `_mintBatch()` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Risk of overflow. ### Description **Description** accTokenPerShare calculation utilizes 1e12*1e18*1e32 that is equal to 1e62. Max size of unsigned integer (256) is 2**256-1 that is ~1e77. With high pool rate and low rateDenominator such amount can cause an overflow. **Recommendation**: Handle or prevent 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
low
other
true
false
## Low: Redundant use of `this` keyword in the function invocations ### Description **Severity**: Informational **Status**: Resolved **Description** The convertPendle and convertAllPendles from PendleStaking contract use the `this` keyword keyword unnecessarily when invoking public functions. This results in the 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...
solodit_api
high
Wrong Math
true
false
## Handle cmichel ## Vulnerability details The `Controller.setCap` function sets a cap for a strategy and withdraws any excess amounts (`_diff`). The vault balance is decreased by the entire strategy balance instead of by this `_diff`: ``` // @audit why not sub _diff? _vaultDetails[_vault].balance = _vaultDetails[...
Code4rena
5
yAxis
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
Source: https://github.com/sherlock-audit/2023-02-olympus-judging/issues/127 ## Found by Cryptor, CRYP70, kiki\_dev, Bauer, hansfriese, HonorLt, gerdusx, KingNFT, 0x52, Ruhum, rvierdiiev ## Summary When a reward token is removed, it's entire reward structs is deleted from the reward token array. The results is tha...
Sherlock
5
Olympusdao
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle-manipulation
true
false
## Medium: Missing staleness check in `PriceOracle::getTokenPrice` ### Description `PriceOracle.getTokenPrice()` relays `pythOracle.getPriceUnsafe()` but never verifies the price **publish time** or confidence interval. A price that is hours old (or intentionally frozen) is accepted as fresh. ```solidity function get...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Exercise option cross chain message in the (m)TapiocaOFT will always revert in the destination, losing debited funds in the source chain ### Description Exercise option cross chain message in the `(m)TapiocaOFT` will always revert in the destination, but works in the source chain, where it debits the funds fr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds can be Lost Due to SelfDestructed Staker Contract ### Description A contract can be passed into `StrategyManager.depositIntoStrategyWithSignature()` as the staker address. This contract will then be responsible for verifying signatures using ERC1271. However, an edge case exists that may deny withdrawal ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Purchasing and committing still possible after launch ### Description Even after `GenesisGroup.launch` has successfully been executed, it is still possible to invoke `GenesisGroup.purchase` and `GenesisGroup.commit`. ### Recommendation This was addressed in [fei-protocol/fei-protocol-core#11](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
medium
oracle
true
false
## Medium: Missing L2 sequencer uptime check in `OracleAdapter` ### Description **Description:** On L2, the `YToken` exchange rate is provided by custom Chainlink oracles. The exchange rate is queried in [`OracleAdapter::fetchExchangeRate`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b9...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Constraints During Migration - Phase 3 ### Description The [`changeBridgedToken`](https://github.com/taikoxyz/taiko-mono/blob/dd8725f8d27f835102fa3c5a013003090268357d/packages/protocol/contracts/tokenvault/ERC20Vault.sol#L160C14-L160C32) function of the `ERC20Vault` contract can be called to change 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
other
true
false
## Low: Inconsistent Storage Of Staked Coins ### Description ## Potential Issue in Staking Method The storing of staked SUI in two different locations by the `request_stake_coin` method may result in a potential issue. This method enables such storage based on whether the user has specified a validator or not, which ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing zero address check in `CreditUSD` ### Description **Severity**: Low **Status**: Acknowledged **Description** In CreditUSD contract, there is missing zero address check for minter parameter in updateMinter() and collateralAddress parameter in updateMintLimit() functions. **Recommendation**: 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
medium
other
false
false
## Medium: Insufficient check on reward token balance ### Description **Severity**: Medium **Status**: Resolved **Description** In contracts NarwhalPool.sol and TradingVaultV2, at line 127 inside the setRewardDuration function check if balance of esToken is enough to distribute the newly added rewards for their dur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Shareholders can renounce their authorization role ### Description Shareholders can renounce their authorization role. As a result, system contracts that check for authorization and off-chain components may not work as expected because of an inconsistent system state. The `AuthorizationModule` contract extend...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees Should Be Distributed Before Change of the Fee Configuration ### Description The [`convertFees`](https://github.com/euler-xyz/euler-vault-kit/blob/83ea1ad97b7c561d6601b220d23ec85d67ceb297/src/EVault/modules/Governance.sol#L140-L172) function facilitates the distribution of accumulated fees between 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
low
other
false
false
## Low: Redundant startDate validation in increaseRewardsScores Severity: Quality Assurance ### Description **Description:** In the increaseRewardsScores function, it checks if the current time is more than the start date in line 188, but this check is already made in the getCurrentPeriod function and could be remove...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle-manipulation
true
false
## Medium: `YtokenL2::previewMint` and `YTokenL2::previewWithdraw` round in favor of user ### Description For the L2 `YToken` contracts, assets are not managed directly. Instead, the vault’s exchange rate is provided by an oracle, using the exchange rate from L1 as the source of truth. This architectural choice requi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused state variable in BaseSecuritizeSwap contract ### Description **Description:** The `BaseSecuritizeSwap` contract contains an unused state variable `dsToken`. This variable is declared but never referenced in any function throughout the contract or its inheriting contracts. While this doesn't pose any se...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Maturity ### Description ## Upgrade Suggestions for DepositExecutor and DepositLocker 1. **Enhance Access Control in DepositExecutor** - Add a modifier similar to the `onlyWeirollWallet` modifier in `DepositLocker` to `DepositExecutor`. This may be utilized to guard specific functions such as: - `exe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone could steal pool tokens’ earned interest ### Description If a PrimitiveEngine contract is deployed with certain ERC20 tokens, unexpected token interest behavior could allow token interest to count toward the number of tokens required for the `deposit`, `allocate`, `create`, and `swap` functions, allowin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
liquidation
true
true
Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0xc1FBF54B25816B60ADF322d8A1eaCA37D9A50317 Impacts: * Protocol insolvency ## Description ## Brief/Intro Users can mix their `UserLoanBorrow` with both stable and variable borrowings manipulating a check on `LiquidationLogic` and, in this...
Immunefi
5
Folks Finance
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Low: Open TODOs ### Description ### PROBLEM There are open TODOs in the code. Code architecture, incentives, and error handling/reporting questions/issues should be resolved before deployment. ### PROOF OF CONCEPT Instances include: #### lending-market/Comptroller.sol l1232 // TODO: Don't distribute supplier...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chainlink returned data is not checked for being stale ### Description There is a call to the Chainlink price feed `latestRoundData` at line https://github.com/MetaLex-Tech/borg-core/blob/67e3131f9ea7daafa7e98b5fb6892a122516fe2a/src/libs/conditions/chainlinkOracleCondition.sol#L53. It can return a stale pri...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Don't use named return variables, it's confusing ### Description [DNSRegistrar.sol#L133-L136](https://github.com/code-423n4/2023-04-ens/blob/45ea10bacb2a398e14d711fe28d1738271cd7640/contracts/dnsregistrar/DNSRegistrar.sol#L133-L136) https://github.com/code-423n4/2023-04-ens/blob/45ea10bacb2a398e14d711fe28d173...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Native ETH cannot be used as the incentive token ### Description In `ClaggBaseAdapter.setIncentive()`, `safeApprove()` is always called before transferring the incentive token (i.e., token below) to `IncentiveVault`: ```solidity IERC20(token).safeApprove(incentiveVault, amount); IIncentiveVault(incentiveVa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TransactionManager - Hard-coded chain ID might lead to problems after a chain split  Pending ### Description The ID of the chain on which the contract is deployed is supplied as a constructor argument and stored as an `immutable` state variable: **code/packages/contracts/contracts/TransactionManager.sol:L104...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unaccounted Bounced Messages in `mint_shares()` Can Lead to Lost Deposits and Broken Pool Accounting ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > There're no cases where mint_shares could bounce. The only foreseeable scenario it could boun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AuraBalRewardPool` charges a penalty to all users in the pool if the `AuraLocker` has been shut down ### Description _Submitted by IllIllI, also found by csanuragjain_ Users are charged the penalty due to admin actions, and they have no way to avoid it ### Proof of Concept When claiming their rewards, u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: There are two different whitelist getters ### Description The [`TransferWhitelist` contract](https://github.com/celo-org/celo-monorepo/blob/db2e561e1f13220a98743a7999818e48a5089d13/packages/protocol/contracts/common/TransferWhitelist.sol#L11) is used to whitelist addresses. Addresses can be [added directly]...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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-09-perennial-judging/issues/10 ## Found by panprog The [issue 46 of the main contest](https://github.com/sherlock-audit/2023-07-perennial-judging/issues/46) after the fix still stands with a more severe condition as described by WatchPug in fix review: > If we assume i...
Sherlock
4
Perennial V2 Fix Review
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Setting Default Values ### Description **Description** The variables `circulatingNotes` and `fees` are assigned to 0. This is unnecessary because the default value for the `uint256` type is 0. **Recommendation** Remove the assignment. **Resolution** Ethernote Team: - Remove the 0 assignment as `uint256...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Veto
true
false
Source: https://github.com/sherlock-audit/2022-11-frankendao-judging/issues/9 ## Found by neumo, Trumpero ## Summary When a proposal that has passed is vetoed, the proposer still has the bonus of `proposalsCreated` and `proposalsPassed` related to the proposal. Both should be decremented because `veto` is intended ...
Sherlock
4
FrankenDAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
high
access-control
true
true
## High: Swaps are not possible on pools registered with Bunni due to incorrect access control in `ValkyrieHooklet::afterSwap` ### Description `ValkyrieHooklet::afterSwap` has the `onlyBunniHub` modifier applied; however, this hook is invoked from `BunniHook` (using the `BunniHookLogic` library) and not `BunniHub` (us...
0