prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Losing some part of the streak bonus if depositing in multiple transactions ### Description When users deposit in continuous cycles and follow the deposit limit checks, the code gives streak bonus rewards based on the number of steak counts. One of the checks is that the current cycle deposits must be higher 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
dos
false
false
## Medium: List of markets can endlessly grow ### Description In the [`HoldefiSettings` contract](https://github.com/holdefi/Holdefi/blob/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/contracts/HoldefiSettings.sol), the [`addMarket` function](https://github.com/holdefi/Holdefi/blob/f4df394d7cf6df347b1f1e9af8e2676c5933c2c9/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refunds are subject to high gas costs and a potential DoS ### Description [Refunds](https://github.com/pods-finance/yield-contracts/blob/9389ab46e9ecdd1ea1fd7228c9d9c6821c00f057/contracts/vaults/BaseVault.sol#L333) are processed by searching the entire queue front to back for a user’s position. Currently, 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
gas
initialization
true
false
## Gas: Storage variables only assigned once in the constructor can be declared immutable ### Description **Description:** Storage variables which are only assigned once in the constructor can be declared immutable: File: `StrategyFactory.sol` File: `BeefyVaultConcLiqFactory.sol` **Beefy:** Acknowledged.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 zero address check ### Description **Description** BEP20TokenWhitelisted.sol, line 428 “modifyLGEWhitelist” function Missing checking addresses from “addresses” array parameter. **Recommendation**: Add “require” statement in for-loop and check every address in the array.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Non-deterministic Destination Account ### Description ## Issue in LendingAccountWithdrawEmissions and AddEmission Instructions The issue in `LendingAccountWithdrawEmissions` and `AddEmission` instructions pertains to how emission accounts and destination accounts are managed and validated. In `LendingAccountW...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: Nonce Verification Missing in `permit` Function ### Description **Severity**: Medium **Status**: Unresolved **Source**: ./UniswapV2ERC20.sol **Description**: The `permit` function does not include a check to verify that the nonce used in the signature is correct and has not been used before. This omiss...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrary AMM Config Possible Usage ### Description ## PoolState and AMM Configs Every `PoolState` is created using one of the existing AMM configs. The `AmmConfig` structure is used in the `swap_internal` function to determine `trade_fee_rate`, `protocol_fee_rate`, and `fund_fee_rate` that is used in 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
access-control
true
false
## High: Hackers can steal the unclaimed yield to get the double reward from the Poolvoter contract by calling distributeEx() 2 times in the same block ### Description Report type: Smart Contract Target: https://github.com/zerolend/governance Impacts: - Theft of unclaimed yield ## Description ## Description ## Br...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing checks for Chainlink oracle ### Description The `ConnextPriceOracle.getTokenPrice()` function goes through a series of oracles. At each step, it has a few validations to avoid incorrect prices. If such validations succeed, the function returns the non-zero oracle price. For the Chainlink oracle, `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-H-4 First depositor can steal asset tokens of others ### Description **Description:** The first depositor can be front run by an attacker and as a result will lose a considerable part of the assets provided. When the pool has no share supply, in `_mintInternal()`, the amount of shares to be minted is e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: Unchecked premiums ### Description The `constructor`in the **StrategyBank** contract does not verify if `INSURANCE_PREMIUM`, `LIQUIDATION_INSURANCE_PREMIUM`and `EXECUTOR_PREMIUM` are less than 100%. As a consequence, if any of them is mistakenly set, it could generate that the protocol stops working, e.g.: set...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Unlocked Pragma ### Description **Update** Marked as "Fixed" by the client. Addressed in: `7efb04a9a2048f9d6bea97d79353fc556db27983`. **Description:** Every Solidity file specifies in the header a version number of the format`pragma solidity (^)0.8.*`. The caret (`^`) before the version number implies an unlo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Execute `require` before other operations ### Description **Files:** `GasBoundCaller.sol`, `Executor.sol` Because `require` reverts the whole operation, it's better to perform `require` statements before any other operation. When `require` reverts, function won't use additional gas for other operations. [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
high
other
true
false
## High: Withdrawal shares of msg.sender are burnt incorrectly in _removeLiquidity flow ### Description When `_removeLiquidity` is called, the `_lpShares` of `AssetId._WITHDRAWAL_SHARE_ASSET_ID` is minted for `_options.destination`. ```solidity _mint( AssetId._WITHDRAWAL_SHARE_ASSET_ID, _options.destination, // <...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use SafeMath in all math operations ### Description Most math operations are safe, except a sum in the token contract at [line 51](https://github.com/erkmos/moeda/blob/b2bf23119d563e251b6f16b29b642bac43e76a64/contracts/MoedaToken.sol#L51). It’s always better to be safe and perform checked operations. **Upda...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Internal` functions only called once can be inlined to save gas ### Description If an internal function is only used once, there is no need to modularize it, unless the function calling it would otherwise be too long and complex. Not inlining costs 20 to 40 gas because of two extra JUMP instructions and addit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USDM locked unless guardian remove liquidity ### Description _Submitted by gzeon_ In README.me: > USDM deposits are locked based on the KPI’s from carrot.eth However, USDM deposits are also locked until guardian remove liquidity because there are no mechanism to remove deposited USDM in `withdraw`. [USD...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Not using `SafeTransferFrom` ### Description The current implementation of `PostionController._activePoolAddColl()` does not support tokens that do not return a boolean on successful transfers. The issue lies in the following code: Consider using `safeTransferFrom()` to handle such tokens.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Attacker can abuse `RewardsDistributor::triggerRoot` to block reward claims and unpause a paused state ### Description **Description:** Consider the code of [`RewardsDistributor::triggerRoot`](https://github.com/SolidlyV3/v3-rewards/blob/6dfb435392ffa64652c8f88c98698756ca80cf28/contracts/RewardsDistributor....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Development Team might receive less SALT because there is no access control on `VestingWallet#release()` ### Description The Development Team could potentially incur a loss on their SALT distribution reward due to the absence of access control on `VestingWallet#release()`. ### Proof of Concept When Salty ex...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All Roles Are Set to the Same Account. ✓ Fixed ### Description From talking to the team we know that all roles will be held by different timelock contracts. In the code they all are initiated to the same `admin` address. That would mean that most roles would need to be transferred. Given that each transfer tak...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: buyAndSwap1155WETH() function may cause loss of user assets ### Description _Submitted by cccz_ In the NFTXMarketplaceZap.sol contract, the buyAndSwap1155WETH function uses the WETH provided by the user to exchange VaultToken, but when executing the \_buyVaultToken method, msg.value is used instead of maxWet...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AttestationRoot() does not check if input is nil ### Description This applies to `AggVote::AttestationRoot()` and `Attestation::AttestationRoot()`. This is not a problem now, but we are making this a finding because they are exposed functions and could be used improperly in the future. We access fields without...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
dos
true
true
## Medium: Rewards distribution DoS due to uncached secondary asset classes ### Description The rewards calculation directly accesses the totalStakeCache mapping instead of using the getTotalStake() function with proper fallback logic: ```solidity function _calculateOperatorShare(uint48 epoch, address operator) 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
low
other
false
false
## Low: Unwrap may fail ### Description Although highly unlikely, if a custom ERC1155 contract is used with a blacklisting feature, then unwrapping may fail to work under a certain scenario. Let's say a custom ERC1155 token was stolen and then sold to User B. User B is unaware of this and wraps this token along with...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: Calculation underflow/overflow in BalancerPairOracle, which will affect pools in Aura Finance ### Description LP price calculation for Balancer Pair in BalancerPairOracle will produce calculation underflow/overflow (so Aura pools won't work too). ### Impact LP price for Balancer-like collateral token will ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: Denial of Liquidations and Redemptions by borrowing all reserves from AAVE ### Description Liquidations and Redemptions can be prevented by making [`ActivePool._rebalance`](https://github.com/code-423n4/2023-02-ethos/blob/73687f32b934c9d697b97745356cdf8a1f264955/Ethos-Core/contracts/ActivePool.sol#L239) rev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: Proxy Admins Could Update the Admin or the Implementation of the Proxy by Mistake ### Description **Update** The team checked and confirmed there is no selector collusion with the proxy at this moment. However, we would like to warn that future contract upgrades should be cautious on this as well, and the team...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage slot collision due to adding rescueRequests in StrategyV5Agent ### Description The storage layout of a strategy is defined by `StrategyV5Abstract` and `As4626Abstract`. The strategy contract inherents these two contracts for its storage variable definition. The StrategyV5Chainlink inherents storage 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...
cyfrin_structured
low
other
true
false
## Low: Incorrect comment in `FieldFacet::_sow` NatSpec
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
token
true
false
## Gas: Change `ROUSG::unwrap` to return amount of `OUSG` output tokens then use that as input when calling `_redeem` in `OUSGInstantManager::redeemRebasingOUSG` ### Description **Description:** Change `ROUSG::unwrap` to return amount of `OUSG` output tokens then use that as input when calling `_redeem` in `OUSGInstan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: Inability to Stake Non-Legacy SFT Slots ### Description **Update** Addressed in: `71b230f7def3e87b6ac863ae20446dc260ffde51`. The client provided the following explanation: > Keep SftWrapRouter.sol in version V1, and add SolvBTCRouter.sol. SftWrapRouter.sol no longer needs to be compatible with the old version...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 constants instead of `type(uintX).max` ### Description Saves `91 GAS` in 7 instances. Using constants instead of `type(uintX).max` saves gas in Solidity. This is because the `type(uintX).max` function has to dynamically calculate the maximum value of a uint256, which can be expensive in terms of gas. Cons...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Future Liquid Staking Token Additions ### Description The Treehouse team has outlined that future updates will likely include support for different Liquid Staking Tokens (LSTs). Each LST is designed by a different team and thus takes different approaches to accounting and profit distribution. These different 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
access-control
false
false
## Low: `E20Farm` Has Repetitive Inheritance ### Description **Update** Marked as "Fixed" by the client. Addressed in: `f66b64d789de21dc156ed2f44571bd02154fce23`. The client provided the following explanation: > We have simplified the farm hierarchy to remove repetitive Inheritance. > > > * OperableDeposit now inh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
medium
oracle-manipulation
true
false
## Medium: Stale Oracle prices accepted when no backup oracles available ### Description The `UpdateWeightRunner::getData` function performs staleness checks on oracle prices to ensure price data is fresh. However, when the optimized (primary) oracle returns stale data and there are no backup oracles configured, the 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
token
true
false
## Low: Event is missing `indexed` fields ### Description Each `event` should use three `indexed` fields if there are three or more fields [FlywheelCore.sol#L66](https://github.com/fei-protocol/flywheel-v2/tree/77bfadf388db25cf5917d39cd9c0ad920f404aad/src/FlywheelCore.sol#L66) [FlywheelCore.sol#L73](https://github...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
front-running
false
false
## Low: Frontrunnable Initialization ### Description _Acknowledged_ The `initialize` instruction creates the global `fund_pool` PDA (`seed = b"fund_pool"`) and sets `initial_admin` to an arbitrary public key supplied by the caller. There is no access control restricting who may invoke this first-use initializer. An 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
oracle
true
false
## Medium: First vault deposit can cause excessive rounding ### Description Aside from storage layout/getters, the context above notes the other major departure from Solmate's ERC4626 implementation. The modification requires the initial mint to cost 10 full WETH. ### Recommendation - Revert the hardcoding of `10e18`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `UniswapPoolHelper` doesn't inherit `IUniswapPoolHelper` ### Description `UniswapPoolHelper` is expected to conform to the underlying `IPoolHelper`, but doesn't inherit it. Recommend doing so to ensure compatibility with other contracts using 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
high
other
true
false
## High: Governance wrongly calculates `_quorumReached()` ### Description For some reason it is calculated as sum of `againstVotes` and `abstainVotes` instead of `totalVotes` on proposal. As the result, quorum will be reached only if >=1/3 of all votes are abstain or against, which doesn't make sense. ### Proof of Co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The System Might Skip Searching for Level 5 Users Under Certain Conditions ### Description Let's consider the following scenario of a parent tree: `L0 => L2 =>L3 =>L4 => L5` The L0 user chooses to start from the L2 dealer and everything is going smoothly until the `for` loop in the `BondDealerV1::_getHighe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Exercising a large amount of options gives significantly higher discounts than supposed to. ### Description Exercising options in multiple transactions would be significantly more profitable ### Impact User will be able to exercise options at significantly higher discount than supposed to. ### Recommendatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconvenient use of immutable keyword ### Description For accounts that use the protocol, the protocol provides a built-in system for tracking rewards. `Comet` contracts keep account of all accrued incentives for suppliers and borrowers of the base token, and users can claim them on [`CometRewards`](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
low
oracle
false
false
## Low: Utilize Block Height in Price Feeding ### Description In the current implementation of the `FeedPrice` function, the timestamp for the price feed is derived from the block time by converting it to Unix time. However, relying solely on the block time may not be sufficient in certain scenarios, as it can potenti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Insufficient check on asset decimals input in `create_pool` allows malicious pool to be created with invalid swap results ### Description `create_pool` is permissionless and `asset decimals` are inputs from pool creators. The vulnerability is there are insufficient check on `asset decimals` are valid. If 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
gas
other
false
false
## Gas: Unused state variables discrete0 and discrete1 in UniswapV2Pair contract ### Description The global state variables `discrete0` and `discrete1` in the UniswapV2Pair contract are declared but not utilized anywhere in the contract logic. This results in unnecessary storage consumption and increasing deployment 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...
solodit_api
medium
Access Control
true
true
Source: https://github.com/sherlock-audit/2022-09-notional-judging/issues/17 ## Found by Arbitrary-Execution ## Summary `deleverageAccount` can still be called when a vault is paused ## Vulnerability Detail Every vault has an `ENABLED` flag that can be toggled on an off, and is used to prevent certain vault accoun...
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...
skyward_49k
high
other
false
false
## High: Users can get more passports per account than set in the limit. ### Description **Description** In the contract, we have the_maxAllowedPerWallet parameter, which is responsible for the limit of passports per wallet. Verification is carried out in File: AccessTokenContract.sol 181: function_internalMint re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Missing Mint Ownership Validation ### Description ## Process Set Token Standard The `process_set_token_standard` function in `set_token_standard` updates a token’s `token_standard` based on provided metadata and mint accounts, as well as optional edition accounts. However, it does not validate the program own...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
false
false
## Severity **Impact:** High **Likelihood:** High ## Description The `OmoVault.sol` contract implements some principles of the ERC7540 standard, Asynchronous redeem shares for assets. However, users are still able to withdraw directly using `ERC4626.sol#withdraw()` Also, `_validateSignature()` function in `Dynamic...
Pashov Audit Group
3
Omo_2025-01-25
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reference Pool Manipulation ### Description ## Deep Price Point Vulnerability The function `add_deep_price_point` relies on a reference pool to obtain a mid_price, which is then utilized to update the deep price of a target pool. A potential vulnerability arises if the reference pool is unregistered and has 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
oracle
false
false
## Medium: User can redeem more tokens by artificially increasing the chi accrual ### Description A user can artificially increase the chi accrual (after maturity) by flash borrow on Compound, which affects the exchange rate used by the chi oracle. As a result, the user redeems more underlying tokens with the same amo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Duplicated code ### Description Throughout the codebase there are examples of duplicated code. Duplicating code can lead to issues later in the development lifecycle and leaves the project more prone to the introduction of errors. Errors can inadvertently be introduced when functionality changes are not replic...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe casts and usage of `IERC20Detailed` ### Description The `GeneralVault` is meant to be general, i.e. not specific to Lido or Curve, and therefore should not assume that the asset will always be `IERC20Detailed` (not all ERC20 contracts define `decimals()` since it's optional in the spec). Use [`safeDecim...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: XVS Token's Name and Symbol Are Reversed ### Description **Update** Marked as "Fixed" by the Venus team. Addressed in: `28bf1a85cddeb43769529433f929aae154eee177`. **File(s) affected:**`isolated-pools/contracts/Bridge/token/XVS.sol` **Description:** The `XVS` token inherits from the `ERC20` contract, initiali...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing creator of Meme404 doesn't update _exemptNFTMint ### Description After creating a new `Meme404`, you can change the creator. However, the original creator will remain in the `_exemptNFTMint` mapping, while the new creator can mint NFTs. ### Recommendation Remove the old creator from the `_exemptNFTMi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [08] `usedIntents` mapping never blocks replays (dead logic) ### Description ### Vulnerability details `_verifyAndMarkIntent` first checks `nonce == nonces[user]`, then increments `nonces[user]++`, and only afterward can any attempt reuse the same digest. Because the nonce moves forward, replays will always f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
false
false
## High: Understanding the fee growth mechanism (why `nearestTick` is unsuitable) ### Description _Submitted by hickuphh3_ #### Introduction Uniswap V3's whitepaper describes the fee growth mechanism, but the intuition behind it is not explained well (IMO). I've not been able to find any material that tries to descri...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Approval For Marketplace ### Description **Update** The Talentir team acknowledged the approval for the marketplace and explained that it was necessary in order to provide a gasless experience for the token minters/talents when posting their first sale. **File(s) affected:**`TalentirTokenV1` **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
overflow
true
false
## Low: `InvestorBasedRateLimiter::setInvestorMintLimit` and `setInvestorRedemptionLimit` can make subsequent calls to `checkAndUpdateMintLimit` and `checkAndUpdateRedemptionLimit` revert due to underflow ### Description **Description:** `InvestorBasedRateLimiter::_checkAndUpdateRateLimitState` [L211-213](https://gith...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
false
false
## Low: Use of incorrect operator in SQLAlchemy filter ### Description The back-end code uses the `is not` operator in an SQLAlchemy query’s filter. SQLAlchemy relies on the `__eq__` family of methods to apply the filter; however, the `is` and `is not` operators do not trigger these methods. Therefore, only the compari...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inflation will be overapplied if there is a time period when `totalSupply() == 0` ### Description When any action is taken in the protocol, `tryInflation()` is called, which checks the multiplier since the last known timestamp and, if there is inflation to apply, mints new AMKT tokens as a fee on the protoc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient input validation ### Description **Severity** **Impact:** High, as it can lead to stuck funds **Likelihood:** Low, as it requires a bad user error **Description** In `GNSStakingV6_4_1::createUnlockSchedule` we have the `UnlockScheduleInput calldata _input` parameter, where most of the field...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StakedToken` is vulnerable to share inflation attack via donation ### Description **Severity** **Impact:** High, as the targeted staker will lose fund **Likelihood:** Medium, possible when all stakers redeemed their stake **Description** `StakedToken` allows staking of underlying tokens (assets) for stak...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
logic
true
false
## Medium: `_computeAvailable()` the calculations are wrong ### Description `_computeAvailable()` incorrect calculations that result in a return value greater than the current balance, causing methods such as `liquidate` to fail. ### Proof of Concept `VaultBooster._computeAvailable()` used to count the number of `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
other
false
false
## Low: Setters should prevent re-setting the same value ### Description Not only is wasteful in terms of gas, but this is especially problematic when an event is emitted and the old and new values set are the same, as listeners might not expect this kind of scenario. *There are 6 instances 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
medium
initialization
true
false
## Medium: Slippage tolerance vulnerability in StableSwap ### Description The `assert_slippage_tolerance` function does not properly account for the non-linear pricing curve of StableSwap pools, which are influenced by the amplification factor (A). Specifically, the function calculates slippage tolerance based solely ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Gas Saving for Signature Verification ### Description When verifying public keys, signatures, and messages are all related to the same key pair. BLS wallet uses a precompiled Ethereum contract at address `0x08`. This precompiled contract will fail calls where the BLS signature fails to validate. BL...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
true
## High: incorrect distribution of Lend tokens to users ### Description if we observe _handleBorrowCrossChainRequest function, https://github.com/sherlock-audit/2025-05-lend-audit-contest/blob/main/Lend-V2/src/LayerZero/CrossChainRouter.sol#L581-L660 ```solidity function _handleBorrowCrossChainRequest(LZPayload mem...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Employ scientific notation in constants ### Description `PCV.sol#L19` defines the `BOOTSTRAP_LOAN` constant using numerical exponentiation. In contrast, `LiquityBase.sol` defines several large numerical constants that contain an excessive amount of zeros. In both cases, it is advisable to use scientific notatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing protection against potential reentrancy attacks ### Description Reentrancy attacks are a critical security concern in smart contracts, especially when functions that alter contract state or transfer funds can be re-entered before they complete. These vulnerabilities can lead to fund theft or corrupted ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Code efficiency ### Description In `LiquidationRouter.swapExactAmountOut`, `IERC20(_liquidationPair.tokenIn()).safeTransferFrom()` should be moved to `LiquidationPair.swapExactAmountOut` to avoid calling `computeExactAmountIn()` twice. https://github.com/GenerationSoftware/pt-v5-cgda-liquidator/blob/7f9...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DebtManager.manualAllocation is not considering the respect minimum idle feature in VaultV3.update_debt ### Description The `manualAllocation` function allows for the allocation of debt for each silo in the `VaultV3` by increasing or decreasing it. The `VaultV3.update_debt` function has a feature that res...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function `executeWithdrawal()` doesn't follow CEI pattern ### Description Function `executeWithdrawal()` will finalize the withdrawal requests and send the funds to the receiver. The issue is that the function doesn't follow the CEI pattern and it sets the withdraw request state after it calls the receiver so ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
true
## Low: No way to burn auction proceeds ### Description According to the Timeboost specification, after deducting the funds from the highest bidder, the contract should “transfer those funds to a beneficiary account designated by governance, or burn them if governance specifies that the proceeds are to be burned.” How...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: [4] `Factory.tokenId` does not validate the input `id` parameter. Consider validating that the `id` exist and the respective pool is created by the factory.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Misleading Documentation ### Description Throughout the codebase, multiple instances of misleading documentation were identified: * In the `Universal_Adapter` contract, the [inline documentation states](https://github.com/across-protocol/contracts/blob/c5d7541037d19053ce2106583b1b711037483038/contracts/chain-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Ownable Oracle Allowed in ChainlinkOracleWrapper ### Description The ChainlinkOracleWrapper contract is a wrapper implementation for fetching price feed data, typically from the Chainlink network. Market creators deploy an oracle wrapper contract before deploying a leveraged pool through `PoolFactory.deployPoo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: wrapNative() wrongly transfers all native tokens out when unwrapping ### Description The `wrapNative()` function can be used to convert wrapped native tokens into native tokens. Afterwards, the native tokens are transferred to the specified `to` address. ```solidity if (directionAndFake & 2 == 0) { if (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
gas
other
true
false
## Gas: Usage of assert() instead of require() ### Description Between solc 0.4.10 and 0.8.0, `require()` used `REVERT` (0xfd) opcode which refunded remaining gas on failure while `assert()` used `INVALID` (0xfe) opcode which consumed all the supplied gas. (see ).\ `require()` should be used for checking error conditi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Filename Validation ### Description Users may manipulate paths in web environments to traverse directories (`../` or `\..\`) and potentially access files outside of the intended directory. In `JsonToCSV::SaveAs`, if `fileName` is not properly sanitized, an attacker may craft a malicious `fileName` that include...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: The `owner` is a single point of failure and a centralization risk ### Description _Submitted by [Tera Bot](https://gist.github.com/code423n4/9e80eddfb29953d8b5a424084a54e4ed?permalink_comment_id=4762845#m01-the-owner-is-a-single-point-of-failure-and-a-centralization-risk)_ _Note: this finding was reported...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Setting collateral values manually is error-prone ### Description During the audit, the Frax Solidity team indicated that collateral located on non-mainnet chains is included in `FRAX.globalCollateralValue` in `FRAXStablecoin`, the Ethereum mainnet contract. (As indicated in TOB-FRSOL-023, this collateral can...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## Low: [06] Flash loan interface deviates from ERC-3156 specification ### Description The current implementation of the [`flash_mint`](https://github.com/code-423n4/2024-01-opus/blob/4720e9481a4fb20f4ab4140f9cc391a23ede3817/src/core/flash_mint.cairo) module only has methods in `snake_case`. However, the [ERC-3156](ht...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
token
true
false
## Low: Cache `prize.amount` in `SpinGame::_transferPrize` ### Description In `SpinGame::_transferPrize`, when transferring either an ERC20 or native token prize, the `prize.amount` field is read three times: once for the `if` check, once to compare against the contract balance, and again when executing the transfer: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
access-control
true
false
## Gas: Functions guaranteed to revert when called by normal users can be marked `payable` ### Description Saves `231 GAS` in `11 instances. If a function modifier such as ``onlyOwner`` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas 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: `require()` should be used instead of `assert()` ### Description Prior to solidity version 0.8.0, hitting an assert consumes the **remainder of the transaction's available gas** rather than returning it, as `require()`/`revert()` do. `assert()` should be avoided even past solidity version 0.8.0 as its [documen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
token
true
true
## Low: Multiple L2 `BridgeToken` can be associated with the same L1 `NativeToken` by using `TokenBridge::setCustomContract` ### Description Multiple L2 `BridgeToken` can be associated with the same L1 `NativeToken` by using `TokenBridge::setCustomContract`. This was not introduced in the latest changes but is presen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Staker.setRewardsFeeBps()` does not check if the new fee is less than 100% ### Description In order to prevent the rewards fee from being set to a value greater than 100%, it is recommended to check if the new fee is less than or equal to 10,000 basis points.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
storage
false
false
## Medium: Attacker Can Drain Value From Contract ### Description **Update** The client provided the following explanation: > Accept the recommendation: currently don’t allow multiple assets to be stored in single SolvBTCMultiAssetPool on any chains, until next upgrade. Further explanation: currently we do have a ‘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...
solodit_api
high
Missing-Logic
true
false
Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/151 ## Found by rvierdiiev, minhtrng, Dug, Jeiwan, obront, chaduke, koxuan, sinarette, Ch\_301, cergyk, evan, berndartmueller, 0x52, Bauer ## Summary When users withdraw their assets from `IchiVaultSpell.sol`, the function unwinds their pos...
Sherlock
5
Blueberry
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: `AddBlockHeader` Cannot Cope with Reorgs ### Description `AddBlockHeader` handles adding a block header to the node's store, through majority voting of observers. Reorgs happen, at different rates and depths for different chains and network conditions, but they do happen. And not only defensive measures mus...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
true
false
## Medium: Exchange owner might steal users' funds using reentrancy ### Description The practice of pulling funds from a user (by using `safeTransferFrom`) and then later pushing (some) of the funds back to the user occurs in various places in the `Exchange` contract. In case one of the used token contracts (or one 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: Solidity Version Is Not Fixed and Its Use Is Inconsistent ### Description In the codebase, there are [some](https://github.com/scroll-tech/scroll/blob/45e1305de5f7a1dc5aadadd7d3bb6726a5dee949/contracts/src/libraries/gateway/ScrollGatewayBase.sol#L3) contracts whose pragma statement does not use a fixed version...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
cross-chain
false
false
## Low: Semantic Overload ### Description Throughout the codebase, there are multiple instances where variables are used for multiple different purposes ([Semantic-overloading](https://forum.openzeppelin.com/t/watch-out-for-semantic-overloading/1088). For instance: * The `outstandingReceiptForDestination` variable k...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [G‑01] Multiple `address`/ID mappings can be combined into a single `mapping` of an `address`/ID to a `struct`, where appropriate ### Description Saves a storage slot for the mapping. Depending on the circumstances and sizes of types, can avoid a Gsset (**20000 gas**) per mapping combined. Reads and subsequen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: General lack of event emission in DebtManager and SiloGateway ### Description There is a general lack of event emission in DebtManager and SiloGateway. ### Recommendation For the sake of transparency and on-chain monitoring, consider using events for major operations such as: - `setAprOracle` - `setWhiteliste...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: Use ‘receive’ when expecting eth and empty call data ### Description ## Handle paulius.eth ## Vulnerability details ## Impact contract CEther fallback function was refactored to be compatible with the Solidity 0.6 version: /** * @notice Send Ether to CEther to mint */ fallback () external payable ...
0