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
high
access-control
false
false
## High: Relayer and System Owner Roles Must Be Separated ### Description **Update** However, we find it concerning that the relayer can still use the function `executeManagerUpdate()` to modify the current `bondManager`, `disputeManager`, or `pheasantNetworkParameters` addresses. This raises potential issues as these...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inadequate gas reservation in `Gateway.handle()` try-catch block enables permanent DOS via batch-level gas exhaustion ### Description `Gateway.handle()` uses inadequate gas management when processing batched messages, reserving only `GAS_FAIL_MESSAGE_STORAGE` (40,000 gas) for the current message via `gaslef...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: REDUNDANT SAFEMATH FUNCTIONS USAGE IN CONTRACT ### Description In a Solidity contract, the developer has included multiple instances of the SafeMath library functions, even though only one instance is needed. Including redundant instances of the SafeMath library can lead to an increase in the size of the contr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: Platform Wallet not exception for Maximum Holdings Per Investor Limits ### Description The `preIssuanceCheck` function in `ComplianceServiceRegulated.sol` exhibits inconsistent behavior regarding platform wallet exemptions for investor holdings limits. While platform wallets are properly exempted from the mini...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect non-negative check on unsigned integer `_liquidity` ### Description The condition if (`_liquidity <= 0`) is incorrect because `_liquidity` is `uint128` being less than 0 is impossible. The only meaningful edge case is when `_liquidity == 0`, which should be explicitly checked. The incorrect condition...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Account Can Be Created With Arbitrary Manager Address ### Description Description Funds can be locked due to allowing SubAccounts to be setup with arbitrary manager addresses. When creating an account through SubAccounts::createAccount() , a user can specify an arbitrary address as the manager. This allows th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Unused error ### Description There is an unused error `IncorrectExitedValidators`: https://github.com/lidofinance/core/blob/efeff81c18f85451ebf98e8fd8bb78b8eb0095f6/contracts/0.8.9/sanity_checks/OracleReportSanityChecker.sol#L926. ### Recommendation We recommend removing the unused error.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
false
false
## Low: Check for coutry code is not sufficient ### Description In the `CountryValidator` class, the method `validateCountryCode` is intended to check the validity of a given country code. However, it currently does not correctly filter out invalid codes. As a result, inputs such as XX or YYX, which are not valid [ISO...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State Variable Visibility Is Not Set ### Description Visibility is not set for the `token` state variable. ### Recommendation It is best practice to set the visibility of state variables explicitly. The default visibility for "token" is internal. Other possible visibility settings are public and 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
low
other
false
false
## Low: [05] Inexpedient code lines ### Description In the function below, the if block already dictates that `getUnvestedAmount() == 0` manages to avoid a revert. Hence, consider refactoring the following code lines as it makes no sense adding 0 value `getUnvestedAmount()` of to the addend, `amount`: https://git...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minimum order size should be positive ### Description ## Aob Market Initialization In Aob, markets are initialized with a `min_base_order_size` quantity. The goal is to prevent small orders from flooding the market. If `min_base_order_size` is set to zero, the market is technically functional. However, user...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Authority address can (maliciously or accidentally) steal user funds from the vault ### Description Rather than using an oracle, the system relies on an `authority` address (stored on the `HashStore.sol` contract) to set the `nominals` for each asset in the vault. These nominal values are used in rebalancin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: maxWithdraw() and maxRedeem() doesn’t return correct value which can make other contracts fail while working with protocol ### Description ## Lines of code https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/tokens/TokenggAVAX.sol#L215-L223 https:...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Potential desynchronization between asset transfer and agreement creation in the `TimeLock` ### Description In the audited code, asset transfer and agreement creation are treated as two separate processes. - Assets can be transferred to the `TimeLock` without creating an agreement, leading to them being fr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
high
other
true
true
## High: `Licredity::decreaseDebtShare` bypasses interest accrual ### Description A borrower can call [`Licredity::decreaseDebtShare`](https://github.com/Licredity/licredity-v1-core/blob/e8ae10a7d9f27529e39ca277bf56cef01a807817/src/Licredity.sol#L472-L536) to repay their loan. Because this call can only reduce debt, 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
false
false
## Medium: Errors and omissions in events throughout codebase ### Description Throughout the codebase, events are used to signify when changes are made to the contracts. However many events lack indexed parameters, are missing important parameters, or emit erroneous parameters. Additionally collisions between events e...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
false
false
## Low: Use event indexing for faster off-chain parameter lookup ### Description Events in `IGlobalRegistryService` should use `indexed` keywords on the 3 most important parameters per event to enable faster lookup by those parameters off-chain.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol fee updates cause loss of accrued fees ### Description _Resolved_ The `setMarketProtocolFee` function in `Covenant.sol` updates a market's protocol fee rate without first accruing the fees owed under the current rate. This causes the protocol to lose all fees that should have been collected between 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
medium
rounding
false
false
## Medium: ClearingHouse margin calculations will break up if an AMM returning non-6 decimals positions be white listed ### Description _Submitted by hyh_ It is assumed that VAMM returned positions have exactly `6` decimals for all AMMs white listed in ClearingHouse. In the same time an array of different AMMs/VAMM...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
storage
true
false
## Gas: State variables can be packed into fewer storage slots ### Description These state variables can be packed together to use less storage slots: https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/vote-escrow/VoteEscrowCore.sol#L297
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant _disableInitializers in Constructor ✓ Fixed ### Description Contract `FiatTokenV1` inherits from contracts `BlacklistableV1` and `RescuableV1`, the two parent contracts both have `_disableInitializers` in their constructors to prevent uninitialized contract being initialized by the attackers, it’s 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
low
reentrancy
false
false
## Low: `nonReentrant` is not the first modifier ### Description **Description:** In `FeeManager::withdrawProtocolFee`, `nonReentrant` is not the first modifier. To protect against reentrancy in other modifiers, the `nonReentrant` modifier should be the first modifier in the list of modifiers. Consider putting `nonRee...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 to avoid reverting inside GovernanceCCIPReceiver._ccipReceive ### Description When `GovernanceCCIPReceiver._ccipReceive` is executed by the CCIP framework and the logic reverts in any way, the message could be "manually executed" (retried) in a permissionless way by interacting directly with Chainlink...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: | Limit Increase With Same Block Pricing ### Description **Description** In `validateOracleBlockNumbersForPosition`, both conditionals on lines 295 and 306 handle the `LimitIncrease` order type but with different oracle block requirements. During execution, the first `if` statement is entered, therefore 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
token
false
false
## Low: Wolf Burn Mechanism Can Be Abused by Splitting SHEEP Across Multiple Wallets ### Description In the SheepCoin ecosystem, SHEEP token holders can initially mitigate the risk of wolf burns by splitting their holdings into multiple wallets, each containing an amount less than ONE (1 * 1018 wei, or 1 SHEEP 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...
cyfrin_structured
low
access-control
false
false
## Low: Missing Event Emission for Admin Transfers ### Description Function `transfer_admin` from `clmm_lp_farming` program changes an important state of the program but does not emit any events. ### Recommendation Consider emitting events from this function for better off-chain tracking and transparency.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A regular Cosmos SDK message can be disguised as an EVM transaction, causing `ListenFinalizeBlock` to error which prevents the block from being indexed ### Description ### Finding description and impact The indexer’s [`ListenFinalizeBlock()`](https://github.com/initia-labs/minievm/blob/744563dc6a642f054b4543...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 zero address validation for feeToSetter. ### Description **Description** Missing zero address validation of feeToSetter. Location: ./core/contracts/AdaswapFactory.sol #9 ./core/contracts/AdaswapFactory.sol #50 **Recommendation** It is recommended to validate the variable_feeToSetter to contain a non...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [3] `deployERC20()` does not have a reentrancy guard ### Description `deployERC20()` increments the `state_lastEventNonce` so it's possible for the nonce to be incremented by a transfer hook. I don't see a way to exploit this given the code in scope, but perhaps some other area relies on event nonces happening...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
signature
true
false
## Medium: EIP-155 is not enforced, allowing attackers/malicious operators to profit from replaying transactions ### Description ### Lines of code ### Vulnerability details The L2 `DefaultAccount.validateTransaction` function and transaction encoding process in the bootloader do not enforce EIP-155. If the `reserve...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee-less loans ### Description The [`calculateLoanOriginationFee` function](https://gitlab.com/aave-tech/dlp/contracts/blob/1f8e5e65a99a887a5a13ad9af6486ebf93f57d02/contracts/fees/FeeProvider.sol#L27) of the `FeeProvider` contract is in charge of calculating the origination fee for a loan of the specified a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
signature
true
true
## Low: setGlobalKey is susceptible to signature replay ### Description The `DharmaKeyRegistry` contract attempts to validate that an owner calling `setGlobalKey` has a corresponding private key by requiring a valid signature (Figure 2.1). However, this check does not guarantee that this is the case. While the replay ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No opt-out of creating a safe without looping over nonces ### Description When creating new safes, in either subAccounts or main console accounts, a nonce is used to create the salt used by the SafeDeployer: [`SafeDeployer::_createSafe`](https://github.com/code-423n4/2023-10-brahma/blob/main/contracts/src/cor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: closeTrove can create a Bank Run when canMint is set to false ### Description Recovery Mode exists with the goal of bringing the TCR back up to a higher value. In the original Liquity Model, during Recovery Mode, liquidations can be performed at a higher CR, and Debt Redistribution is performed by preventing 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
storage
true
false
## Low: Upgradability ### Description **Update** The client acknowledged the issue and provided the following explanation: > Most of the contracts in zNS (except ZNSAccessController) are upgradeable UUPS Proxies. We understand the limitations it entails, so please consider the following: We decided to go with upgrade...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 amount taken ### Description _Submitted by csanuragjain, also found by 0xf15ers and gzeon_ It was observed that in repayBorrowFresh function, User is asked to send repayAmount instead of repayAmountFinal. This can lead to loss of user funds as user might be paying extra ### Proof of Concept 1....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
access-control
true
false
## Low: Use low level `call()` to prevent gas griefing attacks when returned data not required ### Description Using `call()` when the returned data is not required unnecessarily exposes to gas griefing attacks from huge returned data payload. For [example](https://github.com/Earnft/smart-contracts/blob/43d3a8305dd6c7...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Change function visibility from public to external ### Description _Submitted by 0xRajeev_ Functions `getTimeLockCount()`, `getTimeLockERC721Count()`, `timeLockERC721()`, `timeUnlockERC721()`, `timeLockERC20()` and `timeUnlockERC20()` are never called from within contracts but yet declared public. Their visib...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary assembly in `MultiCallOptimizedSwapper.sol` ### Description [MultiCallOptimizer.sol](https://github.com/yearn/hardhat-monorepo/blob/ecc0b5147992b34c315e08af170ceb4a5fe071ee/packages/yswaps/contracts/swappers/async/MultiCallOptimizedSwapper.sol) contract is using assembly most likely for gas optimiz...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-H-1 User fee token balance can be drained in a single operation by a malicious bot ### Description **Description:** In `_buildFeeExecutable()`, BrahRouter calculates the total fee charged to the wallet. It uses tx. gas price to get the gas price specified by the bot. **Impact:** ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract Owner Possesses Too Many Privileges ### Description [ExecutionDelegate.sol#L119](https://github.com/code-423n4/2022-10-blur/blob/2fdaa6e13b544c8c11d1c022a575f16c3a72e3bf/contracts/ExecutionDelegate.sol#L119) To use the protocol (buy/sell NFTs), users must approve the `ExecutionDelegate` to handle ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AWS security group allowing all tra�fic exists ### Description The Terraform configuration provided for `setup-iac` configures a security group rule for HTTPS that allows any incoming address. Security groups are used to constrain incoming and outgoing traffic. However, `setup_public_allow_https` allows all inc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
overflow
true
false
## Medium: Binary search implementation may not always find the optimal solution ### Description **Description:** `VeryFastRouter::_findMaxFillableAmtForBuy` and `VeryFastRouter::_findMaxFillableAmtForSell` utilize binary search to determine the maximum trade amount. The binary search seeks a solution in a linear, sor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 slippage checks in addLiquidity and removeLiquidity methods ### Description The `addLiquidity` method does not include a slippage check for the calculated liquidity, which could result in users receiving less liquidity than expected due to price fluctuations. Similarly, the `removeLiquidity` method pas...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifiers duplicated ### Description **Severity**: Low **Status**: Resolved **Location**: Admin.sol **Description** Functions `addOperator()` and `removeOperator()` carry out redundant checks. Modifier `onlyAdmin` checks whether the caller is wallet or not (i.e. owner of contract as referred to in initiali...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: rewardTokens removed from WAuraPool/WConvexPools will be lost forever ### Description pendingRewards pulls a fresh count of reward tokens each time it is called. This is problematic if reward tokens are ever removed from the the underlying Aura/Convex pools because it means that they will no longer be distr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RLP decoding throws on encodings that report a length greater than Integer.MAX_VALUE ### Description The Pantheon RLP implementation uses Java’s signed integers for decoding, which means that any RLP string, byte array, or list that reports to be larger than 2​31​-1 will cause an integer overflow, regardless o...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
false
false
## Gas: Conditional check can be performed during variable initialization ### Description In the `DistributionCreator._createDistribution()` function the `userFeeRebate` value is used when calculating the `distributionAmountMinusFees` if the `UniswapV3Pool` tokens are not whitelisted. Before the `distributionAmountMin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ConfigHub.canOpenPair() does not guarantee contracts are of the correct type ### Description Throughout the protocol, `ConfigHub.canOpenPair()` is called to check that addresses passed by the user are valid and whitelisted by the protocol. For example, `CollarTakerNFT.openPairedPosition()` calls `canOpenPair()...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BuidlUSDCSource can have fewer BUIDL tokens than the minimum redeem criteria ### Description The `BuidlUSDCSource` contract reports the amount of USDC tokens it can provide through its `availableToWithdraw` function, and redeems the BUIDL tokens it holds in order to get this USDC amount. Due to how the Ondo 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: Contracts Do Not Implement Safe Ownership Transfer Pattern ### Description The current transfer of ownership pattern calls the function `transferOwnership(address newOwner)` which instantly changes the owner to the `newOwner`. This allows the current owner of the contracts to set an arbitrary address (excludin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `RiskParameter.liquidationFee` variable is not treated and validated as a percentage value, leading to breaking protocol invariants. ### Description In Perennial v2.2, the `RiskParameter.liquidationFee` variable held a fixed amount. In Perennial v2.3, it became a percentage value. However, this change 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
initialization
false
false
## Low: Remove Test Code isProxied From Constructors ### Description There are instances of test code across several upgradeable contract constructors: * [Line 31 of `AukiToken.sol`](https://github.com/aukilabs/auki-contracts/blob/841aa7df56619dcec2af75efcb5ec7faeeaa955c/src/AukiToken.sol#L31) * [Line 36 of `BurnCon...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
storage
true
false
## Medium: TraitForgeNft: Generations without a golden god are possible ### Description The golden god is the special entropy of 999,999. This entropy is set at `slotIndexSelectionPoint` and `numberIndexSelectionPoint` [here](https://github.com/code-423n4/2024-07-traitforge/blob/279b2887e3d38bc219a05d332cbcb0655b2dc64...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Incorrect function call leads to stale borrowing fees ### Description Due to an incorrect function call while getting the total borrow fees, the returned fees will be an inaccurate and stale amount. Which will have an impact on liquidity providers ### Impact Ass fee calculation will not be accurate, liquidit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Erroneous Condition in _setAssetSource ### Description When the owner sets the parameters for a feed using Pyth, there is a [check](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/OracleRouter.sol#L190) being done over the `feedId` and `feedAddress`. However, because...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Updating the prime rate will change the interest for a time that was already passed ### Description Updating the prime rate will change the interest for a time that was already passed ### Impact Updating the price will change rates for a time that has already passed. That is not good as it would cause an 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
high
other
false
false
## High: PerpDepository has no way to withdraw profits depriving stakers of profits owed ### Description PerpDepository has no way to calculate or withdraw any profits made by the vault. By [design](https://github.com/sherlock-audit/2023-01-uxd/blob/main/contracts/integrations/rage-trade/RageDnDepository.sol#L99-L115)...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: winningIndex can be zero ### Description In the `claimWinning()` function the winner is selected by dividing `randomNumber[i]` by `ticketInfo.lastDrawEligibleCount`: ![winningIndex calculation](https://halbornmainframe.com/proxy/audits/images/66262c1d36189f019c2b0de5) In case of an exact division, `winningIn...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: The `postCheck()` Function in `HookMultiPlexer` Executes in Ascending Order Instead of Descending Order ### Description The `HookMultiPlexer` is designed to accept adding more than one Hook, the Contract will execute each added Hook `preCheck()` function, then after the execution, it will execute `postCheck...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
token
true
false
## Low: `TokenLocker::getTotalWeightAt` should loop until input `week` not `systemWeek` ### Description `TokenLocker::getTotalWeightAt` should loop until input `week` not `systemWeek`: ```diff - while (updatedWeek < systemWeek) { + while (updatedWeek < week) { ``` The current implementation returns the wrong output 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
true
false
## Low: Lines are too long ### Description Usually lines in source code are limited to [80](https://softwareengineering.stackexchange.com/questions/148677/why-is-80-characters-the-standard-limit-for-code-width) characters. Today's screens are much larger so it's reasonable to stretch this in some cases. Since the file...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
storage
true
false
## Gas: State variables can be packed into fewer storage slots ### Description If variables occupying the same slot are both written the same function or by the constructor, avoids a separate Gsset (**20000 gas**). Reads of the variables can also be cheaper *There is 1 instance 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
token
true
false
## Medium: Unable to withdraw extra rewards ### Description Source: https://github.com/sherlock-audit/2023-06-tokemak-judging/issues/565 ## Found by 0xGoodess, 0xdeadbeef, Ch\_301, berndartmueller, xiaoming90 Users are unable to withdraw extra rewards due to staking of TOKE that is less than `MIN_STAKE_AMOUNT`, re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: DNA rarity calculation in `AiArenaHelper.dnaToIndex()` can be redesigned to save gas ### Description `dnaToIndex()` is called inside a loop for all the fighter physical properties (see first link), which consumes a lot of gas due to storage loads. The system of calculating `attributeProbabilityIndex` by loopin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_getReferencePoolPriceX96()` will show incorrect price for negative tick deltas in current implementation cause it doesn't round up for them ### Description Take a look [here](https://github.com/code-423n4/2024-03-revert-lend/blob/457230945a49878eefdc1001796b10638c1e7584/src/V3Oracle.sol#L357-L374). This f...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
liquidation
true
false
## High: Pool amount adjustments for collateral decreases aren't undone if swaps are successful ### Description Pool amount adjustments, which are added to storage as a temporary accounting tracking mechanism, aren't undone if swaps are successful ### Impact The value is looked up and used in `getNextPoolAmountsParam...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Create a short call order with non empty floor makes the option impossible to exercise and withdraw ### Description _Submitted by zzzitron, also found by danb, Kenshin, Metatron, minhquanym, and PwnedNoMore_ **HIGH** - assets can be lost If a short call order is created with non empty floorTokens array, 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
oracle
false
false
## Low: Unlocked Pragma ### Description **Update** The Hifi team mitigated the issue by limiting the range for the floating Solidity version to remain within `0.8.x` to avoid upgrading to a breaking version. However, note that different versions of the compiler within the `0.8.x` range may still be used. **File(s) af...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: feeTHUSDAmount can be computed in a simpler way ### Description The expression: ```plaintext feeTHUSDAmount = addBps(thusdQty, int(fee)) - thusdQty; ``` can be simplified to: ```plaintext thusdQty * fee / MAX_BPS ``` ### Recommendation Consider if you need the helper function `addBps` and refactor to remov...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
false
false
## High: Funds might get stuck in the pool due to totaldeposited underflow ### Description The `totalDeposited` variable tracks the amount that gets deposited and withdrawn from the Omnipool. However, the amount withdrawn can be greater than the amount deposited. Consider the following scenario: - The protocol deposit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
oracle
true
true
## Medium: Missing Chainlink price feed safety checks Status: Partially Resolved ### Description Certain safety checks that should be used to validate data returned from `latestRoundData` and `getRoundData` are missing: - `require(updatedAt > 0)`: This checks whether the requested round is valid and complete; an exam...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
false
false
## Low: Unneeded calculations ### Description At the line https://github.com/bondappetit/bondappetit-protocol/blob/355180f0aca0b29d60d808f761052956b7a3a159/contracts/Market.sol#L187 contract calculates `product` tokens amount, but line below contract recalculates this variable if `address(productToken) != currency`, 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
other
false
false
## Low: Solidity compiler optimizations can be dangerous ### Description In Balancer V2, optional compiler optimizations in Solidity are enabled. There have been several optimization-related bugs in Solidity with security implications, and optimizations are actively being developed. Solidity compiler optimizations 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...
skyward_49k
medium
other
true
false
## Medium: Transfers will fail if there 's a transceiver with index greater than or equal to the number of enabled transceivers ### Description Calls to `quoteDeliveryPrice` will revert if the index of any of the enabled transceivers passed as a parameter is greater than or equal to the `transceiverInstructions` array...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing Input Validation ### Description **Update** The client implemented many of the proposed input validation checks and acknowledged the remaining ones in the interest of gas savings. **Update** Addressed in: `233bc48a28aa814e74c6627bc9e49a4a0942afbc`. **File(s) affected:**`PolygonRootCheckpointManager....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership Can Be Renounced ### Description **Update** Instead of renouncing ownership, it is transferred to the `PrimexProxyAdmin` contract, which only the `BIG_TIMELOCK_ADMIN` can perform ownership-related features. Please note that the transfer of ownership occurs in the deployment script. **File(s) affecte...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of `_lockTime` validation in `constructor` ### Description **Description:** The constructor assigns `lockTime = _lockTime` without checking `_lockTime <= MAX_LOCK_TIME`. If an out‑of‑range value is provided, any subsequent call that indexes `reSDLTokenIds[lockTime]` (e.g. in `stakeReleasableTokens` or `wi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifications To Rewards And Fees Can Apply Retroactively ### Description In the `SDIncentiveController` contract, the `updateEmissionRate()` function allows for modifying the emission rate even during an ongoing reward period. This could impact the reward calculation for blocks that have not yet been updated u...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
false
false
## Low: Transfer of ETH may unexpectedly fail ### Description In the [`_withdraw`](https://github.com/mcdexio/mai-protocol-v2/blob/4b198083ec4ae2d6851e101fc44ea333eaa3cd92/contracts/perpetual/Collateral.sol#L84) and [`withdrawFromProtocol`](https://github.com/mcdexio/mai-protocol-v2/blob/4b198083ec4ae2d6851e101fc44ea3...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Validation Of create2 Return Value ### Description ## Handle leastwood ## Vulnerability details ## Impact The `BeaconProxyDeployer.deploy()` function is used to deploy lightweight proxy contracts that act as each asset's vault. The function does not revert properly if there is a failed contrac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
reentrancy
true
false
## Medium: Broken batch minting feature ### Description The core minting feature of the protocol is broken due to the mishandling of `msg.value` within the for-loop. ### Impact Breaks core contract functionality. The batch minting feature, a core feature of the protocol, is broken. ### Recommendation For each loop, ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing stale feed check for USDC ### Description _Acknowledged_ The `SwapImpl::_minOutFromFeeds` function is invoked during swapping operations to calculate the acceptable minimum amount out for the swap given prices obtained from the ETH and USDC oracle feeds. During this call, the code validates the age 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...
cyfrin_structured
low
dos
false
false
## Low: Make `LSSVMPair::call` payable to allow value to be sent with external calls ### Description Currently, [`LSSVMPair::call`](https://github.com/sudoswap/lssvm2/blob/78d38753b2042d7813132f26e5573c6699b605ef/src/LSSVMPair.sol#L640) simply passes a [value of zero](https://github.com/sudoswap/lssvm2/blob/78d38753b2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Initialize `DropBox::boxIdCounter` to 1 avoiding default initialization to 0 ### Description Initialize `DropBox::boxIdCounter` to 1 avoiding default initialization to 0: ```diff - uint256 internal boxIdCounter; // Counter for the box ids, starting from 1 (see _assignTierAndMint function) + uint256 internal 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...
cyfrin_structured
medium
token
false
false
## Medium: No token recover mechanism when the auction ends without any bid ### Description In `SpiceAuction` contract, when an auction ends with no bids, the auction tokens are locked into the contract and can't be recovered. `recoverToken` function doesn't help recover the auction token because it limits recoverable...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: SSRF in Transaction Endpoints ### Description **Update** Marked as "Fixed" by the client. Addressed in: `580b8f9`. The client provided the following explanation: Was mostly fixed in previous changes, however made one more tweak note: /all-transactions is no longer used, but changes have been applied to it for ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
false
false
## Low: Generate perfect code headers every time ### Description I recommend using header for Solidity code layout and readability: https://github.com/transmissions11/headers **[ramenforbreakfast (prePO) commented](https://github.com/code-423n4/2022-12-prepo-findings/issues/127#issuecomment-1404500379):** > The fol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent implementation between blacklist functions and batch versions ### Description The blacklist management functions have inconsistent implementations between their single-account and batch versions. The batch functions lack important validations and event emissions that are present in their single-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...
solodit_api
high
initialization
true
true
## Summary The `StabilityPool` contract's reward distribution has a vulnerability where users can steal all accumulated RAAC rewards through a single deposit/withdrawal transaction. The issue occurs because the reward calculation uses instant deposit ratios rather than time-weighted positions, allowing theft from legi...
Codehawks
5
Core Contracts
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: <a name="GAS-6"></a>[GAS-6] Use calldata instead of memory for function arguments that do not get mutated
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Heavy Blocks May Affect Block Finalization, if the Gas Requirement Exceeds Block Gas Limit ### Description The `sequencer` takes care of finalizing blocks by submitting proof, blocks’ data, proof type, and parent state root hash. The team mentions that the blocks are finalized every 12s, and under general sce...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uncontrolled Slippage in `BridgeToken.sendSimple()` ### Description - https://github.com/defidotmoney/dfm-core/blob/0bde9fb784400d73f434d585aab7d9dd0ad1c679/contracts/bridge/BridgeToken.sol#L154 In the parent contracts, the `_debit()` method is called with the `_minAmountLD` parameter to control slippage. How...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Streamline Error Handling with `require` Statements ### Description As of Solidity 0.8.26, the preferred method for error handling is using the `require(bool, Error)` statements instead of `if (bool) revert Error`. This modern approach not only streamlines the code but also enhances is readability and gas effi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Faulty Token Limit Check ### Description ## Inaccurate Validation in `execute_rebind` In `execute_rebind` within `bind`, an inaccurate validation exists concerning the limit on the number of bound tokens in the pool. The `assert` statement, which examines whether `read_tokens(&e).len() < MAX_BOUND_TOKENS`, mi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: `Function writing` that does not comply with the `Solidity Style Guide` ### Description Order of Functions; ordering helps readers identify which functions they can call and to find the constructor and fallback definitions easier. But there are contracts in the project that do not comply with this. https://do...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: withdrawETH() in GiantPoolBase don’t call _distributeETHRewardsToUserForToken() or _onWithdraw() which would make users to lose their remaining rewards ### Description ## Lines of code https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/Gian...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NFTXStakingZap and NFTXMarketplaceZap’s transferFromERC721 transfer Cryptokitties to the wrong address ### Description ## Handle hyh ## Vulnerability details ## Impact `transferFromERC721(address assetAddr, uint256 tokenId, address to)` should transfer from `msg.sender` to `to`. It transfers to `addres...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling ERC20.transferFrom to itself may lead to unexpected behavior ### Description The `ERC20.transferFrom(src, dst, value)` allows transferring tokens on behalf of another user, using a token allowance mechanism. `DSToken` and `DSWeth` have a different behavior than most of the other ERC20 tokens when the s...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: TRST-M-2 SwapHelper.getCalldata should check whitelistedRouters[_router] ### Description **Description:** `SwapHelper.getCalldata()` returns data for swap based on the input, and uses **whitelistedRouters** to limit the **_router** param. The issue here is that when `setWhitelistedRouters()` sets the **_r...
0