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
oracle
true
false
## Low: `ChainlinkCompositeOracle::getDerivedPriceThreeOracles` is very specialized ### Description https://github.com/code-423n4/2023-07-moonwell/blob/main/src/core/Oracles/ChainlinkCompositeOracle.sol#L157-L159 Here the three prices for the oracles are multiplied together. This requires a setup of prices like this...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
signature
false
false
## Gas: Empty blocks should be removed or emit something ### Description The code should be refactored such that they no longer exist, or the block should do something useful, such as emitting an event or reverting. If the contract is meant to be extended, the contract should be `abstract` and the function signatures ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: All swaps other than the top-of-block swap will revert ### Description **Description:** For swaps that are not top-of-block, `AngstromL2::afterSwap` short-circuits; however, this occurs too late in the execution with an incorrect `hookDeltaUnspecified` after a debt is erroneously created in the invocation o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Possible Failures of Bridging XVS Tokens ### Description **Update** Marked as "Fixed" by the Venus team. Addressed in: `244a44662f105112bc61872c80fc890e6e4d4574`. The Venus team provided the following explanation: > The commit is actually in the documentation repo: https://github.com/VenusProtocol/venus-proto...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Allowed Execution Of Expired Orders ### Description ## Maven Move - Execute Permission Recovery In `maven.move`, `execute_permission_recovery` allows users to execute orders, even if they have expired. ## Remediation Verify that the current timestamp is lower than the `expiration_ms` in `time_lock::destroy...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Haircut and Pricefeed Data Not Erased when a Currency Is Removed ### Description **Update** Marked as "Acknowledged" by the client as intended by design. The client provided the following explanation: > _When a currency is delisted, `removeCurrency()` is called, but order books are active until the maturity d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: | Centralization Risk ### Description **Description** The exchange keeper and other permissioned addresses have the power to do nearly anything: - Execute any order or liquidation at any arbitrary price - Defer execution of any arbitrary deposit, withdrawal, order, or liquidation - Select the order of exe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swapper assumes 18 decimals for the stable coin ### Description The `Swapper` contract assumes in multiple places that the stable coin contract has 18 decimals (e.g., [here](https://github.com/AngleProtocol/angle-transmuter/blob/196bf1035154809b1c8f454c17bb45e3745509a6/contracts/transmuter/facets/Swapper.sol#L...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Const `workerOwner` ### Description https://github.com/nucypher/nucypher/blob/main/nucypher/blockchain/eth/sol/source/contracts/staking_contracts/PoolingStakingContractV2.sol#L40 It's not clear why `workerOwner` is a `const`. ### Recommendation If it's not supposed to be transferred, write a comment describin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketDAOProposal - preserve the proposals correct state after expiration ✓ Fixed ### Description The state of proposals is resolved to give a preference to a proposal being `expired` over the actual result which may be `defeated`. The preference for a proposal’s status is checked in order: `cancelled? -> exec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol fees not taken on premium ### Description Protocol fees not taken on premium ### Impact Rather than using the Illuminate version of `lend()`, which charges a fee, users could use the Swivel version, and ensure the fee portion is small, and the premium non-fee portion is large, so that Illuminate 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
medium
access-control
false
false
## Medium: Admin of the upgradeable proxy contract of `Controller.sol` can rug users ### Description _Submitted by WatchPug_ [Controller.sol#L22-L34](https://github.com/code-423n4/2022-03-rolla/blob/a06418c9cc847395f3699bdf684a9ac066651ed7/quant-protocol/contracts/Controller.sol#L22-L34) Use of Upgradeable Proxy Con...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: The totalCoverTokens can be decreased before the claim is committed ### Description The `totalCoverTokens` is decreased right after the policy duration ends (`_endEpochNumber`). When that happens, the liquidity providers can withdraw their funds: **code\_new/contracts/PolicyBook.sol:L262-L265** ``` policy...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: Reward claiming fails for Berachain RewardVaults due to incorrect interface ### Description **Description:** D2 plans to deploy on the newly launched Berachain, which operates on a novel [Proof-of-Liquidity](https://docs.berachain.com/learn/what-is-proof-of-liquidity) model. On Berachain, liquidity providers ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Auction Bids Will Work On Both Types Of Auction ### Description Auction bids intended for a solvent auction can also be applied to an insolvent auction for the same account. This can lead to liquidators bidding on the wrong type of auction and accepting portfolios they did not desire. Both types of auctions, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
other
true
false
Source: https://github.com/sherlock-audit/2023-06-symmetrical-judging/issues/239 ## Found by xiaoming90 ## Summary Hedgers could intentionally force the users to close the positions themselves via the `forceClosePosition` and charge a spread to earn more, which results in the users closing at a worse price, leading...
Sherlock
5
Symmetrical
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StrategyManager does not emit an event when the first strategy gets added. ### Description `StrategyManager` does not emit an event when the first strategy gets added, which can cause issues for off-chain agents. ### Recommendation To make it easier for off-chain agents' data lookup, it would be great to ensu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: Invalid Redstone oracle payload size prevents the protocol from working properly ### Description In api contract, it uses 224 bytes as maximum length for Redstone's oracle payload, but oracle price data and signatures of 3 signers exceeds 225 bytes thus reverting transactions. ### Impact Protocol does 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...
solodit_api
medium
liquidation
true
true
Source: https://github.com/sherlock-audit/2023-02-surge-judging/issues/101 ## Found by chaduke ## Summary A liquidator can gain not only collateral, but also can reduce his own debt. This is achieved by taking advantage of the following vulnerability of the ``liquidate()``: it has a rounding down precision error a...
Sherlock
4
Surge
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SQRT Overflow ### Description Some edge case with extreme parameters. The conditions are: - "b" parameter set to some really high value - totalSupply is also high In such situations, the sqrt function could overflow. The mint function will break due to getBuyPrice() DoS. Because in line 29, could be very lar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
liquidation
true
false
## Gas: Constructors can be marked payable ### Description Payable functions cost less gas to execute, since the compiler does not have to add extra checks to ensure that a payment wasn't provided. A constructor can safely be marked as payable, since only the deployer would be able to pass funds, and the project itsel...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Medium: Unchecked return of `execute()` ### Description Across the `VaultController.sol` there are many external calls to the `AdminProxy.sol` via `execute()`. Looking at the `execute()` function in `AdminProxy.sol`: As one can see it does a call to the target contract with the provided `callData`. Going back 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...
cyfrin_structured
low
other
false
false
## Low: Emit missing events on important parameter changes ### Description Emit missing events on important parameter changes: * `CCTPSender::setCCTPDomain` * `USDCBridgeV2::setCCTPDomain`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loan migration will fail if the token is not supported by balancer v2 ### Description If a new lender is the same as the old one, a flashloan is used to avoid collecting additional capital from the lender. This is, however, not always possible as Balancer has a limited pool of supported tokens and limited liqu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Incorrect logic for checking isFillPriceValid ### Description The logic for calculating if a trader added a valid FillPrice is not correct. ### Impact 1. Traders will not be able to add target price which means they cannot add Take profit or stop loss to their trade 2. The Offchain order will always fail
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Updating `vestingPeriod` can retroactively reclassify vested rewards as unvested ### Description **Description:** `sUSBD` tracks an active vesting “epoch” using `vestingAmount` and `lastRewardTimestamp`, while `sUSBD::getUnvestedAmount` computes remaining unvested rewards using the current `vestingPeriod`. 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: BondWrapper with high _mintPercent can become unbacked ### Description The BondWrapper reverts if `_mintPercent >= 10000 (100%)` and when closing the position via close checks that the amount received from closing the bonds is at least `_mintPercent * bondAmount` to ensure the bond positions of the contract ar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: no reentrancy guard on mint() function that has a callback ### Description _Submitted by jayjonah8, also found by Fitraldys_ In CollateralizedDebt.sol, the mint() function calls \_safeMint() which has a callback to the "to" address argument. Functions with callbacks should have reentrancy guards in place ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple strategies sharing the same asset ### Description AdapterVault design assumes that each strategy has a unique asset (e.g. PT token). Otherwise, key accounting functions would return overinflated values. E.g. \_totalAssetsNoCache() which goes through each strategy and calls `balanceOf()` for 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
medium
token
true
false
## Medium: Unhandled return value of `approve` function in `TracerGMXVault.sol` ### Description **Description** TracerGMXVault.sol - There are multiple calls to the approve function form the IERC20, because the ERC20 standard does not require to fail inside the approve function and there are multiple implementation s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: DEPOSIT_VAULT_ADMIN_ROLE/REDEMPTION_VAULT_ADMIN_ROLE have larger permission than expected: they shouldn't be able to pause vaults ### Description The accessibility of DEPOSIT_VAULT_ADMIN_ROLE and REDEMPTION_VAULT_ADMIN_ROLE has larger permission than what the contest readme claims: they can pause the vault ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent encoding of arrays in `MetaTxLib` ### Description According to the [EIP-712](https://eips.ethereum.org/EIPS/eip-712) specification, arrays are encoded by concatenating its elements and passing the result to `keccak256`: > The array values are encoded as the `keccak256` hash of the concatenated...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `withdrawPrincipal` can be called multiple times for the same wallet ### Description The issue is identified within the function [`withdrawPrincipal`](https://github.com/diadata-org/prestaking-contracts/blob/6ee4beee6cbcdb3b7e7ea1feb9a8b1192bc8c8ba/prestaking/src/Prestaking.sol#L163) of contract `Prestaking`. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users Would Lose Rewards If A Huge Majority Bets On The Winning Side Due To Rounding ### Description **Severity** - High **Status** - Resolved **Description** Consider the following scenario for a UpDown Game (winning side is down side) → totalDepositsDown = 100 tokens totalDepositsUp = 100000000 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
low
other
false
false
## Low: Arrival Confirmation ### Description ## Ride Confirmation Issue In its current implementation, the system allows a driver to start a ride without confirmation from the rider that they have arrived at the pickup point. This lack of confirmation can lead to potential issues such as miscommunication or misunders...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `RewardManagerMixin.claimAccountRewards` lacks of necessary param check. ### Description In current implementation, `RewardManagerMixin.claimAccountRewards` function doesn't check `account` paramm, if the `MORPHO` is passed in as `account`, rewards will be transferred to `MORPHO`. Which isn't correct. ### Im...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `updateYieldStrategy` will freeze some funds with the old Strategy if `yieldStrategy` fails to withdraw all the funds because of liquidity issues ### Description _Submitted by hyh, also found by harleythedog, GreyArt, and pauliax_ Part of the funds held with the strategy can be frozen if the current strate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of access controls allows anyone to deposit Uniswap tokens ### Description The Controller contract allows anyone to add a UniswapV3 token position as collateral to any vault. If a vault that does not have a UniswapV3 token position is at risk of liquidation, the vault owner could consider adding a Uniswap...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: Fallback oracle may break with future NFTs ### Description In order for the fallback oracle to fall back to the Bend DAO oracle, the NFT in question must say that it in fact `supportsInterface(0x80ac58cd)`. The EIP-721 standard says that the implementer MUST do this, and both Openzeppelin's and Solmate's impel...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: pragma version definition ### Description It is generally considered best practice to avoid using floating Solidity version declarations. ### Recommendation Lock the pragma to the specific version you wish to use (in this case, `foundry.toml` defines 0.8.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
low
oracle
false
false
## Low: Oracle rewards may not be distributed ### Description If the `x/oracle` module lacks the coins to cover a reward payout, the rewards will not be distributed or registered for payment in the future. ```go var periodRewards sdk.DecCoins for _, denom := range rewardDenoms { rewardPool := k.GetRewardPool(ctx, d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
logic
false
false
## Low: Exact block timestamps usage. ### Description At this line: https://github.com/iearn-finance/yearn-vaults/blob/cff924f1894cca1820a588b14d341c4fa4f384c0/contracts/BaseStrategy.sol#L320 Dependency on particular block exact timestamps can eventually break the business logic because the timestamps not only may va...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect cap returned ### Description **Description:** 1. Observe the `cap`function \ 2. If `maxSupply`is 0 (no restriction)then cap returned will be 0 which is incorrect **Recommendations:** If `maxSupply`is 0 (infinite supply allowed)then return `type(uint256).max`.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Internal method for grant proposals ### Description `proposeDirectGrant()`, `proposeSimpleGrant()`, `proposeAdvancedGrant()` can use the same internal method to decrease the size of the contract. https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/implants/daoVetoGrantIm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Disposable sessionKey s might be deleted too soon ### Description The bundler can be a (disposable) `sessionKey`, which can receive ETH from `metacall()`. After this `sessionKey` is disposed of, the ETH is no longer available. ```solidity function metacall( /*...*/ ) /*...*/ { // ... // Refund the msg.val...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgraded implementation is not initialized ### Description If the upgraded implementation is presumed to require an `initialize()` function (similar to the current one) to initialize some new proxy state, then this is not part of the upgrade scripts. ### Recommendation Consider the use of `upgradeToAndCall()`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Decimals
true
false
## Severity Medium Risk ## Context WithdrawProxy.sol#238-244 ## Description In the `claim()` function, the amount to decrease the Y intercept of the vault is calculated as: ``` (s.expected - balance).mulWadDown(10**ERC20(asset()).decimals() - s.withdrawRatio) ``` `s.withdrawRatio` is represented as a WAD (18 decima...
Spearbit
5
Astaria
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer fee avoidance ### Description The Vether4.addExcluded() function on mainnet (0x4Ba6dDd7b89ed838FEd25d208D4f644106E34279) allows a user to exclude an address from transfer fees for a cost of 128 VETH. By exploiting the conditions in which fees are taken, it is possible to set up a contract for a onc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: multiWithdrawals which has first leg consuming all forwarded gas, will be bricked with high probability ### Description The maximum number of vaults from which withdrawals can be made simultaneously during a multiWithdrawal is limited to 5. This limitation is put in place to prevent the transaction from enco...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
false
false
## Medium: Inconsistent transfers of native tokens could result in unexpected loss of funds ### Description Multiple protocol functions across both `Ignite` and `StakingContract` transfer native `AVAX` to the user and/or protocol fee/slashed token recipients. Throughout `Ignite` [[1](https://github.com/Benqi-fi/ignit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Burn functions should be removed ### Description **Description** Since the white paper states that, there would never be any burning of tokens, we advise the burn functions be removed as it’s not a required function of the core ERC20 token standard.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Native tokens may be drained from margin accounts via lack of value validation ### Description The CommandSafeExecutor library is used to call into the compliance contract and validate user commands. However, it does not perform validation on the native tokens transferred by the user’s command. Instead, 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
high
access-control
true
false
## High: TRST-H-1 Attacker can freeze profit withdrawals from V3 vaults ### Description **Description:** Users of Ninja can use Vault's `withdrawProfit()` to withdraw profits. It starts with the following check: If attacker can front-run user's `withdrawProfit()` TX and set **lastProfitTime** to block.timestamp, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Assets Can Be Transferred After Auction Started ### Description Description It is possible to force the bidder to spend more cash than they anticipated through frontrunning. Accounts are not prevented from transferring assets after the auction has started. This can result in the account being liquidated 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
medium
front-running
true
false
## Medium: Current frontrun protection of GovNFTTimelock works only under limited conditions ### Description The GovNFTTimelock contract variant is intended to provide an extended contract that has a degree of frontrun protection for its value. This allows for safe selling on a marketplace and increases the utility of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
false
## Medium: MagicLpAggregator doesn't consider the dcimal of MagicLP ### Description We can know that the `MagicLpAggregator` can serve as the `price source` for `MagicLP shares` when the prices of `base` and `quote` tokens are similar. MagicLpAggregator would be used to price MagicLP collateral for Cauldrons. 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
medium
access-control
false
false
## Medium: Global-1 | Centralization Risk ### Description **Description** Elevated privilege leads to multiple DoS attack vectors: When a harvest is called, `_updatePosition` relies on there being enough OATH in the contract to cover the relic’s accumulated rewards. If there is an insufficient amount of OATH, users ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: `RDPXV2CORE_ROLE` is not assigned in `PerpetualAtlanticVault` ### Description While the `DEFAULT_ADMIN_ROLE`, and `MANAGER_ROLE` are assigned during the `constructor()`, the `RDPXV2CORE_ROLE` is not. Any call from the Core contract to the vault will revert until this value is set, so it would be advised to as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Missing docstrings [core and samples] ### Description Throughout the [codebase](https://github.com/eth-infinitism/account-abstraction/tree/6dea6d8752f64914dd95d932f673ba0f9ff8e144/contracts/) there are several parts that do not have docstrings. For instance: * [Line 24](https://github.com/eth-infinitism/acco...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `increaseAllowance/decreaseAllowance` instead of `approve/safeApprove` ### Description Changing an allowance with `approve` brings the risk that someone may use both the old and the new allowance by unfortunate transaction ordering. Refer to [ERC20 API: An Attack Vector on the Approve/TransferFrom Methods]...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
flash-loan
false
false
## Low: Protocol can be exploited by malicious Keeper ### Description The protocol team is interested to know the worst outcome when Keeper becomes malicious. Let's observe how malicious Keeper can exploit protocol. Part 1. Keeper is allowed to update Assets Under Management (AUM), however, update must not exceed max...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Holders can burn locked funds ✓ Addressed ### Description Skale token is a modified ERC-777 that allows locking some part of the balance. Locking is checked during every transfer: **code/contracts/ERC777/LockableERC777.sol:L433-L441** ``` // Property of the company SKALE Labs inc.-------------------------...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
reentrancy
true
false
## Gas: Using bools for storage incurs overhead ### Description Use uint256(1) and uint256(2) for true/false to avoid a Gwarmaccess (100 gas), and to avoid Gsset (20000 gas) when changing from `false` to `true`, after having been `true` in the past. Check more [here](https://github.com/OpenZeppelin/openzeppelin-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
gas
other
true
false
## Gas: [12] Using `bool`s for storage incurs overhead ### Description Use `uint256(1)` and `uint256(2)` for true/false to avoid a Gwarmaccess (**[100 gas](https://gist.github.com/IllIllI000/1b70014db712f8572a72378321250058)**), and to avoid Gsset (**20000 gas**) when changing from 'false' to 'true', after having been...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ConvexStakingWrapper: Small rounding error in `_calcRewardIntegral()` ### Description The treasury takes a 20% fee of rewards. The calculation will possibly leave 1 wei unaccounted for. ```jsx IERC20(reward.token).transfer(treasury, d_reward / 5); d_reward = (d_reward * 4) / 5; ``` For instance, assume `d_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
gas
cross-chain
true
false
## Gas: Optimize away `bridgedMappingValue` variable in `TokenBridge::bridgeToken` ### Description **Description:** Optimize away `bridgedMappingValue` variable in `TokenBridge::bridgeToken` by for example: **Linea:** Fixed in commit [35c7807](https://github.com/Consensys/zkevm-monorepo/commit/35c7807756ccac2756be7d...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `poolExposure` for token1 is erroneously calculated as `shortPremium - longPremium;` ### Description ### Finding description and impact `getAccumulatedFeesAndPositionsData` returns the total amount of premium `owed to the short legs` and the total amount of premium `owned by the long legs`. This means th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
flash-loan
true
false
## Low: [03] Lack of `data` on flashloan could make some ERC1155 unusable ### Description When doing an ERC1155 flashloan, the data parameter is always empty: https://github.com/code-423n4/2023-09-delegate/blob/main/src/DelegateToken.sol#L406 Some collections might need this parameter to be usable. This is an [exam...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] Parameter validation ### Description In the locations mentioned above, function parameters are not validated. This lack of validation can lead to unpredictable behavior or the occurrence of panic errors. ### Recommendation We recommend implementing validation for function parameters to ensure stable 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
other
true
false
## Low: `PerpMarket::getOrderFeeUsd` incorrectly charges `makerFee` when skew is zero and trade is buy order ### Description **Description:** In `PerpMarket::getOrderFeeUsd` there is this comment to which I've added (*) at the end: But doing a truth table for the `if` statement's boolean expression shows this commen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious user can register a scanner under any owner ### Description The [`ScannerRegistryCore` contract](https://github.com/forta-protocol/forta-token/blob/92d7a7ddd6672a7530a4bfc532d0d697e7f12744/contracts/components/scanners/ScannerRegistryCore.sol#L8) implements the functionality to allow the registratio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ignored return values ### Description Several functions in the `StrategyAerodromeGaugeGreen` contract make external calls that return values, but the return values are ignored. Ignoring return values can lead to unexpected behavior if the return values are used to determine the success or failure of the extern...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: Users can increase liquidity for token owned by sanctioned or non-verified user ### Description Severity: Medium Risk Context: (No context files were provided by the reviewer) Description: VerifiedPoolsPositionManager.sol ensures that users can only mint, decrease liquidity, and burn positions for themselve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Finalization Fails for the First Batch of Data Submitted After Migration to the Updated Contract ✓ Fixed ### Description When submitting the initial batch of compressed block data after the contract update, the finalization will fail. In function `_finalizeCompressedBlocks`, `startingDataParentHash = dataPa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
high
token
true
false
## High: Token Index error in `getNormalizedWeights` calculates incorrect weight leading to incorrect pool asset allocation ### Description The `_getNormalizedWeights()` function in `QuantAMMWeightedPool.sol` contains a critical indexing error when handling multipliers for pools with more than 4 tokens. The error caus...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Operators Under Immediate Slashing Risk Upon Reactivation Of Previous Strategy ### Description The current implementation of strategy management in operator sets may expose operators to immediate slashing risk when strategies are removed and subsequently re-added. In the `AllocationManager`, strategies can 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
true
false
## Medium: Wrong postGasPrice() implementation can lead to loss of funds ### Description In Sui’s implementation, the gas price is committed to memory before posting it and before running validation on the gas price. Before showing the code of Sui’s implementation, it will make more sense if we look at the implementa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
dos
false
false
## High: Malicious bundler can steal funds from SponsorPaymaster ### Description * https://github.com/KintoXYZ/kinto-core/blob/f7dd98f66b9dfba1f73758703b808051196e740b/src/paymasters/SponsorPaymaster.sol#L156 A hacker can drain the SponsorPaymaster in just one transaction. This can be achieved by executing a userOp w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Strategy contract’s balance-tracking system could facilitate theft ### Description Strategy contract functions use the contract’s balance to determine how many liquidity or base tokens to provide to a user minting or burning tokens. The Strategy contract inherits from the ERC20Rewards contract, which defines ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Account unnecessarily taken as input ### Description ## Analysis of DepositToAuctionPool ix In `DepositToAuctionPool` ix, the `auction_authority` account is taken as input but not used anywhere in the run function. It is used only to check the `auction_pool.owner`, which is an unnecessary constraint, because ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
false
## Low: Use of hardcoded price deviation in baseOracleCircuitBreaker() ### Description The `LibOracle::baseOracleCircuitBreaker()` uses the hardcoded value of 50% price deviation, which might be too large when using the ETH as a base price reference. Moreover, the fixed % deviation is considered too risky because 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
liquidation
true
false
## High: The deposit / withdraw / trade transaction lack of expiration timestamp check and slippage control ### Description The deposit / withdraw / trade transaction lack of expiration timestamp and slippage control ### Impact According to the whitepaper: > Deposits in the highest priced buckets offer the highest v...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
false
## Low: Mathematical Reasoning around Rounding Errors and their Impacts for Troves in Batches ### Description **Impact** This finding summarizes my research on how Truncation could be abused, the goal is to define the mechanisms and quantify the impacts **Minting of Batch Shares** Minting (and burning) of batch sha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implementation of EIP-2535 Does Not Fully Match the Specification ### Description The [`Diamond` contract](https://github.com/VenusProtocol/venus-protocol/blob/94bc2e414e33ebf6c05d35c1605dcbd48fa932f5/contracts/Comptroller/Diamond/Diamond.sol#L24) implements the [EIP-2535 standard](https://eips.ethereum.org/EI...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solvent Liquidation Is Not Admin-Gated ### Description ## OS-HNY-ADV-00 Process Step 4 The fourth step of the process described in OS-HNY-ADV-00 is performed via the `LiquidateSolvent` instruction. Similarly, notice that the instruction’s signer is not verified to be an admin-controlled address. By specifyin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused file ### Description 1. File: src/interfaces/convex/BoringMath.sol (line [1](https://github.com/code-423n4/2022-04-badger-citadel/blob/main/src/interfaces/convex/BoringMath.sol#L1))
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency processing can be blocked ✓ Fixed in Pull Pattern ### Description The main reason for the emergency processing mechanism is that there is a chance that some token transfers might be blocked. For example, a sender or a receiver is in the USDC blacklist. Emergency processing saves from this problem by...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RedeemManager. _claimRedeemRequests transaction sender might be tricked to pay more eth in transaction fees ### Description The `_claimRedeemRequests` function is designed to allow anyone to claim ETH on behalf of another party who has a valid redeem request. The function iterates through the `redeemRequestIds...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
upgrade
true
false
## Low: Unused `PausableUpgradeable::CannotRenounceWhilePaused` error should be removed
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 direct comparison in verifyRoute return statement ### Description The function `verifyRoute` checks if `totalRatio` is equal to `10_000` and returns a boolean value based on the comparison. The current implementation uses an if-else structure to determine the return value. ### Recommendation To make 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
false
false
## Low: `byteLength` adjustment ### Description A constant `byteLength` should be used for `UINT`, `ADDRESS`, `BOOL` and `INT`. https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/borgCore.sol#L506 `isMethodCallAllowed()` should return false instead of revert in case the exact ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `treasury.updateYieldsFromLiquidatedLrts()` updates the yield in the current chain, but collateral may be in the other chain ### Description [treasury.updateYieldsFromLiquidatedLrts()](https://github.com/sherlock-audit/2024-11-autonomint/blob/main/Blockchain/Blockchian/contracts/lib/CDSLib.sol#L667-L670) 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
low
logic
true
false
## Low: The getAttestation function can return expired or revoked attestations ### Description The index function is designed to index an EAS attestation by its UID and employs various validations to ensure that neither expired nor revoked attestations are registered within the `attestationsByAttester` and `attestatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
input-validation
true
false
## Low: Redundant balance check in safeTransferFrom before calling underlying transfer function ### Description The `RWASegWrap::safeTransferFrom()` function performs an unnecessary balance check on lines 452-454 before calling the underlying transfer function: ```solidity uint256 currentBalance = balanceOf(from, id)...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stale Oracle Data ### Description **Update** Addressed in: `86d0d8895e42e37525b841eb29022365f872963d` and `1164b56be2cbe6850b16ce955356f4b52abb8860`. The client added additional checks for chainlink feed. **File(s) affected:**`Utils.sol` **Description:** The protocol just calls `latestRoundData()` to get ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `getBid()` returns incorrect results for past or future timestamps ### Description The `Folio.getBid()` function is used to retrieve auction bid parameters (sellAmount, bidAmount, and price) for an ongoing auction at a specified `timestamp`. However, while the auction price is correctly calculated based on 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
overflow
true
false
## Gas: Increments can be unchecked ### Description In Solidity 0.8+, there's a default overflow check on unsigned integers. It's possible to uncheck this in for-loops and save some gas at each iteration, but at the cost of some code readability, as this uncheck cannot be made inline. [ethereum/solidity#10695](https:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
true
false
## Medium: `boughtShares` is wrongly initialized ### Description When creating an IPO card, initial shares are allocated to the initial owner: ```solidity card.initialOwnerShares = _card.initialOwnerShares; ..snip sharesBalance[cardID][_card.cardInitialOwner] = _card .initialOwnerShares; ``` But these shares...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent coding style ### Description There are general inconsistencies and deviations from the [Solidity Style Guide](https://solidity.readthedocs.io/en/latest/style-guide.html) throughout the codebase. These lead to misconceptions and confusion when reading the code. Below is a non-exhaustive list of inc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
high
Liquidation
true
false
Source: https://github.com/sherlock-audit/2023-02-blueberry-judging/issues/126 ## Found by obront ## Summary When the value of the underlying asset is calculated in `getPositionRisk()`, it uses the `underlyingAmount`, which is the amount of tokens initially deposited, without any adjustment for the interest earned...
Sherlock
5
Blueberry