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
high
rounding
true
false
## High: Two token vault will be broken if it comprises tokens with different decimals ### Description A two token vault that comprises tokens with different decimals will have many of its key functions broken. For instance, rewards cannot be reinvested and vault cannot be settled. ### Impact A vault supporting token...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: rounding error due to internal accounting and can steal some portion of the first depositors funds ### Description Source: https://github.com/sherlock-audit/2024-08-sentiment-v2-judging/issues/597 ## Found by Obsidian, smbv-1923, vatsal ## Summary ## Vulnerability Detail - where: All basepool - when: 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: Remove unnecessary code ### Description The `uint totalValue` variable may be unnecessary. Consider using [`wallet.balance`](http://solidity.readthedocs.io/en/develop/units-and-global-variables.html#address-related) in its place unless funds in the multisig address will be moved (and thus balance changed) befo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User exit/claim methods should not have a `whenNotPaused` modifier ### Description **Impact:** High, as user funds can be left stuck in the contract **Likelihood:** Low, as it requires a malicious or a compromised owner **Description** The `unstake` and `claim` methods in `FlorinStaking` have a `whenNotP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: System deployer is fully trusted in this version of the PoCo system  Acknowledged ### Description The introduction of ERC1538-compliant proxies to construct the PoCo system has many benefits. It heightens modularity, reduces the number of external calls between the system’s components and allows for easy ex...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Incorrect value emitted in OffChainDistributionRedirectedAccepted event ### Description The `DistributionModule.acceptRedirectedOffChainDistribution` function resets the `initiatedRedirectedOffChainDistribution` value to `0` and then uses it as a parameter for emitting the `OffChainDistributionRedirectedAccept...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: total_assets_deposited includes pre-slippage values leading to incorrect fee calculations over time ### Description **Details** [AdapterVault.vy#L1238-L1252](https://github.com/adapter-fi/AdapterVault/blob/3c2895a69ad5eb2c4be16d454f63a6f2f074f351/contracts/AdapterVault.vy#L1238-L1252) assert total_after...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible compromised storage due to hierarchy composition ### Description The design chosen for the upgradeability of certain contracts, such as the `Reserve` and the `Stabilizer` contracts, consists of composing those contracts by means of smaller ones and use an upgradeable proxy pattern with the resultin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No response validation for external skip API ### Description Vulnerable code: [router-api/src/app/transfer/external/skip.service.ts](). I acknowledge this is a known issue, the Router API proxies responses from Skip without verification, and currently no integrity checks or contract allowlists are enforced. 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
other
true
false
## High: [Bug] A critical bug in `bps` function ### Description _Submitted by hrkrshnn, also found by jonah1005 and walker_ The above function is designed to expect the token at the end of `calldata`, but a malicious user can inject extra values at the end of `calldata` and fake return values. The following contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
access-control
true
false
## Low: Missing input validation in `CollateralLiquidityProvider::setExternalCollateralRedemption` ### Description _Note that this finding assumes the other finding about access control is mitigated_. The contract `CollateralLiquidityProvider` relies on `externalCollateralRedemption` to process redemption. The functio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risk in Insurance Pool management ### Description The function `LiquidityPool::repay` is designed to handle repayments to the liquidity pool. If there is a profit, it is transferred to the `insurancePool`: However, the `insurancePool` can be modified by the manager through the function `Liquid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risk ### Description **Severity**: High **Status**: Resolved **Description** In contract Identity, in function execute, an arbitrary module can send the funds from Identity contract to any other address. This behavior creates a major risk of centralization. **Recommendation**: Modify 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
front-running
true
false
## Low: The last withdrawer can be sandwiched to extract fees from the `redeem` operation ### Description _Acknowledged_ When a `redeem` is requested and it is not by the last withdrawer, the fee is taken from `amountOut` and distributed to the remaining liquidity providers. This makes the last withdrawer vulnerabl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 event emission ### Description The `setBaseURI` method in `BetExpress.sol`does not emit an event which might not be good for off-chain monitoring. Emit an event on state change.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incompatibility with fee-on-transfer tokens ### Description Several parts of code have assumption that `transferFrom(..., amount)` will result in receiving of exact `amount` of tokens: - https://github.com/yearn/hardhat-monorepo/blob/ecc0b5147992b34c315e08af170ceb4a5fe071ee/packages/yswaps/contracts/TradeF...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: secRewardsPerShare Insufficient precision ### Description > We also introduced the field secRewardDebt. The idea of this field is to enable any lending platforms that are integrated with Neofinance Coordinator to send their own rewards based on this value (or rather the difference of this value since the la...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Replace string errors with custom errors ### Description Gas saved per instance: Probably a few thousands for deployment + a few hundreds when the function reverts Custom errors are cheaper both for deployment and reverts, since strings take up lots of bytes code while custom reverts just a single byte.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: depletionTimeOf() can return 0 and a timestamp value when balance and debt relation didn't change ### Description The issue is somewhat similar to the issue reported in Cantina's audit report section 3.3.4\* (copied below). It describes a problem that depletionTimeOf() returns 0 when it should still return 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: Potential Accumulation of Unused Commissions Due to Rounding ### Description The issue is pinpointed within the [`calcCommissions`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L543) function of the `LOB` contract. There is an issue relat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 2 step process for 3 party ownership change can lead to locked funds ### Description In a normal 2-step ownership change, both the previous and future owner are required to send a transaction to facilitate the ownership transfer. This ensures that: 1. The old owner agrees with the transfer. 2. The new owner i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: DoS due to Chainlink oracle returning wrong data or going offline ### Description Chainlink oracle price feed can return wrong data or go offline in extreme cases, which will provoke the `EthPriceFeed.fetchEthPrice()` function to revert. This function is called to execute the main actions of the system, suc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Lack of input validation ### Description Throughout the codebase, there are several functions that lack input validation when changing privileged roles, allowing these roles to be set to the zero address. In particular: * The `newAdmin` argument of the [`changeAdmin` function](https://github.com/thesandboxga...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insecure setter Functions ### Description The `setOrderBookVault` and `setOrderBookConfig` functions in the `OrderBook` contract allow the admin to change critical components of the protocol: the vault managing asset transfers and the configuration managing trading pairs, fees, and other parameters. If these f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Events not emitted when modifying storage parameters ### Description The contract does not emit events when setting storage parameters, which might be useful for off-chain analysis. The following events are notably missing: - **Setting the immutable parameter** `bentoBox` in the constructor. - **Adding to** `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: `pump()` behaves incorrectly in case nobody deposited in the previous cycle ### Description In case nobody deposited in the previous cycle, function `_performCycleMaintenance()` will always execute in the current cycle's pumps That's because `_allocateTopContributorsBonuses()` always returns early and doesn'...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `addNewTranche()` no authorization from borrower ### Description For `addNewTranche()`, the code implementation is as follows: Currently only the signature of the `lender` is checked, not the authorization of the `borrower`. Then, any `lender` can add `tranche` to any `loan` by: 1. Specifying a very high 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
medium
rounding
true
false
## Medium: Centralized point of failure for mobile device sending transactions ### Description The inability to access and obtain a non-zero ZEC price from coinmarketcap.com’s API will result in mobile wallets being unable to send funds without use of a “send transaction QR code.” Funds sent from the mobile wallet ar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
true
## Medium: `addInterest` will not update the interest acurately which would enable users to claim rewards for time that they weren't staked inside `LendingAssetVault` ### Description Users would be able to deposit into `LendingAssetVault` and earn interest on the frax lend pair that was generated before they deposited...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Upgradeability ### Description The contract currently lacks an upgradeability mechanism, meaning that in the event of a severe exploit or logic failure, the only available recovery option is liquidity migration. This can be inefficient, slow, or even impossible if the contract becomes locked due to an ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Staking `preSign` could use some basic validations ### Description _Submitted by Alex the Entreprenerd_ The function `preSign` accepts any `orderUid`. `function preSign(bytes calldata orderUid) external onlyOwner` Because of how Cowswap works, accepting any `orderUid` can be used as a rug-vector. This is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
signature
true
false
## Low: Redundant `vault_authority_signer` passed to `BurnChecked` in `redeem` and `liquidate` ### Description Both `redeem_handler` and `liquidate_handler` build their burn CPI like this: ```rust let burn_ctx = CpiContext::new_with_signer( ctx.accounts.share_token_program.to_account_info(), BurnChecked { ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] Contracts cannot be upgraded ### Description ### Lines of code https://github.com/code-423n4/2024-02-althea-liquid-infrastructure/blob/bd6ee47162368e1999a0a5b8b17b701347cf9a7d/liquid-infrastructure/contracts/LiquidInfrastructureERC20.sol#L50C1-L54C41 https://github.com/code-423n4/2024-02-althea-liquid-in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: MarketplaceUniversalRouterZap 's sell721() and sell1155() do not control the ongoing amount, failing with a low level error when there are not enouhg funds for fees and royalties ### Description Both NFT selling functions of `MarketplaceUniversalRouterZap` execute fee and royalty deductions without amount chec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketRewardsPool - registerClaimer should check if a node is already disabled before decrementing rewards.pool.claim.interval.claimers.total.next ✓ Fixed ### Description The other branch in `registerClaimer` does not check whether the provided `_claimerAddress` is already disabled (or invalid). This might lea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
DOS
false
false
Source: https://github.com/sherlock-audit/2022-11-isomorph-judging/issues/57 ## Found by 0x52, HonorLt ## Summary When a collateral is paused by governance, `collateralValid` is set to false. This causes closing and liquidating of loans to be impossible, leading to two issues. The first is that users with exist lo...
Sherlock
3.999805
Isomorph
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Missing input validation in SFC and treasury initialization ### Description Missing input validation in SFC and treasury initialization. In fact, it is intended for such variables to be validated, as can be seen in the setter function from the treasury, where it is checked that the address is not set to 0: ``...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of denial-of-service attacks on token whitelisting process ### Description The token whitelisting process can be disrupted by a malicious user submitting spurious proposals. The `proposeTokenWhitelisting` function allows users to submit proposals for adding new tokens to the whitelist. If the requirement...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Hypervisor.deposit function does not check the msg.sender ✓ Fixed ### Description `Hypervisor.deposit` pulls pre-approved ERC20 tokens from the `from` address to the contract. Later it mints shares to the `to` address. Attackers can determine both the `from` and `to` addresses as they wish, and thus steal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
other
false
false
## Medium: Inefficient rebalancing can cause the loss of users ### Description We can only call rebalance once every 5 minutes. This is enforced through the `check_rebalancing` function, which allows only 25 rebalancing calls each time it runs. This limitation can create significant issues. For example, if there are ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate In-Memory Balance Updates ### Description ## Vulnerability in Code-VM: Transfer and Withdraw Operations The transfer and withdraw operations in Code-VM are vulnerable to incorrect accounting when the source and destination accounts are the same. In scenarios where the source account and the destin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `lending-market/Note.sol` Wrong implementation of access control ### Description _Submitted by WatchPug, also found by catchup, Lambda, p4st13r4, and Tutturu_ `_mint_to_Accountant()` calls `_setAccountantAddress()` when `accountant == address(0)`, which will always be the case when `_mint_to_Accountant()` i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Insufficient test coverage ### Description The project lacks unit and E2E tests. It is always a good practice to implement unit tests and E2E tests, as it helps discovering vulnerabilities in the early stages of development, and later on it helps with maintaining and updating the code base. ### Recommendation...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: `BetFactory::setPool` should validate input pool is legitimate AaveV3 pool and supports input token ### Description **Description:** `BetFactory::setPool` should validate input pool is legitimate AaveV3 pool and supports input token. This can be done by: 1) `BetFactory::constructor` should take as input the a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Staker contract should be declared abstract ### Description The [`Staker`](https://github.com/UMAprotocol/protocol/blob/7938617bf79854811959eb605237edf6bdccbc90/packages/core/contracts/oracle/implementation/Staker.sol) contract contains the following internal virtual functions: * [`inActiveReveal`](https://g...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double reward claim in `ExternalBribe` ### Description In the `ExternalBribe` contract, a malicious user can claim rewards twice for the same `tokenId` in the same epoch due to flawed logic in the `ExternalBribe::earned()` function. This issue allows a user to receive rewards multiple times from a single ep...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Debugging statements left in code ### Description **Severity**: Informational **Status**: Resolved **Description** In the whole project there are multiple lines of code that invoke console.log functions that only have a role during the debugging phase, for production code, it will be recommended to remove t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Fee-On-Transfer Tokens Lead to Improper Tracking ### Description Untracked assets residing in `RiskFundConverter` can be tracked using the [`updateAssetsState` function](https://github.com/VenusProtocol/protocol-reserve/blob/ca8f8ba3dfcf6f13d2db4ac230ac9337950525f6/contracts/TokenConverter/RiskFundConverter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: Chainlink price feed is not sufficiently validated and can return stale price ### Description As mentioned by , "Prices provided by the oracle network are also compared to Chainlink's public price feeds for additional security. If prices have more than a 2% difference the transaction is reverted." The Chain...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Misleading Documentation ### Description Throughout the codebase, multiple instances of misleading documentation were identified: * In the `openzeppelin_fungible_token` crate's `lib.rs` file, the documentation states that [`Mintable` allows authorized entities to mint](https://github.com/OpenZeppelin/stellar-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Front-running admin setPrice call allows a single compromised oracle to set any price, allowing the oracle manipulator to drain all protocol funds ### Description The only way to update an NFT price is through [\_finalizePrice](https://github.com/code-423n4/2022-11-paraspace/blob/c6820a279c64a299a783955749f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Spelling Errors ### Description The following are spelling mistakes that were caught. In addition, there's 1 instance in the IDelegationRegistry, but it's also present in the deployed delegate.cash contract: ```solidity /// @notice Emitted when a user revoes all delegations for a given delegate ``` **Note:*...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding loss of 1 wei ### Description **Description:** In `Goldivault`, sum of 2 amounts might be less than `amount` due to the rounding loss. **Client:** Fixed in [PR #17](https://github.com/0xgeeb/goldilocks-core/pull/17) **Cyfrin:** Verified.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol socializes more bad debt than it could do favouring position owner ### Description The Liquidation module socializes bad debt when an account does not have any liquidatable collateral. It decreases the `totalBorrows` by the remaining account's debt. By design, all the depositors share this loss becaus...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong DOMAIN_SEPARATOR ### Description _Submitted by 0x1f8b, also found by rotcivegaf, unforgiven, CertoraInc, eccentricexit, and IllIllI_ The `DOMAIN_SEPARATOR` is wrongly calculated. ### Proof of Concept In the `initialize` method of the `BathToken` contract, the `name` of the contract is used to calcu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Are Unable to Deleverage Their Positions ### Description In the `GmxFactory.createDecreasePosition()` function, the `sizeDelta` parameter is hardcoded to `0`. This parameter is crucial for adjusting the leverage of a position. By being set to zero, it effectively prevents users from decreasing their leve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use named returns for local variables of pure functions where it is possible ### Description ### Proof of Concept ### 2 Instances 1. ### Use named returns in the `SplToken.total_supply()` function - https://github.com/code-423n4/2023-12-autonolas/blob/main/lockbox-solana/solidity/library/spl_token.sol#L109-#...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: distribute() will revert for killed CL gauges ### Description There are 2 issues if `distribute()` is called on a killed gauge. 1. The parameter type for the fee is incorrect, where it should have been `uint24` instead of `uint8`. As a result, the function selector is incorrect, resulting in an EVM revert. #...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: REP token allows migration of legacy tokens after universe fork ### Description The `ReputationToken` contract implements the [`migrateFromLegacyReputationToken`](https://github.com/AugurProject/augur/blob/9a33c3269e812d0cb66d49b61a72db58e32e4749/packages/augur-core/source/contracts/reporting/ReputationToken.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
initialization
true
true
## Low: Users Can Bypass Vesting During Initialization ### Description The contract is deployed in an unpaused state by default, with `pausedFlag` initialized to `0` and vesting times (`startTime` and `endTime`) initialized to `0`. This creates a vulnerability window during deployment where users who possess valid Mer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Custom errors should be used. ### Description **Description** Starting from the 0.8.4 version of Solidity, it is recommended to use custom errors instead of storing error message strings in storage and using "require" statements. Using custom errors is more efficient regarding gas spending and increases 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
other
true
false
## Low: Dust `_stakingReward` affects vesting of large `stakingReward` ### Description When `_stakingReward < DRIP_DURATION`, the reward is expected to be released immediately. However, during the `allocateReward` call, any previously unvested tokens will still be released first, and then the new `stakingReward` 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
medium
rounding
true
false
## Medium: The deposit function does not check for the `maxMint` amount ### Description It is theoretically possible for the deposit amount to mint shares more than the `maxMint` amount ### Proof of Concept The deposit function has a check for `maxDeposit` and reverts if the deposit value is more than `max(uint96)`....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: The tier setting parameter are unsafely downcasted from type uint256 to type uint80 / uint48 / uint40 / uint16 ### Description The tier setting parameter are unsafely downcasted from uint256 to uint80 / uint48 / uint16 the tier is setted by owner is crucial because the parameter affect how nft is 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
medium
reentrancy
true
false
## Medium: Arithemetic underflow leading to unexpected revert and loss of funds in Receiver contract. ### Description The Receiver contract is designed to gracefully return the funds to users. It reserves the gas for recovering gas before doing swaps via `executor.swapAndCompleteBridgeTokens`. The logic of reserving g...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious operator will control consensus without risking stake (stake-exit lag exploit) ### Description The non-atomic nature of `setSigVerifier` and `commitValSetHeader` will cause a potential loss of security guarantees for networks as a malicious operator can manipulate validator sets after unstaking ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Privileged Roles and Ownership ### Description **Update** The Tengoku Senso team documented the roles and privileges in the file `README.md` (commit `1f8ba861cc5895ca46920a930967a749abae7678`). **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > We are working...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incompatibility With Rebasing/Deflationary/Inflationary token ### Description _Submitted by Jujic, also found by cmichel, defsec, hagrid, hickuphh3, IllIllI, minhquanym, Ruhum, and shenwilly_ The scope contracts do not appear to support rebasing/deflationary/inflationary tokens whose balance changes during...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing Input Validation ### Description **Update** The client acknowledged the issue and provided the following explanation: > Will not be fixing because of extra gas costs **File(s) affected:**`contracts/PromptClaim.sol` **Description:** It is crucial to validate inputs, even if the inputs come from trust...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: Frontrunning the auction creation and settlement to lower its listed price or to grief the NFT owner ### Description Upon an auction creation, we have this line: ```solidity uint256 currentRFV = treasury.realFloorValue(); ``` This is the price an auctioned NFT is listed for (increased by a percentage servin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `<array>.length` should not be looked up in every loop of a `for`-loop ### Description Even memory arrays incur the overhead of bit tests and bit shifts to calculate the array length. Storage array length checks incur an extra Gwarmaccess (100 gas) PER-LOOP. 1. File: contracts/BaseIndex.sol (line [78](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
low
initialization
false
false
## Low: No restriction on spl_token decimals ### Description **Description** Potentially, too big decimals may make work with such token is impossible, e.g. 1token with decimals=20 is out of u64. **Recommendation**: Check the correct decimals on the contract initialization.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Assumption of Singular Bucket Updates in `_searchApproxIndex()` Function ### Description **Update** The team fixed the issue as recommended in the `bf8e378` commit. **File(s) affected:**`FeeExecutor.sol`, `FeeDecreaser.sol`, `InterestIncreaser.sol` **Description:** In the `FeeExecutor`, lists `updatedTime...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code coverage should be close to 100% ✓ Fixed ### Description Code coverage is a measure used to describe how much of the source code is executed during the automated test suite. A system with high code coverage, measured as lines of code executed, has a lower chance to contain undiscovered bugs. The codebas...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An Agent Can Be Upgraded Even if There Is No New Implementation ✓ Fixed ### Description Agents can be upgraded to a new implementation, and only the Agent’s owner can call the upgrade function: **src/Agent/AgentFactory.sol:L51-L72** ``` function upgradeAgent( address agent ) external returns (address n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Shorthand way to write if / else statement ### Description The normal if / else statement can be refactored in a shorthand way to write it: 1. Increases readability 2. Shortens the overall SLOC The above instance can be refactored in:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Pool withdrawals can be kept low by non-redeeming users ### Description In the current pool design, users request to exit the pool and are scheduled for a withdrawal window in the withdrawal manager. If the pool does not have enough liquidity, their share on the available pool liquidity is proportionate to the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
true
## High: Tokens can be launched to Uniswap v3 anytime, allowing to drain ETH ### Description In `GroupcoinFactory`, we intend to gate launching to Uniswap v3 with a two-step approach. First, the user calls `enableUniswapV3Launch`, which only succeeds if the current buy price for one token is at least the `config.thres...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Padding Bytes ### Description ## Issue Overview The issue pertains to the difference between the `Balance` structure in the Marginfi-CPI library within `marginfi_account` and the original implementation of the `Balance` structure in the Marginfi library. Specifically, the `Balance` structure in `marg...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Missing Validation Logic ### Description ## Kamino Lending Improvements ## Improvements 1. In the existing `AddEmission` instruction in `kamino_lending`, implement a check to ensure that the `emission_token_account` is associated with the correct mint. Additionally, validate the `emission_mint` against `rese...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFTs mintable after Auction deadline expires ### Description The `buy` function on the `LPDA.sol` contract is not validating if the auction is still running, allowing a purchase to be made after the stipulated time. The `endtime` variable used to store the end date of the auction is not used at any point to...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
token
true
true
## Medium: Unclaimable rewards for removed vaults in `Rewards::claimRewards` ### Description In the `Rewards::claimRewards` function, stakers claim their rewards across all vaults they were active in during previous epochs. These vaults are determined by the `_getStakerVaults` function, which retrieves vaults via `mid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Undocumented expectations for state-changing operations in HyVM ### Description PR #1 removed some of the state-changing operations from the HyVM contract, but not all of them. It is unclear whether the Nested Finance team intended to keep those remaining operations in the contract. In particular, 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
low
other
false
false
## Low: Inconsistent spacing in comments ### Description Some lines use `// x` and some use `//x`. The instances below point out the usages that don't follow the majority, within each file. *There are 105 instances of this issue.* ---
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Operator can cause fee shares to be minted to address(0) ### Description When setting the fee rate it is required that the fee recipient is NOT address(0). An operator can bypass this check by changing the fee recipient to address(0) after setting fee. ### Impact Operator can bypass fee recipient check ##...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Colition between approve() and _isApprovedOrOwner() when user merge two veALCX tokens ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol Impacts: - Contract fails to deliver promised returns, but doesn't lose value ## Descr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Calling transferEth function can revert if receiver input corresponds to a contract that is unable to receive ETH through its receive or fallback function ### Description ## Lines of code https://github.com/PartyDAO/party-contracts-c4/blob/main/contracts/utils/LibAddress.sol#L8-L15 https://github.com/Party...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emit events for state changes ### Description Any important changes in state should be documented in events. Consider covering the transition of states in Controller and settlements in Vault.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Wrong parameter passed in `TradingAccount::deductAccountMargin` function that results in excess margin withdrawal ### Description In `LiquidationBranch::liquidateAccounts` function, wrong parameter value for `pnlUsdX18` passed in `TradingAccount::deductAccountMargin` function resulting in inflated `marginBala...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Complex Repay Function ### Description The `repay` function of the `PerpetualPositionManager` contract simply [redeems the tokens and then deposits the retrieved collateral](https://github.com/UMAprotocol/protocol/blob/1631ef7ad29aaeba756ef3b9a01c667e1343df85/packages/core/contracts/financial-templates/perpetu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
Wrong Math
true
false
## Handle cmichel ## Vulnerability details The `OverlayV1UniswapV3Market.fetchPricePoint` tries to compute the market depth in OVL terms as `marketLiquidity (in ETH) / ovlPrice (in ETH per OVL)`. To get the market liquidity _in ETH_ (and not the other token pair), it uses the `ethIs0` boolean. ```solidity _marketL...
Code4rena
4
Overlay 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...
cyfrin_structured
low
other
true
false
## Low: Resolve discrepancy between expected `randomNumber` in `DropBox::_assignTierAndMint` and `DropBoxFractalProtocol::_determineTier` ### Description `DropBox::_assignTierAndMint` generates `randomNumber` between 0 and 9999 and then calls `DropBoxFractalProtocol::_determineTier` passing this as input: ```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
access-control
false
false
## Medium: Potential Inflation Attack Risk ### Description The issue was identified within the `initialize` function in the `OzUSD` contract. Currently, this function allows for the possibility of the `_sharesAmount` variable to be set to zero during initialization. This, in turn, paves the way for a potential inflati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 borrow balance calculation in the getLoanLiquidity function ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0xf8E94c5Da5f5F23b39399F6679b2eAb29FE3071e Impacts: - Protocol insolvency ## Description ## Brief/Intro The borrow balance is not calculated correctly ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
true
true
<https://github.com/with-backed/papr/blob/9528f2711ff0c1522076b9f93fba13f88d5bd5e6/src/PaprController.sol#L365> <https://github.com/with-backed/papr/blob/9528f2711ff0c1522076b9f93fba13f88d5bd5e6/src/PaprController.sol#L138> ### Impact Disabled collateral can still be used to mint debt. ### Proof of Concept There ...
Code4rena
5
Backed Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: If DAO updates `forkEscrow` before `forkThreshold` is reached, the user's escrowed Nouns will be lost ### Description During the escrow period, users can escrow to or withdraw from forkEscrow their Nouns. During the escrow period, proposals can be executed. Since withdrawFromForkEscrow will only call 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: Missing Usage Description For All Transaction Commands Cli ### Description All the transaction and query commands for all the modules are missing a long message to provide description about their usage, which will be helpful for users and external developers. ### Recommendation It is recommended to specify 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: Unused Modifier `onlyThis` ### Description This issue has been identified within the `daoVetoImplant` and `daoVoteImplant` contracts. The `onlyThis` modifier is declared but never used in the contracts. ### Recommendation We recommend removing the `onlyThis` modifier.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Susceptibility To Inflation Griefing For Low Precision Decimals ### Description One of the unique properties of the `MoonwellERC4626` vault is its dependence upon a dedicated factory contract to initialize vault deployments in a way that is resistant to inflation attacks. This in turn liberates the vault imple...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong arithmetic operation when normalizing prices ### Description The [`Oracle` contract](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protocol/contracts/src/oracle/Oracle.sol#L34) implements the logic to retrieve the updated price of a listed asset. When a [pri...
0