prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
true
false
## High: Attacker can amplify a rounding error in MagicLP to break the I invariant and cause malicious pricing ### Description One of the two key parameters in MagicLP pools is `I`, which is defined to be the ideal ratio between the two reserves. It is set during MagicLP initialization: `_I_ = i;` It is used when per...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Missing Null IV Check ### Description ## Vulnerability Notice: randomKey Function Implementation The underlying implementation of the function `randomKey` can sometimes return `nil`. This means that in some cases, a zero or empty IV will be returned. ## Code Reference **Objective-C Implementation:** - File:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Miscalculation of the accounts total value in terms of USD ### Description The `getOrderValueUSD`function in the **AccountGetters** library calculates the value of an order in USD, considering that the value of any non-increase order is **0**. To verify if an order is a non-increase one, the following conditi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Efficiency Modes Limited to 255 Possible Combinations ### Description **Update** The client provided the following explanation: > not a concern **File(s) affected:**`lending_core/sources/lending.move` **Description:** Since the efficiency mode id is using `u8` type, zero is reserved and only ever increasing...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage array iteration in findGumball function. ### Description **Description** Gumball.sol: function findGumball(), line 89. Gumbar.sol: function findGumball(), line 182. Iteration through a storage array increases user's gas spendings and in case there are a lot of elements in the array, the function will...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can reenter RelayerV2 with ERC777 tokens and steal funds ### Description **Severity** **Impact:** High **Likelihood:** Low **Description** There's no reentrancy guard in the RelayerV2 contract and if one of the deposit or withdraw tokens had a hook (ERC777 or ...) then it would be possible to r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Harvest Pool Rounding ### Description ## Harvest Pool OfferingCoin Rounding Issue In `harvest_pool`, the amount of `OfferingCoin` the user gets is rounded down in both the immediate vesting and delayed vesting branches. This means that a user could get one less token than expected. ## Remediation Store 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
rounding
true
false
## Low: Slightly Reduced Voting Power due to Rounding Error ### Description Because of rounding errors, a fully locked NFT will incur a slight loss of Vote Weight (around 27 BPS). ### Recommendation A no-fix seems acceptable given the ability for end users to use permanent locks. Since these types of locks offer 100%...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of overflow. ### Description **Description** accTokenPerShare calculation utilizes 1e12*1e18*1e32 that is equal to 1e62. Max size of unsigned integer (256) is 2**256-1 that is ~1e77. With high pool rate and low rateDenominator such amount can cause an overflow. **Recommendation**: Handle or prevent a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Chain support cannot be removed or cleared in bridge contracts ### Description Due to how addresses are handled and stored in the configuration settings, it is not possible to remove chain support in both source and destination bridge contracts. The Axelar bridge service uses strings to represent addresses...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-step admin transfer creates risk of permanent loss of administrative control ### Description **Description:** The `SegregatedVault::changeAdmin` function implements a single-step admin transfer mechanism that immediately grants admin privileges to the new address and revokes them from the current admin ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
ERC721
false
false
[HolographERC721.sol#L467](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC721.sol#L467)<br> HolographERC721.sol is an enforcer contract that fully implements ERC721. In its safeTransferFromFunction there is the following code: if (_isC...
Code4rena
4
Holograph
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Inconsistent use of uint alias instead of uint256 ### Description Throughout the code in scope, it has been noted that there is inconsistent use of `uint` and `uint256` variable declarations, where some variables are declared as `uint` and others as `uint256`. While this does not affect the functionality of 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
medium
other
true
false
## Medium: Incorrect Struct Field and Hardcoded `sqrtPriceLimitX96` in `_getQuoteAndDirection` ### Description The absence of a properly set `sqrtPriceLimitX96` allows swaps to execute at prices far beyond expected limits, exposing the contract to unfavorable trade outcomes. The function is also likely to fail at runt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Pool Balance Calculation ### Description ## Issue in process_donation Function In `process_donation` within donations, there is an issue in the order of operations when updating the `self.matching_pool_balance`. > _pot/src/donations.rs `remainder` should be the remaining amount after deducting 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
high
liquidation
true
false
## High: Theft of collateral tokens with fewer than 18 decimals ### Description The token prices computed by `DSCEngine#getTokenAmountFromUsd()` and `DSCEngine#getUsdValue()` fail to account for token decimals. As written, these methods assume that all tokens have 18 decimals; however, one of the stated collateral tok...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potenial Risk for DoS For Dormant Users ### Description **Update** The client fixed the issue in commit `6abadee9a9041ddc5f55524545910552e9ba202a` and provided the following explanation: > We recently acknowledged the potential DoS risk for dormant users (e.g., inactive for more than two years). To mitigate 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...
solodit_api
high
SafeTransfer
false
true
_Submitted by 0xsanson, also found by 0xRajeev, cmichel, defsec, GalloDaSballo, JMukesh, leastwood, loop, nikitastupin, pants, and pauliax_. #### Impact Not every ERC20 token follows OpenZeppelin's recommendation. It's possible (inside ERC20 standard) that a `transferFrom` doesn't revert upon failure but returns `fal...
Code4rena
3
Swivel
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra variable may be omitted ### Description **Description** contracts/MGD.sol#432, setListingFee() contracts/MGD.sol#420, setMintFee() contracts/MGD.sol#408, unlockPlatform() Extra variable mgdCon may be omitted as unnecessary. **Recommendation**: Remove extra variable.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize `merkleizeSha256` function for gas-efficiency ### Description Although the current implementation of the [`merkleizeSha256`](https://github.com/code-423n4/2023-04-eigenlayer/blob/main/src/contracts/libraries/Merkle.sol#L129-L153) function in the [`Merkle`](https://github.com/code-423n4/2023-04-eigenla...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: Double-counting of the Migrated Stake ### Description There is an issue with [how `_migrateStake` is used](https://github.com/euler-xyz/evk-periphery/blob/647866626fbceec678e3e11cdd9d7e5be9e5f6e5/src/HookTarget/HookTargetStakeDelegator.sol#L283) inside the `_delegateStake` function. `_migrateStake` internally...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious owner can set an effectively infinite improvement rate with `type(uint256).max` after he/she has entered into a loan to prevent others from buying them out ### Description File: contracts/NFTLoanFacilitator.sol (lines [320-326](https://github.com/code-423n4/2022-04-backed/blob/e8015d7c4b295af131f01...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: <a name="GAS-11"></a>[GAS-11] Use `storage` instead of `memory` for structs/arrays
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Centralisation Risk: Admin Can Change Important Variables To Steal Funds ### Description _Submitted by kirk-baird, also found by 0xDjango, Alex the Entreprenerd, kenzo, Kumpa, pashov, shenwilly, tintin, and unforgiven_ ### Impact There are numerous methods that the admin could apply to rug pull the proto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User Could Change The State Of The System While In `Pause` Mode ### Description _Submitted by xiaoming90_ Calling `NibblVault.updateTWAP` function will change the state of the system. It will cause the TWAP to be updated and buyout to be rejected in certain condition. When the system is in `Pause` mode, 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
true
false
## Medium: `startTime` is not checked, allowing games with past prices to be started. ### Description **Severity**: Medium **Status**: Resolved **Description** The function `createSetup()` within the `Setup.sol` smart contract is used for starting a new set up game. This function receives an `unverifiedReport` par...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add methods to update defaultProtocolFee and defaultReferralFee variables on ERC4626iFactory.sol ### Description The state variables `defaultProtocolFee` and `defaultReferralFee`, which are used when creating a new ERC4626i, currently lack methods to update them. This limitation can restrict the flexibility of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: parseAllPrice not support the tokens whose decimal is greater than 18 ### Description `parseAllPrice` not support the token decimal is greater than 18, such as NEAR with 24 decimal. Since `buyToken / sellToken` is dependent on `parseAllPrice`, so users can't trade tokens larger than 18 decimal, but DODOv3 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
access-control
false
false
## Medium: | Admin Role Changes Should Be Two Step ### Description **Description** As addressed in GLOBAL-1, the admin address carries numerous important abilities for the system. However the `changeAdmin` function allows the admin address to be errantly transferred to the wrong address as it does not use a two-step ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DepositSecurityModule redundant staking module ID checks ### Description **Severity:** Low **Path:** DepositSecurityModule.sol:pauseDeposits, unpauseDeposits, canDeposit, depositBufferedEther (L336-365, L372-378, L385-395, L413-439) **Description:** The modifier `validStakingModuleId` in `DepositSecurityMod...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
liquidation
false
false
There are currently no checks in place to regulate the size of the collateral that users can utilize to open positions. Consequently, users might open positions with collateral that is too small to be profitably liquidated in different vaults. Given the complex architecture and substantial gas costs associated with liq...
OpenZeppelin
5
Euler Vault Kit (EVK) Audit
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User could potentially avoid liquidation ### Description **Severity** **Impact:** High **Likelihood:** Low **Description** Users could provide position NFTs to their margin account using the provideERC721 function, after transferring from the user address NFT would be approved for the appropriate module...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: Unable to transfer `WrappedIbbtc` if Oracle go down ### Description _Submitted by gzeon_ #### Impact In `WrappedIbbtc`, user will not be able to transfer if `oracle.pricePerShare()` (L124) revert. This is because `balanceToShares()` is called in both transfer and `transferFrom`, which included a call to `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
medium
oracle
false
false
## Medium: Reserve oracle ### Description In case of some instability with Chainlink oracle gaps in a price history are probably present. These gaps cause the `settle` function call to revert. ### Recommendation We recommend adding some reserve price source for the `Oracle` contract.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: `expectedLiquidityLimit` can be equal to zero ### Description `expectedLiquidityLimit` can be equal to zero: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/pool/PoolService.sol#L145 ### Recommendation We recommend to set value to `expectedLiqui...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GMPriceOracle::getUnderlyingPrice should revert if the asset is not supported ### Description The whole project makes use of three GM tokens, namely `gmBTC`, `gmETH` and `gmSOL`, plus `USDC`. As the core logic of the lending pool does only account for these tokens, there is no need for the oracle to return a 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
medium
signature
true
false
## Medium: UNSPECIFIED DEFAULT HASH FUNCTION ### Description The optional parameter `hashFn` defaulted to `null`, relying on external callers to define the hash function, which introduced a cryptographic risk of using an insecure hash. ### Impact If an insecure hash function (e.g., MD5) is provided or `null` is used,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Gas: Remove oracle calls from the inner loop in DebtManager.sortLendersWithAPR ### Description It could be cheaper from a gas perspective to collect first the APR and store them in memory instead of performing multiple contract calls to the oracle within the inner loop to request them. `oracle.getExpectedApr(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
other
false
false
## Low: `OmoVault.redeem()` : Incorrect owner recorded in redemption requests ### Description - The `OmoVault.redeem()` function allows a caller to create a redemption request on behalf of a share owner. However, the request incorrectly records the `owner` as the caller (`msg.sender`) instead of the actual owner of th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
false
false
## Gas: factory global state variable can be set as immutable ### Description The factory global state variable from the `UniswapV2Pair.sol` contract can be set as immutable as it is only initialized in the constructor with the `msg.sender` value. It is never modified nor does it have a setter. ### Recommendation Con...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Bound Check on Lock Removal ### Description ## Lock Removal in SmartTable When a lock is removed, it is not actually deleted from the SmartTable storing lock records. This renders the data accessible in the system even after it is supposedly removed. Since locks are not fully removed from the Smart...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle-manipulation
true
false
## Medium: Incorrect oracle truncation allows successive observations to exceed `MAX_ABS_TICK_MOVE` ### Description The Bunni `Oracle` library is a modified version of the Uniswap V3 library of the same name. The most notable difference is the inclusion of a constant `MAX_ABS_TICK_MOVE = 9116` which specifies the maxi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Fund Provider ### Description ## Vulnerability Report The existing `depositFor` implementation is not accurate, as it withdraws funds from an address specified by the user rather than from `msg.sender`. This poses an issue as its behavior deviates from that of `depositETHFor`, which receives fund...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can take advantage of share values changing suddenly when the vesting period is increased ### Description The `setVestingPeriod()` function checks that the `getUnvestedAmount()` function returns zero and reverts if not. However, an increase of the vesting period can still affect the unvested rewards, bec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: Potential Surplus Fee Bypass via Inflated `estimated_dst_amount` in `get_fee_amounts()` ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Noted **File(s) affected:**`fusion-swap/src/lib.rs` **Description:** In the `get_fee_amounts()` funct...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: The `VoterUpgradeableV2.createV3Gauge` function incorrectly uses `v2GaugeFactory` instead of `v3GaugeFactory` ### Description The gauges for the V3 pool are managed incorrectly by `v2GaugeFactory` rather than `v3GaugeFactory`. ### Proof of Concept In the `VoterUpgradeableV2.createV3Gauge` function, `v2Gau...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `settleFunding` will exceed block gas with more markets and activity ### Description _Submitted by bw, also found by cmichel, Dravee, gzeon, Omik, and Ruhum_ As the number of supported markets grow, `settleFunding` will reach a point were it exceeds the block gas limit on Avalanche C-Chain. This will prev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Duration Cap in setRestrictionDuration May Lead to Indefinite Fund Locking ### Description The `setRestrictionDuration` function in `MintController` allows the `restrictionDuration` to be set arbitrarily without an upper limit. Since this value is used to control transfer and redemption restrictions, 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
medium
other
true
false
## Medium: Unsafe Uint64 Casting in PendleVoteManager ### Description **Severity**: Medium **Status**: Resolved **Description** In _getVoteInPercentage() function: _getExactPercentage() function returns uint256 and it is being casted to uint64 without validating that the input number is less than or equal to typ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Game fee locked in `earlyEndGame` ### Description **Severity** **Impact:** Medium **Likelihood:** High **Description** In the `earlyEndGame` function, there is an issue where the game fee deducted from a player's payout is not subsequently transferred to the treasury address. Instead, the fee is subtracte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cast issue for negative value ### Description **Severity**: High **Status**: Resolved **Description** In contract VaultFeeManager, function _getVaultRebalanceFees, the userPositionDelta is cast to uint256. If the userPositionDelta is negative, it will be cast to a very large positive number, and this could...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: addRewards function miscalculates rewardRate ### Description `addRewards` lacks of any tool to confirm that available funds are assigned to a certain `rewardPeriod` or still pending to transfer/assign. This, in certain situations, can lead to miscalculations of the `rewardRate`. Although this issue can be 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: Potential resource borrowing might go unused ### Description In the `pmkl_token::get_user_season_claimable` function, there's a risk that the borrowed `RewardInfo` resource might not be utilized if the subsequent if clause is triggered. This could lead to unnecessary gas consumption. Code Location -----------...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [2] Critical changes should use two-step procedure ### Description The critical procedures should be two step process. ### Proof of Concept 1. Navigate to the following contracts: https://github.com/code-423n4/2022-06-illuminate/blob/main/marketplace/MarketPlace.sol#L109 https://github.com/code-423n4/2022...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validate Token Address ### Description ## Token Address Validation for Collateral Operations While depositing or withdrawing collateral for a `productId`, ensure to validate the token address returned from the spot engine for that `productId`. ## Remediation Add a check to ensure that the token address is 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
dos
false
false
## Low: Unbounded ETH transfers enable gas griefing and denial-of-service ### Description _Resolved_ The contract performs ETH transfers to external addresses using low-level `.call{value: ...}("")` without specifying a gas limit. This pattern appears in multiple sensitive paths, including: - Referral payouts during...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: No Transfer for initial supply creation ### Description Consider emitting an event `Transfer(0x0, msg.sender, INITIAL_SUPPLY)` in the [constructor](https://github.com/element-group/enigma-erc20-smart-contract/blob/9b6a6edab5eaf79242cc59d705f8b315657f87b7/contracts/EnigmaToken.sol#L38). This is consistent 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: Incorrect Decoding of bytes[] params Calldata Length ### Description When [decoding the calldata](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/base/BaseActionsRouter.sol#L34) for `bytes actions` and their respective parameters `bytes[] params`, the [`decodeActionsRo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of events in the implementation of privileged functions ### Description **Severity**: Informational **Status**: Resolved **Description** Some functions that carry out important changes to contracts state emit no events on changing significant parameters of the contracts by admin or other. This is takin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle-manipulation
true
true
## Medium: Voting power returns 0 during oracle failures causing unfair voting outcomes ### Description The `PricedTokensChainlinkVPCalc::stakeToVotingPowerAt` silently returns zero voting power when Chainlink oracles fail or return stale data. Operators lose all voting power without notification creating unintended 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
initialization
false
false
## Low: Missing Docstrings ### Description Throughout the codebase, multiple instances of missing docstrings were identified: * The [`ActionConstants` library](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/libraries/ActionConstants.sol#L4-L14) in `ActionConstants.sol` * 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
high
logic
false
false
## High: Improper Bid Trie Reference Causing Reserve Overstatement ### Description This issue has been identified within the `_claimOrder` function of the `ProxyLOB` contract. When `isAsk = false` (a bid), the final bit of the `orderId` indicates the relevant on-chain trie (bid trie expects a zero-ending bit). Howev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function add() is not restricted. ### Description **Description** Function add() has public access and no restrictions. Since the function pushes everything to the array - so anyone can “spam” to the storage and make the contract unusable. **Recommendation**: Finish logic or remove commented code. ... S...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Incentive Misalignment When Sending a Message ### Description The `TeleporterMessenger` contract implements functionality to allow certain actors (called relayers) to relay messages for users in exchange for a fee. Once the relayer has fulfilled its part and delivered the message on the destination chain, a [r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
signature
true
false
## Low: DelegationManager is incompatible with smart contract wallets with Approved hashes ### Description In the `DelegationManager` contract, there is a limitation that affects smart contract wallets that implement pre-approved hashes functionality, such as Safe (formerly Gnosis Safe) wallets. The current implementa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stuck ether when use function `stake` with empty `derivatives`(`derivativeCount` = 0) ### Description After `initialize` the contract `SafEth`, if someone call `stake` before `addDerivative`, the function `stake` skip the two for cycles because the `derivativeCount` is equal to `0` and don't `deposit` in 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
medium
front-running
false
false
## Medium: Governor Proposal Creation Is Vulnerable to Front Running in OpenZeppelin Contracts - Phase 1 ### Description The Taiko governance employs the [`GovernorCompatibilityBravoUpgradeable`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/L1/gov/Tai...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Market Order Suggestions ### Description Presently, after `market::place_limit_order` concludes optional cross-spread matching, the function returns if the remaining size to fill is zero. Instead, it is proposed that the condition be modified to check that size is greater than the minimum order size for the ma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Repaying a line of credit with a higher than necessary claimed revenue amount will force the borrower into liquidation ### Description A borrower can repay (parts) of a credit line with the `SpigotedLine.useAndRepay` function. This function will use `amount` of `unusedTokens[credit.token]` as a repayment. How...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: setGuardian() May Overwrite Itself ### Description The function `setGuardian()` in Core is used to recursively update the Guardian role for all contracts in the protocol. The function takes a parameter `_guardian` to be the new Guardian. It then performs the operations `grantRole()` for the new Guardian and ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
true
false
## Low: Reentrancy Guard Enhancement ### Description ## SetPause Function Overview `setPause` changes the status of Stargate based on the _paused parameter. However, it does not check whether the current status is ENTERED before allowing the status to be updated. This implies that if the status is ENTERED, the reentr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Deprecated Native Token Transfer Method Used May Cause Reverts ### Description **Severity**: Medium **Status**: Resolved **Description**: There are various methods is used by the source code in order to transfer native tokens between users and other contracts which achieves this using the `payable(*).tra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds Could Get Stuck In Leverage Contract ### Description **Update** Marked as "Fixed" by the client. Addressed in: `753c5272f216e2944adac852517c1bc5d84a3a71`. **File(s) affected:**`Leverage.sol` **Description:** The `Leverage` contract can be used for protocol interactions paired with callbacks to execute ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: ControllerPeggedAssetV2: outdated price may be used which can lead to wrong depeg events ### Description The `updatedAt` timestamp in the price feed response is not checked. So outdated prices may be used. ### Impact The price that is used by the Controller can be outdated. This means that a depeg event ma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Builders must pay more interest when the system is paused. ### Description _Submitted by hansfriese, also found by 0x52, 0xNazgul, and rbserver_ [Community.sol#L455](https://github.com/code-423n4/2022-08-rigor/blob/5ab7ea84a1516cb726421ef690af5bc41029f88f/contracts/Community.sol#L455) [Community.sol#L484](...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Restaker rewards on zero coverage agent will be stolen by subsequent restaker interest realization ### Description Lender contract will transfer realized restaker interest to Delegation contract. Delegation contract is supposed to transfer the received amount to network middleware and delegate rewards distr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bypass internalAdjustment by Using Past Closures. . . . . . . ### Description ## Vault Contract Analysis In the Vault contract, the `adjustTicketInfo` function is used to adjust a trader’s LP (Liquidity Provider) information after an NFT is closed. Based on the auction value, traders may face either a loss 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
low
other
true
false
## Low: Unnecessary Use Of Payer Account ### Description ## Instruction Requirements and Transaction Costs All instructions in the program require a mutable payer account, even when it is not necessary for the execution of the instructions. This results in an increase in transaction costs. ## Example: SaveRecentRoot...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Unbounded iteration in massUpdatePools function (MasterPenPie.sol) ### Description **Severity**: Informational **Status** : Acknowledged **Description**: The massUpdatePools function iterates over all pool elements and updates them by calling updatePool. This could potentially cause the function to fail 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
gas
other
false
false
## Gas: Multiple accesses of a mapping/array should use a local variable cache ### Description The instances below point to the second+ access of a value inside a mapping/array, within a function. Caching a mapping's value in a local `storage` or `calldata` variable when the value is accessed [multiple times](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...
solodit_api
high
access-control
true
true
## High Risk Vulnerability Report **Severity:** High Risk **Context:** `LP.sol#L87-L88` ```solidity uint256 value = PriceOracle(msg.sender).price(tokenA).fmul(balanceA, FixedPointMathLib.WAD) + PriceOracle(msg.sender).price(tokenB).fmul(balanceB, FixedPointMathLib.WAD); ``` **Situation:** This calculation assume...
Spearbit
5
Sense
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Add a check for `0` `numWithdrawals` when withdrawing from NFTs ### Description ### Lines of code https://github.com/code-423n4/2024-02-althea-liquid-infrastructure/blob/bd6ee47162368e1999a0a5b8b17b701347cf9a7d/liquid-infrastructure/contracts/LiquidInfrastructureERC20.sol#L359C14-L359C37 ### Impact Th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: [G-05] ### Description Function withdraw calls nestedRecords twice: I think it could just substitute these links by first fetching all the tokens, and then calculating the length itself instead of making 2 external calls for pretty much the same 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
medium
other
false
false
## Medium: Auction.sol#settleAuction() Mishandling bounty state could potentially disrupt settleAuction() ### Description ## Handle WatchPug ## Vulnerability details https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Auction.sol#L143 In the `withdrawBounty` function, `bounty.active`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-library/interface files should use fixed compiler versions, not floating ones ### Description 1. File: src/CitadelToken.sol (line [2](https://github.com/code-423n4/2022-04-badger-citadel/blob/dab143a990a9c355578fbb15cd3c884614e33f42/src/CitadelToken.sol#L2)) 2. File: src/GlobalAccessControl.sol (line [...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 reading return value from snapshot() function ### Description [Link](https://github.com/code-423n4/2024-03-taiko/blob/f58384f44dbf4c6535264a472322322705133b11/packages/protocol/contracts/L1/TaikoToken.sol#L52) The snapshot() function returns a uint256 snapshotId. These ids if retrieved earlier can ma...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks-effects-interactions pattern in `_stakeMultiplier`. ### Description **Description** MarinateV2.sol - follow checks-effects-interactions pattern in implementation of _stake Multiplier. **Recommendation** Watchout for the transfer nft interaction. **Re-audit comment** Resolved. fix#1 since NFT logic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StableSwapOperatorV1 - the contract relies on the 1$ price of every token in 3pool ### Description To evaluate the price of the 3pool lp token, the built-in `get_virtual_price` function is used. This function is supposed to be a manipulation-resistant pricing function that works under the assumption that all 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
access-control
false
false
## Low: Missing event emission in `updatePrincipalUnstaker()` in `DIAExternalStaking` and `DIAStakingCommons` ### Description The `updatePrincipalUnstaker()` function in both `DIAExternalStaking` and `DIAStakingCommons` updates the `principalUnstaker` address for a given staking store but does not emit any event to si...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Checks for solverCalledBack don't cover all situations ### Description The function `solverMetaTryCatch()` checks that `reconcile()` isn't called by the `PreSolver` and that it is called by the `PostSolver`. However, these checks don't cover all situations: - If `needsPreSolver() == false`, then the first c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not using the named return variables anywhere in the function is confusing ### Description ### Recommended Mitigation Steps Consider adopting a consistent approach to return values throughout the codebase by removing all named return variables, explicitly declaring them as local variables, and adding the nece...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Blocking I/O in Network trait implementations will block async runtime threads ### Description The Network trait specifies send and broadcast functions that are not marked as async (figure 8.1). If the trait is implemented with blocking versions of the send and broadcast functions, calls to those functions wil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Usage of `transfer()` Instead of `safeTransfer()` ### Description **Update** Fixed in commit [ae9459f](https://github.com/hifi-finance/hifi/commit/ae9459f) by replacing the unsafe transfer function with `safeTransferFrom()`, as suggested. **File(s) affected:**`packages/amm/HifiPool.sol`, `proxy-target\cont...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Validator Management ### Description ## Validator Management in Protocol Implementation In the current implementation of the protocol, there is no logic to remove validators from the list of `validator_infos`. It is possible to remove an existing validator, which will just mark it as inactive. The 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
signature
false
false
## Medium: `QuestFactory` is suspicious of the reorg attack ### Description The `createQuest` function deploys a quest contract using the `create`, where the address derivation depends only on the `QuestFactory` nonce. At the same time, some of the chains (Polygon, Optimism, Arbitrum) to which the `QuestFactory` will...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: closeLiquidation within LendingPool does not allow partial repayments, which can cause massive losses to users within edge case ### Description While not accepting partial repayments within `LendingPool::closeLiquidation` is certainly a design choice, it also causes an edge case in which a user who is subje...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Locked Ether ### Description **Update** Marked as "Fixed" by the client. Addressed in: `5fae7c2e9332be537776bfbd65fa0aab64ab531d` and `aae329497e849b2a71f10dd546417a73f7ce521a`. **File(s) affected:**`src/Bridge.sol`, `src/BridgeFallback.sol`, `src/ETHBridge.sol` **Description:** Empty `receive()` function ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Use Custom Errors instead of Revert Strings to save Gas ### Description Custom errors from Solidity 0.8.4 are cheaper than revert strings (cheaper deployment cost and runtime cost when the revert condition is met) Source: : > Starting from [Solidity v0.8.4](https://github.com/ethereum/solidity/releases/tag/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
dos
true
false
## Low: Admin Can Fail XMsg Execution By Updating xmsgMaxGasLimit ### Description High gasLimit XMsgs can inexplicably fail if the admin lowers `xmsgMaxGasLimit` before the XMsg is executed. The `_exec()` function trims the gasLimit to `xmsgMaxGasLimit`: ```solidity OmniPortal.sol 279 // trim gasLimit to max. this re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision error in reward calculation may lock tokens ### Description When reward tokens are deposited into the staking contract, the reward rate is calculated as follows: This calculation divides the token amount by the duration in seconds, which introduces precision loss for low-decimal tokens (e.g., USDC,...
0