prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Error-prone approach to data validation ### Description The system lacks robust data validation checks. The contracts call assertion functions to validate the results of external calls and assume that reentrancy checks will be performed in nested function calls rather than executing per-function reentrancy che...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Locked Ether ### Description The `Collection` contract inherits from `ERC721A.sol`, which carries `payable` functions on its original implementation, influenced by [EIP-712](https://eips.ethereum.org/EIPS/eip-721). Specifically, the functions are: `approve`, `transferFrom`, `safeTransferFrom(from, to, token...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: A reverting fallback function will lock up all payouts โœ“ย Fixed ### Description In BoxExchange.sol, the internal function `_transferEth()` reverts if the transfer does not succeed: **code/Fairswap\_iDOLvsETH/contracts/BoxExchange.sol:L958-L963** ``` function \_transferETH(address \_recipient, uint256 \_amo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: Liquidator gets more debt than usual ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0xc1FBF54B25816B60ADF322d8A1eaCA37D9A50317 Impacts: * Protocol insolvency ## Description ## Brief/Intro Liquidator gets more borrow balance because of the liquidaton bonus. ## 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: bitcoin-spv - unnecessary logic in BytesLib.toBytes32() โœ“ย Addressed ### Description The heavily used library function `BytesLib.toBytes32()` unnecessarily casts `_source` to `bytes` (same type) and creates a copy of the dynamic byte array to check itโ€™s length, while this can be done directly on the user-provid...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple accesses of a mapping/array should use a local variable cache ### Description Caching a mapping's value in a local storage or calldata variable when the value is accessed multiple times saves ~42 gas per access due to not having to perform the same offset calculation every time. **Help the Optimizer b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
false
false
## Medium: Potential token transfer from unrelated account ### Description Theย `CoverReassurance`ย contractย [contains a mechanism](https://github.com/neptune-mutual-blue/protocol/blob/73fc82fbe0d1388867b7df669983fe42760daeb1/contracts/core/lifecycle/CoverReassurance.sol#L66)ย to retrieve funds from an arbitrary account,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Server-Side Validation Allows Tampering with Pool Exchange Rates in the Dapp ### Description The backoffice endpoint `/backoffice/api/pools-exchange-rates` accepts POST requests that directly update exchange rate records for investment pools. The server does not validate the rate or `createdAt` paramet...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Challenge Ids can be overwritten ### Description The `createTransaction()` function in the `Escrow` contract uses a `challenge_id` mapping to track transactions by their challenge identifier. However, there is no check to prevent duplicate `_challengeId` values. When a transaction is created with a `_challeng...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing docstrings [core and sample] ### Description Many functions in the code base lack documentation. This hinders reviewersโ€™ understanding of the codeโ€™s intention, which is fundamental to correctly assess not only security, but also correctness. Additionally, docstrings improve readability and ease mainten...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 initialization of PausableUpgradeable Contract ### Description **Severity**: Informational **Status**: Resolved **Description** In the contract Narwhal Trading Callbacks, the contracts inherits PausableUpgradeable which has an init method __Pausable_init that needs to be called in the `initialize()`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Wrong totalWeight in Voter.sol ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended effect of original...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setDebtInterestApr should accrue debt first ### Description ## Lines of code https://github.com/code-423n4/2022-04-jpegd/blob/e72861a9ccb707ced9015166fbded5c97c6991b6/contracts/vaults/NFTVault.sol#L212 ## Vulnerability details ## Impact The `setDebtInterestApr` changes the debt interest rate without fir...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No Events for State Changes ### Description Adding events to the `setEid` and `setNativeTokenRecipient` functions would provide better traceability of state changes. ### Recommendation Consider defining and emit events for these functions. ``` event EidSet(uint32 indexed newEid); event NativeTokenRecipientSe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unvalidated constructor input allows a delay which can overflow for early selfdestruct. ### Description The `selfDestructDelay` variable is set on line [52] in the constructor without validation. It is then used in the `require()` on line [52]. If `selfDestructDelay` is set to a value of the order `uint(0) - n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: The PythNode library process function implementation does not account for pythDataexpo being greater than PRECISION ### Description Report type: Smart Contract Target: https://testnet.snowtrace.io/address/0xA758c321DF6Cd949A8E074B22362a4366DB1b725 Impacts: * Contract fails to deliver promised returns, 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
other
true
false
## Low: Partial fills don't recycle ETH ### Description ## Severity: Low Risk **Context:** VeryFastRouter.sol#L211-L425 **Description:** After several fixes are applied, the following code exists. If the sell can be filled completely, then ETH is recycled. However, when a partial fill is applied, then ETH is not...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_execute()` in `SecurityCouncilNomineeElectionGovernor` is vulnerable to blockchain re-orgs ### Description In `SecurityCouncilNomineeElectionGovernor`, when a user calls `execute()`, he only needs to provide the `proposalId` and current election index (in `callDatas`): [SecurityCouncilNomineeElectionGoverno...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee-on-transfer/deflationary tokens will not be supported ### Description **Description:** When creating a new order, `LimitOrderRegistry::newOrder` assumes that the amount of deposited tokens is equal to the function parameter plus the balance before the deposit. For tokens which take a fee on every transfer,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
true
false
## Medium: Potential Re-Entrancy/Checks-Effects-Interactions Pattern Violations ### Description **Update** From the team : **File(s) affected:**`packages/protocol/contracts/core/fintroller/Fintroller.sol`, `packages/protocol/contracts/oracles/ChainlinkOperator.sol`, `packages/proxy-target/contracts/HifiProxyTarget.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
cross-chain
false
false
## High: Multiple Cross-Chain borrows using same collateral ### Description The failure to lock collateral in `borrowCrossChain` before sending cross-chain borrow requests via LayerZero V2 enables users to initiate multiple borrow requests on different chains (e.g., Chain B and Chain C) using the same collateral on Ch...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Floating Pragma ### Description **Severity**: Informational **Status**: Unresolved **Description** The smart contracts are using a floating pragma version (^0.8.0). Contracts should be deployed using the same compiler version and settings as were used during development and testing. Locking the pragma versi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect ownerOf() implementation makes veALCX non-ERC721 compliant, breaking composability ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol Impacts: - Contract fails to deliver promised returns, but doesn't lose value #...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: vars.availableLiquidity is not capped by the reserve's total managed assets ### Description The following formula assumes there is enough liquidity in the corresponding tranched reserve in the lending pool to cover the unused flow (which might not be the case). ```solidity vars.availableLiquidity = IERC20(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vulnerable liquidity slippage calculation doesnโ€™t ensure slippage protection due to unscaled assets sum ### Description [/contracts/pool-manager/src/helpers.rs# L426](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafca9db1138d60adcf513588/contracts/pool-manager/src/helpers.rs# L426) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
liquidation
true
false
## Gas: IF's/require() statements that check input arguments should be at the top of the function ### Description Checks that involve constants should come before checks that involve state variables, function calls, and calculations. By doing these checks first, the function is able to revert before wasting a Gcoldslo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
false
false
## High: If operatorFlag == false , attacker can steal all NFTs within the contract. ### Description ## Attack Overview on ERC777-like Token ### Context: Core.sol#L169 ### Description: For the attack, the attacker will need to first deploy an ERC777-like custom token and then a Velodrome pool with it. Let's say 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
overflow
false
false
## Medium: Implementation differences between RLP length calculation vs. decoding ### Description There are two separate implementations of RLP decoding, one in the `RLPInput` hierarchy for doing a complete decoding, and another independent implementation in `RlpUtils` for decoding only the offsets and lengths of RLP ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete NatSpec Documentation ### Description The `B14G` project lacks comprehensive NatSpec comments for functions, state variables, and contracts. NatSpec is a widely adopted standard for documenting Solidity contracts, providing clear and structured explanations for developers, auditors, and end-users. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `collateralizeWLp` can be bypassed even when collateralization is paused ### Description Admin can pause collateralization for a specific mode to prevent users from providing more collateral either via `collateralize` or `collateralizeWLp`. However, due to not properly using internal accounting when trackin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The depositContract variable does not have the optimal type ### Description The `depositContract` variable is initialized only in the constructor and not changed any more. https://github.com/p2p-org/p2p-eth2-depositor/blob/main/src/P2pEth2Depositor.sol#L15 The current variable type (mutable) is designed for 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
liquidation
true
false
## Low: Most of the event parameters are of the `uint256` data type, but `uint128` variables are used when emitting them ### Description The `collateral_amount` of the `Mint` event are uint256 data type. https://github.com/code-423n4/2024-11-ethena-labs/blob/main/contracts/ustb/IUStbMintingEvents.sol#L17 However `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
true
false
## Medium: Hats can be overwritten ### Description Child hats can be created under a non-existent admin. Creating the admin allows overwriting the properties of the child-hats, which goes against the immutability of hats. ### Recommendation Check if admin exists, before minting by checking any of its properties again...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Liquidation
true
true
The proceeds from the collateral auctions will not be used to fill the debt shortfall, but be transferred directly to the borrower. ### Proof of Concept Assume N is an allowed NFT, B is a borrower, the vault V is `_vaultInfo[B][N]`: 1. B add two NFTs (N-1 and N-2) as collaterals to vault V. 2. B [increaseDebt()](...
Code4rena
5
Backed Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: Last collateral check is not safe ### Description Liquidation might work incorrectly. ### Proof of Concept There is a function `purchaseLiquidationAuctionNFT()` to allow liquidators to purchase NFTs on auction. In the line 273, the protocol checks if the current NFT is the last collateral using the `coll...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrowers could be able to borrow avoiding the borrowCap ### Description Let's assume that the `borrowCap` has been configured with a value near `MAX_SANE_DEBT_AMOUNT` and that we are in a situation where `Cache.initVaultCache` has overflowed when the snapshot was taken. `Cache.initVaultCache` overflows when...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BassetStatus enum defines multiple unused states ย Won't Fix ### Description The `BassetStatus` enum defines several values that do not seem to be assigned in the code: * Default (different from โ€œNormalโ€?) * Blacklisted * Liquidating * Liquidated * Failed **code/contracts/masset/shared/MassetStructs.sol:L59...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `referralClaimThreshold` validation ### Description Users can claim their `referral rewards` accrued in the contract by calling the `GachaTickets::claimReferralFees` function : However, the `documented behavior states` that `referrals should only be able to claim their rewards once they hit a referra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect `unlockTime` can DOS `withdrawGovernanceAsset` ### Description _Submitted by csanuragjain_ `unlockTime` is set incorrectly. #### Proof of Concept 1. Navigate to contract at 2. Observe the assertGovernanceApproved function 3. Assume assertGovernanceApproved is called with sender x and tar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Initial Deposit to One Collateral Tracker Could Be Zero ### Description When deploying a new Panoptic pool, the deployer is required to provide a small amount of full-range liquidity to the underlying AMM pool. The returned amounts, `amount0` and `amount1`, are then divided by `100` and deposited into both ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: Position size validation uses pre-fee amounts ### Description The protocol incorrectly validates position sizes using pre-fee amounts rather than the actual position size after fees are deducted (`totalPositionSizeFeeP`). This affects two key areas: **1. Counter trade collateral return:** The calculated `exc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Short Positions Are Not Limited, Leading to Potential Protocol Break ### Description **Update** Fixed. Global short position sizes can now be limited. However, it is up to the client to correctly set these limits. **File(s) affected:**`Pool.sol` **Description:** Although the maximum global long position siz...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `trustedForwarder` can be used to impersonate any account or contract ### Description There is an overriden `_msgSender()` function https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/FantiumNFTV3.sol#L993 which allows the `trustedForwarder` address owner to sp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete NatSpec Documentation and Test Coverage ### Description At least all `public` and `external` functions that are not `view` or `pure` should have `NatSpec` comments. During the security review, it was observed that the multiple publicly-accessible functions did not have any `NatSpec` comments. Moreo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can stake without an active subscription to the author ### Description To stake, a subscriber must have an active subscription to the author. However, in the `StakingVault::_deposit` function, the following checks are used to restrict staking: ``` require(author != address(0), "UI"); require(authorTok...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Any oracle member can censor almost quorum report variants by resetting its address ### Description ## Issue Report **Severity:** Low Risk **Context:** Oracle.1.sol#L189-L201 **Description:** The admin or an oracle member can DoS or censor almost quorum reports by calling the `setMember` endpoint, whic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
true
false
## Low: USE CALL INSTEAD OF SEND OR TRANSFER ### Description The usage of send or transfer limits the amount of gas send in the transaction to 2300. This can be considered a safeguard to avoid reentrancy. However, given the current protections of the contracts, it does seem feasible to use call function without furthe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: Unexpected Transaction Revert ### Description ## Issue in veFLUO's Deposit Function This issue arises in veFLUOโ€™s deposit, where the execution of a statement results in a revert for a specific case. ## Problem Description If the user has already deposited some amount for vesting and calls deposit again w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Voting Logic Issue: Lack of Handling for Amendments without Reached Quorum ### Description This issue has been identified in the `voteOnMetaVesTAmendment` function of the [MetaVesTController](https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/MetaVesTController.sol#L598...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: Use custom errors rather than ### Description [G-16] Use custom errors rather than revert()/require() strings to save gas Custom errors are available from solidity version 0.8.4. Custom errors save ~50 gas each time theyโ€™re hit by avoiding having to allocate and store the revert string. Not defining the strin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The relayer is a single point of failure ### Description Because the relayer is a centralized service that is responsible for critical functionalities, it constitutes a single point of failure within the Mosaic ecosystem. The relayer is responsible for the following tasks: - Managing withdrawals across chain...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [01] Missing update of `prevAgentId` in `promptMulti` ### Description The `promptMulti` function in `AgentInference.sol` is intended to optimize repeated calls to `agentNft.virtualInfo(agentId).tba` by caching the previous `agentId` and its corresponding TBA address. However, the variable `prevAgentId` is neve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contracts do not check if enough tokens balance to transfer ### Description **Severity**: Informational **Status**: Unresolved **Description** Method unstake(...) and transferTotalReward(...) do not check if the contract has enough balance to transfer the cLFi tokens. **Recommendation**: Add checks to ensu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Internal Functions Called Only Once can be Inlined ### Description During the security assessment, it was observed that both the internal function `_checkCollateralRate()` within the `USDz` contract and the `_updateVestingAmount()` internal function within the `sUSDz` contract were only invoked once. While mo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Incorrect event emission when removing fees via the `PolygonStrategy::updateFee` ### Description Fee for a given index can be removed by passing `_feeBasisPoints = 0` for a given fee index. Current logic is swapping the fee at the index with that of the last index in the `fees` array, and then popping the las...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: wrong calculation of amount of Ltokens to seize in liquidateCrossChain function ### Description If a borrower cross borrows tokens in chainB while giving collateral in chainA.Then if he was undercollateralized then a liquidator can call liquidateCrossChain function in chain B to liquidate that borrower. If we...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PRBMATH `SD59x18.exp()` reverts on hugely negative numbers. ### Description `ContinuousGDA.sol` inherits a version of `PRB Math` that contains a vulnerability in the `SD59x18.exp()` function, which can be reverted on hugely negative numbers. `SD59x18.exp()` is used for calculations in `ContinuousGDA.sol#pur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State Modification via Mutable Flag Value ### Description ## Potential State Inconsistency Issue in AddEmission and RemoveEmission In `AddEmission` and `RemoveEmission`, there is a potential state inconsistency issue due to the dynamic and mutable nature of `hook.enabled`. Both `AddEmission` and `RemoveEmissi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Application data remains exposed after first unlock ### Description The Data Protection entitlement is not enabled in the Xcode project for the App. As a result, the default Data Protection class is used for files which only encrypts data until the user unlocks their device for the first time since booting ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `maxTotalDeposits` is not checked properly inside `_beforeDeposit`. ### Description Ebisu vault implements a `_beforeDeposit` check before users `deposit`/`mint` to ensure it does not exceed the configured `maxPerDeposit` and `maxTotalDeposits`. ```solidity function deposit(uint256 assets, address receiv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: withdraw timelock can be circumvented ### Description _Submitted by cmichel_ One can withdraw the entire `PrizePool` deposit by circumventing the timelock. Assume the user has no credits for ease of computation: - user calls `withdrawWithTimelockFrom(user, amount=userBalance)` with their entire balance. This...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: A single malicious observer can fill the block space with `MsgGasPriceVoter` messages without proper gas compensation resulting in griefing blocks ### Description ZetaChain blocks can be griefed by a single observer, resulting in the block space being filled with `MsgGasPriceVoter` messages, preventing othe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add a timelock to BaseStrategy:setPerfFeePct ### Description ## Handle Dravee ## Vulnerability details ## Impact To give more trust to users: functions that set key/critical variables should be put behind a timelock. ## Proof of Concept https://github.com/code-423n4/2022-01-sandclock/blob/main/sandcloc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prysm incorrectly caches the result of `verify_data_column_sidecar_inclusion_proof` check ### Description Consensus spec states that: > In the verify_data_column_sidecar_inclusion_proof(sidecar) check, for all the sidecars of the same block, it verifies against the same set of kzg_commitments of the given bea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple `address` mappings can be combined into a single `mapping` of an `address` to a `struct`, where appropriate ### Description Saves a storage slot for the mapping. Depending on the circumstances and sizes of types, can avoid a Gsset (20000 gas) per mapping combined. Reads and subsequent writes can also ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: User may lose funds if they call `BalancerRouter::joinBalancerAndPredeposit` ### Description [`BalancerRouter::joinBalancerAndPredeposit`](https://github.com/sherlock-audit/2024-12-plaza-finance/blob/main/plaza-evm/src/BalancerRouter.sol#L23C1-L40C6) calls [`Predeposit::deposit`](https://github.com/sherloc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect NatSpec in contract and constructor declarations ### Description In the `MerkleDistributor.sol` contract, the NatSpec specifications are slightly wrong, considering they are referring to the contract `TokenLock.sol`, which belongs to another `NFTIfi's` contract set. - contracts/MerkleDistributor.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: safer implementation of tokenExists ### Description ## Handle gpersoon ## Vulnerability details ## Impact The function tokenExists does only limited checks on the existence of cards. It doesn't doublecheck that tokenIds[_card] != 0 This is relevant because 0 is the default value of empty array elements. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Remove `resetICHIVaultApprovals` ### Description In AegisVaultCore.sol, `resetICHIVaultApprovals` is now open to users, but is still in the IAegisVaultOwnerActions interface. Recommend moving it to `IAegisVaultActions` interface instead.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SwapperCallbackValidation doesn't do anything, opens up users to having contracts drained ### Description The `SwapperCallbackValidation` library that is intended to be used by contracts performing swaps does not provide any protection. As a result, all functions intended to be used only in a callback setti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
false
false
## Gas: [01] State variables only set in the constructor should be declared immutable (2 instances) ### Description Deployment. Gas Saved: **117 275** Minimum Method Call. Gas Saved: **104** Average Method Call. Gas Saved: **110** Maximum Method Call. Gas Saved: **110** Overall gas change: **-678 (-0.723%)** Avoi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SecurityCouncilMemberElectionGovernor` Owner Can Change `votingPeriod` During an Active Election ### Description ### Impact * In `SecurityCouncilMemberElectionGovernor` contract : `relay` function enables the contract owner from making calls to any contract address. * And in `SecurityCouncilMemberElect...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: execGasPrice and dataGasPrice might be 0due to division errors ### Description `execGasPrice` and `dataGasPrice` might be 0 due to division errors. ### Recommendation Instead of checking whether `X.{gasPrice, toNativeRate}` are non-zero, it might be best to check whether `execGasPrice` and `dataGasPrice` are ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Index out of bounds error when properties length is more than attributes length breaks minting ### Description _Submitted by dipp, also found by 0x1f8b, 0x52, 0xc0ffEE, 0xSky, bin2chen, datapunk, eierina, elad, hansfriese, hyh, izhuer, Jeiwan, Migue, R2, and scaraven_ [MetadataRenderer.sol#L188-L198](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
overflow
true
false
## Medium: The removeServiceAddress() function fails with Overflow error ### Description **Severity**: Medium **Status**: Resolved **Description** In FulfillableRegistry.sol,the removeServiceAddress() function fails with an Underflow error. This is because _serviceCount is never incremented when adding the servic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Potential gas savings by terminating early ย Acknowledged ### Description If a function invocation is bound to revert, one should try to revert as soon as possible to save gas. In `ForgeValidator.validateRedemption` it is possible to terminate more early: **code/contracts/masset/forge-validator/ForgeValidator...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `path` length not checked ### Description `path` length is not checked: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/LeverageActions.sol#L107 https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d41...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: Deprecated 'transfer usage. ### Description **Severity**: Low **Status**: Resolved **Description** TestStake::emergency WithdrawMatic()#2167. EIP1884 [https://eips.ethereum.org/EIPS/eip-1884] increases the gas cost of certain opcodes, possibly making contracts go over the 2300 gas limit imposed by `transfer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: `GiantMevAndFeesPool.previewAccumulatedETH` function: "accumulated" variable is not updated correctly in for loop leading to result that is too low ### Description The `GiantMevAndFeesPool.previewAccumulatedETH` function () allows to view the ETH that is accumulated by an address. However the formula is no...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious proposer can DOS bridge withdrawals ### Description ### Finding description and impact Anybody can create an L2 and its bridge. They set their own proposer and challenger to handle the output proposals. If the proposer sets the L2 block number of an output proposal to the max value of a `uint64`,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
cross-chain
false
false
## Gas: memory can be changed to calldata to save gas ### Description In Solidity, variables declared as `memory` are copied into memory during execution, which increases gas costs. When dealing with external function inputs, the `calldata` keyword is more gas-efficient since it avoids copying and operates directly 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
high
liquidation
true
false
## High: Incorrect formula used in function `Market.computeClosingFactor()` ### Description Incorrect amount of assets that will be liquidated ### Proof of Concept Function `BigBang._liquidateUser()` is used to liquidate an under-collateralization position in the market. This function calls `BigBang._updateBorrowAnd...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It makes more sense to check `signatures.length > 0` than `signer != address(0)` for multisigs ### Description In `SignatureValidator.recoverAddrImpl()` for `SignatureMode.Multisig`, it is checked that last `signer != address(0)` (`SignatureValidator.sol#L92`) after validating each signature in the array `sign...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 paying too much interest won't get a refund ### Description The `pay` method of `LoanManager` explicitly says in its NatSpec docs: > /// @dev Does not refund when too much interest is paid. This means that when a borrower repays more interest than what he owes, the excess value will be given to the lend...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
true
## Low: AntePoolFactory does not validate create2 return addresses ### Description The AntePoolFactory uses the `create2` instruction to deploy an AntePool and then initializes it with an already-deployed AnteTest address. However, the AntePoolFactory does not validate the address returned by `create2`, which will 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
oracle
false
false
## Low: Redundant Functionality ### Description ## UniswapOracle Token Price Functionality In `UniswapOracle`, `getTokenPrice` utilizes `consult` to receive the time-weighted means of tick and liquidity for a given Uniswap V3 pool. This is a redundant functionality as it is already present in `OracleLibrary::consult`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MED - Not using safeTransfer may cause sweep to fail for some tokens ### Description ## ModeStaking and IERC20 ModeStaking uses `IERC20` from `forge-std`: ## The Interface The interface is defined as follows: **Note:** This will fail for tokens that do not return a boolean (e.g., USDT). ## Recommenda...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: does not use correct verifyingContract address ### Description ERC-7739 introduces a rehashing scheme designed to prevent signature replay across smart accounts that share signers. To accomplish this, the ERC-7739 logic wraps the hash provided to the ERC-1271 `isValidSignature()` function within a new EIP-712...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Role Transfer Not Following Two-Step Pattern ### Description **Update** The client acknowledged the issue. **File(s) affected:**`Leverage.sol`, `BaseLoan.sol`, `AddressManager.sol`, `AuctionLoanLiquidator.sol` **Description:**`Solmate/Owned` allows the owner of the inheriting contracts to call `transferOwner...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Buffer total supply can be reset ### Description The `addLiquidityToBuffer` function can be called multiple times in order to reset the total supply of the buffer. The `addLiquidityToBuffer` function allows users to initialize a buffer or add liquidity for an already initialized buffer. If the `_bufferAssets...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
access-control
true
false
## Medium: Commented-out blacklist check allows restricted transfers ### Description In [`PerpetualBond::_update`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/PerpetualBond.sol#L508-L510), the line intended to restrict transfers between non-blacklisted users is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
logic-error
false
false
## Low: Missing check for `_feeBasisPoints > 0` in `PolygonStrategy::addFee` ### Description `PolygonStrategy::addFee` does not check if `_feeBasisPoints > 0` when adding a new fee element to the `fees` array. This is inconsistent with the `PolygonStrategy::updateFee` logic where `_feeBasisPoints = 0` triggers a remov...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Short cooldown and short staking cycles increase validator churn ### Description A 24-hour cooldown period and short staking cycles (e.g., seven days) make joining/exiting timing highly predictable and enable low-friction validator churn that undermines liveness and economic stickiness. With a 24-hour cooldow...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: InsuranceFund depositors can be priced out & deposits can be stolen ### Description _Submitted by cmichel, also found by danb_ The `InsuranceFund.deposit` function mints initial `shares` equal to the deposited amount. The deposit / withdraw functions also use the VUSD contract balance for the shares computa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: A vault owner can frontrun a plugin call and change its implementation ### Description _Submitted by 0xNineDec, also found by 0x1f8b, infosec&#95;us&#95;team, kenzo, pashov, and xiaoming90_ Each vault owner can manage freely the creation and deletion of plugins at any time if the vault was deployed by call...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: approve race conditions ### Description Origin conforms to the ERC20 token standard, which contains an unavoidable race condition. This race condition is only exploitable by sophisticated attackers, but could result in loss of funds for Origin users. The ERC20 standard requires two functions, `approve` and `t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: `public` functions not called by the contract should be declared `external` instead ### Description Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`. *There are 8 insta...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NounsDAOV3Proposals.cancel()` should allow to cancel the proposal of the Expired state ### Description cancel() does not allow to cancel proposals in the final states Canceled/Defeated/Expired/Executed/Vetoed. The Canceled/Executed/Vetoed states are final because they cannot be changed once they are set....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LendingPool::getNormalizedIncome() returns stale liquidity index ### Description In `LendingPool` the functions that rely on the indexes (liquidity index, usage index) update them before executing state changes, in order to ensure they are working with accurate data. \ \ On the other hand `LendingPool::getN...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee on transfer tokens will not behave as expected ### Description ### Impact According to [Whitepaper 1.1 Permissionless](https://github.com/code-423n4/2023-01-timeswap/blob/main/whitepaper.pdf): "In Timeswap, liquidity providers can create pools for any ERC20 pair, without permission. It is designed to ...
0