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
gas
storage
true
false
## Gas: State variables only set during construction should be declared constant ### Description The solidity compiler will directly embed the values of constant variables into your contract bytecode, and therefore, will save you from incurring a `Gsset (20000 gas)` when you set storage variables during construction; ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Missing constraint in `default_dict_copy` ### Description ### Vulnerability details In CairoZero, the correct usage of dict objects created via `default_dict_new` must be paired with a call to `default_dict_finalize` to ensure the integrity and prevent malicious prover's manipulation of its contents. However...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inflation attack in Vault ### Description **Severity** **Impact:** High **Likelihood:** Low **Description** The Vault contract uses `_decimalsOffset` to add more precision to share values. The issue is that the value of the `_decimalsOffset` would be 0 if the underlying token had 18 decimals (which is 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
initialization
true
false
## Medium: Swapping on zero liquidity allows for control of the pool’s price ### Description Swapping on a tick with zero liquidity enables a user to adjust the price of 1 wei of tokens in any direction. As a result, an attacker could set an arbitrary price at the pool’s initialization or if the liquidity providers wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
## Low: Allow users to increment their nonce to void their signatures ### Description Currently users are unable to void their signatures by incrementing their nonce, since `NoncesUpgradeable::_useNonce` is `internal` and only called during actions which verify user signatures. A user may want to invalidate a previou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Check for a zero input value ### Description At the line https://github.com/yearn/yearn-vaults/blob/e390c2a6b2ba6e2ecc8f3a72a1ea4adfabd17544/contracts/BaseWrapper.sol#L50 there is no check for a zero input value in method `setRegistry()`. ### Recommendation It is necessary to add a check of the input para...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 is 1 instan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overwriting Block Version Library ### Description ## Off-By-One Vulnerability in LayerZero Library If the owner calls `newVersion()` when `latestVersion` equals 65534, the library corresponding to `BLOCK_VERSION(65535)` is added due to an off-by-one vulnerability in the version check. ## Code Snippet: `newVe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: Risk of sandwich attacks ### Description The Proteus liquidity pool implementation does not use a parameter to prevent slippage. Without such a parameter, there is no guarantee that users will receive any tokens in a swap. The `LiquidityPool` contract’s `computeOutputAmount` function returns an `outputAmount...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [6] Avoid the use of sensitive terms in favor of neutral ones ### Description Use allowlist rather than whitelist
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FUNCTION OVERLOADING ### Description Having multiple functions with the same name in a smart contract can be dangerous or not a good practice for several reasons: - Confusion: If there are several functions with the same name, it can be confusing for developers and users who are interacting with the smart 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
gas
other
true
false
## Gas: Inefficient Witch buy ### Description ## Handle cmichel ## Vulnerability details In `Witch.buy` there's the possibility to do one multiplication instead of two divisions: Instead of computing the _ink price_ as `1 / artPrice` and then dividing by it to get the ink amount as `ink = art / price`, just keep t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [03] Pragma Version ### Description In the contracts, floating pragmas should not be used. Contracts should be deployed with the same compiler version and flags that they have been tested with thoroughly. Locking the pragma helps to ensure that contracts do not accidentally get deployed using, for example, an ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Additional deployment config checks ### Description The deployment script performs checks on its configuration variables. ### Recommendation Consider also checking that `cfg.gap <= cfg.maxLine` for the `autoLine`, ensuring that the initial line of gap is less than the max defined 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
medium
overflow
true
false
## Medium: `PrizeVault.maxDeposit()` doesn't take into account produced fees ### Description Currently, `PrizeVault.maxDeposit()` calculates the maximum possible amount of deposit without taking into account produced fees. That means if there is already maxed deposited amount of asset that is calculated by the current...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
true
false
## Low: Last user in scWETHv2 vault will not be able to withdraw their funds ### Description When a user wants to withdraw, the withdrawal amount is checked against the current vault float (the uninvested assets readily available in the vault). If the withdrawal amount is less than the float, the amount is paid from 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
initialization
true
false
## Low: updateConfig() can be simplified ### Description The `SocialRecoveryModule` contains the following function: ```solidity function updateConfig(RecoveryConfig memory config) external { if (recoveryConfigs[msg.sender].timelock == 0) { revert Errors.RECOVERY_NOT_INITED(); } if (recoveryStates[msg.sender]....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong value in call can cause money to be incorrectly withdrawn from reserves ### Description In [`_settleCashBalance`](https://github.com/swapnet-protocol/swapnet-lite/blob/66ce8f3e529410a5272b7a57c8391fcb80a375fd/packages/contracts/contracts/Escrow.sol#L710) within [`Escrow.sol`](https://github.com/swapnet-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A user can get more dTokens than they should get via `D3VaultFunding.userDeposit()`, due to accounting issues in `D3VaultLiquidation.liquidate()` ### Description The vault token balance (`assetInfo[debt].balance`) is not updated during liquidation (`D3VaultLiquidation.liquidate()`). Thus, a user who calls `D...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
rounding
false
false
## Security Report ## Severity **Medium Risk** ## Context `Gate.sol#L383` ## Description When exiting a vault through `Gate.exitToVaultShares`, the user specifies a `vaultSharesAmount`. The amount of PYT and NYT to burn is determined by a `burnAmount = _vaultSharesAmountToUnderlyingAmount(vaultSharesAmount)` call. A...
Spearbit
5
Timeless
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overlap Between `ERC721.transferFrom()` and `ERC20.transferFrom()` Allows `order.erc20Assets` or `order.baseAsset` To Be ERC721 Rather Than ERC20 ### Description _Submitted by kirk-baird, also found by reassor and sseefried_ ### Impact Both `ERC20.transferFrom(address to, address from, uint256 amount)` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Lack of Logs on Sensitive Actions ### Description In the [`FeeVault` contract](https://github.com/scroll-tech/scroll/blob/3bc8a3f5c6ac816ddffadca41024331dcf4d3064/contracts/src/libraries/FeeVault.sol#L97-L111), the `owner` role can change the minimum value to withdraw, the `recipient`, and `messenger` address....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Users cannot stake in `UniV3Staking` ### Description `UniswapV3Staking.stake()` pulls NFTs from the user in the following way: ```solidity positionManager.safeTransferFrom(msg.sender, address(this), tokenId); ``` However, this will end up calling the `onERC721Received()` function on the `UniswapV3Staking`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TYPO ON FUNCTION DECLARATION ### Description The `setMaxCapacity` under `PriorityPool` will always revert as it is calling `updateMaxCapacity` but the declared selector on `PriorityPoolFactory` is `updateMaxCapaity`. Code Location ------------- ### Recommendation **SOLVED**: The typo was fixed, and the inter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Oracle slippage rate is used for checking primary and secondary ratio ### Description The oracle slippage rate (`oraclePriceDeviationLimitPercent`) is used for checking the ratio of the primary and secondary tokens to be deposited into the pool. As a result, changing the `oraclePriceDeviationLimitPercent`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Unnecessary `SafeMath` ### Description **Update** The team intends to keep some of them to minimize the changes needed for the existing facets that are already live. New facets (within the scope of this audit) should not be using SafeMath anymore. The following is the response from the team: **File(s) affect...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Misalignment of `pause()` and `unpause()` access controls across contracts ### Description **Description:** All three contracts, `Ignite`, `ValidatorRewarder`, and `StakingContract`, have pausing functionality that can be triggered by accounts with special privileges; however, they all implement the access 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
low
oracle
false
false
## Low: Unsafe addition in reward’s expiration time calculation ### Description The `Voting` contract [calculates the reward’s expiration time](https://github.com/UMAprotocol/protocol/blob/9d403ddb5f2f07194daefe7da51e0e0a6306f2c4/core/contracts/oracle/implementation/Voting.sol#L680) using an unsafe addition. In practi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unused Config Pong Handler ### Description The `configPongHandler` function is currently implemented but not used anywhere in the code. The `ConfigManager` contract is using the `registryPongHandler` selector to handle configuration updates instead of the `configPongHandler`. As a result, there is unnecessary ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add reentrancy guard to Lybra's version of synthethix contract ### Description The synthethix `Staking.sol` contract implements reentrancy guard `nonReentrant` for `stake()`, `withdraw()` and `getRewards()`. Consider adding reentrancy guard as well for additional protection against potential/possible reentranc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: Theft of funds under relaying the transaction ### Description [contracts/smart-contract-wallet/SmartAccount.sol#L200](https://github.com/code-423n4/2023-01-biconomy/blob/main/scw-contracts/contracts/smart-contract-wallet/SmartAccount.sol#L200) [contracts/smart-contract-wallet/SmartAccount.sol#L239](https://gi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Vault Withdrawals Due to Unchecked User Withdrawal Amounts ### Description When a user deposits `crvUSD`, the contract mints `RTokens` and calls `_rebalanceLiquidity` to split the funds between the contract and the Curve vault based on a liquidity buffer ratio.When a user requests a withdrawal, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can prevent the creation of any extraordinary funding proposal by frontrunning `proposeExtraordinary()` ### Description A griefing attack can be conducted to prevent the creation of any extraordinary funding proposal, or targetting specific receivers. The cost of performing the attack is low, onl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
rounding
true
true
Source: https://github.com/sherlock-audit/2022-09-notional-judging/issues/73 ## Found by xiaoming90 ## Summary The existing slippage control can be bypassed/disabled during vault settlement, thus allowing the trade to be executed without consideration of its slippage. ## Vulnerability Detail > Note 1: This issue...
Sherlock
5
Notional
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
false
## Security Analysis Report ## Severity **Medium Risk** ## Context `LSSVMRouter.sol#L754-789` ## Description The function `_swapNFTsForToken()` of `LSSVMRouter` calls `safeTransferFrom()`, which then calls `ERC721Received` of `assetRecipient`. A malicious `assetRecipient` could manipulate its NFT balance by buying a...
Spearbit
5
Sudoswap
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unused `deposit()` Function ### Description **Update** Marked as "Fixed" by the client. Addressed in: `471c723f8fe8bd0545964f9218f2fe10b88931dd`. The client provided the following explanation: > Removed deposit() function and moved function to mock class to facilitate testing **File(s) affected:**`wstTAO.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...
solodit_api
medium
DOS
false
false
## Severity: Medium Risk ## Context ExitPositionsManager.sol#L468 ## Description When trying to withdraw funds from Morpho as a P2P supplier, the last step of the withdrawal algorithm borrows an amount from the pool ("hard withdraw"). If the Morpho position on Aave's debt/collateral value is higher than the market's ...
Spearbit
5
Morpho
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of deprecated ChainLink API in Buoy3Pool ### Description ## Handle cmichel ## Vulnerability details ## Vulnerability Details The Chainlink API (`latestAnswer`) used in the `Buoy3Pool` oracle wrappers is deprecated: > This API is deprecated. Please see API Reference for the latest Price Feed API. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The liquidation validation logic is wrong ### Description On Chain A (the collateral chain), the [liquidation check](https://github.com/sherlock-audit/2025-05-lend-audit-contest/blob/713372a1ccd8090ead836ca6b1acf92e97de4679/Lend-V2/src/LayerZero/CrossChainRouter.sol#L431-L436) treats `payload.amount` as if it...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
false
## Low: Puffer Finance : Missing Verification of External Call Success ### Description Report type: Smart Contract Target: https://etherscan.io/address/0x3C28B7c7Ba1A1f55c9Ce66b263B33B204f2126eA#code Impacts: - Contract fails to deliver promised returns, but doesn't lose value ## Description ## Brief/Intro `Timelo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vulnerable to phishing ### Description **Severity**: Informational **Status**: Resolved **Description** Contract AdminFacet is vulnerable to phishing as it is using tx.origin, we understand that is because of the forge deploy script however we will urge you to change the deployment mechanism and change the ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
true
false
## High: callback issue ✓ Partially fixed ### Description ERC-777 token comes with callback functions to the receiver and the sender on every token transfer. This gives re-entrancy opportunities for everyone who’s using this token. There is a chance that other systems might not handle ERC-777 correctly. ### Recommend...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Deployment script requires unencrypted private keys ### Description Several deployment/ops scripts require private keys to be loaded from environment variables and used directly inside the script, e.g.: ```solidity // DeployBasisTradeTailor.s.sol uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY")...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing Field Order Constraint ### Description ## Vulnerability in zk-SNARKs There is a flaw that potentially compromises the integrity of zero-knowledge (zk) proofs and Merkle tree operations. In zk-SNARK, it is crucial that all public inputs (such as hashes of compressed accounts and Merkle tree roots) 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
front-running
true
false
## Medium: Leak of Value in `yield` function, slippage check is not effective ### Description _Submitted by Alex the Entreprenerd_ The function `yield` is using the input from `sellBasePreview` and then using it. The output of `sellBasePreview` is meant to be used off-chain to avoid front-running and price changes,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Price validation ### Description **Severity**: Low **Status**: Resolved **Description** In Contract Oracle.sol, the following check is done on the prices fetched from chainlink: Here a price is a valid price even if price is less than `minValue` or price is more the `maxValue`. **Recommendation*...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: For clarity prefer non-off-by-one equality ### Description Using `- 1` makes it harder to see how the IDs relate to each other. In this case, that the pushed actions start at `start_action_id`, not one above. ```rust assert!(last_pushed_action > start_action_id - 1); ``` ### Recommendation ```rust assert!(la...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Insu�cient funds may be available for user withdrawals ### Description The Lido and DSR yield providers might stake more funds than what is available, which could prevent user withdrawals from being finalized. The `LidoYieldProvider` and `DSRYieldProvider` contracts are responsible for staking funds that are a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
false
false
## High: Strategy Migration May Leave Tokens in the Old Strategy Impacting Share Calculations ### Description _Submitted by kirk-baird_ If a strategy does not have sufficient funds to `withdraw()` for the full amount then it is possible that tokens will be left in this yield contract during `migrate()`. It is common...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If a Referral Code Owner Gets Blacklisted From `USDC/USDT`, Seller Trade Rewards Will Get Locked ### Description The current implementation of `CSXTrade::_distributeProceeds` has a push mechanism for distributing referral code owner rewards. ```solidity uint256 actualAmountTransferredToAff = _transferToken(ad...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OmoAgent: `topOffToAgent()` does not process and remove all positions ### Description In the `topOffToAgent()` function, positions are removed from the `_positionIds` array while iterating over it. ```solidity for (uint256 i = 0; i < OmoAgentStorage.data()._positionIds.length; i++) { uint256 tokenId = ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing `override` keyword ### Description Most methods in contracts that are implemented and inherited from an interface are missing the `override` keyword. Go through each method and apply the keyword where it is right to do so. Some examples are the `mintRecord` and `royaltyInfo` methods.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Total market debt > 0 when credit deposits > netusdissuance which breaks key protocol logic ### Description A miscalculation in market debt accounting within the Zaros protocol causes incorrect credit and debt allocations to vaults. The current implementation inverts the expected logic, leading to markets app...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 event emission ### Description The function `initialize()` in the MEME20 contract is adding the `_pTreasury` and `_protocolAddr` to the `_exemptFees` mapping without emitting an event. ### Recommendation It is recommended to emit an event after updating important variables.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inserted register reads at arbitrary timestamps ### Description In the "dummy rows" of ALU instructions (those with `is_valid = 0`), the prover can execute register memory reads at arbitrary timestamps. In combination with the finding "timestamp can overflow" (the timestamp can overflow the field), this allow...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Incorrect Consensus Version in the estaking Module ### Description The `ConsensusVersion()` function in the `AppModule` of the `estaking` module is currently set to return a value of 1. ``` // ConsensusVersion is a sequence number for state-breaking change of the module. It should be incremented...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bid submission permitted during paused contract state ### Description The `createBid`function in the **BeraAuctionHouse** contract does not include the `whenNotPaused`modifier or any explicit check to prevent its execution while the contract is paused. As a result, users can still submit bids during a pause...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Error Handling ### Description The [`pow`](https://github.com/Consensys/linea-contracts-fix/blob/04d6677474421239c1f215c5a676223d09266ba4/contracts/verifiers/PlonkVerifierFull.sol#L1216), [`compute_gamma_kzg`](https://github.com/Consensys/linea-contracts-fix/blob/04d6677474421239c1f215c5a676223d09...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing return value verification after swaps ### Description In the `swapAndSendToAptos()` function, the `swapTarget` address is utilized to execute the swap through OpenZeppelin’s `Address` library's `functionCall()` method, which returns a `bytes` value upon execution. However, the `swapAndSendToAptos()` fu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Currentblockdeposits()` may return an incorrect value ### Description In the case when the L1 block changes, `HyperEvmVault::currentBlockDeposits` function may return the deposits of the previous block if it is called before the storage `currentBlockDeposits` value is updated. Consider return 0 if the curre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `adminFeeAmount` always round down, resulting in reduced revenue for the admin ### Description ODefaultStakerRewards.sol calculates the admin fee as: This means that during each reward distribution, any portion below `ADMIN_FEE_BASE` is directly discarded. If we consider the expected value, the admin loses a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: Potential rounding to zero issue in AfEth deposit could cause loss of value ### Description Deposits in the AfEth contract are split based on a configured `ratio`. One portion of the split goes to SafEth, while the other is deposited in the Votium strategy. https://github.com/code-423n4/2023-09-asymmetry/blob...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] `ExtraordinaryFundingProposal.votesReceived` IN `ExtraordinaryFunding` CONTRACT IS `uint120` INSTEAD OF `uint128` ### Description In the `StandardFunding` contract, `Proposal.votesReceived` is `uint128`. https://github.com/code-423n4/2023-05-ajna/blob/main/ajna-grants/src/grants/interfaces/IStandardFundi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize names to save gas ### Description `public`/`external` function names and `public` member variable names can be optimized to save gas. See [this](https://gist.github.com/IllIllI000/a5d8b486a8259f9f77891a919febd1a9) link for an example of how it works. Below are the interfaces/abstract contracts that ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Improper Implementation Of Mint Cap Check ### Description ## Mint Cap Limitation in MOD Token Minting The `mint_cap` parameter set by the protocol limits the number of mintable MOD tokens. The limit is checked by confirming that the newly minted amount alongside the previous total debt does not exceed the `mi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 handling of last nominee removal in `removeNominee` function ### Description A vulnerability was discovered in the `removeNominee` function of the `VoteWeighting.sol` contract. The issue arises when removing the last nominee from the list, resulting in an incorrect update of the `mapNomineeIds` 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
initialization
false
false
## Medium: VaultTracker miscalculates compounding interest ### Description _Submitted by GimelSec_ ### Impact VaultTracker neglect previously accrued interest while attempting to calculate new interest. This causes `nToken` holders to receive less yield than they should. All functions within VaultTracker that calc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `requestRedemption()` Reverts Because `L1BTCRedeemerWormhole’s` Bank Balance Is Not Credited ### Description `L1BTCRedeemerWormhole.requestRedemption()` grants `thresholdBridge` an allowance to withdraw the satoshi-denominated balance, but it never credits that balance to the `Bank` contract. When `Bridge.req...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Medium: Should prevent users from sending more native tokens in the `startBridgeTokensViaCBridge` function ### Description _Submitted by shw, also found by hickuphh3, hyh, Picodes, and pmerkleplant_ When a user bridges a native token via the `startBridgeTokensViaCBridge` function of `CBridgeFacet`, the contract 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
high
overflow
false
false
## High: C01] Funds can be lost ### Description ###### Critical Any token holder can call the [`registerProposal`](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455391af2bc30d13d761566d8c236/contracts/inflation/PolicyProposals.sol#L168) [function](https://github.com/BeamNetwork/currency/blob/51b65c5c7af455...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Borrowers would lose a lot of funds if market is intentionally/unintentionally frequently updated ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2024-08-wildcat/blob/fe746cc0fbedc4447a981a50e6ba4c95f98b9fe1/src/market/WildcatMarketBase.sol#L406-L465 This function is u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can reset the emergencyWithdrawable flag to false to block emergency action in SuperVault- ### Description ## Strategy **Severity:** Medium Risk **Context:** SuperVaultStrategy.sol#L814-L820 **Description:** `timestamp >= emergencyWithdrawableEffectiveTime = 0` is always true if there is no propo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unneeded public visibility in some functions ### Description In [the Holdefi codebase](https://github.com/holdefi/Holdefi/tree/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts), there are situations in which functions have a public visibility although those are not called by any other function from the same ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Preview functions fail with supply=0 ### Description In `HyperEvmVault` contract, `previewDeposit` and `previewMint` functions does not handle supply=0 (return wrong number or revert) According to ERC4626 these functions should simulate the effects of their deposit/mint at the current block. As we see in `de...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing natspec documentation ### Description Solidity contracts can use a special form of comments to provide rich documentation for functions, return variables and more. This special form is named the Ethereum Natural Language Specification Format (NatSpec). ### Recommendation It is recommended to include 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
token
false
false
## Low: Unsafe ERC20 Operations ### Description The two contracts in scope include several direct calls to `approve()` for setting token allowances, which can cause issues when dealing with tokens that do not support allowance updates from non-zero values without first resetting to zero. This behavior is common in 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
medium
access-control
false
false
## Medium: Relayer could lose funds ### Description The `xReceive` function on the receiver side can contain unreliable code which the Relayer is unaware of. In the future, more relayers will participate in completing the transaction. Consider the following scenario: 1. Say that Relayer A executes the `xReceive` fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: The recipient is not checked if it 's a frozen account ### Description The `_frozenAccounts` is used so that the owner can freeze various accounts from transferring vault tokens. While the check is performed for the sender in the `transferFrom` function, it is missing from checking the recipient which can lead...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Template implementations doesn't validate configurations properly ### Description In past audits, we have seen contract admins claim that invalidated configuration setters are fine since “admins are trustworthy”. However, cases such as [Nomad got drained for over $150M](https://twitter.com/samczsun/status/1...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `assembly` to write *address storage values* ### Description 8 results - 4 files: [SmartAccountFactory.sol#L19](https://github.com/code-423n4/2023-01-biconomy/blob/main/scw-contracts/contracts/smart-contract-wallet/SmartAccountFactory.sol#L19) [SmartAccount.sol#L112](https://github.com/code-423n4/2023-0...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Grant amount spending limit check ### Description In `executeDirectGrant()`, `executeSimpleGrant()`, `executeAdvancedGrant()`: `_amount` should be less than token's `spendingLimit`. This check should be added in case the limit was changed between grant creation and execution: https://github.com/MetaLex-Tech/bo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_condition` uniqueness check ### Description In `addCondition()`: `_condition` address should be checked for absence in `conditions`. https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/libs/conditions/conditionManager.sol#L38 ### Recommendation We recommend adding 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
gas
other
false
false
## Gas: Redundant code ### Description ### IMPACT Redundant code should be avoided as it costs unnecessary gas ### PROOF OF CONCEPT Instances include: #### Preparable.sol Preparable.sol:140: address oldValue = currentAddresses[key]; currentAddresses[key] = value; pendingAddresses[key] = address(0); dead...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sequencer Sentinel Config can be updated to follow first principles ### Description **Impact** The sequencer sentinel has 2 types of checks: - `_requireSequencerUpAndOverGracePeriod` - Safer check, ensures that prices are updated - `_requireSequencerUp` - Less safe check, prices may not be updated A check th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Sequencing considerations should be clearly documented and communicated to integrators ### Description The Wormhole CCTP integration contracts do not enforce in-sequence message execution by default as a design choice to prevent one message from blocking subsequent messages, instead opting to give integrators ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFT State Not Restored On Transfer Failure ### Description The `nft_resolve_transfer` function should fully rollback the NFT state if the `nft_on_transfer` call fails or returns true. The current implementation does not properly restore `split_owners` and `approvals` to their original state, as both fields ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `x != 0` instead of `x > 0` for uint types ### Description The `!=` operator costs less gas than `>` and for uint types you can use it to check for non-zero values to save gas
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Extra code. ### Description **Description** RuleEngine.sol, Imports Misc library with today() function which is repeated in the code (RuleEngine.sol, line 65) **Recommendation**: Remove extra code.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: SINGLE-STEP OWNERSHIP CHANGE ### Description A two-step procedure for changing roles in the contract is missing. If the address is incorrect, the new address will assume the functionality of the new role directly. There is no way to recover these roles back after these types of errors. 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
medium
dos
false
false
## Medium: Incomplete Denial of Service prevention ### Description As described in the [documentation](https://mcdex.io/references/#/en/perpetual?id=broker-amp-withdraw-time-lock), the purpose of the broker and withdraw time locks is to prevent traders nullifying trades that have already been submitted. If this were 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
high
other
true
false
## High: Bypass the maximum PnL check to take extra profit ### Description To protect the fund of vault, the protocol has a security mechanism which limits: Maximum PnL is +500%. source: But the implementation is missing to check this limitation while `addToPosition()`, an attacker can exploit it to get more pr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 4] Tokens cannot graduate if an attacker transfers KAS to the BondingCurvePool contract ### Description **Severity:** Medium **Path:** contracts/BondingCurvePool.sol#L247-L260 **Description:** The `BondingCurvePool::graduateToken()` function is responsible for creating a new `ZealousSwapPair` between the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Unable to liquidate USDC blacklisted user's loan due to transferring leftover collateral back in USDC ### Description During the loan liquidation process, any remaining collateral will be swapped to USDC tokens and transferred to the liquidated user. However, if the USDC contract blacklists the liquidated u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SecuritizeVault's share token is in wrong decimals ### Description **Description:** The `SecuritizeVault` inherits OpenZeppelin's `ERC4626Upgradeable` where share tokens maintain the same decimals as the underlying asset token by default. However, the vault overrides `_convertToShares()` and `_convertToAssets...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incomplete ERC777 functionality ### Description When a user deposits funds into a pod, they are [scheduled to receive Pod tokens](https://github.com/pooltogether/pods/blob/8041b3dc72efd02b94d49fb37b9b308603af5ce/contracts/Pod.sol#L185) after the current draw. Conceptually, when the draw is over, they should...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
oracle
true
false
## Severity **Impact**: Medium, distributors are generally trusted actors, but this could be a vector for manipulation. **Likelihood**: Medium, randomness can be manipulated via multiple vectors ## Description The protocol generates a random number to choose which distributor will be able to commit rewards for a sp...
Pashov Audit Group
5
Subsquid
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Gauge point constants in `InitBipSeedGauge` should be scaled by the ratio of deposited BDV ### Description **Description:** The [current initial Gauge Point (GP) distribution](https://github.com/BeanstalkFarms/Beanstalk/blob/dfb418d185cd93eef08168ccaffe9de86bc1f062/protocol/contracts/beanstalk/init/InitBipS...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No checks for overflow/underflow. ### Description **Description** Math.sol, functions addDelta(), scale(), logTaylor(), logTaylor1() Arithmetical operations should be checked in order not to overflow or underflow. **Recommendation**: Use SafeMath library or update Solidity version to 0.8.x, since startin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insecure Context Management ### Description ## Vulnerability Overview The vulnerability stems from the lack of explicit access control when utilizing `CpiContextAccount` in `invoke_cpi`. In `InvokeCpiInstruction`, `CpiContextAccount` is meant to hold or manage context information required for cross-program...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minting of small values can be 0 ### Description Solidity rounds down on division, meaning that the precision of some values may be lower than expected. In the code, at construction time, the value of `mintPercent` is enforced to be less than `10_000`: ```solidity if (_mintPercent >= 10000) { revert Errors....
0