prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: [09] Fix bugs present in the precomcompiles or clearly document the bugs for users/developers ### Description ### Proof of Concept Take a look at https://github.com/code-423n4/2023-10-zksync-findings/issues?q=175 Focus on the primary issue and its' duplicate, they all talk about how they are behavorial incon...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Overflow/Underflow
false
true
NeoTokyoStaking allows to stake and withdraw LPs. User can stake multiple times on same position which simply results in extended lock time and user can withdraw all of these LPs once lock time is passed. There is a scenario when withdrawing LPs results in overflow of [lpPosition.points](https://github.com/code-423n4...
Code4rena
5
Neo Tokyo
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Re-entrancy in `LimitOrderRegistry::newOrder` means tokens with transfer hooks could take over execution to manipulate price to be immediately ITM, bypassing validation ### Description Whilst there does not appear to be any direct benefit to an attacker, it is possible for tokens with transfer hooks to take ov...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-step Ownership Transfer Process ### Description It was identified that the `SwapManager` contract inherited from OpenZeppelin's `OwnableUpgradeable` library through `ConfigurableAddresses`. Ownership of the contracts that are inherited from the `OwnableUpgradeable` module can be lost, as the ownership 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
medium
oracle
true
false
## Medium: Use `latestRoundData` instead of `latestAnswer` ### Description **Severity** **Impact:** Medium **Likelihood:** Medium **Description** `UniV3TokenizedLp` is calling `latestAnswer()` to get the last oracle price. This method will return the last value, but you will not be able to check if the data is fre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CHANGE FUNCTION VISIBILITY FROM PUBLIC TO EXTERNAL ### Description There is a function declared as public that is never called internally within the contract. It is best practice to mark such functions as external instead, as this saves gas (especially in the case where the function takes arguments, as externa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
overflow
true
false
## Gas: Some operations which won't underflow may be unchecked ### Description **Files:** `GasBoundCaller.sol`, `SystemContext.sol`, `MsgValueSimulator.sol` [File: code/system-contracts/contracts/GasBoundCaller.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/system-contracts/contracts/GasBoundCaller....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider adding access control to event emission functions in GuardianManager.sol ### Description The following three functions currently have no access control, allowing anyone to trigger them, which can potentially trick off-chain event tracking services: ```solidity function rescueStarted(StrategyId strate...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
false
false
## Medium: MEV risk in periods of high volatility ### Description Bonding curves are particularly susceptible to MEV. Any transaction along the curve can be sandwich attacked by a bot that creates the following Flashbots bundles: `buy X tokens => ORIGINAL BUY TX => sell X tokens` (where X is the maximum number of tok...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Vault` is not compatible with some ERC4626 vaults ### Description Depositors can lose funds. ### Proof of Concept Anyone can build `Vault` with an underlying vault inside, which should earn yields. When a user deposits/withdraws then the [`_convertToShares` function is used](https://github.com/GenerationSo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of Unclaimed Bribes After Burning veALCX Token ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/VotingEscrow.sol Impacts: - Permanent freezing of unclaimed yield ## Description ## Introduction This report details a vulnerability dis...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If `RootBridgeAgent.lzReceiveNonBlocking` reverts internally, the native token sent by relayer to RootBridgeAgent is left in RootBridgeAgent ### Description [v2 adapterParams](https://layerzero.gitbook.io/docs/evm-guides/advanced/relayer-adapter-parameters#airdrop) are used to send messages, which means tha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of validation for the `creditAccount` parameter ### Description The issue is identified in the [partiallyLiquidate](https://github.com/Gearbox-protocol/bots-v3/blob/807ccc7b7a9366522339e499ef1a14d20c27dbde/contracts/bots/PartialLiquidationBotV3.sol#L124) function of the `PartialLiquidationBotV3` 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
medium
liquidation
false
false
## Medium: Lack of Input Validation ### Description Throughout the [codebase](https://github.com/Ion-Protocol/ion-protocol/tree/98e282514ac5827196b49f688938e1e44709505a/), functions lack validation of input arguments: * Within the `ReserveOracle` contract: + The [constructor](https://github.com/Ion-Protocol/ion-pro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Only manager modifier ### Description There are a lot of similar checks for requirement that the calling address is a manager of the following kind: if (msg.sender != manager) { revert Errors.CallerNotManager(); } Code duplication makes the code base less clear and more voluminous. ### Recommendatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Improve experimental_requestSession UX ### Description ## zkApp Session Risks When a `zkApp` sends an `experimental_requestSession` RPC call, the prompt shown to the user does not contain much information about what the session is and why it is dangerous to sign it. In addition, the session data is not checke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Input Handling and Parsing ### Description Improper input handling occurs when user-supplied data is not properly validated, sanitized, or escaped before being processed. This can lead to injection attacks, data corruption, or application behavior manipulation. In the `apiHelper.ts` file, the 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
medium
rounding
false
false
## Medium: Voting Multiplier Can Be Gamed Using `increaseAmountFor` ### Description **Update** Marked as "Fixed" by the client. Addressed in: `1152d2927d896e00974330d071930f10bd6f2c85`. This fix introduced two potential Issues: 1 - There is now a griefing attack vector where a user can deposit a tiny amount of new 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
high
flash-loan
false
false
## High: Wrongly used `safeApprove` ### Description At the line https://github.com/CoverProtocol/cover-flashloan/blob/9cb6561f3d40f870252088d3c16c1eed24a93166/contracts/CoverFlashBorrower.sol#L351 contract call `safeApprove` method, however that method fails if account have remaining allowed tokens. ### Recommendatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
storage
false
false
## Medium: No Storage Gaps Present In Upgradeable ynBase.sol Contract May Cause Storage Collisions On Upgrade ### Description **Severity**: Medium **Status**: Invalid **Description** For upgradeable contracts it’s recommended that storage gaps are introduced to allow for developers to freely add new state variables...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Timelock keys are never removed after unlocks ### Description ## Handle 0xRajeev ## Vulnerability details ## Impact timelockERC20Keys and timelockERC721Keys are used to keep track of number of timelocks for ERC20 and ERC721 tokens. While timelockERC20() and timelockERC721() functions update these data 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...
skyward_49k
low
liquidation
true
false
## Low: Refill RateLimiter Before Setting Rate ### Description ## RateLimiters in USDV RateLimiters are used to limit the speed at which USDV can be minted or burned with respect to certain collateral tokens. ## Issue Summary In the current implementation, when operators attempt to update the refill rate of RateLi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
false
false
## High: Collaterals are not guaranteed to be returned after a batch is cancelled ✓ Fixed ### Description When traders open buy orders, they also transfer collateral tokens to the market maker contract. If the current batch is going to be cancelled, there is a chance that these collateral tokens will not be returned 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
gas
other
false
false
## Gas: Using `private` rather than `public` for constants, saves gas ### Description If needed, the values can be read from the verified contract source code, or if there are multiple values there can be a single getter function that [returns a tuple](https://github.com/code-423n4/2022-08-frax/blob/90f55a9ce4e25bceed...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: Potential clash between proxy and implementation function selectors ### Description ink! allows developers to set custom selectors for the functions defined on a contract as mentioned in [**Custom Selectors could facilitate proxy selector clashing attack**](#h01). When this feature is not used, the [`compute` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
integer-overflow
true
false
## Medium: Silent overflow in `TrimmedAmount::shift` could result in rate limiter being bypassed ### Description Within [`TrimmedAmount::trim`](https://github.com/wormhole-foundation/example-native-token-transfers/blob/f4e2277b358349dbfb8a654d19a925628d48a8af/evm/src/libraries/TrimmedAmount.sol#L136-L158), there is an...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Use Arguments Instead of Global Changes ### Description ## Observing Immediate Changes in Global State In certain functions such as `mint`, information such as the amount to mint is obtained by observing immediate changes in global state (caused by predecessor functions): This type of logic heavily depends ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault can experience long downtime periods ### Description The chainlink price could stay up to 24 hours (heartbeat period) outside the boundaries defined by `THRESHOLD` but within the chainlink deviation threshold. Deposits and withdrawals will not be possible during this period of time. ### Impact Withdr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_processOffersFromExecutionData()` lack of check `executionData.duration<=offer.duration` ### Description `emitLoan()` only limits `offer.duration != 0`. There's no limit in `executionData.duration `_processOffersFromExecutionData()` -> `_validateOfferExecution()` If the `executionData.duration` time is no...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## High: Missing Input Validation Allows Subscribing to Non-Existent Incentives ### Description Missing input validation checks allows an attacker to steal substantially more rewards than available in a given incentive. The attack occurs due to a bug which allows subscribing to incentives which do not yet exist. Furth...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
input-validation
true
false
## Low: Perform additional validation on Chainlink fast gas feed ### Description When consuming data feeds provided by Chainlink, it is important to validate a number of thresholds and return values. Without this, it is possible for a consuming contract to use stale or otherwise incorrect/invalid data. `LimitOrderRegi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Initialization can be front-run ### Description In the `PriceOracle.sol` contract, it was identified an unprotected initializer, which is susceptible to front-running attacks. `- contracts/core/utils/oracle/PriceOracle.sol` ``` function initialize(address admin) external initializer { _grantRole(DEFAULT_...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The source code intended for deployment should not contain `TODO` comments ### Description At the line https://github.com/lidofinance/aragon-apps/blob/8c46da8704d0011c42ece2896dbf4aeee069b84a/apps/voting/contracts/Voting.sol#L369 contains a comment with `TODO`. But the deployed code needs to be improved, sinc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Manipulations of `setFee` ### Description _Submitted by pauliax_ [BribeVault.sol#L104-L113](https://github.com/code-423n4/2022-02-redacted-cartel/blob/main/contracts/BribeVault.sol#L104-L113) [BribeVault.sol#L164](https://github.com/code-423n4/2022-02-redacted-cartel/blob/main/contracts/BribeVault.sol#L164...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
dos
false
false
## Low: Global partition enumeration can run into gas limits ✓ Fixed ### Description In `ERC1410`, partitions are created on demand by issuing or transferring tokens, and these new partitions are added to the array `_totalPartitions`. When one of these partitions is later emptied, it’s removed from that array with the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: DoS in distribute() ### Description ## StakingEmissions.sol Issue and Recommendation ## Context - **File:** StakingEmissions.sol - **Line:** 57 Currently, `StakingEmissions.distribute()` is triggered once every 1 week to transfer `VestedZeroLend` to `feeDistributor`, and then users claim from `feeDistribu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
overflow
true
false
## Gas: Add unchecked blocks for subtractions where the operands cannot underflow ### Description The solidity compiler introduces some checks to avoid an underflow, but in some scenarios where it is impossible for underflow to occur we can use unchecked blocks to have some gas savings. *There is 1 instance of this 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
access-control
true
false
## Low: [04] `PermissionManager.revoke` TRANSACTION CAN BE FRONTRUN ### Description Calling the following `PermissionManager.revoke` function, which further calls the `PermissionManager._revoke` function, would revoke the permission from an address for calling the corresponding functions on a target contract, such as ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Use calldata instead of memory for function arguments that do not get mutated ### Description Mark data types as `calldata` instead of `memory` where possible. This makes it so that the data is not automatically loaded into memory. If the data passed into the function does not need to be changed (like updating...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extra check ### Description **Description** LYO.sol, renounceRole() contains extra check, since 2 of 3 existing “require” statements are enough to cover all cases. **Recommendation**: Remove extra 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
true
false
## Low: Missing checks for `address(0x0)` when assigning values to `address` state variables ### Description *There are 7 instances of this issue:* https://github.com/code-423n4/2022-07-golom/blob/e5efa8f9d6dda92a90b8b2c4902320acf0c26816/contracts/core/GolomTrader.sol#L448 https://github.com/code-423n4/2022-07-golo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cache External Calls in Loops ### Description This detector identifies instances of repeated external calls within loops. By moving the first external call outside of the loop and using low-level calls inside the loop, it is possible to save gas by avoiding repeated EXTCODESIZE opcodes, as there is no need 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
true
false
## Low: Dust clean in transferBorrow() could lead to accounting errors ### Description The `transferBorrow()` internal function is used by the `pullDebt()` and `liquidate()` functions to handle debt transfers. ```solidity // If amount was rounded up, or dust is left over, transfer exact amount owed if ( (amount > f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Versioning ### Description **Description** Provided contracts use version 0.8.4^. 0.8.4 is not the actual version of Solidity. **Recommendation**: Consider using the actual version of Solidity(0.8.11). Also it must be stable (without ^).
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: The total supply of GhoVariableDebtToken is incorrect if there are active discounts ### Description Openzeppelin’s description of the `totalSupply()` function, inherited in `GhoVariableDebtToken.sol`, reads: > @dev Returns the amount of tokens in existence. However, this is not quite what `GhoVariableDebtTok...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `EToken.transferFrom()` May Transfer an Incorrect Amount of Tokens ### Description **Update** Marked as "Fixed" by the client. Addressed in: `87680502edc325f16b93658111635ba482b9a5eb`. The client provided the following explanation: > Disabled transferability of EToken. **File(s) affected:**`EToken.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
high
overflow
true
false
## High: `UniswapV2PriceOracle.sol` `currentCumulativePrices()` will revert when `priceCumulative` addition overflow ### Description _Submitted by WatchPug_ [UniswapV2PriceOracle.sol#L62](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/contracts/UniswapV2PriceOracle.sol#L62...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Discrepancy in Size Calculation ### Description ## SyMeta::LEN_STATIC Calculation Issue The `SyMeta::LEN_STATIC` calculation is incorrect due to a mismatch between the expected and actual memory size. This occurs as the current implementation of `SyMeta::LEN_STATIC` calculation fails to include all the variab...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excess Fees Retention in AssetController ### Description The `AssetController` contract does not refund excess fees sent by users when calling `burnAndBridgeMulti` or `resendTransferMulti`. The contract forwards only the specified fees to each adapter without verifying `if msg.value == (computed values of 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
medium
liquidation
true
false
## Medium: HPB may be incorrectly bankrupt due to use of unscaled value in `_forgiveBadDebt` ### Description Source: https://github.com/sherlock-audit/2023-09-ajna-judging/issues/25 ## Found by 0xkaden An unscaled value is used in place of where a scaled value should be used in the bankruptcy check in `_forgiveBa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary validation checks and operations in Token Vesting. ### Description **Description** TokenVesting.sol: initialize(), claim(). In TokenVesting.sol (line 29), the validation for msg.sender not being zero address is making no sense as zero address cant call any external methods. In TokenVesting.sol (...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: PermissionRegistry Owner Changes Permissions Set By Others ### Description The function `setPermisssion()` has a condition where the contract owner can modify permission entries that belong to others, namely the permissions with different addresses than the contract owner’s. A malicious owner can call `setP...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BaseRegistrarImplementation.acceptRegistrarTransfer should probably use the live modifier ✓ Fixed ### Description Most `external` functions in `BaseRegistrarImplementation` have the `live` modifier, which ensures that they can only be called on the current ENS owner of the registrar’s base address. The `acc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
true
false
## Medium: Uncapped funding period deposits could lead to DoS ### Description The `depositVault` allows unlimited deposits per funding period without any cap, which can lead to a DoS scenario during the execution of `DepositProcess.processDeposit()`, if too much liquidity is deposited into the `depositVault` during a ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Lack of the two step ownership transfer pattern ### Description The present ownership transfer procedure requires the current owner to invoke `transfer_ownership()`. This method does not verify that the new owner's address is non-zero before updating the owner's named key with the new address. In the event 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
dos
true
false
## Low: 7] Potential DoS condition when trying to set a new proposed lending module ### Description **Severity:** Low **Path:** src/stHYPEWithdrawalModule.sol#L312 **Description:** [AAVE V3 Pool](https://github.com/aave/aave-v3-core/blob/782f51917056a53a2c228701058a6c3fb233684a/contracts/protocol/libraries/logic/Val...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Fee calculation uses full instead of net amount for pool impact ### Description [Link](https://github.com/Hyperhyperfi/protocol/blob/212acfdcd4066334ff5ea06ce46b0bbca7ca212f/src/core/pool/facets/LiquidityFacet.sol#L318-L319) In the `_calcAddLiquidity` function, there exists a discrepancy between the amount...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uniswap V3 swap in `commitAndClose` susceptible to sandwich attack ### Description **Description** TracerGMXVault.sol - In body of swapToStable(...), call stack starts from external function commitAndClose(). This transaction can be spotted in pool and exposed to sandwich attack because of this snippet: ISw...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CC `WP-M1` from the WatchPug fourth report ### Description BalancerOracle [still uses the legacy `totalSupply()` with updating the `currentPrice` ](https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/oracle/BalancerOracle.sol#L114-L137) which would mean the wrong amou...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 State Variable ### Description Throughout the [codebase](https://github.com/NethermindEth/forta-staking-vault/tree/ce87cffbf813e27cc83157933760b51fa44a1885/), one variable duplicate another already defined, accessible state variable: * The [`FortaStakingVault` contract](url) defines the private [`_...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidity rewards are computed incorrectly for a week if any liquidity provider removes liquidity during the week ### Description The [`calculateLiquidityProviderPayout` function](https://github.com/futureswap/fs_core/blob/96255fc4a550a5f34681c117b5969b848d07b3a3/contracts/incentives/Incentives.sol#L359) comp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BeHYPE` and `WithdrawManager` contracts incorrectly import `IBeHYPE.sol` ### Description _Acknowledged_ `BeHYPE` and `WithdrawManager` import the `IBeHYPE` interface, but the contracts are using `IBeHype.sol` instead of `IBeHYPE.sol`, which prevents them from compiling. Recommendation: Import `IBeHYPE.sol` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Substantial amount of code duplication ### Description Code duplication exists across the EdgeChallengeManagerLib contract implementation, which can result in incomplete fixes and inconsistent behavior (e.g., because the code is modified in one location but not in all). The figure below shows an instance of du...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: ETH and WETH redemption limits can be combined ### Description The `EthenaMinting.sol` contract introduced asset based limits for minting and redemption in addition to global limits. In one case, these limits can be bypassed. When redeeming USDe for ETH and WETH tokens, the different `totalPerBlockPerAsset[b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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/beefyfinance/beefy-zap/tree/addd5741a520b10924f1f26cc45208ff5fa88139/), there are several parts that do not have docstrings. For instance: * [Line 8](https://github.com/beefyfinance/beefy-zap/blob/addd5741a520b10924f1f26cc45208ff...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient Input Validation Across Multiple Contract Functions ### Description **Update** Marked as "Fixed" by the client. Addressed in: `26fd1c8857c89f5df53f0211c95331af6672d1e4`, `eb8c7ba08595b975a606bfc913a1bb72b5c30bee`. The client provided the following explanation: > Added several input validations as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
false
false
## Low: Missing check if `priceFeedProxy` is set ### Description In `AssetManager::updatePriceFeedProxyEnableStatus` you should check if `priceFeedProxies[index] == address(0)` and revert the execution if that's the case, since that would mean setting the enable status of a not yet set proxy.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No user-control on what selector is called on an external contract allowed under a session key ### Description The `validatePermission()` function only checks that the primary selector is `permissionedCall()` (as the overall call is wrapped with this selector before sending the user operation). However, there ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Trades where toToken is feeOnTransferToken might send user less tokens than finalAmountMin ### Description _Submitted by kenzo_. Slingshot's `executeTrades` checks that the trade result amount (to be sent to the user) is bigger than `finalAmountMin`, and *after that* sends the user the amount. But if the 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
dos
false
false
## Low: Potential DoS Risk In Derive Protocol Due To Unbounded Loop ### Description The Derive protocol involves multiple functions that necessitate iterating through all assets to carry out specific calculations or transfers, such as liquidations, risk assessments, and account merging. At present, the StandardManager...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate Withdrawable Token Amount ### Description ## Token Withdrawal Issue in BaseMilestone Contract In `BaseMilestone::withdrawAdmin`, the `availableAmount` is calculated as: This may result in locking some tokens that are not reserved for vesting. ## BaseMilestone.sol (SOLIDITY) The issue arises 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
initialization
true
false
## Medium: Incorrect Loop Counter Increment in `ReseedField` Contract ### Description The inner loop incorrectly increments the outer loop's counter variable, leading to potential infinite loops, skipped data processing, and possible out-of-bounds array access. ### Impact If any account has more than one plot, the in...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Lack of Handling for Unrecognized L2 Logs Senders ### Description Logs within the L2 system are processed based on [their sender's address in the Executor](https://github.com/matter-labs/zksync-2-contracts/blob/0ea939847569a02ae9c3b2d096aef5cb6238eb9d/ethereum/contracts/zksync/facets/Executor.sol#L111-L140). H...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Slippage
true
true
<https://github.com/code-423n4/2022-11-redactedcartel/blob/main/src/vaults/AutoPxGlp.sol#L210> <https://github.com/code-423n4/2022-11-redactedcartel/blob/main/src/PirexGmx.sol#L497-L516> ### Impact Compounded assets may be lost because `AutoPxGlp::compound` can be called by anyone and minimum amount of Glp and USDG...
Code4rena
5
Redacted Cartel
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User could have impossible to close position if funding fees grow too big. ### Description User could have impossible to close position if funding fees grow too big. ### Impact Loss of funds ### Recommendation Fix is non-trivial.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
true
false
## High: Index can reach type(uint104).max when asset totalSupply is dust and DoS aToken transfers in- ### Description The reward formula in Reward Distributors (`RewardsDistributor.sol` and `RewardsDistributor6909.sol`) uses an index to track the accrual of rewards per unit of aToken held. The size for the index is 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
initialization
false
false
## Low: Prioritize Inactive Pool ### Description ## Protocol Strategy for Inactive Validator Pools In the scenario where the protocol holds staked SUI in the staking pool of an inactive validator, it may be inefficient to distribute the unstaking amount to a bunch via `storage::unstake`. For instance, let’s assume ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## High: When users borrow directly from Morpho price of the collateral will not be accurate ### Description When users have a withdrawal request, the Morpho price oracle will price the request based on the requested value instead of the share amount. However, if users choose to borrow directly from Morpho bypassing 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
overflow
true
false
## Low: `Math.max(<x>,0)` used with `int` cast to `uint` ### Description The code casts an `int` to a `uint` before passing it to `Math.max()`. It seems as though the `Math.max()` call is attempting to prevent values from being negative, but since the `int` is being cast to `uint`, the value will never be negative, an...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Error Messages in require Statements ### Description The [`unsafePrecompileCall`](https://github.com/matter-labs/system-contracts/blob/4dca36d898f2fc0a7e39f0e3ef0c1a78570efaa2/contracts/libraries/SystemContractHelper.sol#L146-L158) and [`precompileCall`](https://github.com/matter-labs/system-contracts/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [30] Package @balancer-labs/balancer-js is not used ### Description The package @balancer-labs/balancer-js is deprecated and balancer recommends to use the @balancer-labs/sdk package instead. Also, this package is currently unused on the tests and deployment setups. Consider removing this package. This is no...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk Due to Privilege Management of updateLastInvestTimestamp Method ### Description **Severity**: Low **Status**: Acknowledged **Location**: PoolBase.sol **Description** The current implementation of the `updateLastInvestTimestamp` function allows not only the contract owner but also any wa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Access Control in Pong handlers ### Description The `BasePongHandler` and `PongHandlerImplementation` contracts lack proper access control mechanisms on critical functions like `pongHandler`, `registryPongHandler`, and `configPongHandler`. These functions can be called by any external address, allowin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 checks ### Description [`ousgInstantManager::_redeem`](https://github.com/code-423n4/2024-03-ondo-finance/blob/main/contracts/ousg/ousgInstantManager.sol#L415-L420): `usdcAmountOut` can never be `0` here, as there is already [a check](https://github.com/code-423n4/2024-03-ondo-finance/blob/main/c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: WE SUGGEST USING THE OPENZEPPELIN ADDRESS LIBRARY ### Description In the `FeeWrapper.sol` contract, the low-level `call()` function is used for certain operations. However, it is recommended to use the `Address.sol` library from `OpenZeppelin` to implement these operations in a secure manner and take advantage...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: revealBlindBid() should add premium check ### Description When bidders enter the blind auction, they make a blind bid and then reveal the bid amount. During the blind bid process: - The function `bidForNFT()` performs both standard and premium checks. When revealing the bid amount: - The function `revealB...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
logic-error
true
true
## Medium: Rewards are calculated as distributed even if there are no stakers, locking the rewards forever ### Description The `TempleGoldStaking.sol` contract is a fork of the Synthetix rewards distribution contract, with slight modifications. The code special-cases the scenario where there are no users, by not updat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loading Arbitrary Data as Wire Commitments  Acknowledged ### Description Function `load_wire_commitments_commit_api` as the name suggests, loads wire commitments from the proof into the memory array `wire_commitments`. The array is made to hold 2 values per commitment or the size of the array is 2 \* `vk_nb...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `bondFaceValue` read in `PerpetualBond::_convertToBond` can be cached ### Description The storage value `bondFaceValue` is read twice in [`PerpetualBond::__convertToBond`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/PerpetualBond.sol#L291-L294): ```soli...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
false
## Low: PublicVault.accrue is manually inlined rather than called ### Description The `accrue` function locks in the implied value of the PublicVault by calculating, then adding to `yIntercept`, and finally emitting an event. This calculation is duplicated in three separate locations in `PublicVault`: - In `totalAsset...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeable contracts missing method to disable initializers for implementation contracts ### Description **Severity** : Low **Status**: Resolved **Description** : USDIDOPool.sol ETHIDOPool.sol IDOPoolAbstract.sol RoleControl.sol NonLockStakingPool.sol LockedStakingPools.sol are using `initialize()` meth...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Some functions can be fused into one ### Description Merge `freezeFunds` and `unfreezeFunds` into `updateFundsFreezeStatus` - same for their events. There is no need for two separate methods and events
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
token
true
false
## Gas: Splitting require() statements that use && saves gas - (saves 8 gas per &&) ### Description Instead of using the && operator in a single require statement to check multiple conditions,using multiple require statements with 1 condition per require statement will save 8 GAS per && The gas difference would only b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded iteration over all indexes (2) ### Description _Submitted by Dravee, also found by robee, egjlmn1, danb, WatchPug, Fitraldys, and Ruhum_ The transactions could fail if the array get too big and the transaction would consume more gas than the block limit. This will then result in a denial of servi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
true
false
## Medium: Rounding error in `buyQuote` might result in free tokens ### Description In order to guarantee the contract does not become insolvent, incoming assets should be rounded up, while outgoing assets should be rounded down. The function `buyQuote()` calculates the amount of base tokens required to buy a given 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
cross-chain
false
false
## Low: Use of "0x" for address strings ### Description In several instances in StargatePlugin and MozBridge, "0x" is used for an empty address. It is recommended to use address(0) instead, to save gas costs and reduce confusion. In some cases, "0x" could be interpreted as a valid 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
access-control
false
false
## Low: Packed timestamp value could change ### Description [Where: https://github.com/redstone-finance/redstone-oracles- monorepo/blob/483-implement-a-roundless-and-a-roundful- version-of-on-chain-relayer-contracts/packages/on-chain- relayer/contracts/core/RedstoneAdapterBase.sol#L179](https://github.com/redstone-fin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Validation Can Lead to Duplicate Guardians in `AccessControl` Compromising Security Redundancy ### Description **Update** Marked as "Fixed" by the client. Addressed in: `9529211a655d1c900d3ec9830cdb2b6f1833209b`. The client provided the following explanation: > Added a check for existing guardians 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
medium
token
true
false
## Medium: Pool address is not deterministic, the actual Pool address deployed may be different from the address computed in advance ### Description Users and contracts associated with Maverick may result in errors or token losses due to using a wrong Pool address. ### Proof of Concept Pools are deployed in a `creat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Validation for `_shortStopTime` and `shortStopDuration` in `updateStopTimes` ### Description This issue has been identified in the `updateStopTimes` function of the [RestrictedTokenAward](https://github.com/MetaLex-Tech/MetaVesT/blob/b614405e60bce8b852e46d06c03fd47b04d86dde/src/RestrictedTokenAlloca...
0