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
other
true
false
## High: Non-accessible function of GMX is used ### Description **Severity:** High **Context:** [`Helper.sol#L84-89`](https://github.com/getmetafinance/meta/blob/00bbac1613fa69e4c180ff53515451df4df9f69e/contracts/musd/Helper.sol#L84-89) **Description:** `Helper::harvest` calls a GMX router’s `compoundForAccount` 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
overflow
true
true
## Medium: Lack of upper bounds in queryDeadlineInterval may lead to locked funds and/or DoS ### Description The lack of upper bounds in `queryDeadlineInterval` may lead to two different harmful scenarios. 1. Ether included within a query is expected to be returned to the query creator in case the query is not fulfil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: [09] Consider using descriptive constants when passing zero as a function argument ### Description Passing zero as a function argument can sometimes result in a security issue (e.g. passing zero as the slippage parameter, fees, token amounts ...). Consider using a constant variable with a descriptive name, so ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Cross-chain deposits will fail when the deposit token is the native token ### Description The `crossChainMint()` function calculates the `_daoBalance` as: ```solidity uint256 _daoBalance = IERC20(_daoDetails.depositTokenAddress).balanceOf(_daoAddress); ``` The problem is that the cross-chain DAO can be depl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: The way fees are accounted can break the sorted list order ### Description eBTC borrows the corrected stake mechanism from Liquity for reward distributions. ([paper](https://github.com/liquity/dev/blob/main/papers/Efficient_Order-Preserving_Redistribution_of_Troves.pdf)) Doing a pure collateral proportionn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid zero to non-zero storage writes where possible ### Description Changing a storage variable from zero to non-zero costs `22,100` gas in total (`20,000` gas for a zero to non-zero write and `2,100` for a cold storage access). Consider using non-zero architecture to avoid high gas costs for zero to non-zero...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawal Process Returns the Minimum Amount Regardless of Callback Result ### Description **Update** The client fixed the issue in `79d999639134870c8ba1335afc972411f5167e44` by validating the `finalizedAmount` returned by `assetVault.processWithdrawal()` with the requested `tokenAmount`. **File(s) affect...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-07) Owners can renounce ownership ### Description The protocol allows the current owner to renounce ownership, which will disable important functionality of the protocol such as pausing and unpausing the claiming and unlocking of user rewards within the `HaloAirdrop.sol` contract, and updating the rewards...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Access Controls in Token Minting and Burning ### Description The smart contract functions `proposeMint` and `proposeBurn` play crucial roles in managing the tokenomics of the ecosystem by handling the minting and burning of synthetic assets. Despite their significance, both functions currently lack es...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: An attacker could manipulate debt exceptional redistribution because it is allowed to deposit into any trove ### Description In a redistribution, the unhealthy trove's collateral and debt is distributed among troves proportionally to its collateral composition. If no other troves have deposited a yang that ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: Empty accounts can trigger Mint and Burn events ### Description Both the `withdraw` and `transferFromGate` functions do not require the callers to have non-zero amounts they wish to withdraw or deposit. This allows third parties with no tokens to call into these functions and trigger arbitrary `Mint` and `Burn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `SettlementBranch::_fillOrder` doesn't pay order and settlement fees if PNL is positive ### Description `SettlementBranch::_fillOrder` while calculating the PNL at L161 deducts these fees from the calculated PNL, but if the PNL is positive later on around L204 it doesn't pay order and settlement fees 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
medium
initialization
false
false
## Medium: Inability To Timeout Connections ### Description ## DAClient Timeout Configuration Issue The current remote procedure call client (DAClient) used to connect to the Celestia network lacks a timeout configuration during establishing the connection. This omission may result in liveliness issues within the Opt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
true
## Low: Missing access control check in withdrawLogic ### Description The `PositionsManager` contract’s `withdrawLogic` function does not perform any access control checks. In practice, this issue is not exploitable, as all interactions with this contract will be through delegate calls with a hard-coded `msg.sender` 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
high
other
false
false
## High: Missing Rewards Withdrawal Functionality ### Description ## Collect Rewards Instruction The `collect_rewards` instruction only handles the process of collecting rewards from a MarginFi lending account and depositing them into the `rewards_token_account`. There is no accompanying functionality to withdraw or ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ExternalFee contract treats newly deposit vault share as yield and charge performance fee on user deposit amount immediately ### Description Assume we have an ERC4626 strategy where the underlying asset is token A. The user can choose to: - Deposit the underlying asset, after which the code converts the asset...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: DOS while dealing with erc20 when value(i.e amount*decimals) is high but less than type(uint112).max ### Description _Submitted by hack3r-0m_ #### Impact reverts due to overflow for higher values (but strictly less than type(uint112).max) and hence when user calls `exit` or `withdraw` function it will rev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StabilityPool` and `BorrowerOperations` can be reinitialized ### Description The `initialize()` functions in the `StabilityPool` and `BorrowerOperations` contracts can be called multiple times, changing the value of crucial state variables, that are expected not to change after the initialization. While thes...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: No related function to set `fee_protocol` ### Description There are no related functions to set `fee_protocol`, which prevents the protocol from accumulating protocol fees. ### Proof of Concept The pool contract defines the protocol fee rate `fee_protocol`, but there is no function to set it. The 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: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.12 to get `string.concat()` to be used instead of `abi.encodePacked(,)` *There is 1 instance of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Import declarations should import specific identifiers, rather than the whole file ### Description ### Proof of Concept Multiple instances in scope, for example take a look at Evidently, the imports being done is not name specific, but this is not the best implementation because this could lead to pollutin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: whenNotPaused modifier can be removed from `claimAll()` to save gas ### Description The `claimAll()` function contains the `whenNotPaused` modifier: However, this function calls `claim()`, which already contains this modifier: We can therefore remove the modifier from the `claimAll()` function to save a sm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Incorrect Formate for transaction building, and transaction executions In Solana will lead to revert all execute Operations. ### Description When creating Execute Function in Solana, The Account structure us making `destination_program` with no `mut` flag (non-writable), and `destination_program_pda` with `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
true
false
## Low: Don't initialize variables with default value
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect price scaling in `RAACHousePriceOracle::_processResponse` ### Description The `_processResponse` function in `RAACHousePriceOracle` does not properly account for the price scaling factor applied in the Chainlink script. The script multiplies the house price by 100 to prevent precision issues, 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
front-running
true
false
## Low: Rolling loans with price outside the put-call range breaks the LTV == putStrikePercent assumption ### Description When loans are rolled, the new `takerLocked` amount is calculated based on the change in price: ``` newTakerLocked = takerPos.takerLocked * newPrice / takerPos.startPrice; ``` Afterwards, `takerS...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Lack of Slippage Control in `AuraVault::deposit` and `AuraVault::mint` Functions Can Lead to Unexpected Financial Losses for Users ### Description The `AuraVault` contract implements ERC-4626 vault functionality, allowing users to deposit assets and mint shares. However, the `deposit` and `mint` functions l...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Unsafe type casting operations and undocumented assumptions ### Description The codebase contains several instances of unchecked type casting operations and undocumented assumptions about value ranges that could lead to vulnerabilities in the protocol. These issues make the code harder to audit, maintain, 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
access-control
true
false
## Medium: Manipulation of governance is possible by minting to self ### Description Report type: Smart Contract Target: https://github.com/zerolend/governance Impacts: - Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended effect of original results ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: Yield of `LiquidityReserve` can be stolen ### Description _Submitted by Picodes_ ### Impact Using sandwich attacks and JIT (Just-in-time liquidity), the yield of `LiquidityReserve` could be extracted for liquidity providers. ### Proof of Concept The yield of `LiquidityReserve` is distributed when a user ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Enforce > 0 passing percent configuration in `AdminVoting::setPassingPct` ### Description Enforce > 0 passing percent configuration in `AdminVoting::setPassingPct`: ```diff function setPassingPct(uint256 pct) external returns (bool) { // enforce this function can only be called by this contract require...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In case that unstakingDelay is decreased, users who have previously unstaked would have to wait more than unstakingDelay for new unstakes ### Description ## Lines of code https://github.com/reserve-protocol/protocol/blob/df7ecadc2bae74244ace5e8b39e94bc992903158/contracts/p1/StRSR.sol#L560-L564 ## Vulnera...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [3] State variables only set in the constructor should be declared `immutable` ### Description Avoids a Gsset (20000 gas) in the constructor, and replaces each Gwarmacces (100 gas) with a `PUSH32` (3 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: Savings: Cache Function Results ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Acknowledged. We don't want to change code too much at this stage, in order to make sure we don't invalidate another audits. **File(s) affected:**`TokenVestingLi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused variables and missing check within ForeignController ### Description Within the `ForeignController`'s constructor, the `psm` variable is initialized, supposedly being a `PSM3` that contains the following 3 assets: `usds`, `susds`, `usdc`. There is no check that verifies this is true in the constructor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `OpNetVaultAutoDeployLogic::getVetoSlasherParams` is never used ### Description **Description:** `OpNetVaultAutoDeployLogic::getVetoSlasherParams` is dead code that is never used. It is also worth noting that `OpNetVaultAutoDeploy` is designed only for `InstantSlasher` and has no mechanism to utilize `VetoSlas...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 are unable to collect their yield if tranche is paused ### Description Users are unable to collect their yield if Tranche is paused, resulting in a loss of assets for the victims. ### Impact Users are unable to collect their yield if Tranche is paused, resulting in a loss of assets for the victims. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Beneficiary Must Transfer Credit Before Receiving Collateral ### Description When a beneficiary or authorized address [redeems](https://github.com/AmperaFoundation/sol-contracts/blob/4c4423791b3427153937881fc5287a81283ee141/contracts/LetterOfCredit.sol#L449) a uLoC, they need to send the credited amount 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
false
false
## High: Raptorcast deserialization susceptible to zstd decompression bomb ### Description Deserialization of a (small) crafted input to Raptorcast's deserialization function can incur a high computational cost; approximately 0.5-1 second of processing time per 27 bytes of payload on modern hardware. ### Recommendati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
false
false
## High: Flaw in Redemption Price Calculation ### Description A critical issue was uncovered in the `redeem` function of the `UsrRedemptionExtension` contract. The flaw lies in the way the `redeemPrice` is determined. The current code fetches the `redeemPrice` as the cost of 1 USDC in USR, mistakenly multiplying 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...
solodit_api
medium
Business Logic
true
false
_Submitted by WatchPug, also found by 0xsanson, and shenwilly_ ```solidity uint256 gasCost = (startGasPerOrder - gasleft() + wethTransferGasUnits) * tx.gasprice; // if the execution currency is weth, we can send the protocol fee and gas cost in one transfer to save gas // else we need to send the protocol fee separate...
Code4rena
4
Infinity NFT Marketplace
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 mintRecipient is already checked in the TokenMessenger ### Description In the MainnetController, when transferring USDC via CCTP, the `mintRecipient` is checked to not be 0. This check is already performed by the CCTP contract itself. ### Recommendation Consider removing this redundant 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
false
false
## Low: Custom errors can be used. ### Description **Severity**: Informational **Status**: Resolved **Description** Starting from Solidity v0.8.4, custom errors are a convenient and gas-efficient way to explain to users why an operation failed. Handling errors using require statements is rather expensive, especiall...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Incompatibilities With fee-on-transfer Tokens ### Description The current implementation of the `stake()` and `unstake()` functions assumes that the full `amount` specified by the user is transferred without any deductions. This assumption is incompatible with fee-on-transfer tokens, which deduct a fee 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
medium
token
false
false
## Medium: `min_transfer_balance` is checked against the wrong value ### Description When `_withdraw` is called a `transfer_balance` is greater than `current_balance` inside the vault, it should check if `current_balance` is enough to cover the `min_transfer_balance`. However, currently, it will check it against `tran...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Vault can be placed back into vulnerable low supply state ### Description The `BaseVault` contract inherits an issue common to ERC-4626 implementations known as the donation attack. When shares are minted to users, they are calculated by [multiplying the deposited assets by a ratio of the existing shares 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: Missing validation of non-zero value ### Description Within `ConfigurationModule::setMarketConfiguration`, there is no validation that `MarketConfigurationData.maxSlippage` is not zero: This could affect the calculation of `pSlippage` within the `Market::getPSlippage` function, as any non-zero value of `pSli...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of updating `_serviceCount` variable ### Description **Severity**: Medium **Status**: Resolved **Location**: FulfillableRegistry.sol **Description** The addService() function is missing to update the _serviceCount variable. Due to a lack of increasing the variable, the removeServiceAddress() functi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient oracle validation ### Description Most prices are provided by an off-chain oracle archive via signed prices, but a Chainlink oracle is still used for index prices. These prices are insufficiently validated. ### Impact Old prices mean traders will get wrong PnL values for their positions, leadi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk ### Description ## Vulnerability in Token Initialization In `initialize`, if the `rst_mint` account provided for initialization already possesses a non-zero supply of tokens, it introduces a potential vulnerability. The admin may mint additional tokens to the `rst_mint` account before tran...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Uniswap oracle assumes PairToken <> WETH liquidity ### Description ## Handle cmichel ## Vulnerability details The `UniswapV3Oracle.tokenPrice` function gets the price by combining the chainlink ETH price with the TWAP prices of the `token <> pairToken` and `pairToken <> WETH` pools. It is therefore require...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Transmitter address update can cause DoS for In-flight CCIP Messages ### Description The L1Transmitter and L2Transmitter contracts allow for updating the address of their counterpart transmitter on the other chain. However, this update mechanism does not account for in-flight CCIP messages, potentially causing...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: “No-fail” path may return invalid price if primary fails without fallback ### Description _Resolved_ In the `OracleChainlinkWrapper`'s “no-fail” branch without a fallback, the wrapper may return the raw (invalid) price, including **0**, which can distort liquidation logic. Never return zero/invalid values. E...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: Causing users lose their fund during finalizing withdrawal transaction ### Description A malicious user can make users lose their fund during finalizing their withdrawal. This is possible due to presence of reentrancy guard on the function `relayMessage`. ### Impact By doing this attack it is possible to pre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Updating protocolFeeTo ### Description SofamonWearable has the following functions to update the fee receiver. ```solidity function updateRoyaltyFeeTo() public { royaltyFeeTo = ISofamonWearableFactory(machine).protocolFeeTo(); emit NewRoyaltyFeeTo(royaltyFeeTo); } ``` So, `royaltyFeeTo` should al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Revert if supply is less than premint parameter ### Description **Severity** **Impact:** Medium **Likelihood:** Medium **Description** The `getTokensNeededToAddEthValue` function reverts if the `supply` is less than the `curve`'s `premint` parameter. I will describe the scenario where the `supply` is ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Check on Stargate Router Address Could Revert ### Description The development team pointed out that, if the call by Stargate to `sgReceive()` were to revert, the tokens transferred from Stargate would be left in the SushiXSwap contract on the destination chain, where they could be transferred away freely 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
gas
other
true
false
## Gas: Stack variable is only used once ### Description If the variable is only accessed once, it's cheaper to use the assigned value directly that one time, and save the 3 gas the extra stack assignment would spend. [296](https://github.com/code-423n4/2024-05-loop/blob/0dc8467ccff27230e7c0530b619524cc8401e22a/./sr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10] The `_pendingOwner` can be reset via `_renounceOwnership()` ### Description Assume `transferOwnership()` has been called and the `_pendingOwner` has been set. The function `_renounceOwnership()` can now be used to reset the `_pendingOwner`, which means that the next `acceptOwnership()` will fail. *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
gas
other
true
false
## Gas: Access mappings directly rather than using accessor functions ### Description Saves having to do two `JUMP` instructions, along with stack setup *There are 6 instances of this issue:* https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/vote-escrow/VoteEscrowDele...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-H-1 A malicious operator can drain the vault funds in one transaction ### Description **Description:** The vault operator can swap tokens using the `trade()` function. They pass the following structure for each trade: Notably, **receiveAmtMin** is used to guarantee acceptable slippage. An operator can ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Different sources of values for checking and deployment ### Description In the `L1()` function, we verify that the values in the configuration (from `list/config/chainConfig` parameter) match those on the chain. We later call the `initialize()` function with these values. However, for pre-deploys, the address ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Inconsistent Team Allocations ### Description ## Ticket Purchase Logic Overview In `buy_ticket`, `total_amount` is added to `game_acc.team_wise_amount` even during the initial game phase. The constant ticket allocation logic applies in the initial phase (`curr_time <= game_acc.start_time + INITIAL_PHASE_DURAT...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Fund Provision ### Description ## SbFunction.forward Vulnerability `SbFunction.forward` allows external calls with user-provided `msg.values` without checking if sufficient funds are provided. An attacker may steal all Ether from the contract by forging a transaction with a value equal to the diamo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid zero transfers ### Description In Solidity, performing unnecessary operations can consume more gas than needed, leading to cost inefficiencies. For instance, if a transfer function doesn't have a zero amount check and someone calls it with a zero amount, unnecessary gas will be consumed in executing 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: Time related variables should use time units instead of numbers ### Description There are [units](https://docs.soliditylang.org/en/latest/units-and-global-variables.html#time-units) for seconds, minutes, hours, days, and weeks, and since they're defined, they should be used *There are 3 instances of this issu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: The Quotient Polynomial Shards Are Not Individually Blinded ### Description After [constructing the shards](https://github.com/Consensys/gnark/blob/e2040836eb41a40df04a4a3648764b07a0fa12a2/backend/plonk/bn254/prove.go#L612-L625) of the quotient polynomial h(X) their KZG commitments are [added to the proof](ht...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blacklist can be completely bypassed on outHere endpoint in mTokenGateway ### Description The mTokenGateway exposes the `outHere` endpoint to allow withdrawal on an extension chain. This endpoint is protected by two `ifNotBlacklisted` modifiers: [mTokenGateway.sol#L254-L262](https://github.com/sherlock-aud...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: New gALCX token denomination can be depressed by the first depositor ### Description _Submitted by hyh, also found by 0xsomeone_ An attacker can become the first depositor for a recently created gALCX contract, providing a tiny amount of ALCX tokens by calling `stake(1)` (raw values here, `1` is `1 wei`, `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The returned `stUSRAmount` from the `unwrap` operation may be inaccurate due to rounding ### Description When users `unwrap` their wstUSR, the underlying `stUSRAmount` is returned from the operation : ```solidity function unwrap(uint256 _wstUSRAmount, address _receiver) public returns (uint256 stUSRAmoun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [12] Function declaration does not follow Solidity style guide at `FixedAuction.sol` ### Description ### Finding description The `initialize()` function in the contract is written as follows: This implementation does not conform to Solidity style guide and general best practices, particularly regarding 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
token
true
false
## Low: Missing `IERC165` support in `supportsInterface()` ### Description The `supportsInterface` function in the `ERC721WithURIBuilderUpgradeable` contract overrides the IERC165 interface but fails to provide support for the necessary interface IDs(`IERC165`). This is not a good practice and may return incorrect res...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Risk Denial-of-Service (DoS) Vulnerability in ERC1155 Token Minting Process. ### Description ## Summary: This report describes a potential Denial-of-Service (DoS) vulnerability. The vulnerability arises when [mintFertilizers ](https://github.com/Cyfrin/2024-05-beanstalk-the-finale/blob/main/protocol/contracts...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initial Votes Can Be Cast In Phase 2 Without Proof ### Description Voters, who did not cast their vote in phase one, can still do so in phase two via the `overrideVote()` function, which also does not require them to provide a Merkle proof. By design, as per RPIP-33, in the first voting phase, voting delegate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Break out of `LibWhitelist ` loops early once the condition is met
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization risk ### Description **Severity**: Medium **Status**: Acknowledged **Description** The smart contracts employ modifiers (e.g. `onlyOwner`) in functions responsible for carrying out actions which can conflict with caller's interest (e.g. `setFeeReceiver`, `destroyEscrow`, emergency 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
low
other
true
false
## Low: Referral system can be attacked via the sybil attack ### Description In BeamNode, we have one referral system. When users deposit with one referral for the first time, they can buy one NFT at a discounted price. When users want to deposit with the referrer for the second time, we will not provide one discount ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UPGRADE PRAGMA TO AT LEAST 0.8.4 ### Description Using newer compiler versions and the optimizer gives gas optimizations and additional safety checks for free. The advantages of versions `=0.8.*= over =<0.8.0=` are: ``` Safemath by default from 0.8.0 (can be more gas efficient than some library based safemat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LP balance shouldn't be multiplied by virtual_price ### Description LP balance from the `_base_calc_token_amounts` shouldn't be multiplied by a virtual_price. https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSwapNGViews.vy#L116-L118 ### Recomm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `2**<n> - 1` should be re-written as `type(uint<n>).max` ### Description Earlier versions of solidity can use `uint(-1)` instead. Expressions not including the `- 1` can often be re-written to accomodate the change (e.g. by using a `>` rather than a `>=`, which will also save some gas). *There are 3 instances...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: buyAndSwap1155WETH Does Not Work As Intended ### Description ## Handle leastwood ## Vulnerability details ## Impact The `buyAndSwap1155WETH` function in `NFTXMarketplaceZap` aims to facilitate buying and swapping `ERC1155` tokens within a single transaction. The function expects to transfer `WETH` toke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use a more recent version of solidity ### Description Use a solidity version of at least 0.8.12 to get `string.concat()` to be used instead of `abi.encodePacked(,)` 1. File: src/AxelarGateway.sol (line [3](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f936dce567/src/AxelarGa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
true
false
## Low: TargetAMB receipt proof may behave unexpectedly on future transaction types ### Description The `TargetAMB` contract can relay transactions from the `SourceAMB` via events logged in transaction receipts. The contract currently ignores the version specifier in these receipts, which could cause unexpected behavio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misplaced stake limit validation in stake function of `LockedStakingPools` contract ### Description **Severity**: Medium **Status**: Resolved **Description** The following check inside the stake function from `LockedStakingPools` contract attempts to restrict users from having more than 100 active stake...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `1` and `2` rather than `0` and `1` saves gas ### Description See [this](https://github.com/code-423n4/2022-01-yield-findings/issues/102) issue from a prior contest for details 1. File: src/DepositHandler.sol (lines [6-7](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Up to (1e18 - 1) loss in interest paid due to rounding down ### Description **Impact** `stableInterest` in `_calculatePendingBorrowingInterest` rounds down the amount to be paid due to division before multiplication https://github.com/blkswnStudio/ap/blob/8fab2b32b4f55efd92819bd1d0da9bed4b339e87/packages/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
liquidation
false
false
## Low: [09] Absorption threshold LTV should be set to 89% ### Description According to the protocol's [graph for liquidation penalty](https://demo-35.gitbook.io/untitled/smart-contracts/purger-module#resources), it becomes evident that the `MAX_PENALTY` can only be achieved for `ltv` up to `89%`. For higher `ltv` 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
initialization
true
false
## Medium: `maxTotalFunds()` would be inflated during each call ### Description The `setTiers` function allows setting new tiers for sale. Internally it calls the `_setTiers` function which updates each of the tiers' values and increments `maxTotalFunds` by the sum of the new tiers' `cap` values (L483): ```solidity 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
gas
initialization
true
false
## Gas: Unnecessary `initialize()` function ### Description The `initialize()` function isn't an initializer. It just calls `setMinter()`, which has the same visibility and authorization level as `initialize()`: It could even be called repeatedly. As the `initialize()` function is not needed, I suggest deleting it ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
false
false
## High: Incorrect Authority Used for Token Transfer Prevents All Redemptions ### Description **Update** Marked as "Fixed" by the client. Addressed in: `c3a83a530d0eddb65b0b7a780d02b474e56c4881`. The client provided the following explanation: > The Sale struct was modified to store its ID and bump so that signer seed...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary else if condition with !vars.positionIsLong ### Description In the `LimitTradeHandler`, there is a large nested if statement, with one section roughly as follows: ```solidity if (vars.isNewPosition || vars.positionIsLong) { // ... omitting code here ... } else if (!vars.positionIsLong) { // .....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Ownership
false
true
## Security Advisory ## Severity **Medium Risk** ## Context - `MarketFactory.sol#L146-L152` - `MarketFactory.sol#L137-L140` ## Description The contracts lack two-step role transfer functionality. Both the ownership of the `MarketFactory` and the change of a market's host are implemented as single-step functions. The...
Spearbit
5
CLOBER
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
high
input-validation
true
true
## High: Attacker can steal reserves and subsequent liquidity deposits due to lack of input token validation ### Description The protocol exposes an external function `Well::swapFrom()` which allows any caller to swap `fromToken` to `toToken`. If one of the parameters `fromToken/toToken` is not in `_tokens`, this caus...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: sweep function should prevent Treasury from withdrawing pool’s BPTs ### Description The current `sweep()` implementation allows the vault owner (the Treasury) to sweep any token owned by the vault including BPTs (Balancer Pool Tokens) that have been minted by the Vault during the pool’s `initialDeposit()` 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...
solodit_api
medium
other
true
false
_Resolved_ ## Severity **Impact:** Medium **Likelihood:** Medium ## Description Protocol always subtracts protocol fee rate while calculation of interest rate for liquidity providers, but it never mints or allocate these funds. It means borrowers pay for these fees too, but nobody receives these funds, including ...
Pashov Audit Group
3
RegnumAurum_2025-08-12
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
true
false
## Low: Feature flags are not being used in the `TokenLibrary` ### Description **Description:** `TokenLibrary::setFeature` implements a feature flag system that is completely non-functional in the current codebase. While the infrastructure exists to enable/disable features, no business logic actually checks these feat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Don't update state
true
true
Source: https://github.com/sherlock-audit/2023-01-ajna-judging/issues/183 ## Found by hyh ## Summary RewardsManager's unstake() use `delete stakes[tokenId_]` to clear old stake state, but `snapshot` is the nested mapping in the `StakeInfo` structure and will not be reset this way as delete operation do not travers...
Sherlock
4
Ajna
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Lack of contract and user documentation ### Description Parts of the codebase lack code documentation, high-level descriptions, and examples, making the contracts difficult to review and increasing the likelihood of user mistakes. The documentation would benefit from the following details:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Use named mappings to explicitly indicate the purpose of keys and values ### Description Use named mappings to explicitly indicate the purpose of keys and values: ``` BetFactory.sol 22: mapping(address => address) public tokenToPool; ```
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
## Severity: Medium Risk ## Context `compound/MorphoUtils.sol#L211` ## Description The `_isLiquidatable` function iterates over all user-entered markets and calls `_getUserLiquidityDataForAsset(poolToken)` followed by `_getUserBorrowBalanceInOf(poolToken)`. However, it only updates the indexes of markets that corresp...
Spearbit
5
Morpho