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
other
true
false
## Low: Array Length Not Validated ### Description The `Vault.install` function did not validate that the length of `_selectors` and `_plugins` arrays is the same. If the array length is different, it might cause unexpected behavior. ### Recommendation It is recommended to implement validation to ensure that the le...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `transferOwnership` should be two step process ### Description All contracts are inherited from OpenZeppelin's Ownable and OwnableUpgradable contract which enables the onlyOwner role to transfer ownership to another address. It's possible that the onlyOwner role mistakenly transfers ownership to the wrong add...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pack structs by putting data types in ascending size (We can save up to ~6k gas) ### Description As the solidity EVM works with 32 bytes, variables less than 32 bytes should be packed inside a struct so that they can be stored in the same slot, this saves gas when writing to storage ~20000 gas. 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
flash-loan
false
false
## Low: `notAtSameBlock` Modifier May Be Bypassed ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > The purpose of the notAtSameBlock modifier is to prevent the risk of flash loans and sandwich attacks in strategy contracts involving DEX-related transa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refunds processed for incorrect direction ### Description In the case of an incoming transaction, funds are pulled from the counterparty. ```solidity if (_incoming) { // ... IERC20(_tokenContract).transferFrom(_counterparty, address(this), _amount); } ``` Hence, when the timelock expires and the count...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Batches committed during an on going challenge can avoid being challenged ### Description Batches committed during an ongoing challenge can avoid being challenged and pre-maturely finalize if the defender wins ### Impact Critical - Can brick the entire Morph L2 protocol ### Recommendation You can make 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
gas
overflow
true
false
## Gas: Using unchecked blocks to save gas ### Description Solidity version 0.8+ comes with implicit overflow and underflow checks on unsigned integers. When an overflow or an underflow isn’t possible (as an example, when a comparison is made before the arithmetic operation), some gas can be saved by using an unchecke...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Seized tokens will be stuck on the receiver of the seized funds because it is not an investor and never receives investorsBalance ### Description **Description:** When seizing DSTokens, the receiver of the confiscated assets must be an issuer wallet. A wallet that is an issuer wallet must not be an investor wa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Vulnerable NPM Packages ### Description ## NPM Audit Report The NPM audit identified a total of **108 vulnerabilities**. These vulnerabilities may pose a significant risk to the security of Metamask Snap. ## Severity Breakdown - **108 moderate severity vulnerabilities** ## Recommended Actions To address 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...
solodit_api
high
Don't update state
true
true
User will have their funds lost if they tries to pay the protocol with `_dontMint = False`. A payment made with this parameter set should increase the `creditsOf[]` balance of user. In `_processPayment()`, `creditsOf[_data.beneficiary]` is updated at the end if there are leftover funds. However, If `metadata` is prov...
Code4rena
4
Juicebox
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Improper Implementation Of Mint Cap Check ### Description ## Mint Cap Parameter and Remediation The `mint_cap` parameter set by the protocol limits the number of mintable MOD tokens. The limit is checked by confirming that the newly minted amount alongside the previous total debt does not exceed the `mint_cap...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Check for `tokenId ` Existence Before Returning the `tokenURI` ### Description The `tokenURI` in `BorrowerNFT.sol` overrides ERC721Z's implementation. The implementation does not check that `tokenId` exists and hence will return data for non-existent `tokenId`. This goes contrary to [EIP721](https://ei...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement PartyThreshold Validation in NewKeyring Function ### Description The `NewKeyring` function in the `keeper` package is not validating that the `PartyThreshold` is greater than zero. This could lead to the creation of keyrings with invalid thresholds, potentially causing issues in multi-party operation...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
oracle
true
false
## Gas: Modifier execution order can help save an entire SLOAD(Save 2100 Gas) ### Description https://github.com/open-dollar/od-contracts/blob/f4f0246bb26277249c1d5afe6201d4d9096e52e6/src/contracts/proxies/Vault721.sol#L104-L114 **Note: This would only make sense if `governor` remains a state variable, bot has sugges...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Underflow in negative interest rate calculation leads to denial of service ### Description The `calculatePrice` function attempts to apply a negative per‐second interest rate by subtracting the accumulated rate adjustment from `PRICE_PRECISION`. However, when evaluates to a negative value, a uint256 underflo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not using the named return variables anywhere in the function is confusing ### Description Consider changing the variable to be an unnamed one. *There is 1 instance of this issue:* https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/MinipoolManager...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A single point of failure ### Description ### Impact The `owner` role has a single point of failure and `onlyOwner` can use critical a few functions. `owner` role in the project: Owner is not behind a multisig and changes are not behind a timelock. Even if protocol admins/developers are not malicious 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
other
true
false
## Low: Improving display of information ### Description In _constructURI(), the printed JSON string is composed of some properties. It is recommended to change the {id} placeholder to a more informative value, such as `LibString.toHexString(_hatId, 32)`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Identical for loop check ### Description The if block in the constructor of PoolTokens.sol entails identical if block checks that may be moved outside the loop to save gas. https://github.com/reserve-protocol/protocol/blob/9ee60f142f9f5c1fe8bc50eef915cf33124a534f/contracts/plugins/assets/curve/PoolTokens.sol#...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: [1] `for`-loops should be broken out of earlier ### Description If it's known that the function will revert after the `for`-loop completes, `break` should be used to end the loop early
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RewardThrottle: If an epoch does not have any profit, then there may not be rewards for that epoch at the start of the next epoch. ### Description In RewardThrottle, both checkRewardUnderflow and fillInEpochGaps call `\_fillInEpochGaps` to fill the state of the previous epoch without profit, the difference be...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Bonding Curve Creation Lacks URI Validation in Metadata Leading to Potential Malformed Token Information ### Description The Pump Science protocol allows creators to create bonding curves with associated token metadata. The metadata creation is handled in the `initialize_meta()` function of the `CreateBon...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EToken Transferability May Lead to Undercollateralized Trove ### Description **Update** Marked as "Fixed" by the client. Addressed in: `87680502edc325f16b93658111635ba482b9a5eb`. The client provided the following explanation: > Disabled transferability of EToken. **File(s) affected:**`EToken.sol`, `Collat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minimal number of responses for oracle aggregation. ### Description **Description** Aggregator Oracle.sol: canUpdate(), performUpdate(). Both functions for the update check and update performance use the same minimal number of valid oracles updates: validResponses $>=1$, requesting minimum 1 correct response...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Market Flag Check ### Description ## WithdrawNFT and WithdrawNFTSolvent Instructions The `WithdrawNFT` and `WithdrawNFTSolvent` instructions check that the market currently allows borrows. However, it is performing an NFT withdrawal, not a borrow. ### Code Reference In the source file `src/instruct...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
true
Source: https://github.com/sherlock-audit/2023-02-hats-judging/issues/41 ## Found by obront, roguereddwarf ## Summary The `checkAfterExecution()` function has checks to ensure that new modules cannot be added by signers. This is a crucial check, because adding a new module could give them unlimited power to make a...
Sherlock
5
Hats
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NEGATIVE AMOUNTS IN INPUT FIELDS ### Description It was found that `https://hsuite-finance.firebaseapp.com` allowed for negative values to be entered in the `amount` input fields. When the transaction was performed, it did, however, use the positive representation of the value. ![Join pool allows negative val...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Testnet Code Remnant in Production Smart Contract. ### Description **Severity**: Informational **Status**: Acknowledged **description** bpnmMain.sol: getBtcPrice(). The function contains hardcoded values intended for testnet use, which is noticeable in pre- production smart contract code. While convenient...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Miscalculation and potential loss of funds in `safeTransferFrom` function ### Description The `safeTransferFrom` function is intended to handle the transfer of ERC-20 tokens while accounting for potential transfer fees by comparing the balances before and after the transfer. However, this function fails 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
signature
false
false
## Medium: 6. INCORRECT LIMIT CHECK IN ZKASM ECRECOVER IMPLEMENTATION ### Description **Severity:** Medium **Path:** [StakeableVestingFactory.sol:deployStakeableVesting#L39-L71](https://github.com/0xPolygonHermez/zkevm-rom/blob/develop/main/ecrecover/ecrecover.zkasm#L61C8-L67) **Description:** In the zkASM impleme...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Return Values Not Verified ### Description **Update** From the team: **File(s) affected:**`packages/amm/contracts/HifiPool.sol`, `packages/proxy-target/contracts/HifiProxyTarget.sol` **Description:** Several contracts within the protocol make external calls to functions with return values which indicate 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
true
false
## Low: Missing Burn Functionality in RAACNFT ### Description ## 01. Relevant GitHub Links &#x20; * [RAACNFT.sol#L75](https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/tokens/RAACNFT.sol#L75) ## 02. Summary The website mentions that users can burn NFTs to redeem as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Missing check for `house_fee_basis_points` during auction initialization. ### Description **Description** During the initialization of the auction, as it was said in the postaudit for low-2, there is no check for the passed 'house_fee_basis_points' variable. programs/auction_house/src/methods/initialize.rs Li...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Centralization risks ### Description **Severity**: Medium **Status**: Resolved **Description** In ComptrollerNFTPart1 contract, The functions `_setNFTCollateralFactor()`, `_setNFTCollateralSeizeLiquidationFactor()`, `_setNFTCollateralLiquidationBonusPBX()`, `_setNFTLiquidationExchangePToken()`, `_setNFTX...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcoded slippage tolerance risks poor trading or DOS ### Description In the `PositionInteractionFacet.sol` contract, the slippage tolerance is hardcoded to 2% in the `_applySlippage` function: ```solidity function _applySlippage(uint256 amountIn) internal pure returns (uint256) { // 2% slippage from qu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: `tokenIconURL` is not used in `proposeTokenUnwhitelisting()` ### Description [`tokenIconURL`](https://github.com/code-423n4/2024-01-salty/blob/53516c2cdfdfacb662cdea6417c52f23c94d5b5b/src/dao/Proposals.sol#L180) is only used when whitelisting tokens but not when [unwhitelisting](https://github.com/code-423n4/2...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [06] Lack of zero address checks for `Trading.sol` constructor for the variables `_position`, `_gov` and `_pairsContract` ### Description If these variable get configured with address zero, failure to immediately reset the value can result in unexpected behavior for the project. https://github.com/code-423n4/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: moveQuoteToken updates pool state using intermediary LUP, biasing pool's interest rate calculations ### Description In LenderActions's moveQuoteToken() LUP is being evaluated after liquidity removal, but before liquidity addition. This intermediary LUP doesn't correspond to the final state of the pool, but 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...
cyfrin_structured
low
other
true
false
## Low: Functions not used internally could be marked external
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Individual pools cannot have zero-fee hooks if DEFAULT_POOL hook fee is set to non-zero ### Description Severity: Low Risk Context: VerifiedPoolsBasicHook.sol#L357-L360 Description: In the case where hookFees[DEFAULT_POOL] is set greater than zero, it is impossible for specific pools to allow for a hookFee = 0...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
false
false
## High: Reentrancy attack in emergencyWithdraw function ### Description **Description** During the manual audit, we found that the emergencyWithdraw function in the contract LPStaking.sol is prone to reentrancy attack as the contract makes tokens transfer before updating the user's balance to zero(0). Also, this fu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Abusing setCertTime Transactions to drain node ... ### Description Report type: Blockchain/DLT Target: https://github.com/shardeum/shardeum/tree/dev Impacts: * Direct loss of funds ## Description ## Description In shardeum there's a mechnism that can extends the expiration date of a stake certificate b...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unaudited version of OpenZeppelin used ### Description The repository in which the audited contracts are held is using [*openzeppelin-solidity*](https://github.com/centrehq/centre-tokens/blob/4b9ebf3941a48e41e7363fee729035610a71ca66/package.json#L39) [`v1.11.0`](https://github.com/centrehq/centre-tokens/blob/4...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Short, long, collateral, and vault data structures may be sparse “arrays” Difficulty: Undetermined ### Description The `MarginVault` contains arrays that store short and long oTokens and collateral. ```solidity struct Vault { address[] shortOtokens; address[] longOtokens; address[] collateralAssets; uin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: unit test coverage ### Description The unit test coverage for the entire project is around 75%, with some of the contracts having particularly low coverage. Considering the importance of unit tests to validate code and prevent regressions when refactoring and developing new features, we encourage significant...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: Potentially missing nonce check  Acknowledged ### Description When executing withdrawals in the collateral manager the per-address withdrawal nonce is simply updated without checking that the new nonce is one greater than the previous one (see Examples). It seems like without such a check it might be easy 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: Use assembly to check for `address(0)` ### Description Use assembly to check for `address(0)` ### Impact Gas savings
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User cannot claim rewards or `close_position`, due to vulnerable division by zero handling ### Description A user cannot claim rewards or `close_position`, due to vulnerable division by zero handling in the `claim -> calculate_rewards` flow. In `calculate_rewards`, a user’s reward per farm per epoch is based...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
reentrancy
true
false
Source: https://github.com/sherlock-audit/2022-08-sentiment-judging/tree/main/267-H ## Found by WATCHPUG ## Summary Curve controller's `canRemoveLiquidity()` should return all the underlying tokens as `tokensIn` rather than only the tokens with `minAmount > 0`. ## Vulnerability Detail https://github.com/sentiment...
Sherlock
4
Sentiment
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Use SMTChecker ### Description The highest tier of smart contract behavior assurance is formal mathematical verification. All assertions that are made are guaranteed to be true across all inputs → The quality of your asserts is the quality of your verification https://twitter.com/0xOwenThurm/status/1614359896...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong Function visibility. ### Description **Severity**: Informational **Status**: Unresolved **Description** In contract DistributionManager: getRecipients: this function was not called internally in the contracts, but it was declared as public **Recommendation**: declare it as an external _validateReci...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M10] BeamBalanceStore’s initialize function lacks the onlyConstruction modifier ### Description ###### Medium The [`initialize`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/BeamBalanceStore.sol#L217) [function](https://github.com/BeamNetwork/cur...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Absence Of Check On Initial Tokens Minted ### Description ## VariableSupplyERC20Token Constructor Review In the constructor of `VariableSupplyERC20Token`, the `maxSupply_` and `initialSupply_` values are passed in as arguments. The constructor lacks any check on the value of `initialSupply_` to assert that 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
token
true
false
## Medium: MigratorZap 's v2InventoryToXNFT() allows for NFT stealing as a result of operational mis- take ### Description The function `v2InventoryToXNFT()` allows a user to specify both the v2 Vault address and its id. If `vTokenV2` and `nftxVaultFactory.vault(vaultId)` mismatch, the result of `v2Inventory.withdraw(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Use assembly to check for `address(0)` ### Description *Saves 6 gas per instance* *Instances (2)*: [Link to code](https://github.com/code-423n4/2022-12-tessera/blob/f37a11407da2af844bbfe868e1422e3665a5f8e4/src/seaport/modules/OptimisticListingSeaport.sol)
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: POTENTIAL COMPLETE PROFIT CAPTURE VIA ADMIN FEES ### Description The `CreateHumaConfig` instruction allows for the creation of the Huma configuration account by providing a set of parameters, one of which is **protocol\_fee\_bps**, later used to calculate the protocol fees. This values can be modified at any 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
true
false
## Low: Missing Events in init Functions ✓ Fixed ### Description The code is missing events that should be emitted when certain state variables are updated, even though the events have already been declared. Specifically: * The `_TOKEN_RECEIVER_` variable is updated without emitting a `ChangeReceiver` event. Emittin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AirdropBroker`: When `block.timestamp == lastEpochUpdate + EPOCH_DURATION`, users can exercise options in the new epoch. ### Description In AirdropBroker, when a user receives an airdrop, it should only be able to exercise the options in the current epoch. For example, Alice received the airdrop for epoc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
true
## High: Drainage of the LEND token reserves through repeated claims of the same rewards ### Description The `claimLend()` function in CoreRouter allows perpetual granting of LEND tokens because `lendStorage.lendAccrued` is never reset after successful grants, enabling users to claim the same rewards multiple times. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unify Health Checks ### Description ## Code Review: Unifying Collateral Ratio Checks in Argo Argo currently uses a number of disjoint checks for each function that interacts with the collateral ratio. ### Existing Checks In the `argo_engine/sources/engine_v1.move` file, we have the following checks: It wo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Expiration Checks in Onboarding and Action Confirmation Workflows ### Description **Update** Marked as "Fixed" by the client. Addressed in: `dab0bb4c252c24d8bd676bb292d1eb68778b728a`. **File(s) affected:**`daml/splice-dso-governance/daml/Splice/DsoRules.daml`, `daml/splice-dso-governance/daml/Splice/D...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Using a positive conditional flow to save a NOT opcode ### Description Estimated savings: 3 gas https://github.com/code-423n4/2023-07-basin/blob/main/src/Aquifer.sol#L56 https://github.com/code-423n4/2023-07-basin/blob/main/src/Well.sol#L748 https://github.com/code-423n4/2023-07-basin/blob/main/src/Well.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
rounding
true
false
## Medium: Connectors special withdraw rounding amount direction should not favor user ### Description When a user withdraws, the rounding direction should always favor the protocol and not the user to make sure that the user cannot take advantage of such rounding error. Yet both Compound V2 special withdraw and ERC46...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize number of external calls ### Description **Description:** It is noticed that contracts (Unicrow,UnicrowClaim,UnicrowDispute,...)communicate, call each other frequently. Even some view function are called again and again. It is really gas consuming and not recommended. For example,in `onlyEscrowMember...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Integer Overflow inrevokeStableMaster() ### Description The `revokeStableMaster()` function is used to revoke a StableMaster contract from the Core contract, and therefore removes the related stablecoin from `stablecoinList`. This function assumes there is always at least one stablecoin in `stablecoinList`, as...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: Checking non-zero value can avoid an external call to save gas ### Description _Submitted by 0xRajeev_ Checking if `toSend` > 0 before making the external library call to `LibAsset.transferAsset()` can save 2600 gas by avoiding the external call in such situations. See [L375-L380](https://github.com/code-423n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: More likely to revert operations should be executed first ### Description Since `py_init`, `px_init`, `py_final` and `px_final` are `int128`, there are `2**128` values they can be assigned to. This implies, that condition `if (py_init = MAX_PRICE_VALUE || py_final >= MAX_PRICE_VALUE)` will revert for `(2**12...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If another module adds a module, the safe will be bricked ### Description If a module is added by another module, it will bypass the `enableNewModule()` function that increments `enabledModuleCount`. This will throw off the module validation in `checkTransaction()` and `checkAfterExecution()` and could cause ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 redundant third-party services ### Description The system is not configured to have redundant third-party services to use in case a service such as Alchemy or Pimlico is compromised or has downtime. The Gemini Wallet uses Alchemy to read on-chain data and uses Pimlico to submit user operations. If an 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
other
false
false
## Low: Rewards Not Compounded For Users with Non-Zero lockedUntil ### Description **Severity** - Informational **Status** - Acknowledged **Description** The pool contract only rewards stakers with yield who staked without a lock period (for these stakers `liquidWeight` is being assigned , for users who have locked...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `getDeployedControllers()` will not return the last index ### Description [WildcatMarketControllerFactory Line 138](https://github.com/code-423n4/2023-10-wildcat/blob/main/src/WildcatMarketControllerFactory.sol#L138) ### Issue Description The `getDeployedControllers()` function takes a start and end index 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
storage
false
false
## Low: Inaccurate NatSpec comments in `AppStorage` ### Description Within the [`AppStorage::SiloSettings`](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/beanstalk/AppStorage.sol#L373) struct, there is a [comment](https://github.com/BeanstalkFarms/Beanstal...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Indexed` keyword in events causes struct data loss ### Description When the `indexed` keyword is used for reference type variables such as dynamic arrays or structs, it will return the hash of the mentioned variables. Thus, the event, which is supposed to inform all of the applications subscribed to its emitt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient public key validation ### Description The `Sign.sol` contract contains the `_validatePublicKey` function which validates a public key by checking for a minimum key length of 4 bytes. This threshold is substantially below the length required for secure public keys on blockchain technologies like Bi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Underflow Risk and Suboptimal Call Ordering  Acknowledged ### Description The `deposit` and `withdraw` functions calculate a `fee` based on the deposit or withdrawal `amount` and then subtract this `fee` to determine the net amount used for minting or burning. However, if the `amount` is less than 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
overflow
false
false
## Low: performanceFeeShares and managementFeeShares are not correctly calculated ### Description Although there is a comment mentioning that: > // Note: the accrued performance fee might be smaller than this because of the management fee. performanceFeeShares and managementFeeShares are not correctly calculated. On...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
liquidation
true
false
## Low: Canceled partial redeeming syncs the accounting of a particular cdp without further updating its stake. ### Description Report type: Smart Contract Target: https://github.com/ebtc-protocol/ebtc/blob/release-0.7/packages/contracts/contracts/CdpManager.sol Impacts: - Contract fails to deliver promised returns...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Use of Yul optimization pipeline and solc 0.8.13 ### Description The Yul intermediate language pipeline is used to compile the Consideration contract. This pipeline was considered experimental until March 16, 2022, the day Solidity version 0.8.13 was released. Presumably, the Solidity code compiled through 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
flash-loan
true
false
## Medium: Unsafe implementation of `fundLoan()` allows attacker to steal collateral from an unfunded loan ### Description _Submitted by WatchPug_ [`MapleLoanInternals.sol` L257-L273](https://github.com/maple-labs/loan/blob/9684bcef06481e493d060974b1777a4517c4e792/contracts/MapleLoanInternals.sol#L257-L273) In 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: Outdated Solidity version in use ### Description An outdated Solidity version, `0.5.11`, is currently in use. As Solidity is now under a fast release cycle, consider using the latest compiler version at the time of future deployments and upgrades (presently [`0.8.7`](https://docs.soliditylang.org/en/v0.8.7/)) ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: safeTransfer() not used with transfer functions ### Description CappedFeeOnTransferToken, CappedGovToken, and SlowRoll do not use `safeTransfer()` functions: - CappedFeeOnTransferToken calls `_underlying.transferFrom()` on line [96]. - CappedGovToken calls `_underlying.transferFrom()` on line [84]. - SlowR...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccessible elements can be added to _transfers ### Description Within the [`RSITrendingStrategy` contract](https://github.com/mcdexio/mai-fund-protocol/blob/98af0d1d7e9872ba2b5e734e2a43c161ef635608/contracts/oracle/RSITrendingStrategy.sol), the [`constructor` sets values in the `_transfers` mapping](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
gas
initialization
true
false
## Gas: Don't initialize variables with default value ### Description **Client:** Fixed in [970b71c](https://github.com/Ranama/StakePet/commit/970b71cfe73760dc694b0c0e1e5a3a77dc704c8c) **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
high
other
false
false
## High: AMO model opens up OHM treasury to increased risk ### Description While H-01 and H-02 describe specific ways that users might manipulate the AMO for their own gain, there is a more general risk associated with connecting the OHM `MINTR` with an external contract in an automated way. In essence, what the Silo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: A malicious user can potentially escape liquidation by creating a dust amount position and trigger the liquidation by themself ### Description _Submitted by WatchPug, also found by jonah1005_ In the current implementation, a liquidated position can be used for depositing and borrowing again. However, 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
low
access-control
true
false
## Low: `protocolFee` change without `rebase()` leads to incorrect fees ### Description _Resolved_ `changeProtocolFee()` is used to update the fees applied when `rebase()` is executed. The issue is that `rebase()` is not called before changing the fees. This causes the new fees to be applied, instead of the old ones...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] After Kakarot's native token is changed, an approval from `account_contract` instances can't be re-triggered ### Description When an `account_contract` instance is created and initialized, it approves the Kakarot's native token to Kakarot, in order to allow it to settle native transfers happening within 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
oracle
true
false
## Medium: Can't pause or remove a minter ### Description The project is supposed to be self-governing. Token owners are able to suggest new minters and collateral. The auction mechanism allows participants to remove collateral from the system if it's deemed unhealthy. But, there's no way to remove a registered minter...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Scope 2 - Invoked Unfreeze Call Does Not Emit an Event ### Description The emergency upgrade process unfreezes the bridges and hyperchains through the `ProtocolUpgradeHandler` once the upgrade is executed. This is performed by invoking the internal [`_unfreeze` function](https://github.com/ZKsync-Association/z...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Conditional Calculation ### Description ## Time-Weighted Average Price Calculation in Pyth and Scope In Pyth and Scope, the time-weighted average price calculation persists even when the `token_info.is_twap_enabled()` condition evaluates to false. This behavior appears to be unnecessary and may 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
storage
false
false
## Gas: Multiple `address` mappings can be combined into a single `mapping` of an `address` to a `struct`, where appropriate ### Description Saves a storage slot for the mapping. Depending on the circumstances and sizes of types, can avoid a Gsset (20000 gas) per mapping combined. Reads and subsequent writes can also ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Preview functions fail to verify the outputs ### Description _Resolved_ The `previewMint()`, `previewRedeem()`, and `previewSwap()` functions enable users to preview their transaction results beforehand, allowing them to verify the outputs before submitting the actual transaction on-chain. However, these 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
true
false
## Low: Swap fee is hardcoded in `UniswapV3Swapper.swap()` ### Description In `UniswapV3Swapper.swap()` function: a fixed swap fee of 0.3% (3000) is hardcoded when constructing the `ExactInputSingleParams`, however, Uniswap V3 typically offers several pools for a given token pair, each with different fee rates. For 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...
solodit_api
medium
Validation
false
false
_Submitted by Lambda_ `royaltyInfo`, `getRoyalties`, or `getFeeRecipients` may return `address(0)` as the recipient address. While the value 0 is correctly handled for the royalties itself, it is not for the address. In such a case, the ETH amount will be sent to `address(0)`, i.e. it is burned and lost. ### Recommen...
Code4rena
5
Foundation
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `MultiStrategy# removeStrategy()` cannot remove leverage strategies that still have deployed assets ### Description ### Finding description and impact A leverage strategy with deployed assets can not be removed from `MultiStrategyVault` due to insufficient assets ### Proof of Concept `MultiStrategyVault`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Initialization
false
true
The `initialize` method of the `JBTiered721Delegate` contract has as a flag that the `_store` argument is different from `address(0)`, however, it can be initialized by anyone with this value to allow the project to continue with its usual initialization, the attacker could have interfered and modified the correspondi...
Code4rena
4
Juicebox
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
reentrancy
true
false
## Low: Incompatible contract used in the WormholeFacet ### Description During the code review, it has been observed that all other faucets are using the `SwapperV2` contract. However, the `WormholeFacet` is still using the `Swapper` contract. With the recent changes to the `SwapperV2`, leftovers can be sent to a spec...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage ### Description The instances below point to the second+ access of a state variable within a function. Caching of a state variable replace each Gwarmaccess (**100 gas**) with a much cheaper stack read. Other less obvio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Yarn commands can fail and still continue execution ### Description When performing an upgrade or migration, commands are executed through Yarn scripts, defined in the `package.json`. These commands are chained together through the use of `&&`, and the chains are grouped by `;`. Because `;` is used, the exe...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Collateral Check Logic in CoreRouter.sol#borrow() ### Description The borrow() function in CoreRouter.sol implements an incorrect logic for checking a user's collateralization status before allowing a borrow. Instead of directly using the hypothetical account liquidity values calculated by lendStora...
0