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
medium
rounding
false
false
## Medium: Incorrect mathematical logic ### Description ### Finding description There is a fundamental error in the ELO calculation formula. For example, when `ratingA=1000` and `ratingB=800`, the code calculation result deviates greatly from the standard formula. The core problem lies in the exponent processing: 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: Providing or Withdrawing Liquidity One Asset at a Time Might Incur Considerable Price Impact ### Description In the Balancer documentation, there is a section on [risks](https://app.balancer.fi/#/risks) which arise when using the platform. One section goes into detail about the potential loss of funds when ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Price Granularity Limited by Payment Token Decimals: Cannot List Tokens Cheaper than 0.000001 USDT ### Description The SecondSwap marketplace enforces a minimum price floor based on the payment token’s smallest unit which will commonly be USDT. This creates a limitation where tokens cannot be listed for les...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VARIABLES COULD BE DEFINED AS CONSTANT ### Description The following variables could be defined as `constant`: * `WGLMR.decimals` * `WGLMR.name` * `WGLMR.symbol` ### Recommendation **SOLVED**: Variable definitions were updated to `constant`: * [WGLMR.decimals](https://github.com/DecentralizedAssetManagement...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ETWAP logic allows grief attacks on redeem flow ### Description The ETWAP's implementation is used to ensure that users can redeem approximately 25% every 1 hour. The `_calculateMarketState()` updates the `lastETWAPBaseSupply` logically when the base token supply drops and sets it immediately when `baseTok...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: User loses remaining rewards in `GiantMevAndFeesPool` when new deposits happen because `_onDepositETH()` set `claimed[][]` to max without transferring user remaining rewards ### Description When `depositETH()` is called in giant pool it calls `_onDepositETH()` which calls `_setClaimedToMax()` to make sure new...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Public key checks are not explicit ### Description Schnorr signatures are defined such that the point at infinity is a valid public key. However, in most instances, the point at infinity strongly suggests that a serious problem has occurred (e.g., a random number generator is not working correctly). It is usua...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DEPRECATED IMPLEMENTATION USED ### Description Using `.value(...)` is deprecated. Use `{value: ...}` instead. Code Location ------------- [GovHub.sol#L201](https://github.com/coredao-org/core-genesis-contract/blob/audit-halborn/contracts/GovHub.sol#L201) ``` function execute(uint256 proposalId) public pay...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
true
false
## Gas: Unnecessary native token checks ### Description **Description:** `FullRangeHook::beforeInitialize` attempts to retrieve the symbol of both currencies, with explicit handling of the native token; however, it is not possible for `currency1` to be the native token given ordering rules in Uniswap (`currency0` < `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
oracle
false
false
## Low: Test Code Mixed with Production Code ### Description **Update** From the team: **File(s) affected:**`packages/protocol/contracts/oracles/SimplePriceFeed.sol`, `packages/protocol/contracts/oracles/StablecoinPriceFeed.sol` **Description:** To prevent confusion and the introduction of vulnerabilities, test cod...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Behavior described by comment is incomplete ### Description The event is not emitted when the fee is updated the first time (in the constructor) *There is 1 instance of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: [06] Variable shadow ### Description Consider renaming the input `accessControlManager` in `PoolRegistry.initialize()`. Currently, it's being shadowed by `AccessControlledV8.accessControlManager()`. This will get a warning on common linters/text editors. Also, consider renaming the input "owner" in `VToken.al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: _deductRoyalty1155 will leave part of the royalties in the contract and it can be taken out by other users ### Description `_deductRoyalty1155` collects royalties from ERC1155, but in the code below, the royalties are calculated as `royaltyAmount * amount`. However, only the `royaltyAmount` will be sent to 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...
solodit_api
medium
initialization
true
false
## Half **Severity:** Medium Risk **Context:** GeneralAdapter1.sol#L309-L312, GeneralAdapter1.sol#L316 **Description:** When `GeneralAdapter1.morphoRepay()` is called with `shares == type(uint256).max`, `MorphoLib.borrowShares()` is called to set shares to the amount of borrowShares held by the initiator: ```s...
Spearbit
5
Morpho Bundler v3
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Not Followed for Unsubscribe Logic ### Description The [unsubscribe logic](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/base/Notifier.sol#L51-L53) first makes an external call to the subscriber and then deletes the subscriber for ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawal Delay Can Be Bypassed When L1 Operations Processed More Than Once Per 24 Hours ### Description HyperCore enforces a 24-hour cooldown after staking before withdrawals from the same validator can be processed. The StakingManager processes L1 operations (withdrawals first, then deposits) via `proces...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When the `DeliveryPlace::settleAskMaker()` function calls `tokenManager.addTokenBalance()` to update the user balance, the `TokenBalanceType` parameter uses an operation, resulting in a balance update error ### Description When the `DeliveryPlace::settleAskMaker()` function calls `tokenManager.addTokenBalance(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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-10"></a>[GAS-10] Use shift Right/Left instead of division/multiplication if possible
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Minor code improvements ### Description ## Code Review Summary ## Context - `SyncSwapper.sol#L77-L94` - `ClaggBaseAdapter.sol#L522-L523` - `MainStorageLib.sol#L78-L80` - `LinkedList.sol#L199-L205` - `ClaggMain.sol#L120-L123` - `ClaggBaseAdapter.sol#L183-L191` ## Description/Recommendation 1. **SyncSwapper.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
other
true
false
## Low: A magic number should be documented and explained. Use a constant instead. ### Description *Similar issue in the past: [here](https://github.com/code-423n4/2021-04-marginswap-findings/issues/71)* 1: 10000: I suggest using `constant` variables as this would make the code more maintainable and readable while...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: level calls to account with no code will not fail ### Description - https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/strategies/votium/VotiumStrategyCore.sol#L292 Low level calls (i.e. `address.call(...)`) to account with no code will silently succeed without reverting or throwing any error...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Observer rewards are less than expected due to not properly accounting for negative rewards ### Description Observers receive slightly fewer rewards than they should due to not correctly accounting for negative rewards in the `BuildRewardsDistribution()` function. ### Impact Observers receive slightly fewe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider reverting removeOwnerAtIndex() if the index is empty ### Description If the `removeOwnerAtIndex()` is called on an index that doesn't contain an owner, the function will succeed in removing the non-existent owner. Since `_addOwnerAtIndex()` reverts if an owner already exists, it could make more sense ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Native `HYPE` sent directly to deposit pool will be permanently locked ### Description _Resolved_ The contract includes a `receive()` function, allowing it to accept native `HYPE`. However, there is no restriction on who can send native `HYPE` to the pool. This creates a scenario where any address can transfe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UNVALIDATED BRIDGE AUTHORITY COULD LEAD TO IRREVERSIBLE ERRORS AND DOS ### Description The `Initialize` instruction of the `ngl-core` program allows the deployer to initialize the core config account. To achieve this, the `bridge_authority` address must be provided as a parameter along with other values. 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
gas
other
true
false
## Gas: A modifier used only once and not being inherited should be inlined to save gas ### Description Affected 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
high
liquidation
false
false
## High: Liquidation Avoidance by Front-Running liquidateCreditAccount() with Ownership Transfer ### Description Due to liquidations being performed on the borrower’s address and not the CreditAccount, users can feasibly avoid liquidation by front-running calls to `liquidateCreditAccount()` and transferring CreditAcco...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: dollar price tokens can not be used as collateral in `ClassicMinterV1` ### Description In the `ClassicMinterV1::_mintAmount()` function, the calculation for minting `USDf` tokens uses a `PRICE_SCALE` of `10_000`. This means that tokens with a price lower than `$0.00009` will not be able to be used since their ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `mintTokenId()` to block `batchMint()` ### Description `HoneyJar.mintTokenId()` allows minting the exact `tokenId` provided. This is a risky approach, because `Beekeper` uses `batchMint()` that mint N tokens from the current amount. If a minted token from `HoneyJar.mintTokenId()` is met during this batch minti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The protocol uses `_msgSender()` extensively, but not everywhere ### Description **Impact:** Low, because protocol will still function normally, but an expectedly desired types of transactions won't work **Likelihood:** High, because it is certain that he issue will occur as code is **Description** The 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: Typographical Error ### Description ## Issue: Incorrect Spelling in Function Name In `set_amin`, admin is incorrectly spelled as `amin` as shown below: ## Remediation Modify the function name to become `set_admin` instead of `set_amin`. ## Patch Fixed in PR #26. ### Recommendation Modify the function na...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
true
false
## Gas: Loop optimization opportunities ### Description Under certain safe scenarios, for loops in Solidity can be optimized by taking advantage of the following properties: - Un-initialized unsigned integers are set to 0 by default. - Caching variables that are read multiple times reduces gas costs as SLOADs are avoi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
true
## High: OrderBook Denial of Service leveraging blacklistable tokens like USDC ### Description The issue was spotted while analyzing additional impact and fix for 67. Proof of concept checked with the original audit commit: `28062f477f571b38fe4f8455170bd11094a71862` and the newest available commit from the dev branch:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deviation from ERC777 specification ### Description Pool Tokens are created in a non-conventional way. Whenever users deposit assets into the system, they are internally accounted for but the new balances are not accessible to the ERC777 token functions. At the end of the draw, when the balances become availab...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_requireVaultCollateralized()` is called at the beginning of the functions `mintYieldFee()` and `liquidate()` ### Description The `liquidate()` and `mintYieldFee()` functions could leave the vaults under-collateralized. ### Proof of Concept `_requireVaultCollateralized()` is called at the beginning of `m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: Unbounded loop on array can lead to DoS ### Description [L-03] Unbounded loop on array can lead to DoS As this array can grow quite large, the transaction’s gas cost could exceed the block gas limit and make it impossible to call this function at all (see @audit): File: LPFarming.sol 141: function add(uint256...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Precision loss causes systematic under-reporting of voting power for high decimal tokens ### Description **Description:** The `NormalizedTokenDecimalsVPCalc::_normalizeVaultTokenDecimals()` causes voting power loss for legitimate stakeholders when high-decimal tokens (>24 decimals) are used. This occurs du...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Order will be executed with wrong slippage if by the time of execution, price crosses take profit ### Description An order's direction is determined by whether the current `exchangeRate` is below or above the `takeProfit` price ```solidity orders[existingOrderId] = Order({ orderId: existingOrderId, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Automatic Wallet Account Change Handling in Dapp ### Description The back-office Dapp (and the `app.testnet`) connected to MetaMask does not automatically handle wallet account changes. When the user connects with Account 1 (`0x6682490d38eB880bFbb5Ef132Be3b56fAbC0832F`) and then switches to Account ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Stalk rewards don't get burned for large partial withdrawals due to unsafe downcast ### Description **Description:** When calling `SiloFacet::withdrawDeposit`, it is possible that Stalk rewards are not burned for large partial withdrawals as `LibSilo::stalkReward` will return 0 due to an [unsafe downcast](http...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pending withdrawals in `YuzuILP` contract are not considered in totalAssets calculation ### Description In `YuzuILP`, when a user creates a redeem order, the contract calculates and records the asset amount they are entitled to based on the vault price at that moment. ```Solidity // from YuzuOrderBook fil...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Including Interest In Vault CR Calculation ### Description The `redeem_collateral` and `liquidate` functions calculate the collateral ratio (CR) for a vault, which is used in redemption and liquidation calculations. However, these functions do not account for the updated interest of the vault when calculati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Event Emission in `setBaseURI` ### Description **Severity**: Low **Status**: Resolved **Description** The `setBaseURI` function allows the contract owner to update the base URI for the NFTs. However, the function does not emit an event when the base URI is changed. Emitting an event for such actions...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ether amount sent above fee or fee + amount will get locked in the contract ### Description **Severity**: Medium **Status**: Resolved **Description** Every function within `WrappedTokenBridge.sol` and `OriginalTokenBridge.sol` are payable functions. This is because the user executing these functions nee...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Input Validation ### Description The `_value` argument from the [`increaseMinNonce` function](https://github.com/matter-labs/era-contracts/blob/cc1619cfb03cc19adb21a2071c89415cab1479e8/system-contracts/contracts/NonceHolder.sol#L82) in the `NonceHolder` contract lacks input validation, and it should be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: `user.creation` is updated incorrectly when the user tries to extend membership ### Description _Submitted by WatchPug_ [`FSDNetwork.sol` L274-L291](https://github.com/code-423n4/2021-11-fairside/blob/20c68793f48ee2678508b9d3a1bae917c007b712/contracts/network/FSDNetwork.sol#L274-L291) ##### PoC 1. Alice...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: level calls with Solidity before `0.8.14` result in an optimiser bug ### Description The project contracts in scope are using low level calls with solidity version before 0.8.14 which can result in an [optimizer bug](https://medium.com/certora/overly-optimistic-optimizer-certora-bug-disclosure-2101e3f7994d). ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
logic-error
true
false
## Low: Taker receives Aave yield for cancelled pending bets ### Description If a bet uses an Aave pool but never becomes `ACTIVE` (taker never accepts), only the maker’s stake is supplied to Aave. In `Bet::cancel`, the recovered Aave balance is still split using maker/taker logic: ```solidity uint256 aTokenBalance = ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ExchangeRates Miscellaneous General Comments ### Description This section details miscellaneous informational aspects found within the `ExchangeRates` smart contract. These items are understood to not pose immediate security risks. 1. **USD Synth (sUSD)** price can be set to something other than 1: this direc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Unvalidated Curve Cuts Leading to Arbitrage ### Description Missing validation for `liqSquare > 0` allows zero-liquidity curves. ### Impact - **Reserve Drainage:** Attackers exploit zero-liquidity curves to swap negligible amounts for large reserves. - **Protocol Insolvency:** Invalid curves create bad deb...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `safeTransfer`/`safeTransferFrom` consistently instead of `transfer`/`transferFrom` ### Description It is good to add a `require()` statement that checks the return value of token transfers, or to use something like OpenZeppelin’s `safeTransfer`/`safeTransferFrom` unless one is sure the given token reve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Self-Referral Protection Still Allows Multiple Account Self-Referral ### Description **Description:** The referral validation in the `deposit()` function only prevents self-referral by checking if the referral account address matches the client's account address. However, this allows users to crea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect pause implementation results in confusing error messages in BitcornOFT ### Description In `BitcornOFT.sol`, the `_beforeTokenTransfer` hook implements pause functionality by adding a `whenNotPaused` modifier while inheriting `ERC20PausableUpgradeable`. This results in the following two issues: - The...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `disburseNativeBOBA()` Locking Tokens with Failed Transfer ### Description **Update** Marked as "Fixed" by the client. Addressed in: `9989649c24e695987acc428693081e032640d8bd`. The client provided the following explanation: The disburser can use the extra method added on QSP-1 to retry failed disbursements wit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lido Hurdle Rate Calculation Timing Can Vary Admin Fee ### Description If updates to the Lido Hurdle rate are delayed for multiple days, this can lead to an increase in the admin fee charged by Treehouse for exceeding the Lido hurdle rate. This issue arises due to the compounding effect of multiple updates ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _`handleExecuteTransaction` may not working correctly on fee-on-transfer tokens. Moreover, if it is failed, fund may be locked forever. ### Description _Submitted by Chom, also found by csanuragjain_ [BridgeFacet.sol#L856-L877](https://github.com/code-423n4/2022-06-connext/blob/4dd6149748b635f95460d4c3924c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: (HAL-01) Multiple Unlocked Solidity Versions in Use ### Description The contracts in scope use multiple pragma versions with unlocked versions. Contracts should be deployed with the same compiler version and flags with which they were thoroughly tested. Locking the pragma helps to ensure that contracts are not...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
true
false
## Medium: If a hat is owned by address(0), phony signatures will be accepted by the safe ### Description If a hat is sent to `address(0)`, the multisig will be fooled into accepting phony signatures on its behalf. This will throw off the proper accounting of signatures, allowing non-majority transactions to pass 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
access-control
true
false
## Low: Users Have No Access to Owned Tokens ### Description **Update** Marked as "Fixed" by the client. Addressed in: `2bb4896a06e1f258c6e12f3d3d3fb55876b5fa38`. **Update** The `hasAccess()` function has been removed and replaced with off-chain tracking of the subgraph to validate access privileges. **File(s) affe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: One can become referral of hash 0x0 and because all users default referral hash is 0x0 so he would become all users referral by default and earn a lot of fees while users didn’t approve it ### Description ## Lines of code https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Division/Multiplication Optimization ### Description **Description** Throughout the contract, switching from division/multiplication to right-shift/left-shift can save gas: - PricingUtils.sol::64 - Array.sol::62,65 **Recommendation** Switch uses of division to right-shift and uses of multiplication to le...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: Message can be passed through OptimismPortal to maliciously call ethYieldManager ### Description ## Security Risk Report ## Severity: **Critical Risk** ## Context: `OptimismPortal.sol#L387` ## Description: Through `L2ToL1MessagePasser.initiateWithdrawal()`, one can set `ethYieldManager` as the `_tx.targe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Staking rewards are calculated based on the user's share of total points in the corresponding asset pool, this is the sum of the points associated to the staker's positions divided by the total points from all positions in the pool. We can see this calculation in the `getPoolReward` function: [NeoTokyoStaker.sol#L138...
Code4rena
5
Neo Tokyo
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Don't use `_msgSender()` if not supporting EIP-2771 ### Description Use `msg.sender` if the code does not implement [EIP-2771 trusted forwarder](https://eips.ethereum.org/EIPS/eip-2771) support *There are 2 instances of this issue.* **[Alex the Entreprenerd (judge) commented](https://github.com/code-423n4/20...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bonds created in year cross epoch's can lead to lost payouts ### Description Bond depositors and agent/component owner's may never receive the payout Olas. Incorrect inflation control. ### Proof of Concept `effectiveBond` is used to account how much of Olas is available for bonding. This includes Olas that ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: Governor setting asset as valid collateral allows anyone to borrow outsized amounts of asset ### Description If a governor were to accidentally set the asset of an EVault as collateral, this allows anyone to borrow outsized amounts of assets. ### Impact Since making this mistake is relatively unlikely and giv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Method releaseTokens has multiple issues ### Description **Description** Method releaseTokens of contract PrivateDistribution, that is invocable only by the contract owner, has set of issues at the moment: - it releases tokens for first 256 registered investors, because of uint8 overflow, if the number of in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Use of mem::forget for FFI is error-prone ### Description The documentation for `std::mem::forget` states that using it to transfer memory ownership across FFI boundaries is error-prone. Specifically, modifications that introduce panics into code that uses `std::mem::forget`, such as the code shown in figures ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Interfaces ✓ Fixed ### Description In a few cases, incorrect interfaces are used on top of contracts. Though the effect is the same as the contracts are just tokens and follow the same interfaces, it is best practice to implement correct interfaces. * `IPeUSD` is used instead of `IEUSD` **contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Tokens for deployment contribution can be stolen ### Description ## Security Report ## Severity: **Critical Risk** ## Context: - `HyperdriveDeployerCoordinator.sol#L329-L351` - `ERC4626HyperdriveDeployerCoordinator.sol#L76` ## Description: The Hyperdrive factory deployment process involves several contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Costly error messages ### Description **Severity**: Informational **Status**: Acknowledged **Description** Error messages in some require statements are long and considered costly in terms of gas. **Recommendation**: Write shorter error messages Use custom errors which is the goto choice for developers 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
dos
true
false
## Low: Insufficient update window validation can cause denial of service in `forceUpdateNodes` ### Description **Description:** The `AvalancheL1Middleware` constructor fails to validate that the `UPDATE_WINDOW` parameter is less than the `EPOCH_DURATION`. This validation is critically important because the `onlyDurin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
access-control
false
false
## Medium: DAO members have no option to leave ### Description `MembershipFactory` exposes methods to join a DAO and upgrade tiers within a `SPONSORED` type DAO; however, there is no logic directly exposed to DAO members to burn their membership token(s) if they decide to leave the DAO. The only role with permissions ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Selection Of Winners ### Description ## VRFv2Consumer.sol Issues and Remediation In `VRFv2Consumer.sol`, `fulfillRandomWords` is triggered by the `vrfCoordinator` to fulfill the request for random words. The `randomWords` is then used to select a random list of participants as winners. ## Issues T...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Prevent mixing rewards from different quests and periods ### Description The `MultiMerkleDistributor.sol` contract does not verify that the sum of all amounts in the Merkle tree are equal to the rewards allocated for that quest and for that period. This could happen if there is a bug in the Merkle tree crea...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Missing Validation Logic ### Description ## Token Validation and Exchange Improvements ## 1. Implementing Token Validation Implement the validation for `lockableToken` within `addLockableTokens` rather than in `_lockToken` to centralize and pre-emptively validate tokens before they are locked. This ensures 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
token
true
false
## Low: `protocolCut` not actually burned during `_mintBox` ### Description _Resolved_ Code comments suggest that the `WishWishManager::_mintBox` function calculates a `protocolCut` meant to be burned when users mint boxes. However, instead of invoking a burn function, the code simply transfers the tokens to `address...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Space.sol Contract Missing Necessary Logic To Function As A Balancer Oracle ### Description ## Risk Assessment ## Severity **Low Risk** ## Context - **Files**: - Space.sol - Zero.sol (Lines 15-45) - WeightedPool2Tokens.sol ## Situation The Space contract is missing the implementation of several depen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AAVE's PoolDataProvider address should not be immutable ### Description The `PoolDataProvider` address is one that can change due to AAVE governance proposals and should not be an immutable value. See recent upgrade (AAVE v3 Governance proposal 252). ### Recommendation Whenever the `PoolDataProvider` is neede...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [7] Add `unchecked {}` for subtractions where the operands cannot underflow because of a previous `require()` or `if`-statement ### Description `require(a `require(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
other
true
false
## Medium: Stake function does not account for totalClaimed when checking stakingLimit ### Description The `StakingManager` contract implements a staking limit mechanism through the `stakingLimit` parameter to control the maximum amount of HYPE tokens that can be staked in the system. However, the current implementati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 check for non-zero `msg.value` ### Description The `KlasterPaymaster` contract has three functions that accept Ether: `handleOps`, `simulateHandleOp`, and `simulateValidation`. However, these functions do not check whether the received `msg.value` is greater than zero before depositing the funds to the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Inconsistent use of Length and Degree ### Description There is mixed terminology in the codebase concerning Length and Degree. We found it confusing that `VerifyBlobLength` is actually verifying the degree, or number of elements in the blob. For example, some files refer to this as the `lowDegreeProof` and oth...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improving Clarity and Functionality of setConfig Method ### Description **Severity**: Informational **Status**: Resolved **Location:** TokenSaleUSDB.sol, TokenSaleETH.sol **description** The setConfig function is unclear and could lead to confusion. The function appears to intend that only the creator 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
low
other
false
false
## Low: Custom errors ### Description **Severity:** Low **Description:** In each contract the validation checks are performed using the `require` function with a reason string. **Remediation:** We would recommend to replace these with custom errors. This should be done by flipping the check. For example: 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
high
other
false
false
## High: User can forfeit other user rewards ### Description _Submitted by csanuragjain_ [ExtraRewardsDistributor.sol#L127](https://github.com/code-423n4/2022-05-aura/blob/main/contracts/ExtraRewardsDistributor.sol#L127) User can forfeit other user rewards by giving a higher \_startIndex in getReward function. ### ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Low: Matching amounts ### Description ## Severity: Low Risk ## Context ProcessMergeUtils.sol#L47-L53 ## Description/Recommendation Due to how rounding directions behave, it would make more sense for certain quantities that need to match on both sides and cancel each other to just use the negation of one calculati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TradingStorage implementation contract is left uninitialized ### Description **Severity**: Medium **Status**: Resolved **Description** TradingStorage contract has been updated to use initialize() method which uses `initializer` modifier. It is recommended in OpenZeppelin’s documentation to not leave impl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
true
false
## Gas: Loop optimization opportunities ### Description Under certain safe scenarios, for loops in Solidity can be optimized by taking advantage of the following properties: - Un-initialized unsigned integers are set to 0 by default. - Caching variables that are read multiple times reduces gas costs as excess SLOADs ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Self-triggered `Licredity::_afterSwap` back-run enables LP fee farming ### Description **Description:** When price hits or goes below 1, [`Licredity::_afterSwap`](https://github.com/Licredity/licredity-v1-core/blob/e8ae10a7d9f27529e39ca277bf56cef01a807817/src/Licredity.sol#L734-L753) auto back-runs a swap to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: Buffer _CONVERT_FACTOR can be avoided by providing unbalanced liquidity ### Description Users can avoid the _CONVERT_FACTOR applied to wrap and unwrap operations by providing unbalanced liquidity to the buffer and then immediately removing the liquidity. During wrap and unwrap operations, the _CONVERT_FACTOR i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: A malicious lien buyer can DoS to cause fund loss/lock ### Description A malicious lien buyer can DoS to cause fund loss/lock of other lien holders & borrower collateral. ### Impact 1. An attacker can revert `endAuction()` to prevent the release of collateral to the winner. 2. An attacker can revert `liquida...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: EXCHANGE RATE COULD INCREASE INDEFINITELY ### Description The values of `bsei_exchange_rate` and `stsei_exchange_rate` can increase indefinitely (i.e.: greater than 1) by directly burning **bsei** and **stsei** tokens, respectively. Although this issue is not immediately exploitable, if those exchange rates ge...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Valid pairs seem to wrongly invalidated ### Description https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/types/GlobalData.sol#L26-L32 These functions are used to validate the `vaultIds` or `pairIds`. The issue, however, is that these functions use a non-stric...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong calculation of Accure Reward in Comptroller.sol ### Description Accure Reward calculates the global total staked before updating the total amount of token frozen hence, the globalTotalStaked used does not reflect the actual present globalTotalStaked value. Thus A user can claim the reward for recently f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: __Ownable_init will be called twice in multiple Eligibility contracts ### Description ## Handle a_delamo ## Vulnerability details Here you have more info: https://gist.github.com/alexon1234/43bf4a72a5b06651f04fc8052349ac5a
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent stake calculation due to mutable `vaultManager` reference in `AvalancheL1Middleware` ### Description **Description** The `AvalancheL1Middleware` contract permits updating the `vaultManager` reference. However, doing so can introduce **critical inconsistencies** in logic that depends on statefu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: spTKNMinimalOracle `_calculateSpTknPerBase()` does not return 0, which breaks the feature of having a fallback oracle. ### Description spTKNMinimalOracle `_calculateSpTknPerBase()` does not return 0, which breaks the feature of having a fallback oracle. ### Impact Fraxlend is supposed to work when only one...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
false
false
## High: Potential Funds Lockup ### Description **Severity**: High **Status**: Resolved **Description** The settleDuel function enforces a condition that the duel must be settled within 48 hours of its expiryTime using the line require(block.timestamp <= duel.expiryTime + (48 * 3600), "Resolving time expired");. If...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Generate perfect code headers every time ### Description I recommend using header for Solidity code layout and readability https://github.com/transmissions11/headers ***
0