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
rounding
true
false
## Low: Rounded Down Fees ### Description ## Fee Calculation in Helpers.computeFeeAmount The `Helpers.computeFeeAmount` function calculates fees by multiplying the initial amount by the fee rate and dividing by `_BASIS_POINTS`. The division operation effectively divides the product by 10,000. Since this is an integer...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WhitelistPeriodManager: Improper state handling of exclusion additions ### Description ## Lines of code https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/WhitelistPeriodManager.sol#L178-L184 https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/WhitelistPeriodMan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Limitations/Validation To Set Variables in Tracer ### Description Description The owner of a Tracer is able to set a range of variables which effect user rewards and borrowing functionality. The functions that do not contain any limitations or validations are: •setFeeRate() •setMaxLeverage() •setFundin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Conversion Rate Discrepancy ### Description ## Discrepancy Between Assets and Shares A discrepancy between assets and shares may occur due to potential changes in the conversion rate between the request time and processing time during `YieldToken::mint` or `YieldToken::withdraw`. This may result in the fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Update to latest OpenZeppelin version ### Description The project uses version [1.1.0 of OpenZeppelin](https://github.com/decentraland/mana/blob/master/package.json#L10). [Version 1.2.0](https://github.com/OpenZeppelin/zeppelin-solidity/releases/tag/v1.2.0) was released a few days ago, which fixes ERC20 compli...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Emergency withdraw might not be enough if the underlying pool is a nested pool ### Description Emergency withdraw is can be called in various cases. The protocol team states that it can be called when a balancer pool enables "enableRecoveryMode" and maybe it can be called when the pool has an exploit and it...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
storage
false
false
## High: Arbitrary transactions possible due to insufficient signature validation ### Description A hacker can create arbitrary transaction through the smart wallet by evading signature validation. Major impacts: 1. Steal **all** funds from the smart wallet and destroy the proxy 2. Lock the wallet from EOAs by upd...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Voters who withdraw veLACX tokens risk losing gained bribes rewards ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol Impacts: - Permanent freezing of unclaimed yield ## Description ## Brief/Intro Voters who withdraw their veLAC...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CRTOKENS MAY BE MINTED/BURNED ARBITRARILY IF POLICY CENTER IS NOT SET ### Description The modifier `onlyPolicyCenter` allows the execution of a function making use of this modifier without reverting the transaction when `policyCenter` is not set or equals to `0`. Since this modifier is used to verify the ac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bulk Informational Issues relative to Release 0.4 PR ### Description This issue includes a list of informational issues found and noted while reviewing the PR that would merge the Release 0.4 PR into the main branch. The issues are not sorted by type or files. 1. Inside `CdpManagerStorage.getICR`, `currentETH...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling `createBounty()` with invalid gauge will revert before returning 0 ### Description When `createBounty()` is called, the first check is to ensure that the `gauge` is valid on Curve's `gaugeController`: However, there is no way for this function call to return a value less than 0. We can see this by fo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: Check zeroParams and lpTokenParams Is Not Empty ### Description ## Security Analysis Report ## Severity **High Risk** ## Context `PoolManager.sol#L158-197` ## Situation The function `addTarget()` checks that `targetParams` is not empty. However, `addSeries()` does not include a check for this, and both `ze...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [M-03] ### Description ### Description of the problem A comment in Syndicate.sol states that “Basically, under a rage quit or voluntary withdrawal from the beacon chain, the knot kick is auto-propagated to syndicate”. However, when a KNOT is inactive, the KNOT can still remain part of the syndicate and isn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 node contract could contain tokens that are not actively used ### Description The node contract could contain tokens that are not actively used. This could be due to airdrops or shares from inactive components. ### Recommendation Consider having a way to salvage tokens from the node contract. This could 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
high
dos
true
false
## High: All migrated withdrarwals that require more than 135,175 gas may be bricked ### Description Migrated withdrawals are given an "outer" (Portal) gas limit of `calldata cost + 200,000`, and an "inner" (CrossDomainMessenger) gas limit of `0`. The assumption is that the CrossDomainMessenger is replayable, so 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
low
liquidation
false
false
## Low: Incorrect error message ### Description The [`Liquidatable` constructor](https://github.com/UMAprotocol/protocol/blob/1631ef7ad29aaeba756ef3b9a01c667e1343df85/packages/core/contracts/financial-templates/expiring-multiparty/Liquidatable.sol#L189) and the [`PerpetualLiquidatable` constructor](https://github.com/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid contract existence checks by using solidity version 0.8.10 or later ### Description Prior to 0.8.10 the compiler inserted extra code, including `EXTCODESIZE` (**700 gas**), to check for contract existence for external calls. In more recent solidity versions, the compiler will not insert these checks if 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: [G-15] ### Description [G-15] require() or revert() statements that check input arguments should be at the top of the function Checks that involve constants should come before checks that involve state variables, function calls, and calculations. By doing these checks first, the function is able to revert 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
true
false
## Low: FLOATING PRAGMA ### Description The `Truffles` contract uses the Solidity pragma **^0.8.9**. It's essential to deploy the contract with the exact compiler version and flags that have undergone thorough testing. Locking the pragma to a specific version helps to ensure that contracts are not accidentally deploye...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
false
## High: `withdraw()` doesn't claim all rewards before burning 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 ## Brief/Intro The `claim()` function in the `R...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Admin can not set the pool fee since it is only set in memory ### Description The pool fee is only set in memory and not in storage so specific pool fees will not apply. ### Impact Specific pool fees will not apply. Only the default fee will apply to swaps. ref: [UniswapImplementation::getFee()](https://g...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized Variable `marketWhitelist` in `RCTreasury.sol` ### Description _Submitted by leastwood, also found by 0xsanson, gpersoon, hickuphh3 and JMukesh_ The variable, `marketWhitelist`, is never initialized in the contract `RCTreasury.sol`. As a result, the function `marketWhitelistCheck()` does not...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
false
false
## Low: Impossible condition; unreachable code. ### Description **Severity**: Informational **Status**: Acknowledged **Description** Stake::proposeAnd Vote Upgrade()#2187. The check approvals [proposed Upgrade Contract] >= minSigRequired will constantly be equal to false, as 'approvals[proposed UpgradeContract] is ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency In Size Calculation ### Description ## Inaccurate Size Calculations in Codebase Several instances of incorrect size calculations exist within the codebase, resulting in inefficient space utilization and incorrect storage allocations. ## 1. InfinexAdminAuthority Account In the `InfinexAdminAuth...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Refactoring ### Description ## Action Items 1. **Include a rent exemption check for the `fee_address` in `WithdrawFunds`** to prevent transaction failures due to insufficient balance when transferring small amounts of SOL (lamports) to the `fee_address`. 2. **In the current implementation, a majority of...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Attacker Can DoS Queue with Low-Quality Subscriptions ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > The current implementation iterates through the entire subscription queue while buying a new subscription. We enforce a hard limit on the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Withdraw limits are not properly considered during balancing transactions and can lead to vault DOS ### Description **Details** When withdrawing from an adapter, current balance and max withdraw must be considered. If either is exceeded then the rebalance transaction will revert during execution and will r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
access-control
false
false
## Gas: Functions guaranteed to revert when called by normal users can be marked `payable` ### Description If a function modifier such as `onlyOwner` is used, the function will revert if a normal user tries to pay the function. Marking the function as `payable` will lower the gas cost for legitimate callers because 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
high
signature
true
false
## High: TimeLockUpgrade’s timeLockPeriod remains default post-deployment ### Description Several contracts inherit functionality from the `TimeLockUpgrade` contract, which is deployed by `2_core.js` methods using the `timeLockUpgrade` modifier. However, the `setTimeLock` modifier is invokable at any time, and its fun...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `OperationExecuted` event is defined but never emitted ### Description In the `OperatorProposal` contract the [`OperationExecuted`](https://github.com/code-423n4/2023-04-party/blob/440aafacb0f15d037594cebc85fd471729bcb6d9/contracts/proposals/OperatorProposal.sol#L20) event is defined but it is never emitted. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 event and or timelock for critical parameter change ### Description Events help non-contract tools to track changes, and events prevent users from being surprised by changes *There are 4 instances of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Cheaper input valdiations should come before expensive operations ### Description Check @audit comment for details *There are 3 instances of this issue:* https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/vote-escrow/VoteEscrowCore.sol#L925
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 The [code under review](https://github.com/Consensys/linea-contracts-fix/tree/04d6677474421239c1f215c5a676223d09266ba4/contracts/verifiers) contains several functions with minimal or missing docstrings, which limits readability. This is compounded by the fact that many functi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swivel.setFee() is implemented wrongly. ### Description _Submitted by hansfriese, also found by jonatascm_ `Swivel.setFee()` is implemented wrongly. Swivel.feenominators won't be set as expected. ### Proof of Concept [This function](https://github.com/code-423n4/2022-07-swivel/blob/fd36ce96b46943026cb2df...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `takeOwnership()` function checks can be simplified ### Description Currently, the `takeOwnership()` function performs the following checks to determine whether a user is allowed to take ownership: To summarize: - the inputted `newOwner` must not be `address(0)` - the inputted `newOwner` must equal `proposed...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Claim functions don't validate if the epoch is settled ### Description Both claim functions fail to validate if the epoch for the request has been already settled, leading to loss of funds when claiming requests for the current epoch. The issue is worsened as `claimAndRequestDeposit()` can be used to claim 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
false
false
## Medium: An admin authority initializing RebateInfo will make claim_rebate_fee unusable ### Description A `ClaimRebateFee` constraint enforces that `rebate_info.authority == rebate_manager.authority`. This will always be false when an admin authority initialized the `rebate_info`, leading the `rebate_info.rebate_aut...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious tickets can lead to the loss of all tokens ### Description _Submitted by johnnycash, also found by WatchPug, csanuragjain, gpersoon, gzeon, harleythedog, kemmio, kenzo, leastwood, and pauliax_ #### Impact It allows an attacker to retrieve all the tokens of each promotions. #### Analysis Anyone 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
medium
access-control
false
false
## Medium: Malicious front-end can sneak intermediate ownership changes to perform unauthorized actions ### Description LSSVMPair implements an `onlyOwner` multicall function to allow the owner to batch multiple calls. Natspec indicates that this is "Intended for withdrawing/altering pool pricing in one tx, only calla...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Simulation Mode in ApprovedCallsPolicy ### Description In `ApprovedCallsPolicy`, the variable [IS\_EXECUTING\_SIMULATION\_SLOT](https://github.com/ironblocks/onchain-firewall/blob/8f4fcf861d53c835ed005db67b8af4037464e0ca/contracts/policies/ApprovedCallsPolicy.sol#L19) can be read in [`_is_executing_simulation(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
false
false
## High: Forcing the new POQo system to fail, preventing the network's ability to process transactions. ### Description Report type: Blockchain/DLT Target: https://github.com/shardeum/shardus-core/tree/dev Impacts: - Network not being able to confirm new transactions (total network shutdown) ## Description ## Intr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Pause Functionality ### Description ## Claim Coin V2 `claim_coin_v2` handles the process of claiming SUI coins, ensuring that the claim is valid based on epoch and timestamp conditions. However, it does not utilize any pause flag to enable it to stop the claiming process. The absence of such a pausing...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider using struct instead of an array for the domestic and foreign child tokens ### Description **Description:** The `CentralToken` code could probably be simplified by using the following data structure for child tokens. This should lead to greater code clarity. Currently one has to remember that 0 = do...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
false
## Low: Contract implements interface without extending the interface ### Description Not extending the interface may lead to the wrong function signature being used, leading to unexpected behavior. If the interface is in fact being implemented, use the `override` keyword to indicate that fact *There is 1 instance 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: Open TODOs ### Description Code architecture, incentives, and error handling/reporting questions/issues should be resolved before deployment *There are 2 instances of this issue:*
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: Users' ability to nuke will be DoSed for three days after putting NFTs up for sale and canceling the sale ### Description Users will not be able to nuke their NFTs for three days after canceling sale of their NFTs. ### Proof of Concept When a user puts up their NFT for sale and cancels their NFT sale, 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
low
other
false
false
## Low: Straddle Legs Are Not Risk-Partnered ### Description In `PanopticHelper.sol`, the function `createStraddle` creates a call and a put leg with identical strike prices. Both the call and the put legs are expected to have each other assigned as risk partners, as described in this comment. However, when creating...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing length check between array parameters of `createAirdropProject()` and `createChapters()` functions ### Description **Severity**: Medium **Status**: Resolved **Location**: AirdropFactory.sol **Description** In the function `createAirdropProject()`, there is missing length check between length 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
access-control
true
false
## Low: Lack of two-step process for contract ownership transfers ### Description Many contracts use OpenZeppelin’s `OwnableUpgradeable` contract, whose `transferOwnership` function transfers contract ownership in a single step. If the owner of a contract were set to an address not controlled by the 88mph team, 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
medium
other
false
false
## Medium: Distribution Changes Can Be Delayed or Prevented ### Description Within `YRizStrategy.sol`, the [`setFullPoolDistribution` function](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/vaults/YRizStrategy.sol#L133) allows a new set of "distributions" to be set up for 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
initialization
true
false
## Medium: `1e10` fixed farming reward in `GaugeFactoryCL` ### Description ### Finding descriptions and impact Below is the implementation of the `createEternalFarming` function in `GaugeFactoryCL.sol`: This function is responsible for setting up initial incentives for Algebra concentrated liquidity farms, it uses ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Incorrect require ### Description The following check is incorrect, because after this function actual borrowed amount of user would be = `borrowedAmount.add(timeDiscountedAmount)`: https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditMan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In RSITrendingStrategy, _transfers and _seperators can be set only once ### Description Within the [`RSITrendingStrategy` contract](https://github.com/mcdexio/mai-fund-protocol/blob/98af0d1d7e9872ba2b5e734e2a43c161ef635608/contracts/oracle/RSITrendingStrategy.sol), the values of [`_seperators`](https://github....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Overriding function is missing "override" specifier ### Description The functions `mintingMaxLimitOf()`, `burningMaxLimitOf()`, `mintingCurrentLimitOf()`, and `burningCurrentLimitOf()` do not include the override specifier, even though they are inherited from the `IERC7281Min` interface.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If `totalShares` for a token falls to zero while there is `pendingCredit` the contract will become stuck ### Description _Submitted by AuditsAreUS_ [AlchemistV2.sol#L1290-L1300](https://github.com/code-423n4/2022-05-alchemix/blob/de65c34c7b6e4e94662bf508e214dcbf327984f4/contracts-full/AlchemistV2.sol#L1290...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Business Logic
false
true
_Submitted by 0x52_ [Community.sol#L501-L506](https://github.com/code-423n4/2022-08-rigor/blob/5ab7ea84a1516cb726421ef690af5bc41029f88f/contracts/Community.sol#L501-L506)<br> [Project.sol#L108-L115](https://github.com/code-423n4/2022-08-rigor/blob/5ab7ea84a1516cb726421ef690af5bc41029f88f/contracts/Project.sol#L108-L11...
Code4rena
4
Rigor Protocol
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant check for non-zero reward amount in `_handleRewards` function ### Description **Description:** In `InfraredBGTIsolationModeTokenVaultV1.sol`, the `_handleRewards` function includes a redundant check for positive reward amounts, as shown below: This check is redundant because the getAllRewardsForUse...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider adding reentrancy protection for DelayedWithdrawalManager#withdraw ### Description The function updates the state after making the external call to `withdraw`. If the receiver can re-enter the function when calling `adapter.adapter.withdraw`, the code is vulnerable to reentrancy: ```solidity do { R...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
false
false
## Low: Unbounded recursion in hash calculation ### Description The `namehash` function in the **BytesUtils** library relies on recursion to compute the hash of a DNS-encoded name. When provided with a name containing a large number of labels, the recursion depth can grow excessively, leading to potential stack overfl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Previous Owner Can Update Domain Configuration ### Description **Update** From discussions with the client, this design is intentional and is intended to allow an owner the flexibility to distribute their ownership. The client acknowledged the issue and provided the following explanation: > Please note that w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
true
false
## Medium: Owner can mislead users by abusing changeSpotPrice() and changeDelta() ### Description A malicious owner could set up a pair which promises to buy NFTs for high prices. As soon as someone tries to trade, the owner could frontrun the transaction by setting the `spotprice` to 0 and gets the NFT for free. Both...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
token
true
false
## High: An allowed signer can sign mints with malicious parameters ### Description An allowed signer (SeaDrop.sol#L318-L319) can sign mints that have either: - `mintParams.feeBps` equal to 0. - A custom `feeRecipient` with `mintParams.restrictFeeRecipients` equal to false to circumvent the check at SeaDrop.sol#L469. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Receipt Token Balance Check ### Description ## Implementation Details In the implementation of `set_service` instruction, there is a section of code that sets the service for the stake which was deposited before guest chain initialization without explicitly checking if the depositor’s `receipt_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
access-control
true
false
## Medium: Unauthorized reallocation in `NudgeCampaign::handleReallocation` and reward disruption vulnerability in `NudgeCampaign::invalidateParticipations` ### Description The `NudgeCampaign::handleReallocation` function allows any attacker to manipulate reward allocations through flash loans or repeated calls with r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
token
false
false
## Low: Missing Input Validation ### Description **Update** Marked as "Fixed" by the client. Addressed in: `4868d3571a60ce6f58b2e69377c62a01d59106af`, `ed64881c1c2a3a93b7b414736f5fcac1a6465f8c`. The client has fixed all the items except for point 3.2, where they provided the following explanation: > 3.2 “the list 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
false
## Low: Certain addresses are not compatible with _getDecimals ### Description Oracles can use ERC-7535, ISO 4217, or other conventions to represent non-ERC20 assets as addresses. Indicated by the above comment, the asset could be an arbitrary address value and `_getDecimals` should be able to return 18 as a fallback ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Docker-based contract build process depends on moleculec in PATH ### Description The contracts in the `ckb-miscellaneous-scripts` repository and the `ckb-anyone-can-pay` repository try to provide reproducible builds, but each depends on the binary `moleculec`, which is not managed in the build process. This 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
access-control
false
false
## Low: Lack of minimum redemption causes spam for `ORDER_FILLER_ROLE` ### Description _Resolved_ Currently in the `createRedeemOrder` function in `YuzuOrderBook`, there is a check to ensure that not more than `maxTokens` are being redeemed. But there is no such check for the minimum amount on withdrawals. Users are ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Deposit/Reward tokens
false
false
## Security Report ## Severity **Medium Risk** ## Context `compound/MorphoGovernance.sol#L414` ## Description The `claimToTreasury` function can send a market's underlying tokens that have been accumulated in the contract to the treasury. This is intended to be used for the reserve amounts that accumulate in the con...
Spearbit
5
Morpho
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: `++i` costs less gas than `i++`, especially when it's used in `for`-loops (`--i`/`i--` too) ### Description **Protocol:** Fixed in commit [5662786](https://github.com/SwapExchangeio/Contracts/commit/5662786421251a32444427d4ede74100a4c772f0). **Cyfrin:** Verified.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `Ownable2Step` instead of Ownable ### Description **Severity**: Low **Status**: Acknowledged **Description**: Ownableupgradeable.sol contract has been used across the codebase.It uses the `transferOwnership()` function in contract allows the current admin to transfer his privileges to another 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
medium
initialization
false
false
## Medium: Unstable Functionality ### Description Each `SetToken` manager has the ability to [add new modules](https://github.com/SetProtocol/set-protocol-v2/blob/b8286f431547823ff3935a1343cd4cf4d77585a1/contracts/protocol/SetToken.sol#L350) to modify the functionality of the Set. They are restricted to modules 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
low
initialization
true
false
## Low: Approved spenders can request withdraw for more than entitled to ### Description The current implementation of the `CommonPool` contract allows approved spenders to request withdrawals on behalf of the owner. However, the contract only checks if the requested amount is lower than the allowance for each individ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
First Depositor Issue
true
true
The attack vector and impact is the same as [TOB-YEARN-003](https://github.com/yearn/yearn-security/blob/master/audits/20210719\_ToB_yearn_vaultsv2/ToB\_-\_Yearn_Vault_v\_2\_Smart_Contracts_Audit_Report.pdf), where users may not receive shares in exchange for their deposits if the total asset amount has been manipulat...
Code4rena
5
Caviar
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Farming Amount Limit ### Description The `FarmAccounting` contract is used by the `Farm` contract to handle computation on Info. The `Farm` contract works closely with the `ERC20Farmable` contract to create a token system with farming capability. The `startFarming()` function in the `FarmAccounting` contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Rounding strategy in DSMath fixed-point multiplication/division may lead to errors ### Description In specific cases where the precise result of a fixed-point multiplication or division is exactly halfway between the smallest degree of precision accounted for, DSMath will perform “round half up” rounding 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
access-control
false
false
## Low: Ensuring token allowances are zero after depositing into the vault ### Description The `deposit()` function of `SingleDepositorVault` allows the owner or an authorized party to deposit funds into the vault. Before calling `deposit()`, the vault should have enough allowance to transfer the tokens from the depos...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Potentially misleading platform token ### Description Investment strategies maintain a [token mapping](https://github.com/OriginProtocol/origin-dollar/blob/757ad13fa07ecdff058e55d9beff3c98d5d186a2/contracts/contracts/utils/InitializableAbstractStrategy.sol#L40) that tracks the platform-specific investment toke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
logic-error
false
false
## Low: Use `days` keyword for better readability ### Description `TimeWeightedIncentiveLogic` currently declares the `MIN_INCREASE_DURATION` constant as `3 * 86400`. Instead, `3 days` should be used for better readability.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
initialization
true
false
## Low: `BaseDelegator` is not using upgradeable version of `ERC165` ### Description The `BaseDelegator` contract currently inherits from the non-upgradeable version of ERC165. This could limit the contract's ability to adapt to future upgrades or modifications of the ERC165 interface, potentially impacting the contra...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Inconsistent Solidity Pragma Versions ### Description Apro contracts use multiple versions of the Solidity compiler pragma, specifically `0.7.6` and `^0.7.0`. This inconsistency can lead to compatibility issues, as different pragma versions may have varying behavior and features. The following files use `0.7.6...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Incorrect Hook Parameter ### Description Any storage hook that implements the [`onBeforeSpliceDynamicData` function](https://github.com/latticexyz/mud/blob/12a9eb1afb18a7f7cb43d774cabb2d5af7c74e6b/packages/store/src/IStoreHook.sol#L104) should receive the state of the record before the update. However, it w...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Curve Is Not Monotonically Decreasing ### Description **Update** Marked as "Fixed" by the client. Addressed in: `852c8d49bd21356bdda907ecd4a2a631857a70c9`. If the calculated curve multiplier is less than the `minMultiplier`, the `minMultiplier` will be used. **File(s) affected:**`RewardCurveLib.sol` **Descr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: INCREMENT/DECREMENT FOR LOOP VARIABLE IN AN UNCHECKED BLOCK ### Description i++ involves checked arithmetic, which is not required. This is because the value of i is always strictly less than `length <= 2**256 - 1`. Therefore, the theoretical maximum value of i to enter the for-loop body is `2**256 - 2`. 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
medium
other
false
false
## Medium: Wrong logic in `AUTO_COMPOUND` doesn't allow for swap to token1 ### Description Protocol functionality broken ### Proof of Concept `AUTO_COMPOUND` action allows for compounding your gains into liquidity. It additionally allows for swaps in the middle. There is a faulty condition though, which is never eff...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Plugin timestamps data can be overwritten by a call to the `prepayTimepointsStorageSlot` function ### Description There is an issue at the line https://github.com/cryptoalgebra/Algebra/blob/6f57b3e218630106a4d41aedefd38f9e83b41e2b/src/plugins/contracts/AlgebraBasePluginV1.sol#L67. Plugin timestamps data 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
token
true
false
## Low: [08] Widespread use of infinite token approvals ### Description The protocol makes extensive use of infinite token approvals (`type(uint256).max`) across multiple contracts. While this is a common pattern in DeFi to save gas on repeated approvals, it can pose risks with certain token implementations. Examples ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: booster#buy fails to apply discount ### Description **Details** [Booster.sol#L92-L95](https://github.com/Buffer-Finance/Buffer-Protocol-v2_5/blob/84b6060b4447b2550de595202e8820c7f515988b/contracts/core/Booster.sol#L92-L95) uint256 price = couponPrice - discount; re[Title](command:workbench.action.addR...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] Blocking execution of `inflate` and `deflate` functions in `ConvexCurveStratBase` ### Description In the `depositBooster` function of the `ConvexCurveStratBase` contract, the `allowance` is increased by an amount that may be insufficient for the subsequent call to `depositAll`. This issue arises durin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: [Fixed] Unbalanced ETH operations ### Description In `OptionsContract` contract, there is a [`payable` fallback function](https://github.com/opynfinance/Convexity-Protocol/blob/c34598565cba2bfcf824eb2da63d95c7f5dda4fa/contracts/OptionsContract.sol#L680) that allows ETH to be sent to the contract but there is n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MlumStaking::addToPosition` should assing the amount multiplier based on the new lock duration instead of initial lock duration. ### Description There are two separate issues that make necessary to assign the multiplier based on the new lock duration: 1. First, when users add tokens to their position via `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
false
false
## Low: Consider Using `rand::rndg::OsRng` for More Robustness ### Description **Update** The team fixed the issue as recommended in commit `8ec8a17`. **File(s) affected:**`modules/remote-attestation/src/ias_utils.rs` **Description:** The function `get_quote()` in `ias_utils.rs` uses `rand::thread_rng()` which provi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User fund loss because function `purchaseLiquidationAuctionNFT()` takes extra liquidation penalty when user's last collateral is liquidated, (set wrong value for `maxDebtCached` when `isLastCollateral` is true) ### Description Function `purchaseLiquidationAuctionNFT()` purchases a liquidation auction with 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
initialization
false
false
## Low: Ownership Initialization and Transfer Safety on Owned.setOwner ### Description Consider the following scenarios. ### Recommendation Add a check for `address(0)` and `address(this)` in both the constructor and `setOwner`. For added safety, require the new owner to accept the ownership before ownership is trans...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Functionality To Withdraw Deposited Assets ### Description **Update** Marked as "Acknowledged" by the client. **Description:** The protocol allows the deposit of a set of supported assets, or simply `SOL`, in exchange for `fragSol`. When users want to withdraw, they will get an amount of `SOL` that is equi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Debt Check in `CreditDelegationBranch::settleVaultsDebt` Function ### Description ## Summary: The `CreditDelegationBranch::settleVaultsDebt` function incorrectly determines whether a vault is in debt or credit due to an inverted conditional check. This issue causes incorrect asset swaps, leading to ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
false
false
## Medium: Oracles with a Deviation Threshold above the Base Redemption Fee are subject to redemption arbitrage due to Oracle Drift ### Description **Impact** This report aggregates the research I did around Oracle Drift Arbitrage Anytime an oracle deviation threshold is higher than the Redemption Fees, arbitrage is...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can bypass deployment restrictions ### Description The `deployAccount` function is intended to allow users to deploy their own smart accounts with controlled initialization parameters. It accepts user-provided `initializer` data, which is expected to call the `initialize` function of the deployed `clav...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Simplify _midFromFeed() ### Description The calculation in `_midFromFeed()` is more complicated than necessary because: ``` min(x,y) + max(x,y) == x + y ``` More importantly, the average operation `(bid + ask) / 2` can overflow and revert if `bid + ask >= 2**256`. ```solidity function _midFromFeed(Oracle.Da...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Updating a MarketConfig can break reserve accounting ### Description In HMX, each position has a reserved maximum profit. For the purposes of tracking HLP utilization and borrowing fees, the sums of these reserved amounts are stored in `GlobalState.reserveValueE30` and `AssetClass.reserveValueE30`. Naturally,...
0