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
gas
other
false
false
## Gas: Changing _adminFeeBalance visibility to public significantly reduces WeightedRateCollection- Pool bytecode size ### Description Instead of specifying a public getter for the internal variable `_adminFeeBalance`, changing it to a public variable reduces the bytecode size of `WeightedRateCollectionPool` by **0.85...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reactivated gauges have incorrect accounting for the last cycle’s rewards ✓ Fixed ### Description As described in reactivated gauges that previously had queued up rewards have a mismatch between their `storedCycle` and contract’s `gaugeCycle` state variable. Due to this mismatch, there is also a resultin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove redundant `protocolFeeDestination()` call ### Description The below code is present in the `initialize()` function in the PhiNFT1155.sol contract. This function call to retrieve the `protocolFeeDestination` is not necessary since it is already supplied as a parameter to the `initialize()` function. Sin...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: XSS in Markdown Component Link Rendering ### Description A Cross-Site Scripting (XSS) vulnerability exists in the custom Markdown component where external data from the WHISK API is rendered without proper sanitization. The component overrides `react-markdown`'s default link sanitization, allowing malicious `h...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Accounted balance of GlpStrategy does not match withdrawable balance, allowing for attackers to steal unclaimed rewards ### Description Attackers can steal unclaimed rewards due to insufficient accounting. ### Proof of Concept Pricing of shares for Yieldbox strategies is dependent upon the total underlying ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The implementation of `pullTokensWithPermit` poses a risk, allowing malicious actors to steal tokens ### Description ### Finding description and impact In batch operations interacting with the router, users are allowed to input tokens into the router using the `permit` method. This approach may be vulnerable...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BackingManager: rTokens might not be redeemable when protocol is paused due to missing token allowance ### Description The Reserve protocol allows redemption of rToken even when the protocol is `paused`. The `docs/system-design.md` documentation describes the `paused` state as: > all interactions disabled...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 ZERO ADDRESS CHECKS ### Description Moonwell-Core contracts have multiple input fields on their both public and private functions. Some of these inputs are required as `address` variable. During the test, it has seen all of these inputs are not protected against using the `address(0)` as the target 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
medium
signature
false
false
## Medium: Users Can Move Votes with `delegateBySig()` ### Description **Update** The client fixed the issue in commit `f23be014764fcafc8a84cab15a60acd3bdb1caf1` and provided the following explanation: > The override was implemented on the _delegate function instead of delegate. **File(s) affected:**`FanToArtistStak...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mismatch Between Documentation and Implementation ### Description The NatSpec comment in the [`IEVault` interface](https://github.com/euler-xyz/euler-vault-kit/blob/83ea1ad97b7c561d6601b220d23ec85d67ceb297/src/EVault/IEVault.sol#L365) indicates that the list can contain duplicates. However, in the code, each 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...
skyward_49k
gas
other
true
false
## Gas: Cache calldata/memory pointers for complex types to avoid offset calculations ### Description The function parameters in the following instances are complex types (arrays of structs which contain arrays) and thus will result in more complex offset calculations to retrieve specific data from calldata/memory. We...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Signatures vulnerable to malleability attacks ### Description `ecrecover()` accepts as valid, two versions of signatures, meaning an attacker can use the same signature twice. Consider adding checks for signature malleability, or using OpenZeppelin's `ECDSA` library to perform the extra checks necessary in ord...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Vote
true
true
**Description:** Attacker can destroy user voting power by setting `ERC721Power::totalPower` & all existing nfts' `currentPower` to 0 via a permission-less attack contract by exploiting a discrepancy ("<" vs "<=") in `ERC721Power` [L144](https://github.com/dexe-network/DeXe-Protocol/tree/f2fe12eeac0c4c63ac39670912640dc...
Cyfrin
4
Dexe
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collateral Transfers and Withdrawals Blocked by Irrelevant Synthetic Asset Validations ### Description The transfer and withdraw functions always call `validate_assets_integrity()`, which enforces synthetic asset funding and price freshness checks. While this is critical for users with active synthetic positio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Pendle version of `lend()` uses the wrong function for swapping fee-on-transfer tokens ### Description The Pendle version of `lend()` uses the wrong function for swapping fee-on-transfer tokens ### Impact _Smart contract unable to operate due to lack of token funds_ Users will be unable to use the Pen...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CompoundProvider's balanceUnderlying and calcShares outputs are scaled incorrectly ### Description balanceUnderlying() returns values scaled with CToken decimals instead of the underlying decimals. calcShares() also incorrectly scales its output, which have underlying decimals instead of the CToken decimals....
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
flash-loan
false
false
## High: Flash Loan Attack on Gauge Reward Distribution via `get_adjustment()` Manipulation ### Description In the `GaugeController._checkpoint_gauge()` function, rewards are minted and the amount allocated to each gauge is computed for users to later claim. The gauge's adjusted weight (`aw`) is calculated based on `G...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
front-running
true
false
## High: First deposit front-running attack ### Description The `Burve` contract is subject to a common issue of ERC-4626 vaults, where the first deposit is front-run by an attacker. 1. A user will add liquidity into the contract to mint shares. 2. The attacker front-runs the user's transaction by minting one share a...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
true
false
## Medium: Usage of `lastEligibleStatus` can cause user to miss out on rewards on `manualStopEmissionsFor` invocation ### Description Invoking `manualStopEmissionsFor` can cause the user to miss out on rewards from vaults even after the user becomes eligible. ### Proof of Concept If `lastEligibleStatus` and `isCurre...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No slippage protection can lead to loss of funds ### Description **Severity**: Medium **Status**: Acknowledged **Description** The `deposit()` function within the `BaseControlledAsyncRedeem.sol` smart contract is used for users to deposit assets in exchange for shares. The amount of shares minted to the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
false
## Low: Remove unused imports ### Description Remove unused imports: * `USDCBridgeV2.sol` ```solidity 28:import {IBridge} from "./IBridge.sol"; ```
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Verification should be leafed based and not address based ### Description _Submitted by Picodes, also found by pedroais, and unforgiven_ ### Impact Contracts should clarify what is the intended behavior for Merkle trees with multiple leafs with the same address. ### Recommended Mitigation Steps There 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
other
true
false
## Low: `PaladinRewardReserve`'s approvals break if the same contract is in charge of two tokens (e.g. a [PalPool ### Description The `approvedSpenders` mapping only takes in a spender, rather than both a spender and a token. Approval for one token means approval for all tokens the account controls. Removal for one me...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked `transfer` in `WithdrawFacet.sol` ### Description [WithdrawFacet.sol](https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Facets/WithdrawFacet.sol#L20-L36) Boolean return value for `transfer` is not checked. assert(_amount <= self.balance); payable(sendTo).transfer(_amount); } else ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protected tokens ### Description At line: https://github.com/jmonteer/yearnV2-strat-SNX-staking/blob/91b839df4a350d80cb583795bccafe0836fdb732/contracts/Strategy.sol#L470-L475 we can't see any protected tokens. ### Recommendation We recommended to add protected tokens in the 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
true
false
## Low: Code Refactoring ### Description ## Code Review and Recommendations 1. **Slice Allocator Freeing Strategy** In `slice_allocator::try_free`, zero the account with `[0; account_size]` to avoid retaining stale data inside the freed slot. 2. **Utilization of `check_omnibus`** The `check_omnibus` function...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
access-control
true
false
## High: PolygonSpokeConnector orPolygonHubConnector can get compromised and DoSed if an address(0) is passed to their constructor for _mirrorConnector ### Description `PolygonSpokeConnector` (`PolygonHubConnector`) inherits from `SpokeConnector` (`HubConnector`) and `FxBaseChildTunnel` (`FxBaseRootTunnel`). When `Pol...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawals could be bricked if chain enabled interop before migrating to the SharedLockbox ### Description Upgrading an L2 chain to enable interop (and join the dependency set of its peers) is a distinct process from updating the L1 bridge (and moving ETH to the SharedLockbox). The intention is for these 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
other
true
false
## Medium: Rewards aren't updated before user's balance change in Gauge's `withdrawToken` ### Description _Submitted by hyh, also found by codexploder_ \_updateRewardForAllTokens is called in withdraw() only, while both withdraw() and withdrawToken() are public and can be called directly. Reward update is needed on 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
medium
other
true
false
## Medium: `_MIN_FEE` Can be Greater Than `_MAX_FEE` ### Description The `setMinFee()` function does not ensure that the new minimum is less than or equal to `_MAX_FEE`, allowing a state where `_MIN_FEE > _MAX_FEE`. This misconfiguration can render the fee logic unusable, result in user lockout, or violate economic 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
medium
initialization
true
false
## Medium: Incorrect Account Ordering ### Description ## Transfer with Split Proofs Overview `transfer_with_split_proofs` assembles a list of seven `AccountMeta` objects, which provide metadata about accounts involved in the transaction. `process_transfer` iterates through these accounts; however, these accounts 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
low
storage
true
false
## Low: LootBox - transferEther should be internal ### Description `LootBox.transferEther()` can be `internal` as it is only called from `LootBox.plunder()` and the `LootBox`(proxy) instances are generally very short-living (created and destroyed within one transaction). ### Recommendation Restrict `transferEther()`’...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
front-running
false
false
## Medium: `addCredit()` DOS Attack ### Description ### Proof of Concept `addCredit()` can be called by anyone, and the `msg.value` is as small as `1 wei`. Users can modify Lien at a small cost, causing the value stored in `liens[lienId]=keccak256(abi.encode(lien))` to change. By front-run, the normal user's transac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: Possible DoS on `vestingRecipients` due to lack of disposal mechanism ### Description _Submitted by fatherOfBlocks, also found by wagmi_ [VTVLVesting.sol#L224](https://github.com/code-423n4/2022-09-vtvl/blob/f68b7f3e61dad0d873b5b5a1e8126b839afeab5f/contracts/VTVLVesting.sol#L224) [VTVLVesting.sol#L245](htt...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Custom Errors ### Description [Source](https://blog.soliditylang.org/2021/04/21/custom-errors/) Instead of using error strings, to reduce deployment and runtime cost, you should use Custom Errors. This would save both deployment and runtime cost. *Instances (2)*: [Link to code](https://github.com/code-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
medium
dos
false
false
## Medium: Router - handleNewAuction - fragile code ### Description This finding highlights a collection of issues with the `handleNewAuction`. The code and coding style appears fragile. Validation should be strictly enforced, debugging code should be removed or disabled in production and protective measures should 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
liquidation
false
false
## Low: Minter Or Maker May Contribute Zero Collateral ### Description Certain undesirable edge cases exist around providing zero collateral. The following cases may arise: - Minter collateral may be zero; - Maker collateral may be zero; - Both minter and maker collateral may be zero, resulting in zero total collater...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 ZERO ADDRESS CHECKS ### Description Contracts in-scope are missing address validation in some functions. It is possible to configure the zero address, which may cause issues during the contract execution. Code Location ------------- The following function is not validating, that the given addresses 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
other
true
false
## Medium: TRST-M-4 Admin can transfer hat to a non-eligible target, potentially burning the hat ### Description **Description:** Hat admins may transfer child hats using `transferHat()`. It checks the hat receiver does not currently have a balance for this **hatId**. The issue is that it does not also check that th...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
false
false
## Medium: Permanent loss of tokens if swap data gets outdated ### Description While sending funds through `StargateBridgeAdapter`, the user passes the swap data as a parameter. The flow is stargate sending tokens on the receiving chain into the `StargateBridgeAdapter` and executing `sgReceive`. The issue here is tha...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
false
false
## Medium: HARDCODED TRANSACTION COST ### Description The `initTransactionCost` variable was hardcoded in the source code examples, making it static and unresponsive to real-time gas price fluctuations on the blockchain network. This approach did not account for dynamic network conditions, potentially leading to incor...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ambiguous States ### Description ## Recommendations for State Management in Rust It was found that many of the accounts used integers to track their current state. We recommend following idiomatic Rust rules and using enums for any kind of state machines. This makes all the possible states explicit and, in co...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Event spamming because `stake()` does not enforce a minimum amount ### Description _Acknowledged_ `stake()` allows users to mint beHYPE in exchange for HYPE. The problem is that it does not enforce a minimum staking amount, which can lead to spammed `Deposit` events. This makes it difficult to track meaningfu...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [01] Users should be able to choose the recipient for long positions ### Description https://github.com/code-423n4/2023-11-panoptic/blob/aa86461c9d6e60ef75ed5a1fe36a748b952c8666/contracts/SemiFungiblePositionManager.sol#L1223 Users deposit tokens by opening short positions and withdraw tokens by opening long ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize names to save gas ### Description Contracts most called functions could simply save gas by function ordering via `Method ID`. Calling a function at runtime will be cheaper if the function is positioned earlier in the order (has a relatively lower Method ID) because `22 gas` are added to the cost of a ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
oracle
false
false
## High: Attacker can claim more IL by manipulating pool price then removeLiquidity ### Description ## Handle gzeon ## Vulnerability details ## Impact Vader reimburse user IL immediately when user withdraw from the pool (VaderRouterV2.sol:L227), an attacker can therefore manipulate the pool balance causing a high ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Credit can be reapproved when paused ### Description Credit is approved by the EA service account which is ultimately delegated by the pool owner. The EA service account may have an account paused and then proceed to reapprove credit for the same account, overwriting sensitive loan data that should otherwise r...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Loss of Precision in `Rewarder._calibrateReward()` ### Description **Update** Marked as "Fixed" by the client. Addressed in: `bfbbd5b6e7134244a360115032c9ee3fad3cef85`. The client provided the following explanation: > Implemented the recommended fix. Updated the rewardRate calculation statement. **File(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
true
false
## Low: A magic number should be documented and explained. Use a `constant` instead ### Description *Similar issue in the past: [here](https://github.com/code-423n4/2021-04-marginswap-findings/issues/71)* Consider using `constant` variables as this would make the code more maintainable and readable while costing not...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
initialization
false
false
## Gas: Pre-calculate equations which contain only constant values in `constructor` ### Description Since `MAX_PRICE_RATIO` is a constant value, the value of `ABDKMath64x64.divu(uint(MAX_PRICE_RATIO), 1))` can be calculated before compiling the contract. Calling `ABDKMath64x64.divu` on a known, constant value is a was...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Native HYPE transfers to HyperCore will not work ### Description `Hype_Module::hyper_depositSpot` always calls `IERC20(token).transfer(assetAddress(uint64(asset)), _wei)`, including when `asset == 150` (native HYPE). Per HyperCore [docs](https://hyperliquid.gitbook.io/hyperliquid-docs/for-developers/hyperevm/h...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
false
false
## Low: Document and Clarify Migration Code ### Description ## Module Upgrade and Migration On module upgrade, it will occasionally be required to perform some additional migration functionality which initializes new structures, copies data, etc. In the current implementation, migration logic is included in `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
low
rounding
true
false
## Low: Function sharedDecimals incorrectly marked as view instead of pure ### Description In `BitcornOFT.sol`, the `sharedDecimals` function is declared as `view`, but it returns a constant value of `8`. Since this function doesn't read any state variables, it should be marked as `pure`. The same function is used in ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Admin
false
true
## Lines of code https://github.com/code-423n4/2022-10-traderjoe/blob/main/src/libraries/PendingOwnable.sol#L42 ## Vulnerability details ### Vulnerability details Typically, the contract’s owner is the account that deploys the contract. As a result, the owner is able to perform certain privileged activities. Howev...
Code4rena
3
Trader Joe
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `StopLimit` order cannot be filled under certain condition ### Description _No response_ ### Impact Medium. Loss of core functionality under certain conditions. ### Recommendation Consider allowing the minimum order size check to be skipped if the order creation is initiated by the `StopLimit` contract wh...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees are not burnt on losing games ### Description According to the burning mechanism, a 10% fee should applied on the winning or **losing** amount of every bet. 80% of those USDT fees will be swapped at the end of each month to buy and burn MONT tokens. The problem is that the Vault is only sending assets 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
oracle
true
false
## Low: NatSpec is incomplete ### Description 1. File: contracts/interfaces/IChainlinkPriceOracle.sol (lines [10-13](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/contracts/interfaces/IChainlinkPriceOracle.sol#L10-L13)) Missing: `@param _assetAggregator` 2. File: cont...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: placeOrder does not check that tokenId is valid ### Description ## MonumentMarketplace.placeOrder Function Vulnerability The `MonumentMarketplace#placeOrder` function does not check that the `tokenId` is a valid token id. This will result in a fake order being created. ## Code Snippet ## Remediation The `...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
dos
true
false
## Medium: Unbound loop enables denial of service ### Description The swap function relies on an unbounded loop. An attacker could disrupt swap operations by forcing the loop to go through too many operations, potentially trapping the swap due to a lack of gas. ```solidity UniswapV3Pool.swap iterates over the tick: 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
overflow
false
false
## Low: Insufficient Input Validation ### Description `setRewardFee` allows the owner to set `rewardFee` greater than `_FEE_BASE`, which could lead to unexpected behavior. The call will revert because `supplyAssets -= fees` will underflow, causing the supply to `COMET` to fail due to an excessively high value in `supp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Accounting for stakedButUnverifiedNativeETH ### Description `stakedButUnverifiedNativeETH` does not take into account an effective balance of the validator at the time of calculation, which may result in inaccurate accounting. `stakedButUnverifiedNativeETH` in `NodeDelegator` describes the amount ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: Users redeeming early will withdraw `Ra` without decreasing the amount locked, which will lead to stolen funds when withdrawing after expiry ### Description [VaultLib::redeemEarly()](https://github.com/sherlock-audit/2024-08-cork-protocol/blob/main/Depeg-swap/contracts/libraries/VaultLib.sol#L639) is called 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
token
false
false
## Low: Strategy contract is incompatible with non-standard ERC20 tokens ### Description Some tokens (for example `USDT`) do not follow the ERC20 standard correctly and do not revert a `bool` on `approve` call. Such tokens are incompatible with the `BendDaoLendingStrategy` contract as the `approve` calls in `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
token
false
false
## Medium: M03] Unnecessary reimplementation of the ERC20 features in ERC223BeamToken ### Description ###### Medium The [`ERC223BeamToken`](https://github.com/BeamNetwork/currency/blob/c0d8477866a8667a37f45c85378c5938c84569cd/contracts/currency/ERC223BeamToken.sol) [contract](https://github.com/BeamNetwork/currency/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `NativeTokenLimitModule` Does Not Return `IValidationHookModule` As Supported Interface ### Description **Update** Marked as "Fixed" by the client. Addressed in: `06cd4996d20fbb6f02bd11402cbe89f5285544b5`. The client provided the following explanation: > We've added the missing interface ID. **File(s) affect...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Updater without an admin role cannot add roles. ### Description **Description** AccessToken Contract.sol, WinChances.sol, WLContract.sol: function addTheRoles ForContractCalls(). Function calls grantRoles() function from AcessControl, which checks that the message sender is the default admin. Thus, in cas...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Share tracking issue between `PublicAllocator` and `EulerEarn` affects reallocations ### Description The `PublicAllocator::reallocateTo()` function uses real strategy share balances via `id.maxWithdraw(vault)` to calculate available assets, while `EulerEarn::reallocate()` uses internal share tracking via `c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: isValidRefinance checks both conditions instead of one, leading to rejection of valid refinances ### Description `isValidRefinance()` is intended to check whether either (a) the loan interest rate decreased sufficiently or (b) the loan duration increased sufficiently. Instead, it requires both of these to 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
gas
liquidation
true
false
## Gas: Use unchecked for collateral ### Description Use unchecked when dividing can save gas. ### Impact Higher runtime gas usage
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `require()`/`revert()` statements should have descriptive reason strings ### Description 1. File: contracts/libraries/FullMath.sol (line [35](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/contracts/libraries/FullMath.sol#L35)) 2. File: contracts/libraries/FullM...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifier instead of duplicate require ### Description When a `require` statement is used multiple times, it is cheaper in deployment costs to use a modifier instead. ### Proof of Concept 2 instances where a modifier can be used: ##### src/Vault.sol ##### src/utils/MerkleBase.sol ### Recommended Mitigati...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proper use of get as a function name prefix ### Description Clear function names can increase readability. Follow a standard convertion function names such as using get for getter (view/pure) functions. Instances:
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TokenLocker::withdrawWithPenalty` should revert if nothing is withdrawn ### Description **Description:** `TokenLocker::withdrawWithPenalty` should revert if nothing is withdrawn by first rejecting zero input: Then after the loop, if the user specified a max withdraw, checking performing a similar check: *...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
solodit_api
medium
Vote
false
false
Source: https://github.com/sherlock-audit/2022-11-frankendao-judging/issues/24 ## Found by 0x52 ## Summary When a user delegates to another user they surrender their community voting power. The quorum threshold for a vote is determined when it is created. Users can artificially lower quorum by delegating to other ...
Sherlock
4
FrankenDAO
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
Validation
true
false
## Severity: High Risk ## Context Operators.sol#L151-L152 ## Description Since `operator.keys >= operator.limit` (based on the checks when `operator.keys` has been set), we can simplify `_hasFundableKeys`'s return expression to: ``` operator.active && operator.limit > (operator.funded - operator.stopped) ``` Also b...
Spearbit
5
Liquid Collective
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Decimals are not validated ### Description **Severity**: Informational **Status**: Resolved **Description** CommunityRound.sol, method: configure(bytes), address of usdt_ better validate that it refers to ERC20 with decimals equal to 6 since variables MAX_USDT_TO_RESERVE & MIN_USDT_TO_RESERVE presume that 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
signature
true
false
## Low: No `deadline` and address zero check for signatures ### Description There is one instance of this - https://github.com/code-423n4/2024-01-decent/blob/07ef78215e3d246d47a410651906287c6acec3ef/src/UTBFeeCollector.sol#L44C5-L63C1 The `collectFees(...)` function of the UTBFeeCollector.sol contract verifies signat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Missing checks for `approve()`'s return status ### Description Some tokens, such as Tether (USDT) return false rather than reverting if the approval fails. Use OpenZeppelin's `safeApprove()`, which reverts if there's a failure, instead *There is 1 instance of this issue:* https://github.com/code-423n4/2022-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
low
other
false
false
## Low: rmational - You can lock u256 , but unlocks are u224 ### Description This means that in theory someone may have to perform multiple cooldowns in order to fully withdraw from the lock. This should not cause a loss of tokens, just a delay in unlocking them. **Recommendation:** I believe Mode will not have a sup...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: addTidal, _updateUserTidal, withdrawTidal – Wrong Arithmetic Calculations ✓ Fixed ### Description To further incentivize sellers, anyone – although it will usually be the pool manager – can send an arbitrary amount of the Tidal token to a pool, which is then supposed to be distributed proportionally among the...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
rounding
false
false
## Medium: Changing the `rewardToken` during distribution in `RewardDistributor` is dangerous ### Description Alterations to the `rewardToken` in the middle of distribution, especially without verifying the congruence of `decimals` between the previous and the new token and ensuring price consistency, can lead to pote...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ATokenERC6909.totalSupply for debt tokens uses the liquidity index ### Description The `totalSupply` function is defined as: ```solidity function totalSupply(uint256 id) public view override returns (uint256) { uint256 currentSupplyScaled = super.totalSupply(id); if (currentSupplyScaled == 0) { return ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract Name Reused in Different Files ### Description The name `ReentrancyGuardProxy` is used more than once to declare a library or contract inside the project. Specifically: * `ReentrancyGuardProxy` inside `contracts/marketplace/CoreVault.sol` * `ReentrancyGuardProxy` inside `contracts/marketplace/MergeMa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Provider may earn fees without disclosing entropy ### Description Entropy providers may set a configurable fee as compensation for providing the entropy. However, they may collect the fee without disclosing their entropy to the user and thus collect fees simply by registering once and then going offline. Users...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Move event emissions to the methods where the action happens ### Description Move `TransferFulfilled` event emission to `_sendFunds()` and `TransferLocked` event emission to `_lockFunds()`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: INCREASE OPTIMIZER RUNS ### Description Optimizer variable can optimize costs by increasing the number of runs to something like 2000 at least in the config. This value is a tuning parameter for deploy v/s runtime costs. Higher values optimize for lower runtime cost. Code Location ------------- [truffle-conf...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not failing loudly ### Description The [`addSupportedIdentifier`](https://github.com/UMAprotocol/protocol/blob/9d403ddb5f2f07194daefe7da51e0e0a6306f2c4/core/contracts/oracle/implementation/IdentifierWhitelist.sol#L35) and [`removeSupportedIdentifier`](https://github.com/UMAprotocol/protocol/blob/9d403ddb5f2f07...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Drain pool by sandwiching matured shorts ### Description When shorts mature, they are not traded on the "curve"; instead, they use the "flat" part of the flat+curve model and are converted 1-to-1 to a base amount that is then added to the share reserves. The bond reserves are updated to keep the spot price 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
initialization
false
false
## Low: Missing non zero address check ### Description **Severity**: Informational **Status**: Resolved **Description** In contract GmxPositionManager inside the constructor, the input parameters are not checked to be non zero. This can lead to misconfiguration and cause issues later while executing the contract. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
true
false
## Gas: Unnecessary bit masking ### Description The bit masking operation can be omitted before type conversion to uint16. ### Recommendation - **Before:** ```solidity uint16 result = uint16((Uint16Array.unwrap(packedData) >> shiftAmount) & 0xFFFF); ``` - **After:** ```solidity uint16 result = uint16(Uint...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (HAL-05) Single-step Ownership Transfer Process ### Description It was identified that the `SHFactory` contract inherited from OpenZeppelin's `OwnableUpgradeable` library. Ownership of the contracts that are inherited from the `OwnableUpgradeable` module can be lost, as the ownership is transferred in a single...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sub-optimal strategy selection as oracle.getUtilizationInfo is based on global supply and borrows ### Description The `oracle.getUtilizationInfo` function used in `DebtManager._getAvailableAmountsAndDatas()` returns the global borrow and supply. For example, the `getUtilizationInfo` of `AaveV3AprOracle` is def...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Role Transfer Not Following Two-Step Pattern ### Description **Update** This issue is fixed by updating the `Ownable` dependency to `Ownable2Step`. However, the override of the `renounceOwnership()` function has been removed, causing the contract to be renounceable by the owner. **Update** Marked as "Fixed" ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 input validations and timelocks ### Description The following instances are missing checks for zero addresses and or valid ranges for values. Even if the DAO is the one setting these values, it's important to add sanity checks in case someone does a fat-finger operation that is missed by DAO participan...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The repayment process in the NFTPositionManager can sometimes be reverted ### Description Users can `supply` `assets` to the `pools` through the `NFTPositionManager` to earn `rewards` in `zero` tokens. Functions like `deposit`, `withdraw`, `repay`, and `borrow` should operate normally. However, due to an...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
flash-loan
true
false
## Medium: `PoolAction::_balancerExit` returns wrong token out amount ### Description Users use `PoolAction::exit` to exit a Balancer pool position, it calls `_balancerExit` to do the job. It is expected to exit the pool and return the amount out of the token; however, it returns the whole recipient's balance, without...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Messages unit-test coverage ### Description **Description** For best cosmos-sdk security practices, each message in msg_server.go should be covered with tests. **Recommendation**: Write tests for each msg_server.go 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
high
other
true
false
## High: `FluxToken.calculateBPT` uses wrong algorithm causing `FluxToken.nftClaim` revenue to be 10,000 times higher than expected ### Description Report type: Smart Contract Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/FluxToken.sol Impacts: - Theft of unclaimed yield ## Description ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Inconsistent Require Statements ### Description The `USDz` and `SPCTPool` contracts contained several `require()` statements like the following: ``` require(newMintFeeRate <= maxMintFeeRate, "SHOULD_BE_LESS_THAN_1P"); ``` It was observed that, even though the error message says `SHOULD_BE_LESS_THAN_1P`, the ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
false
false
## High: Elected validators of a group can be chosen by the validator group registrant ### Description The [`electValidatorSigners` function](https://github.com/celo-org/celo-monorepo/blob/7be22605e172ca536c028e408b147aab83202e4a/packages/protocol/contracts/governance/Election.sol#L814) of the [`Election` contract](ht...
0