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
overflow
false
false
## High: DAO Actions Fail Due to Insufficient Funds for `make_action()` Execution ### Description **Update** The team adds an `execution_fee` to the proposal, which should be used to pay for the extra tx fee cost for the proposal execution. There is also `calculate_min_execution_fee()` function that checks the lower b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Late Depositors Can Manipulate Share Allocation to the Detriment of Early Investors ### Description The vulnerability stems from the `Vault` contract’s share allocation mechanism, which processes deposits in FCFS order but calculates shares based solely on the final deposited amounts at the end of the inves...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle-manipulation
true
false
## Low: Insufficient validation of Chainlink price feeds ### Description Validation of the `price` and `updatedAt` values returned by Chainlink `AggregatorV3Interface::latestRoundData` is performed within the following functions: - [`StakingContract::_validateAndSetPriceFeed`](https://code.zeeve.net/zeeve-endeavors/be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
false
false
## High: Inconsistency in Loan Repayment Schedule of `refundLoan()` Function ### Description **Update** Fixed in `43badd87a66241c3030dbdc773858fec19f6f48d`. **File(s) affected:**`Pool.sol` **Description:** The `refundLoan()` function currently updates the `loan.nextPaymentTime` by directly adding the `MAX_LOAN_REFUN...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
## Medium: Gauge point updates should be made considering the time-weighted average deposited LP BDV rather than instantaneous at the time of Sunrise ### Description Prior to the introduction of the Seed Gauge System, the Grown Stalk per BDV for whitelisted assets was static and could only be changed via governance. 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
oracle
true
false
## Medium: SpotHedgeBaseMaker LPs will be able to extract value during a USDT/USDC de-peg ### Description The Perpetual protocol only supports USDT as collateral, but prices everything as though USDT were always equal to 1-for-1. Ongoing [small de-pegs](https://coinmarketcap.com/currencies/tether/) will only leave sma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] REDUNDANT RETURN STATEMENTS FOR FUNCTIONS WITH NAMED RETURNS CAN BE REMOVED ### Description When a function has named returns and a return statement, this return statement becomes redundant. To improve readability and maintainability, the return statements of the following functions can be removed. 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
medium
rounding
true
false
## Medium: Providing liquidity to the AMM does not check the return value of actually provided tokens leading to locked funds. ### Description When providing liquidity to an AMM pair, the protocol specifies both the desired amount of tokens to be provided and a minimum amount to be accepted. Any difference between 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
other
false
false
## Medium: Database has no snapshot and rollback functionality ### Description Right now, many functions write to the database with no validation of input data. Especially in concert with TOB-NCY-007, we believe it is likely some databases become large to the point of being unwieldy and filled with mostly useless data...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
oracle
true
false
## Gas: Optimize names to save gas ### Description `public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts that ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
rounding
false
false
## Low: `StabilityPool` should use per-collateral rounding error compensation ### Description Prisma fixed this in commit [0915dd4](https://github.com/prisma-fi/prisma-contracts/commit/0915dd4983ddbafd03601b186f2e1b8eae7dc311#diff-1cba6dc54756d6e48926d14e0933ff37d349c271ae78f2b5f02e85aa8fc9c312R417) noting that _"prio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Missing deadline checks allow pending transactions to be maliciously executed ### Description The `PaprController` contract does not allow users to submit a deadline for their actions which execute swaps on Uniswap V3. This missing feature enables pending transactions to be maliciously executed at a later p...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: Function `init()` can be front-run by anyone ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: If executed on it's own it doesn't write to the diamond storage, so it is inconsequential as such. **File(s) affected:**`naym-coin/InitDiamond.sol` **...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Provide Liquidity Lower than `fixedSideCapacity` ### Description **Update** The Saffron team has added the suggested check to the codebase. Commit: `3744029dc8f3a20a7be3848988281e08c394de34` **File(s) affected:**`Vault.sol`, `UniV3LimitedRangeAdapter.sol` **Description:** Within the `deployCapital()` 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
overflow
false
false
## Medium: Using + instead of add. ### Description **Recommendation**: Use the add method of the safeMath library, as in theory an overflow is possible.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
cross-chain
false
false
## High: Prover can lock user funds by supplying non-reduced Y values to G1BigIntToSignFlag ### Description The `G1BigIntToSignFlag` template does not check whether its input is a value properly reduced mod `p`. A malicious prover can lock user funds by carefully selecting malformed public keys and using the `Rotate` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove Unnecessary Function ### Description ## Code Review: `lor` Function in `capy_labs.move` In `capy_labs.move`, the `lor` function takes in two arguments and returns a boolean value based on whether the first argument is less than the second argument. However, this functionality may be achieved with a sim...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Missing registered agent validation in `OmoVault.borrow()` function ### Description The `OmoVault.borrow()` function is designed to allow whitelisted agents to borrow assets from the vault for reinvestment and yield generation, it accepts a `receiver` parameter, which determines the account that will receive 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
other
false
false
## Medium: A refund is sent to recipient  Won't Fix ### Description When a refund is sent, it’s sent to `recipient`. In case if a user wants to keep game items and money separate, it makes sense to send a refund back to `from` address. ### Recommendation The client decided not to fix this issue with the following com...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Unused event WhitelistToken ### Description The `WhitelistToken` event is defined in `IVoter` but never used, because the token whitelisting is handled via the Infrared contract. ```solidity event WhitelistToken( address indexed whitelister, address indexed token, bool indexed _bool ); ``` ### Recommen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Events Emitted After External Calls ### Description **Update** From the team: **File(s) affected:**`packages/amm/contracts/HifiPool.sol`, `packages/protocol/contracts/core/balance-sheet/BalanceSheetV2.sol`, `packages/protocol/contracts/core/h-token/HToken.sol` **Description:** Several instances of events 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
low
storage
false
false
## Low: Missing storage gap in `NFTStaking` could cause storage corruption in upgrades ### Description _Resolved_ The `getStakedNFTs()` function in `NFTStaking` is marked as `virtual`, indicating the contract may be designed for inheritance. However, the contract lacks a storage gap (`uint256[50] private __gap`). If ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: MULTIPLE ACTIVE SESSIONS ### Description None Code Location ------------- ### Recommendation **RISK ACCEPTED**: The code is protected with the `onlyOwner` modifier, so only the owner can add new sessions. Plus, the client states that: "This is done on purpose because if we by any chance make a mistake, we wo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: [13] Inadequate fee calculation in multi-token transactions ### Description The `convertAmount` function in the `ETHScanner` class is used to adjust the token amounts based on their respective decimals. However, this function has a significant issue when dealing with transactions involving multiple tokens 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...
skyward_49k
low
other
false
false
## Low: Typos ### Description There are some misspellings in the code. Here is the list: ```plaintext // MEME404.sol - function _getTierEligility + function _getTierEligibility - error INvalidTierParamsZeroId(); + error InvalidTierParamsZeroId(); ``` ### Recommendation Correct the aforementioned typos.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delete fulfilled vrf request from `vrfRequestIdToRequester` in `VRFHandler::fulfillRandomWords` ### Description **Description:** Delete fulfilled vrf request from `vrfRequestIdToRequester` in `VRFHandler::fulfillRandomWords`: **Mode:** Fixed in commit [08d7ce4](https://github.com/Earnft/dropbox-smart-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...
skyward_49k
low
oracle
true
true
## Low: Problematic use of primitive operations on fixed-point integers ### Description The protocol’s use of primitive operations over fixed-point signed and unsigned integers increases the risk of overflows and undefined behavior. The Increment Protocol uses the `PRBMathSD59x18` and `PRBMathUD60x18` math libraries to...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Closing partial positions miscounts the settled fees ### Description When positions are partially closed calculating settleMargin recordPnlToken will be wrong because of the additional division. ### Recommendation Don't divide the `_getPosFees()` since its already divided by the decreased amount
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Validations For Incoming Requests ### Description The `update` function in the `Service` class is a critical component responsible for processing various types of requests within a consensus mechanism, including proposals, replies, and results. This function parses and handles different types of messag...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: First win tier is always empty in `packFixedRewards` ### Description The rewards for the first win tier (tier 0) are always 0, meaning the lowest 16 bits of the packed rewards word are always 0 wasting this space. Consider offsetting the tier by 1 (store tier 1 in lowest 16 bits, tier 2 in next 16 bits, and 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
medium
oracle
true
false
## Medium: Incorrect LINK fee is charged for the `PNL_WITHDRAWAL` order type ### Description The `TradingInteractionsUtils.withdrawPositivePnl` function uses a half of `TradingCommonUtils.getMinPositionSizeCollateral(t.collateralIndex, t.pairIndex)` (minimum position size in collateral tokens for a pair) value as a `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
high
other
false
false
## High: UserData for balancer pool exits is malformed and will permanently trap users ### Description UserData for balancer pool exits is malformed and will result in all withdrawal attempts failing, trapping the user permanently. ### Impact Users will be permanently trapped, unable to withdraw ### Recommendation E...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: safeApprove Prevents Multiple Pools of a Same Token-Pool Pair ### Description The `addPool()` function allows the owner to add new pools to the PoolRouter contract. Based on the implementation, the PoolRouter allows for multiple instances of the same Token-StakingPool pair, with different indices assigned to t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: Oracle returns an improperly scaled USDV/VADER price ### Description _Submitted by TomFrenchBlockchain_ Invalid values returned from oracle in vast majority of situations. #### Proof of Concept The LBT oracle does not properly scale values when calculating prices for VADER or USDV. To show this we consider...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SupplySchedule.getMintableDebug()`: `globalStartTimestamp` should get cached ### Description See `@audit` tags:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe use of transfer()/transferFrom() with IERC20 ### Description Some tokens do not implement the ERC20 standard properly but are still accepted by most code that accepts ERC20 tokens. For example Tether (USDT)'s transfer() and transferFrom() functions do not return booleans as the specification requires, a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: LIQUIDITY POOL COULD RUN OUT OF SUSD TOKENS ### Description When closing a position **long call**, the `_maybeExchangeBase` function is called with the argument `revertBuyOnInsufficientFunds` set to **false**. As a consequence, the liquidity pool will be able to swap sUSD for sETH without limits and could eve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sparse documentation and accounting complexity  Acknowledged ### Description Throughout the project, inline documentation is either sparse or missing altogether. Furthermore, few technical documents about the system’s design rationale are available. The recent releases' increased complexity makes it signifi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: initialize function can be included on constructor ### Description The `initialize` function on the `UniswapV2Pair.sol` contract can be included in the constructor without altering the contract functionality. By doing this, it is also possible to make `token0` and `token1` immutable. ### Recommendation Consid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Fragile signature verification ### Description ECDSA signatures are [inherently malleable](https://bitcoin.stackexchange.com/questions/83408/in-ecdsa-why-is-r-%E2%88%92s-mod-n-complementary-to-r-s), where it is possible to modify a valid signature to produce an equivalent signature over the same data. In Ether...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: No slippage protection when exchanging with synthethix ### Description The lack of slippage protection when exchanging assets on Synthetix can result in bricking the liquidation process for a borrower. ### Impact - Liquidations must be consistently available. The current logic could cause a DoS, making `Li...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TwoTokenPoolUtils's _getOraclePairPrice produces incorrect oraclePairPrice when balancerOracleWeight is set to be bigger than BALANCER_ORACLE_WEIGHT_PRECISION ### Description TwoTokenPoolUtils's _getOraclePairPrice() will produce bloated oraclePairPrice as long as `oracleContext.balancerOracleWeight` is big...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: `computePoolAddress()` will not work on ZkSync Era ### Description Source: https://github.com/sherlock-audit/2023-10-real-wagmi-judging/issues/104 ## Found by 0x52, HHK, shogoki When using the wagmi protocol, multiple swap can happen when borrowing or repaying a position. When the swap uses Uniswap v3 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
front-running
true
false
## Medium: commitRequested() front-run malicious invalid oralce ### Description Source: https://github.com/sherlock-audit/2023-09-perennial-judging/issues/27 ## Found by bin2chen Both `commitRequested()` and `commit()` can modify `lastCommittedPublishTime`, and both check that they cannot `pythPrice.publishTime _l...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
timing
false
false
## Low: Emit missing event information ### Description Emit missing event information: * `YieldDistributed` should have the `timestamp` parameter in addition to the amount
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Ownership Management ### Description ## ProtocolManager Overview In `ProtocolManager`, `renounce_admin` allows the contract admin to renounce their privileges via `storage.owner.write`, while `owner` reads the contract’s owner from `storage.owner.read`. However, the `sway-libs` does not use `storage....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Initialization
true
false
## Lines of code https://github.com/code-423n4/2022-05-backd/blob/2a5664d35cde5b036074edef3c1369b984d10010/protocol/contracts/tokenomics/Minter.sol#L104-L108 ## Vulnerability details https://github.com/code-423n4/2022-05-backd/blob/2a5664d35cde5b036074edef3c1369b984d10010/protocol/contracts/tokenomics/Minter.sol#L1...
Code4rena
5
Backd
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
false
false
## Medium: Incorrect handling of decimals in `LibLockedUnderlying::getPercentLockedUnderlying` results in an incorrect value being returned, affecting the temperature and Bean to maxLP gaugePoint per BDV ratio updates in each subsequent call to `SeasonFacet::gm` when `unripe asset supply < 10M` ### Description **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
gas
other
true
false
## Gas: `++i` costs less gas than `++i`, especially when it's used in `for`-loops (`--i`/`i--` too) ### Description 1. File: src/AxelarGateway.sol (line [225](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f936dce567/src/AxelarGateway.sol#L225)) 2. File: src/AdminMultisigBase.sol (...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Division by two should use bit shifting ### Description ` / 2` is the same as ` >> 1`. While the compiler uses the `SHR` opcode to accomplish both, the version that uses division incurs an overhead of [**20 gas**](https://gist.github.com/IllIllI000/ec0e4e6c4f52a6bca158f137a3afd4ff) due to `JUMP`s to and from 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
cross-chain
false
false
## Low: Incompatibility with Generic Wormhole Relayer ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: We have looked into the Generic Wormhole Relayer. Given that it is not live, and the general best practices are to send the Request-For-Relay in the sa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Staking tokens transfer to the staking contract will make a fraction of WETH rewards be lost forever ### Description If an amount of tokens are transferred directly into the stacking contract, instead of using the deposit() function, those tokens will be used for the calculation of rewards. ### Impact A fract...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unwarranted $GORPLES claiming ### Description In the current implementation of the **gorples-ido** program, the input `total_tokens` is not validated when initializing a new round using the `add_round` instruction. This value is only used in the `buy` instruction when the round is not in an overflow state (`!o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Undocumented mathematical operations to compute Augur payouts ### Description The Augur platform relies on a number of complex economic incentives to effectively align users’ behavior, thus preventing misuse and attacks on the system. Such incentives are mostly based on stakes and fees that users and stakeh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Inconsistent error handling for empty data ### Description In `_getSelector()`, when data is empty, it returns `0xEEEEEEEE` which is not a standard practice. ```solidity function _getSelector(bytes memory data) internal pure returns (bytes4 selector) { if (data.length == 0) { return 0xEEEEEEEE; ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bridge Fee Requirement Is Too Strict ### Description The _bridge() function in both L1 and native bridges checks for `msg.value == bridgeFee(payor, to, amount)` which is too strict and can cause bridging to fail if the fee changes before the transaction is executed. `bridgeFee()` points to `FeeOracleV1.feeFo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unreachable Error Code Blocks ### Description ## Error Code Review ## 1. GameAlreadyInitialized Error The error code block for the `GameAlreadyInitialized` error in `initialize_game` is inaccessible as the `#[account(init)]` attribute on `game_account` initializes a new `GameAccount`. ## 2. Redundant Condi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Revert if re-depositing into ICHI vaults with an amount exceeding `deposit0Max`/`deposit1Max` ### Description The `withdraw` function allows users to choose `TargetOnly` as the withdrawal type. When this option is selected, users will receive only the target token, and the withdrawn deposit tokens from the ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Change The Calculation Of Seed ### Description ## Code Review: Capy Labs Mix Function During the mix in `capy_labs.move`, a new UID is created for the calculation and deleted once the calculation is done. This operation is unnecessary and may be replaced by invoking `tx_context::fresh_object_address`. ## Sou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
false
false
## Medium: Native token can be flash minted, breaking protocol expectations ### Description Protocols have been designed with the assumption that there is a fixed amount of ETH in existence. For example, ETH balances are often stored as `uint96` on the knowledge that it will be impossible to overflow. The current inte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RPC starkNet_signMessage - Fails to Display the User Account That Is Used for Signing the Message ✓ Fixed ### Description The signing request dialogue does not display the user account that is being used to sign the message. A malicious dapp may pretend to sign a message with one account while issuing an RPC ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong amount in event emission ### Description **Severity**: Informational **Status**: Acknowledged **Description** The function `setFee` in the `StableSwapPool.sol` and `XYKPool.sol` contracts emits a `FeeChanged` event every time a new fee is set. This event emits the new amount but is wrongly set. 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
other
true
false
## High: There is a calculation error in `AuraVault::redeem()` ### Description The amount of funds that users can withdraw decreases, leading to a loss of funds for users. ### Proof of Concept We can see that `AuraVault::redeem()` confuses AuraVault’s shares with `rewardPool`’s shares. AuraVault’s shares need to be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Events and variables which are not used in UnmarshalTokenVesting ### Description **Description** Event DistributionRemoved and variable isFinalized declared but never used. **Recommendation**: Remove them if they are not needed.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: unnecessary store ### Description In the function batch of `Ladle.sol`, at the operation `GIVE`, the value of vault is stored and is deleted directly afterward, rendering storage unnecessary. Maybe the solidity compiler already optimizes this. Recommend removing the "vault =". **[albertocuestacanada (Yield)...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: `claimFor` allows attackers to steal rewards via flash swap ### Description The protocol is designed to support interest-bearing tokens, some of which require explicit calls to claim rewards (e.g., via `claim()` or `harvest()`). However, the `Pair` contract does not include functionality to claim such 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
signature
false
false
## High: Players have complete freedom to customize the fighter NFT when calling `redeemMintPass` and can redeem fighters of types Dendroid and with rare attributes ### Description The function [redeemMintPass](https://github.com/code-423n4/2024-02-ai-arena/blob/cd1a0e6d1b40168657d1aaee8223dc050e15f8cc/src/FighterFarm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing check on the vesting start block when creating streams ### Description When a user creates a stream with the `createStream()` function, there is no check to ensure that the owner has set the `vestingStartBlock` variable. The variable may remain uninitialized as 0. A better approach is to include a `v...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hash value name inconsistency ### Description https://github.com/code-423n4/2023-10-badger/blob/main/packages/contracts/contracts/BorrowerOperations.sol#L33-L35 We use But in `permitPositionManagerApproval` we use `approval` instead of `status` https://github.com/code-423n4/2023-10-badger/blob/main/packa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing `onlyInitializing` modifier in `StakingContract` ### Description **Description:** While it is not currently possible for the functions to be invoked elsewhere, both [`StakingContract::initializeRoles`](https://code.zeeve.net/zeeve-endeavors/benqi_smartcontract/-/blob/b63336201f50f9a67451bf5c7b32ddcc4a8...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _handleAltOpHash() executed even in error situations ### Description If `_validateSolverOperation()` fails, then `_handleAltOpHash()` is still executed. There are two main reasons for `_validateSolverOperation()` to fail: - **Block Number Related**: Errors with `block.number` don't seem to be a good reason 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
low
reentrancy
true
false
## Low: Prefer `calldata` to `memory` for external function parameters ### Description Prefer `calldata` to `memory` for external function parameters: File: `src/DropBox.sol`: ```solidity 158: function removeOneTimeCodeToAddress(string memory code, address allowedAddress) external only(apiAddress) { 203: string m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: Freezing the deposit in MetaVault indefinitely ### Description ## Severity **Impact:** High **Likelihood:** Medium ## Description: Consider the following --> 1.) Victim has deposited into the LendingAssetVault.sol (what we call the Meta Vault), let's say when the victim deposited the block.number = 50 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
other
false
false
## Medium: Input parameters in `notify()` not checked ### Description `notify()` can be called with `amount` equal to zero: https://github.com/keep3r-network/StakingRewardsV3/blob/13ecc6966ae1a413f62224382bfd4d64b1a22351/contracts/StakingRewardsV3-1.sol#L299 ### Recommendation It is recommended to add `require(amount...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
overflow
true
false
## Gas: For Operations that will not overflow, you could use unchecked ### Description **Protocol:** Fixed in commit [f7a5dac](https://github.com/SwapExchangeio/Contracts/commit/f7a5dac3141f71b06a6d4ad3e44d657bc55ee441). **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
high
other
false
false
## High: Interaction of ETH and WETH tokens in _depositToken() ### Description If the contracts use a real WETH token contract address for the state variable `wETH`, there can be some undesirable interactions with ETH deposits. `_depositToken()` checks that the token parameter is `wETH` and then only processes ETH 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
high
reentrancy
true
false
## High: Reentrancy Due To A Low-Level Call ### Description ## ExecuteOrder Function Analysis The `executeOrder` function performs execution fee compensation by transferring ether through a low-level call. The subsequent storage updates perform in a manner that resembles a direct violation of the Check-Effects-Intera...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Code Optimization ### Description ## Unnecessary Signing and Seed Usage There is unnecessary signing and seed usage in certain `token::transfer` and `burn_nft` function calls. Specifically, in `deposit`, calls to `token::transfer` do not require seeds or a signed invocation. In `Withdraw`, there is a call 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...
solodit_api
medium
token
true
true
_Submitted by csanuragjain_ #### Impact Contract instability and financial loss. This will happen if one of the allowed contract calls sendCollaterals with non whitelisted token (may happen with user input on allowed contract) #### Proof of Concept 1. Navigate to contract at <https://github.com/code-423n4/2021-12-...
Code4rena
5
Yeti Finance
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Unreachable function due to access restriction ### Description The `viewCollectReward`function in the **BitcoinStake** contract is restricted by the `onlyBtcAgent`modifier, allowing only the **BitcoinAgent** contract to call it. However, a review of the codebase indicates that **BitcoinAgent** does not invoke ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Two-Step Ownership Transfer ### Description The **BellumFactory** contract inherits from OpenZeppelin's **Ownable** but doesn't implement a two-step ownership transfer process. With the current single-step transfer, if the owner accidentally transfers ownership to an incorrect address, all owner-privil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
true
false
## Gas: Emitting storage values instead of the memory one ### Description Here, the values emitted shouldn’t be read from storage. The existing memory values should be used instead: ### NounsDAOLogicV2.sol.\_setVotingDelay(): Emit `newVotingDelay` instead of `votingDelay` (Save 1 SLOAD: 100 gas) https://github.com/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
gas
other
true
false
## Gas: Remove import ``forge-std/console.sol`` ### Description It's used to print the values of variables while running tests to help debug and see what's happening inside your contracts But since it's a development tool, it serves no purpose on mainnet. 1 result - 1 file: https://github.com/code-423n4/2023-01-ti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User-Specific Fee Calculation in `OasisSwapRouter.getAmountsOut()` and `OasisSwapRouter.getAmountsIn()` ### Description **Update** Marked as "Fixed" by the client. Addressed in: `cd32424d4aad94eb8fc204dd35abbaed9fa9dcd7`. The OasisSwap team implemented additional `OasisSwapRouter.getAmountsOut()`and`OasisSwap...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Daily withdrawal limit decreases with `totalPoolSize` reduction ### Description In the `DIAExternalStaking` contract, the daily withdrawal limit calculation in the `checkDailyWithdrawalLimit` modifier is tied to the `totalPoolSize`. The issue arises because: 1. The daily withdrawal limit is calculated as: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: ReentrancyGuardUpgradeable is not used in CasimirFactory and CasimirRegistry ### Description **Description:** CasimirRegistry and CasimirFactory inherit ReentrancyGuardUpgradeable but nonRentrant modifier is unused in bopth contracts. **Recommended Mitigation:** Considering removing `ReentrancyGuardUpgradeabl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: ERC20ConvictionScore.acquireConviction implements wrong governance checks ### Description ## Handle cmichel ## Vulnerability details ## Vulnerability Details There are two issues with the governance checks when acquiring them from an NFT: #### Missing balance check The governance checks in `_updateCon...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
false
false
## High: Withdraw proxy's claim() endpoint updates public vault's yIntercept incorrectly. ### Description ## Severity: High Risk ## Context: - WithdrawProxy.sol#L235-L261 - WithdrawProxy.sol#L239 ## Description: Let parameter description y₀ - theyIntercept of our public vault in the question. n - the current e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `Empty blocks` should be _removed_ or _Emit_ something ### Description **Description:** Code contains empty block **Recommendation:** The code should be refactored such that they no longer exist, or the block should do something useful, such as emitting an event or reverting.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: OZ ERC1155Supply vulnerability ### Description _Submitted by pauliax, also found by hubble and defsec_ #### Impact Overlay uses OZ contracts version 4.3.2: and has a contract that inherits from ERC1155Supply: This version has a recently discovered vulnerability: In your case, function unwind relies on...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: insertSorted iterates more than max iterations parameter ### Description ## Severity: Low Risk **Context:** DoubleLinkedList.sol#L91 **Description:** The `insertSorted` function iterates `_maxIterations + 1` times instead of `_maxIterations` times. **Recommendation:** Consider changing the code as follows: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscellaneous Gas Optimisations ### Description This section describes general observations made by the testing team in which contract callers are able to generate gas savings:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Impact of using `from_utf8_trim_null()` for objects `RewardPool`, `Holder` and `Reward`. ### Description **Update** Marked as "Acknowledged" by the client. **File(s) affected:**`utils.rs` **Description:** There are three issues related to using the function `from_utf8_trim_null()` for the objects `RewardPool...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: depositManaged can be used by locks to receive unvested VELO rebase rewards ### Description Velo offer rebase emissions to all Lockers. These are meant to be `depositFor` into an existing lock, and directly transferred if the lock just expired. The check is the following: ```solidity if (_timestamp > _lock...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Consider using ERC1155Holder instead of ERC1155Receiver due to OpenZeppelin's latest `v5.0` release candidate changes ### Description View OpenZeppelin's v5.0 release candidate changes [here](https://github.com/OpenZeppelin/openzeppelin-contracts/releases/tag/v5.0.0-rc.0). *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
gas
other
true
false
## Gas: Function `processRebond()` can be more optimized (Save 207 Gas on average) ### Description Gas benchmarks based on function `rebondWithHint()` which calls our function of interest. | | Min | Max | Avg | | ------ | --- | ------- | ----- | | Before | 229425 | 231632 | 230529 | After | 229218 | 231425 ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
true
false
## High: Mathematical Incompatibility Between FlexVotingClient and QuadraticVoteStrategy ### Description An incompatibility has been discovered when FlexVotingClient contract is used with a quadratic Strategy for votes because `FlexVotingClient` contract computes voting weights linearly while the `totalWeight` limit 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
storage
false
false
## Low: Missing payable modifier of router methods ### Description Severity: Low Risk Context: Router.sol#L411-L417, Router.sol#L439-L442 Description: The router contract's permitBatchAndCall method is payable to enable natively funded batch op- erations. However, the underlying multicall relies on delegatecall and th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: For functions, follow Solidity standard naming conventions (internal function style rule) ### Description The above codes don't follow Solidity's standard naming convention, internal and private functions : the mixedCase format starting with an underscore (\_mixedCase starting with an underscore)
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Exchange Rate Manipulation via Direct Transfers ### Description **Severity** : Medium **Status**: Acknowledged **Description** In the StHEU the _exchangeRate() calculation relies on the balance of HEU tokens held by the contract (totalHEU). The contract does not differentiate between HEU tokens locked t...
0