prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Order surplus extraction ### Description The `CowSwapFiller` contract’s `isValidSignature` function ignores the `appData` field when verifying CowSwap orders. This oversight allows malicious actors to manipulate ERC-1271 orders by setting the `partnerFee` field to a huge amount, enabling the filler to drain su...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: Migration.join() and Migration.leave() can still work after unsucessful migration. ### Description _Submitted by hansfriese, also found by 0x52 and codexploder_ ### Impact `Migration.join()` and `Migration.leave()` can still work after unsucessful migration. As I submitted with my high-risk finding "Migr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: transferhalflife is not initialized in initialize function ### Description In the `CommitmentStorage.sol` contract, the `transferHalfLife` storage variable is not initialized in the `initialize` function. As a result, anyone can revoke a user's transfer commitment right after it is created. When a user makes...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused event ### Description In the `OptimisticGovernor` contract, the [`SetCollateral`](https://github.com/UMAprotocol/protocol/blob/3687d9b3a80ca9b3694211d50a2ccad5415c77e1/packages/core/contracts/gnosis-zodiac/implementation/OptimisticGovernor.sol#L56) event, which can be used to emit an updated `collateral...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Privileged Roles and Access ### Description **Update** The client provided the following explanation: > We use GnosigSafe with multi-sig approach for those roles The audit team still recommends that the client updates documentation to specifically state the actions of all privileged roles. **File(s) affe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
## Low: Inconsistent price validation in `Ignite::registerWithStake` ### Description In [`Ignite::registerWithErc20Fee`](https://github.com/Benqi-fi/ignite-contracts/blob/bbca0ddb399225f378c1d774fb70a7486e655eea/src/Ignite.sol#L294), [`Ignite::registerWithPrevalidatedQiStake`](https://github.com/Benqi-fi/ignite-contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: getAmountOut returns incorrect value when called by controller ### Description When a controller contract calls the `getAmountOut` function, the `feeAmount` should be calculated using the `priorityFee` value; however, the function incorrectly uses the `fee` value. This causes the function to return an incorrec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
SafeApprove
true
false
## Security Analysis ## Severity **Medium Risk** ## Context AeraVaultV1.sol#L893 ## Description Some non-standard tokens like USDT will revert when a contract or a user tries to approve an allowance when the spender allowance has already been set to a non-zero value. In the current code, we have not seen any real pr...
Spearbit
4
Gauntlet
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Decimals are incorrectly handled in DivReducerNode ### Description **Severity** **Impact:** High **Likelihood:** High **Description** Node DivReducer is supposed to have 2 parents which are Redstone oracles and combine 2 prices. For example, to price ETH/USDC it will fetch 2 prices and divide `(ETH/USD) /...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
false
false
## High: Sending child shares before burning shares allow reentrancy vulnerability in ParentFundingPool#removeChildShares ### Description **Details** [MarketMaker.sol#L268-L274](https://github.com/SportsFI-UBet/ubet-contracts-v1/blob/64157824f67d6000588ae4235a49ccd24dede5c3/contracts/markets/MarketMaker.sol#L268-L2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pragma is not locked to specific version ### Description **Description** Since not all the EVM compiler versions support all the features, especially the latest one’s which are kind of beta versions, So the intended behavior written in code might not be executed as expected. Locking the pragma helps ensure th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: `require()` or `revert()` statements that check input arguments should be at the top of the function ### Description Checks that involve constants should come before checks that involve state 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
liquidation
false
false
## Low: Inconsistency in Events Emitted during Construction ### Description The `CollateralProviderNFT` emits `CollarProviderNFTCreated` to facilitate the indexing of cash assets and underlying assets. `LoanNFT`, `EscrowNFT`, and `Rolls` contracts would also benefit from similar events. ### Recommendation If the even...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Renew of 2nd level domain is not done properly ### Description [ETHRegistrarController.sol#L201](https://github.com/code-423n4/2022-07-ens/blob/main/contracts/ethregistrar/ETHRegistrarController.sol#L201) [NameWrapper.sol#L271](https://github.com/ensdomains/ens-contracts/blob/master/contracts/wrapper/NameWr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract settings.sol there’s an assembly block at lines 62-64. This also applies to the bridge.sol file where there’s the same assembly block inside the constructor. ### Description **Recommendation**: Extract the assembly block in a separate method and add a disable comment for the no-inline- assembly wa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pending stake not accounted for in liquidity calculations ### Description The `Staking` contract uses `IERC20(token).balanceOf(address(this))` to determine total balance for share calculations and liquidity validation. However, in `Staking.requestStake()`, tokens are transferred to the contract immediately wh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open trove or add collateral may be blocked ### Description When we open one trove or add some extra collateral tokens into one trove, we will stake these collateral tokens into the gauge. When we check the RewardVault(gauge)'s implementation, the `stake` function has one `whenNotPaused` modifier. If this co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Flaw in _beforeTokenTransfer call chain and missing tests ✓ Fixed ### Description In OpenZeppelin’s ERC-20 implementation, the virtual `_beforeTokenTransfer` function provides a hook that is called before tokens are transferred, minted, or burned. In the Gluwacoin codebase, it is used to check whether the *unr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_lzReceive` reverts when there is a fee refund ### Description When sending a message to the remote `ZROToken` for transferring the balance of ZROToken to users, if the fee exceeds the required amount, the surplus is refunded to `address(this)` (the `ClaimLocal` contract). However, the `ClaimLocal` 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
true
false
## Low: Rebalance pool withdrawal silently fails ### Description The `FxUSDShareableRebalancePool` contract disallows withdrawals by commenting out the internal call, which will silently fail for external integrations and users. Instead, the call should revert and provide a clear error message explaining that withdraw...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
token
true
false
## Gas: `FighterFarm._beforeTokenTransfer()` can be deleted to save an extra function call ### Description Note the code below: ```solidity contract FighterFarm is ERC721, ERC721Enumerable { ... function _beforeTokenTransfer(address from, address to, uint256 tokenId) internal override(ERC721, ERC721Enumerable)...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using flashloans to bypass balance requirement ### Description Depositors are required to hold a specific amount of `VEIL` tokens to be able to deposit into each pool. Each pool has its own required amount, and this check is enforced by the `VeilValidatorV4::_hasVeil` function: However, a user can bypass 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
low
other
false
false
## Low: Constant can be used ### Description **Description** Token.sol, Line 29. Token amount calculation can be moved to the public constant in order to save gas during the deployment. **Recommendation**: Consider using the public constant.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: After trading on the curve in openLong and applying the fees, spot price is not check to make sure it is still not greater than 1 ### Description In `_calculateOpenLong`, when one trades on the curve and applies the pool and governance fees, we don't check whether the spot price is still below 1. The previousl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: Wrong encoding of the data in the `sendCompressedBytecode` function ### Description There is enforcement in the `bootloader::sendCompressedBytecode` function that the data to be used for the call of the `Compressor::publishCompressedBytecode` function is encoded in a standard way. But this check contains 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
liquidation
false
false
## Low: Trade tax and settled collateral amount are not updated in offer struct ### Description The `OfferInfo` struct contains various elements, including two fields specifically intended to store the trade tax charged and the amount of collateral settled: ```javascript struct OfferInfo { uint256 id; address aut...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Signature Malleability
false
true
Source: https://github.com/sherlock-audit/2022-09-harpie-judging/tree/main/010-M ## Found by 0xNazgul, pashov, IllIllI, ladboy233, defsec, sirhashalot ## Summary OpenZeppelin has a vulnerability in versions lower than 4.7.3, which can be exploited by an attacker. The project uses a vulnerable version ## Vulnerabil...
Sherlock
5
Harpie
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: Missing slippage control for investors during the buy ### Description The protocol allows investors to buy `dsToken` with `stableCoinToken` using the function `SecuritizeSwap::buy()`. The function calculates the amount of `dsToken` to send to the caller based on the `navProvider.rate()` and there is no way for...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Malicious user can steal all assets in BondNFT ### Description Malicious user can drain all assets in BondNFT, and other users will lose their rewards. ### Proof of Concept When calling [BondNFT.claim()](https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/Bon...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-13) Redundant Code ### Description The `burn()` function in the `SHToken` contract includes redundant code that can be simplified for better readability and efficiency. Specifically, the `burn()` function performs a check for `balanceOf(account) >= amount`: ``` require(balanceOf(account) >= amount, "Insu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token transfer methods should not allow from == address(0) and to == address(0) ### Description The functions `transfer`, `transferFrom`, and `transferFromMax` allow the caller to specify arbitrary `from` and `to` addresses. Both input parameters are permitted to assume the value `address(0)`. Both `transfer`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient TokenAccount Checks ### Description ## Token Account Validation As mentioned in **OS-SYM-ADV-04**, the program only validates the owner for the `host_usdc_account` and `manager_usdc_account` `TokenAccounts`. The mint is not validated for either of these accounts. Due to this, it could be possible...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: Denial of Service due to lack of `minReward` value enforcement in initialization ### Description RewardDistributor.sol The state variable `minReward` in the `RewardDistributor` contract is never initialized, and therefore, there is no minimum value in `QodaTokens` enforced when calling the `distribute` fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In `Bet::cancel` if one transfer reverts but the other succeeds, one users's tokens are permanently locked in the `Bet` contract ### Description **Description:** `Bet::cancel` does this when refunding token transfers: But if one of the `transfer` calls reverts but the other succeeds, the transaction still...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
token
false
false
## Gas: Use custom errors rather than `revert()`/`require()` strings to save deployment gas ### Description 1. File: src/ERC20.sol (Various lines throughout the [file](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f936dce567/src/ERC20.sol)) 2. File: src/DepositHandler.sol (Various 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...
cyfrin_structured
medium
access-control
true
true
## Medium: Lack of permission check allows unauthorized updates to `lastPoolUpdateRun` ### Description To apply the weight changes calculated by the rules, any user can call [`UpdateWeightRunner::performUpdate`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob/7213401491f6a8fd1fcc1cf4763b15b5da355f1c/pkg/pool-quan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Burning of the user gas in the `sendCompressedBytecode` function ### Description In the `bootloader::sendCompressedBytecode` function the `nearCallPanic()` is used for [the case of unsuccessfull call of the `Compressor::publishCompressedBytecode` function](https://github.com/code-423n4/2023-10-zksync/blob/1...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use more descriptive function and variable names  Won't Fix ### Description Throughout `OrchidDirectory` and `OrchidLottery`, function and variable names are quite obscure. This makes it harder for a reader to understand the code. ### Recommendation This issue is about readability. Even though the audit team ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Users can call `reset` on their token even if they don't have active votes, griefing potential token buyer/receiver ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Contract fails to deliver promised returns, but do...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Potential Division by Zero When Checking Liquidity Spread ### Description The function `_checkLiquiditySpread` ensures that the effective liquidity in a given chunk is above a certain threshold. However, when the liquidity spread is computed, the function will revert when `netLiquidity` is equal to zero. This ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: setReinvestYield should be restricted to a lender with LENDER_ROLE ### Description Currently, the `setReinvestYield` endpoint does not have any restrictions regarding which lenders are allowed to be supplied by the pool operator. If an account no longer possesses the `LENDER_ROLE`, the pool operator might mist...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: saving using `immutable` ### Description It's possible to avoid storage access a save gas using `immutable` keyword for the following variables: It's also better to remove the initial values, because they will be set during the constructor. **Affected source code:** * [L2ERC20Bridge.sol:19](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: Inappropriate Transfer Of Zero-Value Coins ### Description ## Using `Inutils.move`: The `split_coin` Function The `split_coin` function is used for splitting a specified amount from a Coin object. The function returns the extracted part while the remaining part transfers back to the user. However, it fails 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
high
other
true
false
## High: allowance() doesn’t limit withdraw() s ### Description The `allowance()` function is meant to limit withdrawal amounts. However, `allowance()` can only read and not alter state because its visibility is set to `view`. Therefore, the `withdraw()` function can be called on demand until the entire Vault/Pool bal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Don't update state
false
false
## Severity: Medium Risk ## Context - LienToken.sol#L402 - LienToken.sol#L809 ## Description In `_createLien`, when a new stack slot is created, the `newSlot.point.position` is set to `uint8(params.stack.length)`, which would be its index in the stack. When `_removeStackPosition` is called to remove a slot from the s...
Spearbit
5
Astaria
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Heap is incorrectly stores the removed operator ID which can lead to division by zero in deposit/withdrawal flow ### Description An operator's strategy can be reset by the owner calling `setOperatorStrategyCaps` to "0". This action sets the utilization to "0" and removes the operator from the heap. Consequent...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate use of assert ### Description The usage of `require` vs `assert` has always been a matter of discussion because of the fine lines distinguishing these transaction-terminating expressions. However, the usage of the `assert` syntax in this case is not the most appropriate. Borrowing the explanatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Event Emission for Critical Functions ### Description **Severity**: Low **Status**: Resolved **Description**: Functions that change important state variables or have significant effects (like `setNumberOfVaults`, `addMultipleVaults`) do not emit events. This can make tracking changes difficult and ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Bug in makePayment() reverts when called with small amounts ### Description When `makePayment()` is called with an amount which is less than the fees payable, then the transaction will always revert, even if there is an adequate amount of drawable funds. The revert happens due to an underflow in `getUnaccounte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Take advantage of Custom Error's return value property ### Description An important feature of Custom Error is that values such as address, tokenID, msg.value can be written inside the `()` sign, this kind of approach provides a serious advantage in debugging and examining the revert details of dapps such as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
integer-overflow
true
true
## Low: Total supply and balance invariants can be broken by burning the same token id multiple times within a given batch operation ### Description The `_burnBatch(uint256[])` function loops over all provided `tokenIds` and updates the relevant state; however, the ownership/approval logic is executed for all tokens i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
false
## Low: Disallow single-outcome markets ### Description When creating a market in [`PredictionMarketV3_4::_createMarket`](https://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/contracts/PredictionMarketV3_4.sol#L299-L356), the following [check](https://github.com/Polkamarkets/po...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unused admin address ### Description **Severity**: Informational **Status**: Acknowledged **Description** The `Fias.sol` contract contains a `CONTRACT_ADMIN` address which is not used in any part of the code. **Recommendation**: Consider removing this variable to save gas.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function/variable names not accurately reflecting their actions/state affects readability ### Description Function and variable names should accurately reflect their actions or state to prevent developers, users, and reviewers from missing or misunderstanding their semantics and side effects. There are severa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can steal locked balance of staked nft at OmnichainStaking ### Description Report type: Smart Contract Target: https://github.com/zerolend/governance Impacts: - Direct theft of any user NFTs, whether at-rest or in-motion, other than unclaimed royalties - Direct theft of any user funds, whether at-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: The params provided to VeloDeployFactory.updateStrategyParams is not validated ### Description Checks similar to `validateStrategyParams` are missing. ### Recommendation Make sure to add the same type of validation checks for this endpoint.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack Of Account Verification ### Description ## Code Review Points 1. **Account Parameter Verification** The functions `add_lst` and `set_sol_value_calculator` both require `sol_value_calculator` as an account parameter. However, they lack a verification mechanism to ensure that the provided `sol_value_ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Authorization of only EOAs can break multisigs ### Description **Severity**: Low **Status**: Resolved **Description** The onlyEOAOrRole() modifier in the GACManaged contract, allows only EOAs to interact with the contracts that use this modifier. Smart contracts ideally should NOT be "not allowed" to intera...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Vault can lose rewards due to lack of precision ### Description Vault's storePriceAndRewards() can accrue no rewards as precision can be lost when price() has low decimals. For example, price() has 6 decimals for Idle USDC and USDT strategies. ### Impact Rewards can be lost for traders who allocated to pr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typo In comment ### Description Within the NatSpec documentation for the `Oracle.getPriceFeedMultiplier` function, the word "**multiplier**" was misspelled as "**multipler**": ``` // @return the price feed multipler ``` ### Recommendation It is recommended to fix the present typo.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Old permissions in handlerCan mapping are still attached to the safeHandler of a transferred safe ### Description A safe is associated with a unique safeHandler. This safeHandler can give permissions to addresses through the [allowHandler()](https://github.com/open-dollar/od-contracts/blob/f4f0246bb26277249...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mixed formatting ### Description `Tabs` are used instead of `Spaces`: https://github.com/iearn-finance/yoracle.link/blob/faf1309cbe7a05f70b338351315039eb8e5b9c09/contracts/Keep3rV1Volatility.sol#L443 ### Recommendation Make corrections to the source code.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NEGATIVE VALUES ON TRANSFER ### Description The transfer mechanism allowed for negative values in the amount field without triggering any error responses. ![Request made with negative amount.](https://halbornmainframe.com/proxy/audits/images/659ef57fa1aa3698c0f13e27){width="600" height="600"} * [CVSS:3.1/A...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Notes on canceling unclaimed airdrop streams ### Description Consider the following scenario: - The airdrop campaign starts now and lasts for 1 year. - The stream starts now and lasts for 2 years. - Alice, eligible for an airdrop, predicts her stream will be canceled after 0.5 years (e.g., she intends to do 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: Trie Depth Is Not Explicitly Capped ### Description By using the Poseidon Hash, the node uses a [maximum depth of 248 levels](https://docs.scroll.io/en/technology/sequencer/zktrie/#tree-construction). However, the `ZkTrieVerifier` library does not impose a limit on the [first byte](https://github.com/scroll-te...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Slippage Protection in Market Seat Buy/Sell Operations ### Description **Description:** The `buy_market_seat()` and `sell_market_seat()` functions calculate seat prices dynamically based on the current `perp_clients_count` at execution time, but provide no slippage protection. Users cannot specify m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: AVAX Assigned High Water is updated incorrectly ### Description [contracts/contract/MinipoolManager.sol#L374](https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MinipoolManager.sol#L374) Node operators can manipulate the assigned high water to be h...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Clickjacking ### Description ## Security Vulnerability: Missing X-Frame-Options Header The website’s HTTP responses do not include the `X-Frame-Options` security header, which allows attackers to have the website in iframes within a malicious web page and perform clickjacking attacks by forcing the user to cl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrum sequencer downtime lasting before and beyond epoch expiry prevents triggering depeg ### Description A depeg event can not be triggered if the Arbitrum sequencer went down before the epoch ends and remains down beyond the epoch expiry. Instead, the collateral vault users can unfairly end the epoch w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: The liquidation logic is not always using the same requirement when the system is in RM ### Description The liquidation process is handled by the `LiquidationLibrary` which can execute the liquidation from three different functions: - `liquidate(...)` to liquidate fully a single CDP. - `partiallyLiquidate(......
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
true
false
## Gas: Redundant constructor parameter ### Description In the `WithdrawalVault` constructor, we have two parameters: `initialOwner` and `goldsand`. However, since the `Goldsand` contract is intended to be the owner, both of these parameters will be the same address. ### Recommendation Remove the `initialOwner` param...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `buildSwapData()` with tokenIn/tokenOut will cause swap to fail when depositing into/withdrawing from YieldBox ### Description **Severity** **Impact:** Medium, as `swap()` will fail **Likelihood:** Medium, as it only occurs when using swap with yieldbox deposit. **Description** When `buildSwapData...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: lawEnforcementRole can freeze the supplyController ### Description The `LawEnforcementRole` is able to freeze the `supplyController` balance. This makes possible expansion and contraction through `increaseSupply` and `decreaseSupply`, but the `supplyController` will no longer be able to distribute newly minted...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stableswap does disjoint swaps, breaking the underlying invariant ### Description [/contracts/pool-manager/src/helpers.rs# L117-L124](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafca9db1138d60adcf513588/contracts/pool-manager/src/helpers.rs# L117-L124) [/contracts/pool-manager/src/h...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
oracle
true
false
Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/152 ## Found by obront ## Summary In order to value ICHI LP tokens, the oracle uses the Fair LP Pricing technique, which uses the prices of both individual tokens, along with the quantities, to calculate the LP token value. However, this pr...
Sherlock
4
Blueberry
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 minting ### Description Because of fees in transferFrom function in USDT, contract would have less than `amount`: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/pool/PoolService.sol#L155 ### Recommendation We recommend to use balance di...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: zerolend.votingpowerof() doesn't check ownershipchange block of the token, makes flash nft protection redundant ### Description Users lock their underlying tokens to the ZeroLocker contract and receive NFTs representing their lock in the protocol. It is stated that token holders receive benefits, rewards, 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: [08] Inefficient Event Emission in `emergencyPauseAll` ### Description **Contract Name:** `PauserRegistery.sol` **Function Name:** `emergencyPauseAll` **Description:** Emitting a `ContractPaused` event for each contract in a loop increases gas costs, especially with many contracts, impacting efficiency. **M...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: ANDROID - LACK OF ANTI-TAMPERING AND ANTI-HOOKING MECHANISMS ### Description The application lack anti-tampering mechanisms, emulator detection, and anti-hooking features to protect against runtime manipulation, reverse engineering, and unauthorized modifications. These measures enhance the app’s resilience 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
medium
token
true
false
## Medium: Proper usage of the transfer and the transferFrom functions ### Description Many ERC-20 transfers in the code are just called without checking the return values: **code\_new/contracts/PolicyBook.sol:L269-L270** ``` daiToken.transferFrom(\_msgSender(), reinsurancePoolAddress, \_reinsurancePrice); daiToke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M07] No indexed parameters in the BeamBalanceStore events ### Description ###### Medium None of the parameters of the [events defined](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/BeamBalanceStore.sol#L29-L47) in the `BeamBalanceStore` contract a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: The `removeAssetFromtokenReserves()` removes tokens by symbol instead of per address ### Description The `removeAssetFromtokenReserves()` function removes the first token it finds with a specified symbol, which may lead to an error, as multiple tokens can be added with the same symbol. - [RdpxV2Core.sol#L270-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
true
## Low: Unsafe external calls made during proportional LP fee transfers can be used to reenter wrapper contracts ### Description `ERC721WrapperBase` exposes two overloads of the `unwrap()` function to perform full and partial unwrap of the ERC-6909 position for a given `tokenId`. The partial unwrap is used to burn a 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
storage
true
false
## Low: PhiNFT1155.sol contract will not be upgradeable contrary to documentation ### Description According to the docs [here](https://github.com/code-423n4/2024-08-phi/blob/main/docs/overview.md#upgradeability) on upgradeability, the PhiNFT1155 contracts use the UUPS upgradeability pattern and can be upgraded by 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
false
false
## Low: Pool registration and initialization can be front-run ### Description The registration and initialization of a pool can be front-run, which could allow an attacker to cause a denial of service or set malicious parameters for a legitimate pool. Anyone can register and initialize a pool by calling the `registerP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
TWAP
false
false
## Handle cmichel ## Vulnerability details ## Vulnerability Details The `SynthVault._deposit` function adds `weight` for the user that depends on the spot value of the deposit synth amount in `BASE`. This spot price can be manipulated and the cost of manipulation is relative to the pool's liquidity. However, the r...
Code4rena
4
Spartan 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
medium
access-control
true
false
## Medium: `_Ownable_init()` is not called in `MarketMakingEngineConfigurationBranch` contract ### Description The [`MarketMakingEngineConfigurationBranch`](https://github.com/Cyfrin/2025-01-zaros-part-2/blob/35deb3e92b2a32cd304bf61d27e6071ef36e446d/src/market-making/branches/MarketMakingEngineConfigurationBranch.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
medium
oracle
false
false
## Medium: The deprecated `privateMint()` prone to many issues ### Description The `privateMint()` is marked as a deprecated function. However, this function is prone to several issues: 1. The `splitSignature()`, which is only used for `privateMint()`, does not work with short signatures (64-length signature): [lin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unutilized Code ### Description ## CoinSweepFeesPrepareLaunchCtx Structure Analysis In the CoinSweepFeesPrepareLaunchCtx structure, there are no explicit constraints verifying the `token_mint` account or `vault` account to ensure they are the expected mint and vault. Moreover, they are not utilized in the Coi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Empty trades ### Description The trade function allows you to specify a price limit, upon reaching which the cycle will be exited without performing any movement of tokens at line https://github.com/DivergenceProtocol/diver-contracts/blob/29a0ccb5fc7ac838bd44c75c0afc398b84be267a/src/core/Battle.sol#L286, but...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong Constant Used ### Description **Update** Addressed in: `d22b8d93523f2c2bdf2aa5f00286f63d460f63b9`. **File(s) affected:**`DepositManagementLogic.sol` **Description:**`DepositManagementLogic.getWithdrawableCollateral()` uses `Constants.PRICE_DIGIT` to do related computations. However, as it is operating ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Division by Zero in `calculateRedeemAmount` Function for Zero ezETH Supply ### Description The operation `(_currentValueInProtocol * _ezETHBeingBurned) / _existingEzETHSupply` can lead to a division by zero if `_existingEzETHSupply` is zero. https://github.com/code-423n4/2024-04-renzo/blob/519e518f2d8dec9...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
oracle
true
false
## Gas: Multiple accesses of a mapping/array should use a local variable cache ### Description Caching a mapping's value in a local storage or calldata variable when the value is accessed multiple times saves ~42 gas per access due to not having to perform the same offset calculation every time. **Help the Optimizer 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
gas
other
true
false
## Gas: Using `bool`s for storage incurs overhead ### Description Use `uint256(1)` and `uint256(2)` for true/false to avoid a Gwarmaccess (**[100 gas](https://gist.github.com/IllIllI000/1b70014db712f8572a72378321250058)**), and to avoid Gsset (**20000 gas**) when changing from 'false' to 'true', after having been 'tru...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Settled collateral of a borrower aren't available for lenders until borrower's debt is fully cleared ### Description ERC721Pool's settle() lacks collateral ids array rebalance when the settlement isn't full, i.e. when `t0DebtRemaining > 0`. ### Impact The settled collateral of the borrower will not be avai...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
initialization
false
false
## Low: Unchanged state variables can be immutable ### Description None of: * [`LINKMigrator.linkToken`](https://github.com/stakedotlink/contracts/blob/0bd5e1eecd866b2077d6887e922c4c5940a6b452/contracts/linkStaking/LINKMigrator.sol#L22) * [`LINKMigrator.communityPool`](https://github.com/stakedotlink/contracts/blob/0b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
true
false
## Gas: No need to explicitly initialize variables with default values ### Description If a variable is not set/initialized, it is assumed to have the default value (`0` for `uint`, `false` for `bool`, `address(0)` for address...). Explicitly initializing it with its default value is an anti-pattern and wastes gas. 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
other
true
false
## High: Certain functions lack input validation routines ✓ Fixed ### Description The functions should first check if the passed arguments are valid first. The [checks-effects-interactions](https://solidity.readthedocs.io/en/develop/security-considerations.html#use-the-checks-effects-interactions-pattern) pattern shou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
token
true
false
## Medium: Duplicate fees will be paid by `LibTransfer::transferFee` when transferring fee-on-transfer tokens with `EXTERNAL_INTERNAL` 'from' mode and `EXTERNAL` 'to' mode ### Description Beanstalk utilizes an internal virtual balance system that significantly reduces transaction fees when using tokens that are intend...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Potential Fee Calculation Underflow in Discount and Referral Settings ### Description The `getVipLevelDiscount` function returns a discount based on the user’s VIP level, and the `hasReferrerDiscount` applies an additional discount. However, there is no validation to ensure that their combined value does not e...
0