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
overflow
false
false
## Medium: Mean-Based Outlier Detection Vulnerability Allows Single Node to Sabotage Consensus ### Description Using the arithmetic mean instead of median in the standard deviation filter can cause a consensus failure for the entire protocol as a malicious nodes can manipulate the mean/ standard deviation calculation ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some users would be stuck on the L1 and not be able to migrate their Beans to the L2 ### Description As explained in the[ L2 migration video walkthrough provided by Beanstalk](https://discord.com/channels/1127263608246636635/1240187918878904382/1247306897741058121), in-order to curb the issue where not 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
dos
false
false
## Low: Seat Eviction DOS ### Description ## Market Authority Claiming Issue Upon claiming the market authority for a specified Phoenix market via the `phoenix-seat-manager` program, there is no check for the number of lamports in `seat_deposit_collector`. This will cause subsequent executions of `EvictSeat` to fail ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Donation on Pairs, in conjunction with lax slippage could be used to take on unintended ratios of debt ### Description **Executive Summary** Pair.synch allows synching without a swap being performed This is a donation to the Pair reserves, which changes it's price **Impact** When providing liquidity the ra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Increase test coverage ### Description **Severity**: Informational **Status**: Acknowledged **Description** It is advised to have more test coverage and integration tests for the contract. This is because the contracts with which the PostLauncher is interacting (which are out of the scope of this audit) mig...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permanent boost inflation through delegation removal in Boostcontroller.sol ### Description A vulnerability exists in the `removeBoostDelegation` function of the `BoostController` contract, where the `poolBoost.workingSupply` is not properly checked when reducing delegation amounts. When the `workingSupply`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `constant`s should be defined rather than using magic numbers ### Description 1. File: contracts/IndexLogic.sol (line [82](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/contracts/IndexLogic.sol#L82)) 2. File: contracts/libraries/FullMath.sol (line [88](https://...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (Re-Audit) Users May Supply Arbitrary Collateral Contrary to Specification ### Description **Update** The team fixed the issue by adding the following validation check in `openLendCredit()`: **File(s) affected:**`CreditCaller.sol` **Description:** A comment in the `CreditCaller` contract states the followi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token withdrawal fails until someone manually approves spending ### Description The protocol uses a contract called TokenManager to control a capital pool that stores tokens. When a user wants to withdraw, the TokenManager needs spender allowance on the capital pool, but this is not checked for, so the withd...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: VaultConfig.setVaultConfig doesn’t check all critical arguments ### Description The Notional Strategy Vaults need to get whitelisted and have specific Notional parameters set in order to interact with the rest of the Notional system. This is done through `VaultAction.updateVault()` where the `owner` address...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 function body ### Description **Severity**: Informational **Status**: Resolved **Description** Contract GlpHandler has a function, ‘mintGlpUsdgAmount’, that has nobody. **Recommendation**: Implement the function or make it private since it is never used externally.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `override` keyword for interface inherited methods ### Description The `HypercertMinter` contract is inheriting the `IHypercertToken` interface and implements its methods but the `override` keyword is missing on the overriden methods. Add the keyword on those as a best practice and for compiler checks.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
true
false
## High: Improper MarginPool Rounding ### Description The margin-swap program does not perform sufficient verification on the provided accounts. **File:** `margin-swap/src/lib.rs` ```rust #[derive(Accounts)] pub struct SwapInfo { ... pub swap_program: UncheckedAccount, // FIXME: need program id? } ``` An attack...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In `ERC20Gauges`, contribution to total weight is double-counted when `incrementGauge` is called before `addGauge` for a given gauge. ### Description _Submitted by smiling_heretic_ [ERC20Gauges.sol#L214](https://github.com/fei-protocol/flywheel-v2/blob/77bfadf388db25cf5917d39cd9c0ad920f404aad/src/token/ERC...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `AutoRedemption::calculateUSDsToTargetPrice` could be refactored to avoid repeated logic ### Description When calculating the target `USDs` amount, the call to `LiquidityAmounts::getAmountsForLiquidity` is common to both conditional branches, with the liquidity parameter being the only difference: ```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
medium
liquidation
true
true
## Medium: The whole ante balance of a user with a very small loan, who is up for liquidation can be stolen without repaying the debt ### Description Source: https://github.com/sherlock-audit/2023-10-aloe-judging/issues/146 ## Found by OxZ00mer Users with very small loans on markets with tokens having very low dec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insurance Pool Tokens Can Be Transferred Without Claiming Rewards ### Description Description The InsurancePoolToken contract overrides the transfer() function, enforcing the current user to with- draw their rewards before transferring any amount of tokens to a new account. However, the ERC20 transferFrom()...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing Input Validation ### Description **Update** Marked as "Fixed" by the client. Addressed in: `a53dd956c6a1330742c00f46f30aee881f76b958`. **File(s) affected:**`L1StandardBridge.sol`, `L2StandardBridge.sol` **Description:** It is important to validate input data even if they come from trusted sources 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
gas
other
false
false
## Gas: Use custom errors rather than `revert()`/`require()` strings to save gas ### Description Custom errors are available from solidity version 0.8.4. Custom errors save [**\~50 gas**](https://gist.github.com/IllIllI000/ad1bd0d29a0101b25e57c293b4b0c746) each time they're hitby [avoiding having to allocate and store...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible Use Of Clear Text Traffic ### Description ## Ensuring Secure Network Connections Ensuring that Pontem only uses secure network connections is important to securing the app and data in transit. Therefore, for API level 27 or lower, the app can use unencrypted network traffic, such as HTTP, instead of ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Wrong shortfall calculation ### Description _Submitted by kenzo_ Every time an account is settled, if shortfall is created, due to a wrong calculation shortfall will double in size and add the new shortfall. #### Impact Loss of funds: users won't be able to withdraw the correct amount of funds. Somebody wo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: No address(0) check ### Description **Severity**: Low **Status**: Resolved **Description** In Contract `PythOracle.sol`, the method `rescueFunds()` does not validate if `_receiver` is `address(0)` or not. If accidentally set to `address(0)`, funds would be lost. In Contract `PairInfos.sol`, the method `ini...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Safe Transfer Validation in Execution Logic  Acknowledged ### Description In the `beforeHook` function of the `MultiTokenPeriodEnforcer` contract, there is a validation that the mode of execution is `CALLTYPE_SINGLE` and `EXECTYPE_DEFAULT`, so the ERC-20 token transfers will always be executed via `_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
gas
overflow
false
false
## Gas: [G-01] ### Description In the `sendToCosmos()` function it is not validated that \_amount != 0, therefore the state_lastEventNonce could be made to grow only by spending gas. If they go up to type(uint256).max could it cause an overflow and DoS system wide?
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: [01] A redeemer might get 'front-run' by a freezer ### Description Before redemption `furnace.melt()` is called, which increases a bit the amount of assets the redeemer gets in return. While frozen the `melt()` call will revert, but since the call is surrounded by a try-catch block the redemption will continue...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Slippage Check Before Fee Deduction Allows for Users Getting Less Than Desired `minPrice` ### Description The `sellPasses()` function doesn't take fees into consideration when comparing the price against slippage, causing users to get less than their specified `minPrice`. ### Impact In many cases, users 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
oracle
false
false
## Low: `decimals()` Can Be a Constant Value ### Description This issue has been identified within the `decimals()` function of the `ChainlinkCompositeOracleProvider` contract. The function returns the decimal count of the last entry in the `configs` array. If the final config has a few decimals (e.g., 8), this can l...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TotalLicenseTokenLimit cannot be removed once set ### Description The `setTotalLicenseTokenLimit()` function in the `TotalLicenseTokenLimitHook` contract allows setting a total license token limit for a specific license. The function includes a check that reverts if the new limit is lower than the current tota...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Only a billion checkpoints available ### Description A user can only have a billion checkpoints which, if the user is a DAO, may cause issues down the line, especially if the last checkpoint involved delegating and can thereafter not be undone *There is 1 instance 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
high
token
true
true
## High: Malicious call data can steal unclaimed tokens in the Executor contract ### Description Users can provide a destination contract `args.to` and arbitrary data `_args.callData` when doing a cross-chain transfer. The protocol will provide the allowance to the callee contract and triggers the function call 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
low
other
true
false
## Low: Recommendation: remove confusing access to activePoolsThisEpoch ✓ Fixed ### Description `MixinFinalizer` provides two functions to access `activePoolsThisEpoch`: 1. `_getActivePoolsFromEpoch` returns a `storage` pointer to the mapping: **code/contracts/staking/contracts/src/sys/MixinFinalizer.sol:L211-L225...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
rounding
false
false
## Gas: `LibTokenSilo::calculateGrownStalkAndStem` appears to perform redundant calculations on the `grownStalk` parameter ### Description [`LibTokenSilo::calculateGrownStalkAndStem`](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/libraries/Silo/LibTokenSil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Lack of checking the existence of the Proxy contract ### Description If the `ProxyFactory::distributeByOwner()` is executed before the `Proxy` contract has been deployed, the transaction will be executed successfully, but the stuck tokens will not be transferred to a rescue requestor. ### Impact The `rescue` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Memory syscalls can cross gapped memory ### Description The Rust wrappers for the following syscalls do not impose bound checks on data: - `sol_memcpy` - `sol_memset` - `sol_memmove` - `sol_memcmp` Since these syscalls can modify arbitrary data in memory, they should be marked unsafe. ### Recommendation 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
access-control
false
false
## Low: Various typos within the codebase ### Description Throughout the codebase we found various typos: - **StableSwapper.sol#L55**: permissionned → permissioned - **StableSwapper.sol#L103**: form → from - **README.md#L93**: AllocatoBuffer → AllocatorBuffer - **README.md#L133**: opeator → operator - **SwapperCallee...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 documentation of "TotalBalanceChangeEnforcer" can lead to incorrect use of enforcers ### Description **Description:** The current documentation for Total Balance Change Enforcers is misleading and lacks clear guidance on when to use each enforcer type. This confusion may lead developers to incorre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Lack Of Address Validation ### Description No validation is done for address parameters `_stargateRouter` and `_widgetSwap` in the constructor of `StargateSwap.sol` and parameters `_stargateRouter` and `_ammRouter` inside `StargateComposed.sol`’s constructor. In the constructors of `OFTCore.sol`, `ONFT721.sol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: `Re-issued` Votes Are Vulnerable ### Description When the votes of a validator’s poll exceed its `threshold`, we move the remaining votes to `commonPoll`. However, this causes a unique issue: Since the remaining votes are calculated from `threshold`, the same vote that is actually used to bring the validator ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can arbitrarily trigger a chain halt by sending `MsgRemove{Delegate}Stake` with negative amount ### Description Adversary can trigger chain halt arbitrarily by sending `MsgRemoveStake` or `MsgRemoveDelegateStake` with negative amount. ### Impact Chain halt after `RemovalStakeDelayWindow` blocks due...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reducing the limit from the maximum takes the full duration to replenish ### Description The `_changeMintingLimit()` and `_changeBurningLimit()` incorrectly wait for the full replenishment duration before the new limit can be fully used. When the limit is reduced from `type(uint256).max` to any new limit, 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: Code Maturity ### Description ## Code Review Summary ## 1. Claiming Rewards for Liquid Staking of LP Tokens In `claim_stakes`, there is a segment of code intended to handle claiming rewards for liquid staking of LP tokens. However, the protocol does not support liquid staking of LP tokens. Therefore, this 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
high
oracle
true
false
## High: When creating the vault, the forceTimelock parameter of inventoryStaking.deposit should be false. ### Description When creating the Vault, the user can provide NFTs to add liquidity to the Pool or deposit to `inventoryStaking`. The problem here is that adding liquidity does not require timelock, while deposit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bitcoin transactions can have large `outputVector` ### Description When a user wants to bridge their tokens, the relayer calls `proveBtcTransfer()` to finalize the transfer. The issue is that the code calls `getTxOutputValue()` to find the bridged amount and that function loops through all the `outputVector` o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Early users will have a unfair advantage ### Description The VotingEscrow’s bonus for earned interest gives an unfair advantage to early users. LiquidityGauge distributes a bonus based on the user’s VotingEscrow token percentage: ```python def _update_liquidity_limit(addr: address, l: uint256, L: 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...
skyward_49k
low
initialization
false
false
## Low: Mismatch in event definition ### Description ## Handle 0xsanson ## Vulnerability details ## Impact In synthFactory.sol, there's an `event CreateSynth(address indexed token, address indexed pool)`. However the event is emitted with "synth" as second output. ## Proof of Concept https://github.com/code-423n4...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Unnecessary call to `SmartVaultV4::usdCollateral` when depositing/withdrawing collateral to/from yield positions ### Description When depositing/withdrawing collateral to/from yield positions in `SmartVaultV4`, the Smart Vault is validated to remain sufficiently collateralized and the collateral value is valid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Business Logic
false
false
## Severity: Medium Risk ## Context - `MorphoUtils.sol`#L119-L156 - `PositionsManager.sol`#L344 - `PositionsManager.sol`#L447 - `PositionsManager.sol`#L502-L505 ## Description The current implementation of `MorphoUtils._isLiquidatable` loops through all of the tokens in which the user has supplied to/borrowed from. T...
Spearbit
5
Morpho
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong comparison condition. ### Description **Description** MultiFee Distribution.sol: _withdraw Expired LocksFor(), line 1147. The "if " statement validates that in case relock is not disabled by the user during the relock action transaction, withdrawn funds should be restaked. However, the contract compar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
true
false
## Low: Insolvent Position Cannot Be Liquidated ### Description The `foreclose` function implemented in the `UserBase` contract is designed to handle the liquidation of a position. It interacts with a flash loan mechanism to acquire the necessary funds for foreclosure, either via a primary method or a fallback, depend...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: Frequent calling of calculateAndDistributeManagerFees() lowers fees ### Description The `viacalculateAndDistributeManagerFees()` function sends a percentage of the Pool to the Manager. If this function is called too frequently, the Manager's fees will be lower. **For example:** - If the Manager calls it twice...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Low: Canonical token pairs can be griefed by deploying new pools with malicious admins ### Description ```solidity function create( address _token0, address _token1, string memory _name, string memory _symbol, uint256 _poolType, address _pauser ) external returns (address) { CronV1Pool.PoolType poolTy...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
false
false
## Gas: Switch OZ to Solmate ### Description Solmate's implementation of the libraries used on the protocol are more optimized saving gas to the user. The changes on the gas consumption could be seen below: Test result: ok. 25 passed; 0 failed; 0 skipped; finished in 118.07ms testSameSaltReverts() (gas: -3184 (-0.000...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect condition ### Description **Description** StakingData.sol, line 416: Condition “i < 0” is always false for uint256. Review the functionality **Recommendation**: fix the condition.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Account Trigger Validation ### Description ## Account Trigger Validation Issue Account trigger validation for threads doesn’t work as intended. While the code calculates the hash of the account data, it does not actually compare this calculated value against the prior data hash. ## Code Snippet As a resul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Maximum size of fixed-rate loans can be bypassed ### Description The [`borrow` function](https://gitlab.com/aave-tech/dlp/contracts/blob/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/contracts/lendingpool/LendingPool.sol#L175) of the `LendingPool` contract attempts to set a hard cap on the size of fixed-rate loans...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: In ReaperVaultV2, we should update lockedProfit and lastReport before changing lockedProfitDegradation ### Description ## Lines of code https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c9d697b97745356cdf8a1f264955/Ethos-Vault/contracts/ReaperVaultV2.sol#L617 ## Vulnerability details ## Impac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded gas remainder ### Description The `execute` function of the `UserWallet` contract [uses a `delegatecall`](https://github.com/InstaDApp/contract-v2/blob/4863c0c4156af7ded9cdb38b66e5f5e527c4a6d0/contracts/UserWallet.sol#L152) to a user-inputted logic proxy contract. This appears to be a clone of [Maker...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-step governance change introduces risks ### Description ## Security Advisory **Severity:** Low Risk **Context:** HyperdriveFactory.sol#L103-L108, HyperdriveBase.sol#L157-L162 **Description:** Single-step governance role transfers add the risk of setting an unwanted governance address by accident...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: Reentrancy in `LiquidStakingManager.sol#withdrawETHForKnow` leads to loss of fund from smart wallet ### Description The code below violates the check effect pattern, the code banned the public key to mark the public key invalid to not let the msg.sender withdraw again after sending the ETH. Note the section...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Writability ### Description ## Documentation on AccountMeta in to_instruction_and_accounts In `to_instruction_and_accounts`, `AccountMeta` for the instruction is constructed based on the `is_writable` attribute of `AccountInfo`. `new_validated` does not check if read-only accounts have an `is_writ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
true
false
## Medium: WormholeFacet doesn’t send native token ### Description The functions of `WormholeFacet` allow sending the native token; however, they don’t actually send it across the bridge, causing the native token to stay stuck in the LiFi Diamond and get lost for the sender. ```solidity contract WormholeFacet is ILiF...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
false
false
## High: Market direction signature can be abused if privateKeeperMode is disabled ### Description **Details** https://github.com/Buffer-Finance/Buffer-Protocol-v2_5/blob/84b6060b4447b2550de595202e8820c7f515988b/contracts/core/BufferRouter.sol#L233-L246 if ( !Validator.verifyMarketDirection( params, queuedTr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code structure is messed up. ### Description **Description** StakingB_1.sol Line 524 Storage and events must be separated in order to make code structure more readable. **Recommendation**: Move the “amountOfUser” variable to the other variables.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Input lack validation to be non-zero ### Description **Severity**: Low **Status**: Acknowledged **Description** LibGateway.sol - In `storeBottomUpCheckpoint` function, the input checkpoint is not being validated. It accepts a zero value of checkpoint.blockHeight. Note that if blockHeight is zero it implies ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Nuisance gas left is not reduced to zero when operation exceeds budget ### Description The [`_useNuisanceGas` function](https://github.com/ben-chain/contracts-v2/blob/a935e276f5620b40802b52721e3474232e458f72/contracts/optimistic-ethereum/OVM/execution/OVM_ExecutionManager.sol#L1589) of the `OVM_ExecutionMan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inappropriate documentation for the `receiveFunds()` function ### Description At the line https://github.com/aave/governance-crosschain-bridges/blob/9fd0609a2e14d546885f76211961f251d2e15cb9/contracts/BridgeExecutorBase.sol#L122 documentation tag `@inheritdoc` references interface `IBridgeExecutor`, but the int...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Unsigned BeaconBlockHeader in Sidecar in left unvalidated ### Description The `BlobSidecar` struct at `da/pkg/types/sidecar.go#L47` contains the `BeaconBlockHeader` for which the blob is being included. This is different than the `expectedSignedBeaconBlockHeader` in the Ethereum consensus specs: ```go type...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack Of Support For Compounding Withdrawal Credentials After Electra Upgrade ### Description The EigenPod does not support verifying compounding withdrawal credentials, preventing ETH in validators with compounding withdrawal credentials from being counted in EigenPod after Electra. EIP-7251 included in 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
rounding
false
false
## Medium: StakingRewards: Significant loss of precision possible ### Description In `notifyRewardAmount`, the reward rate per second is calculated. This calculation rounds down, which can lead to situations where significantly less rewards are paid out to stakers, because the effect of the rounding is multiplied by 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
reentrancy
true
false
## Low: Optimize stakeNFT() Function ### Description The `stakeNFT` and `unstakeNFT` functions within the `ContributorNFTStaking` contract exhibit suboptimal gas efficiency due to repeated storage operations performed on the `ContributorNft` struct. In Solidity, storage operations are costly in terms of gas usage, sig...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The ZeroLendToken contract in the Governance module mishandles the whitelist ### Description Report type: Smart Contract Target: https://github.com/zerolend/governance Impacts: - Temporary freezing of funds for at least 1 hour ## Description ## Brief/Intro The ZeroLendToken contract in the Governance modu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initial number of Oracles is not adjusted. ### Description **Description** StWSX.sol, constructor The initial Oracle is assigned the Oracle role, but the number of Oracles (numOracles) is not adjusted. **Recommendation** Add increment of numOracles to the constructor. **Re-audit comment** 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
cross-chain
true
false
## Low: Events fields are missing "indexed" attribute ### Description Indexed event fields make the data more quickly accessible to off-chain tools that parse events, and add them to a special data structure known as [“topics”](https://docs.soliditylang.org/en/v0.8.24/abi-spec.html#abi-events) instead of the data part...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] `_checkApprovals` should be reimplemented to count for the allowance depleting ### Description The function `_checkApprovals` is designed to only set approvals if the current allowance is zero. This is a one-time setup meant to minimize gas costs associated with setting allowances for token transfers. W...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
true
false
## High: Scaling of `underlyingTokenPrice` will leave funds stuck in protocol ### Description **Impact:** High, as all deposited funds will be stuck in the protocol **Likelihood:** High, as it will always happen **Description** The `_getTokenPrices` method in `SwapFacility` has the following code: This scaling by...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Uniswap price use discourages liquidations ### Description When the protocol considers that a position does not have enough collateral, decided by [the asset’s `liquidationLTV`](https://github.com/beta-finance/beta-private/blob/9e73eaf40e5118125d6925b29e4fb9ad8bf8e113/contracts/BetaConfig.sol#L9), 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
gas
initialization
false
false
## Gas: Incorrect usage of `ABDKMath64x64.divu` in constructor ### Description Function `MAX_PRICE_RATIO` is declared as `int256 constant MAX_PRICE_RATIO = 10**4;` and it is only used in the `constructor`. Having this constant declared as `int256` and then being cast to `uint` is an unreasonable waste of gas. Declare...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
true
false
## High: Users may lose value when transferring ERC-4626 Vault tokens cross-chain ### Description **Description:** Both the `VaultV0` and `VaultV3` ERC-4626 tokens are designed to be transferable across chains and therefore implement the LayerZero cross-chain OFT standard. When a token is transferred cross-chain, 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
false
false
## Low: NewValidatorFromDeposit() divide-by-0 panic ### Description The function `NewValidatorFromDeposit()` calculates `EffectiveBalance` as the minimum of `maxEffectiveBalance` and `amount - amount % effectiveBalanceIncrement`. ```plaintext EffectiveBalance: min( amount - amount % effectiveBalanceIncrement, max...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can relist their tokens ### Description **Severity:** Medium **Path:** BabylonCore.sol:startListing (L54-87) **Description:** When a user creates a listing for their token, the listing ID is stored in `_ids[token][identifier]`. However, this listing ID is never used or checked again, e.g. to check w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: Insufficient Validation of Referral Address in mint ### Description **Severity**: High **Status**: Acknowledged **Description** The `mint` function allows users to specify a referral address to receive a discount on the minting fee. However, the referral address is not validated. This means that users can ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect accounting of commissions ### Description In the [`placeOrder`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L261) function, the `total_commission` value is accounted for twice: once as the commission and once as the `token_y` valu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MISSING EVENTS ON CHANGES ### Description Functions performing important changes on the contract: `setLMCV`, `setDPrimeJoin`, `setDPrime`, and `editCollateral` are not emitting events to facilitate monitoring of the protocol. Code Location ------------- `LMCVProxy` contract, lines: [75](https://github.com/De...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading comment for deposit() function of Vault.sol ### Description ## Handle 0xRajeev ## Vulnerability details ## Impact Use of accurate comments helps read, audit and maintain code. Otherwise, it can be misleading and miss the flagging of or cause the introduction of vulnerabilities. Misleading 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: Lack of Synchronization Between Bank and LendingMarket ### Description ## Vulnerability Summary The vulnerability arises from the lack of full integration between bank and LendingMarket features. It is possible for the `LendingMarketOwnerCap` to create additional `ObligationOwnerCap` instances. This implies 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
true
false
## Low: Hardcoded index values for BTC and ETH can be problematic ### Description **Severity**: Low **Status**: Resolved **Description** Across the protocol, several methods use 0 as the index for the ETH pool and 1 as the index for the BTC pool. GlmManager.sol contract allows to deletion/removal of a pool using t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Unstable Use of Zero-Copy with non-POD Data ### Description ## PositionData Account Deserialization The `PositionData` account is deserialized via Anchor’s zero-copy mechanism, which requires the structures serialized to have a stable layout, not contain padding, and accept any bit-pattern as a valid value in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
signature
true
false
## Low: Use `SignatureChecker` library and optionally support `EIP7702` accounts which use their private key to sign ### Description In `DocumentManager::verifySignature` use the [SignatureChecker](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/SignatureChecker.sol) lib...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Limit the length of task.contributors to prevent reaching gasBlockLimit  Acknowledged ### Description It is recommended to limit the length of arrays that the contract iterates through to prevent system halts. `task.contributors` is used within iExec contract in many functions, and main functions such as `clai...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Redundancy ### Description ## Budget Redundancies There are several fields in Budget that are redundant and may be removed: 1. **Keep only `tranches_left`.** Utilizing this helps prevent discrepancies where the number of claimed tranches (`tranches`) exceeds the available tranches (`tranches_left`). Thi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
false
false
## Gas: Leave 1 wei in `balance` after `withdraw` ### Description Every time that a user withdraws all their balance, their storage slot on the `balance` mapping is freed, refunding gas to the caller. However the next call to `distributeFees` on this same user balance would require the storage slot to be re-initialize...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 contains empty blocks ### Description There are some empty blocks, which are unused. The code should do something or at least have a description why it is structured that way. Instances:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant check ### Description https://github.com/code-423n4/2023-10-badger/blob/main/packages/contracts/contracts/LiquidationLibrary.sol#L863 `_redistributeDebt` will never be called if debt = 0. https://github.com/code-423n4/2023-10-badger/blob/main/packages/contracts/contracts/LiquidationLibrary.sol#L525...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
input-validation
true
false
## Low: Missing zero address validation for authorized signer in `WorldLibertyFinancialV2.initialize()` ### Description The `WorldLibertyFinancialV2::initialize()` function does not validate that the `_authorizedSigner` parameter is not the zero address. This parameter is critical for the activateAccount() function, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
true
false
## Low: Add a timelock to critical functions ### Description It is a good practice to give time for users to react and adjust to critical changes. A timelock provides more guarantees and reduces the level of trust required, thus decreasing risk for users. It also indicates that the project is legitimate (less risk of ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Typos ### Description excesss calculateIntest transfered transfered transfered commited transfered inquality hardcoded excesss calculateIntest transfered transfered transfered commited transfered inquality hardcoded
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staked Amount Can Exceed maxDeposits() ### Description The `maxDeposits()` function computes the maximum amount of tokens that can be deposited into strategies. It also takes into account whether `liquidityBuffer` is set (i.e., `liquidityBuffer > 0`). Based on what the return value and developer comments ind...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of `transfer` and `transferFrom` could revert transaction ### Description There are multiple occassions in the `staking.sol` contract where the `IERC20::transferFrom` and `IERC20::transfer` functions are used to transfer the `tokens` between `msg.sender` and contract itself. But the issue is if the `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
medium
liquidation
true
false
## Medium: Allowances is double spent in BBLeverage's and SGLLeverage's `sellCollateral()` ### Description Both `sellCollateral()` functions remove allowance twice, before and after target debt size control. This way up to double allowance is removed each time: exactly double amount when repay amount is at or below 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: [25] Use scientific notation rather than exponentiation ### Description Scientific notation can be used for better code readability, e.g. consider using using `10e18` and `10e17` instead of `10**18` and `10**17`. https://github.com/code-423n4/2023-03-asymmetry/blob/main/contracts/SafEth/SafEth.sol#L54-L55
0