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
token
false
false
## Medium: Cooling Period Reset on Multiple Requests ### Description ## Context SToken.sol#L79 ## Description/Recommendation If a user makes multiple withdrawal requests within the COOLING_PERIOD window, the withdrawal eligibility date keeps getting pushed back, causing indefinite delays. For example, with COOLING_...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
false
false
## High: `_execute` allows you to execute unsuccessful tasks in the future ### Description If the transaction is unsuccessful, then a revert will occur in the code (https://github.com/cloudwalk/brlc-multisig/blob/b5d6c2b6273162d5666d48649890b15a113df7a7/contracts/base/MultiSigWalletBase.sol#L378): ``` (bool success, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
storage
false
false
## Gas: Use of the `memory` keyword when `storage` should be used ### Description When copying a state struct in memory, there are as many SLOADs and MSTOREs as there are slots. When reading the whole struct multiple times is not needed, it's better to actually only read the relevant field(s). When only some of the fi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid shadowing variables ### Description The highlighted line declares a new variable `owner` which has already been defined in `Auth.sol` inherited by `LienToken`: ``` address owner = ownerOf(lienId); ``` ### Recommendation Rename `owner` to `lienOwner` at `LienToken.sol#L583`.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Use `require` instead of `assert` ### Description Assert should not be used except for tests, `require` should be used Prior to Solidity 0.8.0, pressing a confirm consumes the remainder of the process's available gas instead of returning it, as request()/revert() did. Assertion() should be avoided even after...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: Casting between types without overflow checks ### Description Throughout the codebase, many instances of both implicit and explicit casting between types exist, with both having the potential to impart overflow errors when downcasting or casting between `int` and `uint`. Some examples of such behavior can...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Event is missing `indexed` fields ### Description Each `event` should use three `indexed` fields if there are three or more fields *There are 33 instances of this issue:* [See original submission](https://github.com/code-423n4/2022-05-rubicon-findings/issues/203) for details.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: False negatives in ECDSA384 can lead to DoS ### Description The current pinned version of `solarity/libs/crypto/ECDSA384.sol` is an incomplete implementation, where the correct signature is being rejected in some cases due to how point arithmetic is being handled. See the following GitHub issues for more 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
other
false
false
## Low: Use of Outdated snap.config.json Instead of snap.config.js ✓ Fixed ### Description According to the [MetaMask-CLI Documentation](https://github.com/MetaMask/snaps/tree/main/packages/snaps-cli#configuration) the use of `snap.config.json` is discouraged and projects should switch to `snap.config.js` instead. ##...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear Role Assignment Regarding Royalties ### Description **Update** Addressed in: `d88cad2f5ee936a9cd39988265b53c53dca8e6c8`. The client updated documentation related to roles. **File(s) affected:**`RoyaltiesOracle.sol` **Description:** Several functions have documentation stating that they can be called ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Any party can reject receiving funds to prevent escrow from settling/claiming ### Description **Description:** Since the system adopts ""Push""pattern to handle funds transferring when settling, if any transfer is failed then the escrow cannot be settled. Any party (buyer,seller,marketplace) can abused 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
low
reentrancy
true
false
## Low: No check on native assets ### Description The functions `startBridgeTokensViaHopL1Native()`, `startBridgeTokensViaXDaiBridge()`, and `startBridgeTokensViaMultichain()` do not check whether `_bridgeData.minAmount <= msg.value`. Consequently, this could allow the use of native assets that are still in the Diamon...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralized control in the program ### Description **Description** Both programs (strategy and vault) have centralized control. In the Strategy program, an admin account can manually specify any amount within either execute_withdraw or execute_deposit, while in the Vault program, any whitelisted account 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...
solodit_api
medium
Oracle
false
true
_Submitted by bardamu, also found by berndartmueller, codexploder, Alex the Entreprenerd, and horsefacts_ Call to `latestRoundData` could potentially revert and make it impossible to query any prices. Feeds cannot be changed after they are configured (<https://github.com/jbx-protocol/juice-contracts-v2-code4rena/blob/...
Code4rena
3.75
Juicebox
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect initialization of smart contracts with Access Control issue ### Description _Submitted by Haipls, also found by byndooa, cryptphi, and TrungOre_ [HomeFiProxy.sol#L216-L230](https://github.com/code-423n4/2022-08-rigor/blob/5ab7ea84a1516cb726421ef690af5bc41029f88f/contracts/HomeFiProxy.sol#L216-L23...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Introspection Sizes ### Description The `Introspect` implementations of the [signed integers](https://github.com/dojoengine/dojo/blob/e1a349b2c4b1a836156e769a46f8fe3c87ae553f/crates/dojo-core/src/model/introspect.cairo#L139-L197) all describe the layout as requiring 251 bits. All models automatically...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Solidity compiler optimizations can be problematic ### Description The Primitive contracts have enabled optional compiler optimizations in Solidity. There have been several optimization bugs with security implications. Moreover, optimizations are actively being developed. Solidity compiler optimizations are di...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: Missing checks for index out of bounds ### Description The functions `pullFundsFromSingleStrategy`, `pushFundsIntoSingleStrategy`, and `addStrategy` fail to implement checks for out-of-bounds access on the array of strategies with which the vault can interact. ``` /** * @notice Pulls funds back from a singl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Price manipulation by swapping any ````baseToken```` with itself ### Description ````WooPPV2.swap()```` doesn't forbid the case that ````fromToken == toToken == baseToken````, attackers can make any ````baseToken````'s price unboundedly drifting away by swapping with self. ### Impact Acccording ````WooFI``...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prefix increments ### Description Prefix increments are cheaper than postfix increments - `6` gas. This can mean interesting savings in `for` loops. ### Proof of Concept 2 instances: ##### src/Vault.sol ### Recommended Mitigation Steps Change `i++` to `++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
liquidation
false
false
## Low: `MAX_ANNUAL_INTEREST_RATE` should be customizable per branch and should be set higher due to exotic collaterals ### Description **Q - Why is this not customizable?** `MAX_ANNUAL_INTEREST_RATE` is left unchanged from Bold `uint256 constant MAX_ANNUAL_INTEREST_RATE = _100pct;` But Quill has collaterals that a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Improper implementation of arbitraryCall() allows protocol gov to steal funds from users’ wallets ### Description ## Handle WatchPug ## Vulnerability details https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L733-L735 When an incentiveT...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider `isContract` checks in constructors ### Description Several addresses are assigned in the contract constructors and assigned to immutable variables. A successful deployment is sensitive to these addresses being assigned correctly for the current network, and that addresses were specified in the correc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Market Allows Zero Amount Positions Which Can Cause Vault Rebalancing to Revert ### Description When adjusting positions, it correctly calculates the amount and respects limits, but it runs into a problem when dealing with a zero amount in the openMake and closeMake functions. This problem occurs when the 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
medium
other
true
false
## Medium: `emergencyClose()` may fail to repay any debt ### Description - the [`emergencyClose()`](https://github.com/Cyfrin/2023-10-SteadeFi/blob/main/contracts/strategy/gmx/GMXEmergency.sol#L111) function may become ineffective, preventing the contract from repaying any outstanding debt, leading to potential financ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Two-Step Ownership Transfer ### Description **Severity**: Low **Status**: Resolved **Description** The devve contracts does not implement a two-step process for transferring ownership. In its current state, ownership can be transferred in a single step, which can be risky as it could lead to acciden...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Prevent accidental ownership and admin renouncement ### Description **Description:** The inherited `renounceOwnership()` and allow the last authority to remove themselves, potentially leaving the contract permanently ownerless or admin‑less, blocking critical functions. Consider override `renounceOwnership()`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong `CHANGE_COLLATERAL_DELAY` in CollateralBook ### Description Admins can bypass time delay due to the wrong value of `CHANGE_COLLATERAL_DELAY`. ### Impact Admin can bypass the 2 days time delay and only need to wait less than 5 minutes to call `changeCollateralType`. ### Recommendation ```solidity uin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LTV of 98% would be extremely dangerous ### Description Having an LTV of 98% that pools can set is really dangerous as it doesn't take into account that oracle prices have the so called deviation, which can be anywhere from 0.25% to 2%. Meaning that the actual LTV would be `LTV + oracle1 deviation + oracle2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Parameter Encoding ### Description ## Issue with `withdraw_all` Parameter in `withdraw_from_lending_account` In `marginfi_cpi::withdraw_from_lending_account`, there is an incorrect encoding of the `withdraw_all` parameter in the instruction data. `withdraw_from_lending_account` allows a user to 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
low
front-running
false
false
## Low: sandwich approveTransferERC20 ### Description ## Handle paulius.eth ## Vulnerability details ## Impact function approveTransferERC20 is vulnerable to the sandwich attack. Similar to the erc20 approve issue described here: https://blog.smartdec.net/erc20-approve-issue-in-simple-words-a41aaf47bca6 A malicio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing validation for vesting points ### Description **Severity**: Low **Status**: Resolved **Description** In Contract Vesting.sol, the method `initialize(...)` sets the vesting points as follows: `(vestingPoints, ) = ascendingSort(_vestingPoints);` Here, vesting points are ordered as per the timestamp 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
other
true
false
## Low: Unnecessary code - BytesLib methods are not used in this contract or its parent contracts ### Description BytesLib methods are not used in PurchaseBundler.sol or its parent contracts. https://github.com/code-423n4/2024-06-gondi/blob/ab1411814ca9323c5d427739f5771d3907dbea31/src/lib/callbacks/PurchaseBundler.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
high
signature
false
true
User can abuse how stop losses are priced to open high leverage trades with huge upside and very little downside. ### Proof of Concept function limitClose( uint _id, bool _tp, PriceData calldata _priceData, bytes calldata _signature ) external { _checkDelay...
Code4rena
5
Tigris Trade
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 in `wfCashLogic._burn` function ### Description The comment next to the `_withdrawCashToAccount` function call implies that the `from` address is the withdrawal receiver. However, `opts.receiver` is the receiver. ### Findings [wfCashLogic.sol#L230](https://github.com/code-423n4/2022-06-not...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Node API dependency for verification of VersionedSignedBeaconBlock ### Description **Severity:** Low **Description:** The oracle service retrieves a signed beacon block without verifying the data or signatures. The node API it currently uses is the QuickNode API. The issue exists in the following 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
low
other
false
false
## Low: Possible zero address for intermediary asset ### Description **Severity**: Low **Status**: Acknowledged **Description** In the AaavePositionManager contract the `intermediaryAsset` field inside the Config struct can be zero address. This leads will revert the call inside the uniswap contract, at function ex...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Potential out of gas error in revokeVotes ### Description Within the [`revokeVotes` function](https://github.com/celo-org/celo-monorepo/blob/f64b4c5b5228ecbf41e3e7cfdbb8c0e9a983eea2/packages/protocol/contracts/governance/Governance.sol#L672), the [`for` loop will execute `dequeued.length`](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
low
initialization
false
false
## Low: Implementations Can Be Initialized ### Description The contracts are upgradable, inheriting from the `Initializable` contract. However, the current implementations are missing the `_disableInitializers()` function call in the constructors. Thus, an attacker can initialize the implementation. Usually, the initi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage ### Description The instances below point to the second+ access of a state variable within a function. Caching will replace each Gwarmaccess (100 gas) with a much cheaper stack read. Less obvious fixes/optimizations in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: 'Dead' Code ### Description **Update** The clients stated: "The file `contracts/External.sol` is still kept because hardhat will automatically export the `proxyAdmin` and `TransparentUpgradeableProxy` ABI when deploying the contract." **File(s) affected:**`vaults/External.sol`, `rewards/BaseRewards.sol` **De...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Test Coverage Improvements ### Description ## Summary ## Vulnerability Details Adequate test coverage and regular reporting is an essential process in ensuring the codebase works as intended. Insufficient code coverage may lead to unexpected issues and regressions arising due to changes in the underlying smar...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VULNERABLE ECDSA LIBRARY ### Description A vulnerability found in the `ECDSA` library developed by the OpenZeppelin team. OpenZeppelin team published a security advisory on GitHub on August 22nd, 2022. According to the vulnerability, `recover` and `tryRecover` functions are vulnerable, as those functions acce...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent documentation to actual function logic ### Description It is mentioned in documentation of the function `validateActionCreation` that the param `actionInfo` is used. https://github.com/code-423n4/2023-06-llama/blob/main/src/interfaces/ILlamaStrategy.sol#L33-L35 However, in `LlamaAbsoluteQuorum...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Outdated Solidity Versions ### Description Throughout the [codebase](https://github.com/spherex-collab/spherex-protect/tree/main/src/), there are `pragma` statements that use an outdated version of Solidity. For instance: * The `pragma` statement on [line 4](https://github.com/spherex-collab/spherex-protect/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ballots not yet past their deadline are incorrectly looped too by tokenWhitelistingBallotWithTheMostVotes() ### Description Inside `DAO.sol`, [\_finalizeTokenWhitelisting()](https://github.com/code-423n4/2024-01-salty/blob/main/src/dao/DAO.sol#L250) before finalizing a token whitelisting proposal makes a ch...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Protection sellers can bypass withdrawal delay mechanism and avoid losing funds when loans are defaulted by creating withdrawal request in each cycle ### Description To prevent protection sellers from withdrawing fund immediately when protected lending pools are defaults, there is withdrawal delay mechanism, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Make state variables that do not change constants ### Description State variables such as name, decimals, and symbols, can be declared with the constant accessibility modifiers since they do not change throughout the lifetime of the smart contract.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Constant values such as a call to `keccak256()`, should used to immutable rather than constant ### Description There is a difference between constant variables and immutable variables, and they should each be used in their appropriate contexts. While it doesn't save any gas because the compiler knows that dev...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: There is an inconsistency in the `vote` and `poke` functions regarding the handling of the end of the voting window ### Description The `VoterUpgradeableV2.vote` function allows voting at the end of the voting window, while the `VoterUpgradeableV2.poke` function does not accommodate this. The `VoterUpgradeabl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool information might be lost if setFactory() ofPoolKeeper contract is called ### Description The `PoolKeeper` contract has a function to change the factory: `setFactory()`. However, calling this function will make previous pools inaccessible for this `PoolKeeper` unless the new factory imports the pools from...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Handle division by 0 ### Description There are a few places in the code where division by zero may occur but isn’t handled. ### Recommendation Remediated per Notional’s team notes in [commit](https://github.com/notional-finance/contracts-v2/pull/104/commits/1681e16cd798fb60e756051d051de075ab641d21) by addi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using the `transfer` function of `address payable` is discouraged ### Description **Impact:** Medium, as payroll will revert and Merkle Trees & approvals would have to be done again **Likelihood:** Medium, as it happens any time the recipient is a smart contract or a multisig wallet that has a receive func...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid complex casting ### Description Consider refactoring the following code, as double casting is confusing, and, in some scenarios, it may introduce unexpected truncations or rounding issues. Furthermore, double type casting can make the code less readable and harder to maintain, increasing the likelihood ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Floating and Multiple Pragma Directives Are Being Used ### Description Pragma directives should be fixed to clearly identify the Solidity version with which the contracts will be compiled. Throughout the [codebase](https://github.com/mantlenetworkio/mantle-v2/blob/e29d360904db5e5ec81888885f7b7250f8255895/), 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
true
false
## Medium: The Hats contract needs to override the ERC1155.balanceOfBatch function ### Description The Hats contract does not override the ERC1155.balanceOfBatch function ### Impact This will make balanceOfBatch return a different result than balanceOf, which may cause errors when integrating with other projects ###...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UNUSED FUNCTIONS ### Description Some unused functions have been declared in `Exchanger.sol` contract. Although they are declared as `external`, they are also declared with the 'OnlyExecutive`modifier, which restricts the usage of these functions only to the address having`Executive`role, which can only be 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
high
storage
true
false
## High: Withdrawal proofs can be forged due to missing index bit size check ### Description **Severity:** Critical **Path:** BeaconChainProofs.sol:verifyWithdrawal#L269-L399 **Description:** In order for the EigenPod to verify and consequently process a withdrawal from the beacon chain, it uses the BeaconChainsP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
other
true
true
## Medium: All swaps other than the top-of-block swap will revert ### 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 of `_computeAndCol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Market Price Lower Than Expected ### Description The market price does not conform to the specification documented within the whitepaper. As a result, the computed market price is lower than expected. ### Impact Loss for the makers as their tokens are sold at a lower price than expected. Additionally, 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...
cyfrin_structured
low
other
true
false
## Low: `PersistentSet` library storage access ### Description Multiple expensive storage reads (SLOAD ~2100 gas each) for the same `set._statuses[value]` occur in several functions: `_add`, `_remove`, `_containsAt`, and `_contains`. Each repeated access to the same storage slot wastes gas. ### Recommendation Cache s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Integer Overflow / Underflow ### Description **Update** Fixed in commit `e3c4d1f`. The functionality of `L286` depends on the assumption that `BUFFER_COLLATERAL` is always equal to `4`. If the value of `BUFFER_COLLATERAL` is ever refactored, using the literal `4` may lead to unexpected behavior. To avoid any ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Drips that end after the current cycle but before its creation can allow users to profit from squeezing ### Description By creating a drip that ends after the current cycle but before its creation time and immediately removing it, the sender doesn't have to put in any assets but the receiver can still squeeze...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
false
## Low: Unnecessary liquidity sync can be removed ### Description The `BaseIncentiveLogic::_syncPoolLiquidity` method is used to synchronize the internal liquidity accounting of an incentivized pool in storage for the corresponding logic contract and is only expected to be executed once; however, there are several ins...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Novel Staking Risks Posed by Middleware ### Description Middleware (as named by EigenLayer) poses a unique value proposition within the liquid staking derivative ecosystem. Their premise is that middlewares can leverage existing stake assigned to a single operator, allowing multiple different protocols to leve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted epoch transition risks contract solvability ### Description Anyone is able to call `endEpoch` function, once the `EPOCH_DURATION` is over, triggering the next epoch start. The consequence is that all programmed withdrawals will now be enabled, whether there is or not sufficient liquidity on the 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
low
reentrancy
true
false
## Low: [03] Reentrancy could occur in flash loan callback functions ### Description The lack of reentrancy protection in the flash loan callback functions (`_openCdpCallback`, `_adjustCdpCallback`, `_closeCdpCallback`) can allow an attacker to reenter the contract during execution, potentially leading to multiple CDP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
false
false
## High: Accrued Fees Can Be Stolen ### Description The [`_increase`](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/PositionManager.sol#L211-L218) function of the `PositionManager` contract does not verify whether the caller is the owner of the specified `tokenId` or one of ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
true
true
## Low: Rebasing will fail if no market sources are fresh ### Description If no market oracles are fresh, then `getPriceAnd24HourVolume()` on line 57 of `MarketOracle.sol` will revert due to division by zero. ```solidity uint256 volumeSum = 0; uint256 partialRate = 0; uint256 partialVolume = 0; bool isSourceFresh = f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
rounding
true
false
## High: Incorrectly assigned `decimal1` parameter upon decoding ### Description Impact is high as lots of functions depend on the `decodeWellData`, and as such will be fed incorrect data about `token1`'s decimals. This can lead to potential overvaluation or undervaluation of the token's amount and prices, depending 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
token
true
false
## Medium: IMPROPER TOKEN RECOVERY IMPLEMENTATION ### Description The `Owner` can recover funds from a compromised account by burning and re-minting tokens. However, it was identified that the `recover()` function was implemented using the `mint()` function, which reverts if the total supply is not 0. Therefore, token...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some proposals can be queued when governanceexecutor is paused ### Description `OmnichainGovernanceExecutor` automatically queues the proposals received as messages through LayerZero. The pausing mechanism of `OmnichainGovernanceExecutor` is designed to deny the queueing of proposals when the contract is pa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `IBeanstalk` interface should be updated to reference Stem-based deposits
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: function withdrawETH from GiantMevAndFeesPool can steal most of eth because of idleETH is reduced before burning token ### Description ## Lines of code https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liquid-staking/GiantPoolBase.sol#L57-L60 https://github.com/code-423n4/2022-11-stakehous...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: zAuction, zNS - gas griefing by spamming offchain fake bids  Acknowledged ### Description The execution status of both `zAuction.acceptBid` and `StakingController.fulfillDomainBid` transactions depend on the bidder, as his approval is needed, his signature is being validated, etc. However, these transaction...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] The isolate auction is not the best system ### Description In the isolate auction `IsolateLiquidation.sol#isolateAuction()` the liquidators will just keep bidding a bigger amount in the auction then, the winner will only pay the `borrowAmount` and receive back all the extra money he previously paid. The...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
false
false
## Medium: Owner can front-run traders by updating adapters ✓ Fixed ### Description MetaSwap owners can front-run users to swap an adapter implementation. This could be used by a malicious or compromised owner to steal from users. Because adapters are `DELEGATECALL`ed, they can modify storage. This means any adapter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `amount` must be > 1 ### Description `amount` must be > 1: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L821 ### Recommendation We recommend changing the check.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos/Incorrect comment/Natspec comments ### Description **Severity**: Informational **Status**: Acknowledged **Description** In Contract GlmRouter.sol, l#431, there is a typo of Rotuer. In Contract GlmRebalance.sol, l#22, l#406, l#424, l#362, l#355 has typos. In Contract GlmVault.sol, l#239 has an incomple...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When a vault is shutdown a user can still commit to liens using the vault ### Description When a vault is shut down, one should not be able to take more liens using the funds from this vault. In the commit to lien flow, `AstariaRouter` fetches the state of the vault: ```solidity ( , address delegate, address...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: getReservesData does not set all AggregatedReserveData fields ### Description The `getReservesData` function fills in an `AggregatedReserveData` structure for the reserve handled by an `IPoolAddressesProvider`. However, the function does not set the structure’s `name` and `assetType` fields. Therefore, off-chai...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees applied twice ### Description Fees are already accounted for in the `_base_calc_token_amounts`, so there is no need to account them twice. https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSwapNGViews.vy#L184 ### Recommendation We recommen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency in `isAvailableErc20` checks ### Description The `MarginAccount.isAvailableErc20` variable plays a crucial role in ensuring that only supported ERC20 tokens are used in operations like providing tokens, swapping, or exercising options within the protocol. This check is enforced to restrict access...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Chainlink's `latestRoundData` might return stale or incorrect results ### Description _Submitted by WatchPug, also found by cmichel, defsec, and ye0lde_ On `ChainlinkOracle.sol`, we are using `latestRoundData`, but there is no check if the return value indicates stale data. This could lead to stale prices...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
logic
false
false
## High: Eternal free mint. ### Description **Description** AccessTokenContract.sol There is no function to prevent the user from free minting. If the user is allowed a free mint, this is an endless, free opportunity to mint passports with increased winChance. Especially given the real absence of a limit on the limi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
false
false
## Medium: Auction.sol#settleAuction() late auction bond could potentially not being able to be settled, cause funds loss to bonder ### Description ## Handle WatchPug ## Vulnerability details The `newRatio` that determines `tokensNeeded` to settle the auction is calculated based on `auctionMultiplier`, `bondTimest...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [03] ### Description In `Community`, adding members and updating the community hash is possible when the system is changed. As these also change the system state, consider also requiring that the system is not paused.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Parameter Validation in Public Modify Position Function ### Description The public `modifyPosition` function does not validate its input parameters, such as ensuring `slippage` is less than `10000` or checking other parameter ranges for validity. Without proper validation in the public function, inval...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 BytesLib.sol library to safely covert bytes to uint256 ### Description Use [toUint256()](https://github.com/GNSPS/solidity-bytes-utils/blob/master/contracts/BytesLib.sol) safely convert bytes to uint256 instead of plain way of conversion [P256SHA256Algorithm.sol#L34](https://github.com/code-423n4/2023-0...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: An Attacker Can Flood the Support by Creating Many Tickets for Arbitrary Addresses ✓ Fixed ### Description The POST endpoint called by the `create_ticket` function does not implement any access control mechanism nor does not seem to implement any kind of DoS protection. An attacker can create tickets for any ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: After migration, the old MarketFundingPool contract will fail to correctly distribute fees to new MarketFundingPool ### Description **Details** [FundingPool.sol#L135-L142](https://github.com/SportsFI-UBet/ubet-contracts-v1/blob/2766b47bed2cf027e29053af2afc4d35256747a5/contracts/funding/FundingPool.sol#L135-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
high
logic
false
false
## High: Staker Address Update Does Not Transfer Staker's Balance ### Description **Update** The client fixed the issue in commit `f797e3043714ac28f58aed6bdb059f3398368f91` and provided the following explanation: > This was already fixed on Apr 4 by not allowing setting staker when the staker was already set **File(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement Minimum Transfer Amount Check in Bridge Function ### Description The current bridge function in the Bridge struct lacks a minimum transfer amount check. While this check is implemented in the BTC and Solana pollers, adding it to the central bridge function would provide an additional layer of securit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [20] Oracle price updates could be front run to game the system ### Description https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/PriceFeed.sol#L44-L58 This function returns the square root of the `baseToken` price quoted in `quoteToken`, and this price data ends u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Function handleUpdates could be reentered ### Description A malicious verifier could reenter `handleUpdates()` while the nonce isn't incremented yet. This way, it could potentially allow processing the same action again and increase the nonce multiple times. Luckily, `validateData()` is a view function and thu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: String Revert Messages Increase Gas Consumption ### Description The project uses `require` statements with literal string messages. Storing these strings in contract bytecode and returning them on failure increases both deployment size and runtime gas. Solidity’s custom errors (introduced in 0.8.4) encode only...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Test_init_escrow failed ### Description **Description** When I call the tests execution I get: ---- test_init_escrow stdout ---- thread 'test_init_escrow' panicked at 'assertion failed: `(left == right)` left: `1000000`, right: `10000000`', tests/lib.rs:896:5 **Recommendation**: Fix tests.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Missing validation for daConfig when creating new op-node ### Description When creating a new op-node, all the configuration is validated except for the `daConfig`. The `Check()` function for daConfig is empty: It's recommended to validate the config such as `RpcURL` or `FallbackMode` in the `daConfig` str...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
signature
true
false
## Low: Unnecessary parameter amount in withdraw function ### Description The function `withdraw()` has a parameter `amount` but we don't understand the necessity of this parameter. At line L67, the amount is required to be the same to the whole deposit amount. This means the user does not have a flexibility to choose...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Validation for `curveId` in Constructor ### Description The issue is identified within the [constructor](https://github.com/lidofinance/community-staking-module/blob/a898d045b63303294752d1a60ad9dfe8d8ba69ca/src/CSEarlyAdoption.sol#L34) of the `CSEarlyAdoption` contract. While the `curveId` parameter is...
0