prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: SettlementSignatureVerifier's `required_validators` is not updated, resulting in a low or high number of signatures being required ### Description ### Impact The `required_validators` in `SettlementSignatureVerifier` is not updated when updating `BaseSettlement`'s. This results in either fewer or more sign...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
true
false
## Low: Users may DOS themselves with a lot of smalle payments ### Description If a user has to contribute to a pool via lots of dust payments (e.g. if they only have enough money each week to spend a few wei), they may eventually add enough payments that when it's time to claim their excess, their for-loop below exce...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Bypass limit
false
true
Source: https://github.com/sherlock-audit/2022-09-knox-judging/issues/75 ## Found by 0x52 ## Summary No performance fees are taken when user withdraws early from the vault but their withdrawal value will be used to take fees, which will be taken from other users. ## Vulnerability Detail uint256 adjustedTotal...
Sherlock
4
Knox Finance
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `activeTransactionBlocks` are vulnerable to DDoS attacks ### Description _Submitted by gpersoon, also found by pauliax and shw_ There is a potential issue in function `removeUserActiveBlocks` and the for loop inside it. I assume you are aware of block gas limits (they may be less relevant on other chains but...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: extendValidatorsArray Can Create Gaps in validatorAddress Array ### Description In the `ValidatorsRegistry` contract, the [`extendValidatorsArray` function](https://github.com/Fantom-foundation/Bridge/blob/558465d3aba2ffae1a4436a2fc14c723b82926df/contracts/ValidatorsRegistry.sol#L61) used in `setValidators` ca...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing check for the `newMinter` parameter if it’s an EOA ### Description **Severity**: Low **Status**: Acknowledged **Description** In contract mPendleOFT.sol, the method `setMinter(address _newMinter)` sets a new minter to mint the mPendle token which should always be minted by mPendleConverter method on...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
false
false
## High: Availability of deposit invariant can be bypassed ### Description ### Impact One of the [main invariants](https://github.com/code-423n4/2024-05-loop?tab=readme-ov-file#main-invariants) stated in the audit is the following: > Deposits are active up to the lpETH contract and lpETHVault contract are set Howev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
flash-loan
false
false
## High: Synth tokens can get over-minted ### Description ## Handle WatchPug ## Vulnerability details Per the document: > It also is capable of using liquidity units as collateral for synthetic assets, of which it will always have guaranteed redemption liquidity for. However, in the current implementation, `Synt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IFeeModule could be called via ExcessivelySafeCall and limited gas to avoid bricking pools in case of governance attack ### Description While the risk is very low, the current implementation of `getSwapFee` and `getUnstakedFee` calls a target, forwards all of its available gas, and will bubble a revert up to t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Potential Compatibility Issues with EVM Chains ### Description **Update** The client added an informative comment to the Readme in commit `c9bba08`. **Description:**`WebauthnOwnerPlugin` uses the `WebAuthn` library from the `base-org/webauthn-sol` repository as a dependency. As stated in the `webauthn-sol` do...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WITHDRAWING ALL LIQUIDITY BEFORE BORROWING CAN DEADLOCK CONTRACT ### Description In the `LineOfCredit` contract, the lender has the possibility to withdraw all unborrowed deposit previously provided for loan through `withdraw()` function.`LineOfCredit``withdraw()` The assessment revealed that withdrawal of 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...
cyfrin_structured
low
access-control
true
false
## Low: Allow custom Creator and Collector names to be emitted in `IStory` events to build artwork provenance ### Description The `IStory` interface is designed to allow custom names to be emitted for the Creator and Collector events. Here is an [example](https://www.transient.xyz/nfts/base/0x6c81306129b3cc63b0a6c7cec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
false
false
## Medium: Scope 2 - Incorrect Usage of EnumerableMap ### Description The `StateTransitionManager` was refactored to handle the chain ID to contract address mapping of the hyperchains using OpenZeppelin's `EnumerableMap` library. This has introduced an issue in the [`getAllHyperchains` function](https://github.com/m...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing test coverage across multiple contracts ### Description Several critical functions across multiple contracts lack test coverage. These functions include: ### Recommendation Implement comprehensive test coverage for the identified functions. Ensure that tests cover various edge cases and scenarios, suc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: The attackers front-running `repayloans` so that the debt cannot be repaid ### Description The attackers make it impossible for borrowers to repay their debts, and the collateral is liquidated when the debts mature. ### Proof of Concept `repayLoan` needs to check the `loanId`; if the id is inconsistent it 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
overflow
false
false
## High: Risk of overflow. ### Description **Description** accTokenPerShare calculation utilizes 1e12*1e18*1e32 that is equal to 1e62. Max size of unsigned integer (256) is 2**256-1 that is ~1e77. With high pool rate and low rateDenominator such amount can cause an overflow. **Recommendation**: Handle or prevent a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Voting power miscalculation in balanceofnftat function ### Description The ZeroLocker contract serves as a foundational component in the governance of the zerolend protocol, enabling stakeholders to lock ZERO tokens and obtain voting power proportional to their stake and commitment duration. Accurate calcul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function instead of modifier ### Description Set (73-79 lines) and SettAccessControl (15-25 lines) smart contracts include internal functions for modifiers roles. **Recommendation**: Use modifiers instead of functions.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Encoding of Order Hashes ### Description [contracts/lib/ConsiderationEncoder.sol#L569-L574](https://github.com/ProjectOpenSea/seaport/blob/5de7302bc773d9821ba4759e47fc981680911ea0/contracts/lib/ConsiderationEncoder.sol#L569-L574) The order hashes are incorrectly encoded during the `_encodeOrderHa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: incompatibilities ✓ Fixed ### Description As noted in [the README](https://github.com/ConsenSys/codefi-audit-internal-2019-06/blob/f559a5c1d90f403014b014cd5e42e6e3a6c625cc/code/README.md#erc777), the `ERC777` contract is not actually compatible with [ERC 777](https://eips.ethereum.org/EIPS/eip-777). Functio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: Users who deposit in one vault can lose all deposits and receive nothing when counterparty vault has no deposits ### Description ### Impact For a market, if users only deposit in the hedge vault or only deposit in the risk vault but not in both, then these users will lose their deposits and receive nothing 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
medium
other
true
true
## Medium: QuadrataKYCVerifier::verifyEligibility wrong expiration check for businessAttribute ### Description The following parameters are checked during KYC verification in `QuadrataKYCVerifier.sol` (Lines 80-85): ```solidity // Query the account's attributes from Quadrata. bytes32[] memory attributesToQuery = new ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: `TemporalGovernor::grantGuardiansPause` can be called after `guardian` is revoked ### Description https://github.com/code-423n4/2023-07-moonwell/blob/main/src/core/Governance/TemporalGovernor.sol#L187-L198 This doesn't do any thing bad other than set `guardianPauseAllowed=true`, which is set to false in [`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
false
false
## Low: Require statement may be placed before allocating memory for arrays ### Description ### Instances 1. [Link:](https://github.com/code-423n4/2022-09-canto/blob/65fbb8b9de22cf8f8f3d742b38b4be41ee35c468/src/Swap/BaseV1-core.sol#L238-L242) uint[] memory _reserves0 = new uint[](points); uint[] memory _reserv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract UnifarmCohort, function safeWithdrawAll, for a better gas optimization, you can safe the value of tokens.length in memory and iterate over the variable that is safe in memory, it will be cheaper to read from memory every time then to read from storage. ### Description **Recommendation**: Create 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
signature
false
false
## Low: [08] ### Description `raiseDispute` does not include any replay protection, meaning that anyone can raise the same dispute again after one was submitted.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeable contract is missing a `__gap[50]` storage variable to allow for new storage variables in later versions ### Description See [this](https://docs.openzeppelin.com/contracts/4.x/upgradeable#storage_gaps) link for a description of this storage variable. While some contracts may not currently be sub-cla...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Incorrect Function Call ### Description ## SUI Vault Parameter Modification The admin has the capability to modify the parameters of the staked SUI vault. ## Update Atomic Unstake Max Fee The `update_atomic_unstake_max_fee` function updates the max fee taken during the atomic unstake process. The protocol 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...
solodit_api
medium
transferFrom vs safeTransferFrom
false
true
[PA1D.sol#L317](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/src/enforcer/PA1D.sol#L317)<br> [PA1D.sol#L340](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/src/enforcer/PA1D.sol#L340)<br> Payout is blocked and tokens are s...
Code4rena
4
Holograph
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: Ineffective Bound of Exchange Rate Change in Reserve Oracle ### Description In the [`ReserveOracle` contract](https://github.com/Ion-Protocol/ion-protocol/blob/98e282514ac5827196b49f688938e1e44709505a/src/oracles/reserve/ReserveOracle.sol), a `MAX_CHANGE` percentage bound is enforced that determines the maxim...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant Fare Update ### Description ## Inestimate Fare The call to `fare::update_estimated_fare` is not required, as this function already updates the `estimated_fare` field. Similarly, streamline `fare::calculate_final_fare` and `fare::update_final_fare` to eliminate unnecessary updates. ## Remediation -...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L01] Inconsistent representations of zero ### Description ###### Low The `BigNumber` library makes a new instance by either passing a [dynamically-sized](https://github.com/BeamNetwork/currency/blob/de81d9bad4195e03f07aedd2a6817f0cb04a8c8d/contracts/VDF/BigNumber.sol#L48) [`bytes`](https://github.com/BeamNet...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SwapAction::getSwapToken` will return wrong swap token for balancer `EXACT_OUT` swaps ### Description As known, when doing a Balancer `EXACT_OUT` batch swap, assets should be passed in reverse order, this is thoroughly documented [here](https://github.com/code-423n4/2024-07-loopfi/blob/main/src/proxy/SwapA...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
true
## High: First deposits will be ignored and lost ### Description The genesis of an EVM chain includes multiple deposits for the genesis validators. All of them have a separate index. For example, this can be seen in the `testing/networks/80084/genesis.json` file. We can see that there are 86 (from index 0 to 85) depos...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Migratev3loan doesn't check whether borrower and lender are same ### Description `migrateV3Loan` is called by the borrower to migrate an old loan to v4. In the create loan logic, there is a limitation that the borrower and lender cannot be the same person. - **OriginationController.sol#L437:** ```solidity ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Improper Input Sanitization ### Description ## Snap Module Security Advisory The Snap module allows interaction with users via confirmation dialogs for sensitive actions. However, improper handling of newline characters ( `\n` or `\r` ) in these dialogs may result in spoofing or phishing attacks. Newlines inj...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing pause mechanism ### Description The OrbitNativeOFT1_2 contract currently lacks a pause mechanism. This feature is crucial for smart contracts, especially those handling cross-chain token transfers and native currency wrapping/unwrapping. A pause functionality allows the contract owner or designated par...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Compiler error due to missing RocketMinipoolBaseInterface ✓ Fixed ### Description The interface `RocketMinipoolBaseInterface` is missing from the code repository. Manually generating the interface and adding it to the repository fixes the error. ``` ⇒ npx hardhat compile Error HH404: File ../../interface/mi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: OptionMath#\_decay is never used ### Description **Details** OptionMath#\_decay is never used and should be removed **Lines of Code** [OptionMath.sol#L24-L32](https://github.com/Buffer-Finance/Buffer-Protocol-v2_5/blob/84b6060b4447b2550de595202e8820c7f515988b/contracts/core/OptionMath.sol#L24-L32) **Recomm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
flash-loan
false
false
## High: Anyone can list anchors / curate tokens ### Description The `Router.listAnchor` function can be called by anyone and tokens can be added. The only check is that `require(iPOOLS(POOLS).isAnchor(token));` but this can easily be set by calling `Pools.addLiquidity(VADER, token, _)` once even without actually send...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Less burn amount if negative PnL is realized early ### Description When negative PnL is realized manually through the `executeManualNegativePnlRealizationCallback` function, the losses are sent to the GToken vault but are not burned since they're considered not final: However, when the trade is eventually cl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_maxYieldVaultWithdraw()` uses `yieldVault.convertToAssets()` ### Description ### Proof of Concept The above code uses `yieldVault.convertToAssets()` which, per EIP-4626, is only approximate. Especially, it might return too much, and thus `_maxYieldVaultWithdraw()` might return too much. `_maxYieldVaultW...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible misuse of a variable. ### Description **Severity**: Informational **Status**: Resolved **Description** TestStake::reStake()#1954. In the function 'reStake()', a variable 'totalWithdrawn is calculated by counting values from all the user's stakes. However, the additional of 'stakeAmount from stake i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: The Oracle can lock reward distribution ### Description If Oracle updates become unavailable for some reasons, the rewards cannot be distributed. ### Recommendation It is recommended to introduce a function that can distribute rewards without data from the 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
low
overflow
false
false
## Low: Remove `SafeMath` library ### Description All 3 in-scope contracts use the `SafMath` library for simple addition, subtraction, multiplication and division. This causes an unnecessary overhead since beginning from Solidity version `0.8.0` arithemtic operations revert by default on overflow / underflow. 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
medium
initialization
true
false
## Medium: Voting to change `RewardsInfo::voteRewardsCoefficient` has an unintended side-effect of retrospectively changing voting rewards for active proposals ### Description **Description:** `GovSettings::editSettings` is one of the functions that can be executed via an internal proposal. When this function is calle...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Incorrect Error ### Description The [`StateRootHashInvalid` error message](https://github.com/Consensys/linea-contracts-audit/blob/29e6798eb85074253145c4688acfa540f37a220f/contracts/LineaRollup.sol#L243-L244) does not match the error that it is describing. For instance, it is possible for both parameters 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: External view depends on msg.sender value in JohnInternal.sol ### Description **Severity**: Low **Status**: Resolved **Description** In contract JohnInternal.sol, in view accountParams at line 67, the returned value is dependent on msg.sender value. Given accountParams is external the call to it would resul...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Validation of Token Name and Symbol in `LiquidityFreeLaunchFactory` ### Description **Severity**: Medium **Status** : Resolved **Description**: The `LiquidityFreeLaunchFactory` contract allows the creation of new tokens with specified names and symbols without any validation to ensure uniq...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RFXHelper market deduplication gas optimization ### Description The current deduplication algorithm in the contract has a time complexity of O(n²), which can be optimized to O(n) for better performance. The existing algorithm iterates through the entire list for each item, leading to inefficient processing for...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
true
false
## Medium: Inconsistency in sender address when creating cross chain messages on Starknet can lead to loss of funds ### Description ### Lines of code ### Impact * Funds could get stuck in the `handler_erc20.cairo` contract. * Validators can evaluate transactions wrongly. ### Proof of Concept In the `handler_erc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function order ### Description Functions should be ordered following the [Soldiity conventions](https://docs.soliditylang.org/en/v0.8.15/style-guide.html#order-of-functions): `receive()` function should be placed after the constructor and before every other function. ### PROOF OF CONCEPT Several contracts ha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: Semi-Fungible Token Support ### Description ## NFT Bridge Limitations The current NFT Bridge explicitly does not support semi-fungible tokens. ## Source Code **File:** `sources/transfer_nft.move` (RUST) ## Use Cases After discussion with ecosystem teams, it appears that there are some use cases. For 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...
cyfrin_structured
low
other
true
false
## Low: Inconsistent implementation approach for retrieving collateral balance from Morpho ### Description `RockoFlashRefinance::_collateralBalanceOfMorpho` uses direct storage slot access to retrieve a user's collateral balance from Morpho, while similar functionality for debt retrieval is implemented using `MorphoLi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vesting Admin Could Prevent the Recipient From Redeeming ✓ Fixed ### Description In the vesting part of the protocol, each plan has a vesting admin who can transfer tokens on behalf of the plan holder. However, this setup poses a risk of centralization. For instance, a plan holder might leave their tokens vest...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Static `GovUserKeeper::_nftInfo.totalPowerInTokens` used in quorum denominator can incorrectly make it impossible to reach quorum ### Description **Description:** Consider the following factors: 1) `GovPoolVote::_quorumReached()` [uses](https://github.com/dexe-network/DeXe-Protocol/tree/f2fe12eeac0c4c63ac396...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BoostController Bypasses Boost State Tracking System ### Description The BoostController contract bypasses the entire BoostState tracking system by using memory parameters instead of storage state for boost calculations, breaking core boost mechanics and enabling potential reward manipulation. Important note:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Cache result of `indexPriceX18.intoSD59x18` in `PerpMarket::getMarkPrice` ### Description Cache result of `indexPriceX18.intoSD59x18` in `PerpMarket::getMarkPrice` instead of re-calculating the same value 4 times. ### Impact This stand-alone test shows caching saves 227 gas per execution: ```solidity // SPDX-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Governance-enforced toggling between forced and voluntary withdrawals may be inefficient ### Description Governance-enforced toggling of `withdrawalsEnabled` flag to switch between forced and voluntary withdrawals may be inefficient once voluntary withdrawals are enabled. ### Recommendation Consider a more ef...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: USDC rewards will not be distributed if `_updateRewardsStates` is triggered too often ### Description https://github.com/sherlock-audit/2025-03-symm-io-stacking/blob/main/token/contracts/staking/SymmStaking.sol#L402-L423 _updateRewardsStates can be triggered as often as each block (2 seconds) via deposit/wit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: Emptying ETH from `ZKPay.sol` ### Description An attacker can call `ZKPay::query()`, which is supposed to be used with ERC20 tokens, but pass `NATIVE_ADDRESS` and specify a large amount of ETH. Then, `handleQueryPayment` will assume that this amount came from `msg.value`, so it will think the sender actually ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of improperly pinned GitHub Actions in Testflight build ### Description The GitHub Actions workflows for creating an iOS application build use several third-party actions that are pinned to a tag or branch name instead of a full commit SHA. This configuration enables repository owners to silently modify 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
oracle
false
false
## Low: Initial configured markets might not be Uniswap V2 pairs ### Description The entire Open Price Feed view based in the `UniswapAnchoredView.sol`, `UniswapConfig.sol` and `UniswapLib.sol` files work under the assumption that [all market addresses set during construction](https://github.com/compound-finance/open-...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused cached value of `getStorageId(msg.sender, id)` ### Description **Description:** `createAutomation()` calls `getStorageId(msg.sender, id)` twice—once for `automationSID` and again when assigning `_newAutomation`. This duplicates the same keccak 256 computation and extra stack writes. **Recommended Mitig...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient validation of Chainlink data feeds ### Description **Description:** `PriceCalculator` is a contract responsible for providing the Chainlink oracle prices for assets used by The Standard. Here, the price for an asset is queried and then normalized to 18 decimals before being returned to the call...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading Comment ### Description Incorporating documentation and comments into the codebase is essential for elucidating key aspects and facilitating comprehension of the developer's intentions by others. However, the codebase contains misleading documentation and comments. In the `src/modules/deposit.r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Use of revert strings over custom errors ### Description Throughout the file in scope, there are several instances of use of revert strings over custom errors. In Solidity development, replacing hard-coded revert message strings with the `Error()` syntax is an optimization strategy that can significantly ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Lack of Emergency Market Invalidation Mechanism ### Description The Protocol Owner or Emergency Resolver cannot unilaterally invalidate an active market, which will cause a permanent lock of collateral for all market participants if the market outcome is impossible to determine (e.g., source API failure, qu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Type confusion in ​updateLambdas ### Description The function `updateLambdas` since `storage.lambdas` uses `Map.update` to update `storage.lambdas` (Figure 7.1). As `big_map`, this should be `Big_map.update`. ```plaintext let updateLambdasAccumulator: updateLambdasAccumulator let updateLambdasIterator: update...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allowance Double-Spend Exploit ### Description **Update** The team acknowledged the issue and replied: > _We don’t have any operation directly with allowance and transferFrom()._ **Description:** As it presently is constructed, the contract is vulnerable to the [allowance double-spend exploit](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...
solodit_api
medium
other
false
false
## Context: NonlinearDutchDecayLib.sol#L38 ## Description According to Arbitrum's documentation, `block.number` returns the approximate L1 block number at which the sequencer received the transaction instead of the current L2 block number. Compared to the L1 block time, which is 12 seconds, the L2 block time on Arbitr...
Cantina
5
Uniswap
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cannot repay or liquidate on paused asset ### Description Although the protocol allows repayment on paused asset, it cannot be done because Lender contract tries an unnecessary (and prohibited due to pause) borrow from Vault contract. ### Impact The protocol cannot get debt repaid from agents on paused ass...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Safety checks ### Description The contract is somewhat lacking in safety checks. fulfillActiveRangeOrder does not verify the contract is in active position. Addresses should not be zero. The oracle calculated price should be close to pool-generated price. Additional checks will increase the robustness of th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Div by 0 ### Description _Submitted by robee, also found by georgypetrov, cmichel, and IllIllI_ [Deviation.sol#L23](https://github.com/code-423n4/2022-03-volt/tree/main/contracts/utils/Deviation.sol#L23) Division by 0 can lead to accidentally revert, (An example of a similar issue - ) https://github.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
liquidation
true
false
## Medium: LibHelpers.piecewiseLinear will revert when the value is less than the first element of the array ### Description `LibHelpers.piecewiseLinear` reverts when the value is less than the first element of the array. This method is used in Redeemer contract and if the collateral ratio is below the first element 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
medium
other
true
false
## Medium: Incorrect Utilization Rate Calculation in `updateInterestRatesAndLiquidity` ### Description The function `updateInterestRatesAndLiquidity` in `ReserveLibrary` is called after each transaction in `LendingPool`. However, it incorrectly calculates the utilization rate using **old values** instead of the newly ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Validation
true
false
## Medium Risk Report ## Severity Medium Risk ## Context - `PermissiveWithdrawalValidator.sol#L13` - `AeraVaultV1.sol#L456-L514` ## Description A weak connection between `WithdrawalValidator` and `Aera Vault` could lead to the inability to withdraw from a Vault. Consider the following scenario: The Validator i...
Spearbit
5
Gauntlet
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: Users can borrow all loan tokens ### Description Utilization rate check can be bypassed depositing additional loan tokens and withdrawing them in the same transaction. ### Impact The vulnerability allows to drain all the liquidity from the pool, which entails two problems: - The collateral ratio starts dec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract may not have enough fund to cover refund ### Description _Submitted by gzeon, also found by AuditsAreUS, BowTiedWardens, pedroais, Ruhum, shenwilly, and teddav_ Owner of the contract can call `withdrawAll` before the refund process is done to send all ETH to the vault. Since there are no payable r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: ReallocPool Rent Steal ### Description ## Rent Cost Protocol Vulnerability The protocol currently covers the rent costs when exceeding space during a `ReallocPool` operation on behalf of a user. This feature may become an attack vector as the pool creation is permissionless. A malicious user may systematicall...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect calculation of managementFee ### Description **Severity**: Medium **Status**: Resolved **Description** The `_accruedManagementFee()` function within the `AsyncVault.sol` smart contract is used to calculate the managementFee. One of the parameters used for this calculator is the total amount 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
high
other
true
false
## High: Vault's `totalStrategyTokenGlobal` will not be in sync ### Description The `strategyContext.vaultState.totalStrategyTokenGlobal` variable that tracks the number of strategy tokens held in the vault will not be in sync and will cause accounting issues within the vault. ### Impact The `strategyContext.vaultSta...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No use of Constant,View and Pure to mark functions ### Description **Description:** It’s generally a good practice to mark functions as constant,view,or pure whenever possible,especially if they do not modify the state of the contract or perform external calls or I/O operations. However,it’s important to car...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: Primary liquidation fee distribution may revert due to the inability to cover the caller fees ### Description Fee distribution during the primary short liquidation may revert due to an arithmetic underflow error in case the TAPP's escrowed ETH balance is insufficient to cover the caller (liquidator) fees. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Docstrings ### Description Throughout the [codebase](https://github.com/oceanprotocol/vw-cli/tree/0397c74da60ae50db5c6414307849120b899af6e), there are several parts that do not have docstrings. For instance: * [Line 210](https://github.com/oceanprotocol/vw-cli/tree/0397c74da60ae50db5c6414307849120b8...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Front-Running
false
true
Source: https://github.com/sherlock-audit/2024-08-winnables-raffles-judging/issues/57 ## Found by 0rpse, 0x0bserver, 0x73696d616f, 0xAadi, 0xShahilHussain, 0xarno, 0xbrivan, AllTooWell, BitcoinEason, Bluedragon, CatchEmAll, KaligoAudits, Oblivionis, Offensive021, PNS, PTolev, Paradox, S3v3ru5, Silvermist, TessKimy, ...
Sherlock
3.000005
Winnables Raffles
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
access-control
true
false
## Low: Compromised trader account can block admin from revoking access ### Description The trading strategy contract for D2 defines two roles: `ADMIN_ROLE` and `EXECUTOR_ROLE`. The `EXECUTOR_ROLE` is intended for the active party responsible for executing trades on behalf of stakers, while the `ADMIN_ROLE` is a more ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect type conversion in the contract ABC makes users unable to burn FSD tokens ### Description ## Handle shw ## Vulnerability details ## Impact The function `_calculateDeltaOfFSD` of contract `ABC` incorrectly converts an `int256` type parameter, `_reserveDelta`, to `uint256` by explicit conversion,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded API Keys ### Description The following API keys were discovered in the code: 1. **0x.ts#L29** ``` 0x-api-key: "********-****-****-****-************" ``` 2. **Libertiferry/env.ts#L80** ```javascript export const gcloudCredentials = { "type": "service_account", "project_id": "cobalt-nom...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrower can drain lender assets by withdrawing the cancellationFee multiple times ### Description If a loan product is canceled by governance and the cancellation fee that the borrower is able to withdraw is non-zero, the borrower can drain the assets deposited by lenders by withdrawing his cancellation fee ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove useless block ### Description The `VotingEscrow._checkpoint` function [has this block](https://github.com/code-423n4/2024-03-neobase/blob/main/src/VotingEscrow.sol#L169-L171). This block is useless as later `userPointHistory` [always changes to a new point](https://github.com/code-423n4/2024-03-neobase/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protect against risk of front-running initialize() functions during protocol deployment ### Description There are no access control checks on `initialize()` functions used to configure the protocol during the deployment. If there is a period when the contracts have been deployed but not initialised, a maliciou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Call of FA bridge proxy contract not respecting the depth limit ### Description Severity: Medium Risk Context: handler.execute_call Description: After inner_execute_proxy , handler.execute_call takes over and starts to execute the proxy contract. It notes the call stack depth but does not enforce it. Recomm...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `IsWrappedFcash` check is a gas bomb ### Description _Submitted by jonah1005_ In the `_isWrappedFCash` check, the `notionalTradeModule` check whether the component is a wrappedCash with the following logic. The above logic is dangerous when `_fCashPosition` do not revert on `getDecodedID` but instead giv...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: `RedeptionOperations.checkValidRedemptionHint` check should use `>=` ### Description **Impact** The check in `checkValidRedemptionHint` for the current hint is as follows: https://github.com/blkswnStudio/ap/blob/8fab2b32b4f55efd92819bd1d0da9bed4b339e87/packages/contracts/contracts/RedemptionOperations.sol#L2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
token
false
false
## Medium: Incompatibility with Tokens That Implement Approval Race Protection ### Description Some tokens, such as [USDT](https://etherscan.io/token/0xdac17f958d2ee523a2206206994597c13d831ec7#code#L205), include an approval race protection mechanism, requiring the allowance to be set to 0 before calling the `approve`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rearrange conditions in onlyOwnerOrPriviledgedUser() by frequency ### Description The `onlyOwnerOrPriviledgedUser()` modifier contains two conditional statements: 1. A check to determine if `msg.sender` is the owner. 2. A check to determine if `msg.sender` is a privileged user. ```solidity modifier onlyOwner...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: ERC20 zero amount transfer rejection ### Description The `_checkTransfer` function reverts on zero-amount transfers, violating ERC-20 standard which mandates that transfers of 0 values [MUST be treated](https://eips.ethereum.org/EIPS/eip-20#transfer) as normal transfers. ### Impact Violation of `eip20_transfe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Validation
false
false
## Severity: Medium Risk ## Context `compound/PositionsManager.sol#L336-L344` ## Description The Morpho approach is to mimic 1:1 the logic of the underlying protocol, including all the logic and sanity checks that are done before executing a user's action. On top of the protocol's logic, Morpho has its own logic. B...
Spearbit
5
Morpho
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
true
false
## Medium: Bidders might lose funds due to possible racing condition between `settleWithBuyout` and `placeBid` ### Description In `AuctionWithBuyoutLoanLiquidator.sol`, `settleWithBuyout` and `placeBid` are allowed at an overlapping timestamp (`_auction.startTime + _timeForMainLenderToBuy`). This allows `settleWithBuy...
0