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 | medium | initialization | true | false | ## Medium: Previously nominated delegate can reset the delegation
### Description
_Submitted by hyh_
`burn()` allows for previously recorded delegate to set himself to be contributor's delegate even if another one was already chosen.
This can be quite material as owner choice for the whole voting power is being rese... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Referrer is not valid for earning for more time than expected.
### Description
**Severity**: Critical
**Status**: Resolved
**Description**
The `isValidForEarning()` function in `Referrals.sol` is used for checking if a referrer is able to earn funds or not. This restriction is checked considering that a 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 | high | cross-chain | true | false | ## High: On Ulysses omnichain - `RetrieveDeposit` might never be able to trigger the `Fallback` function
### Description
The purpose of the `retrieveDeposit` function is to enable a user to be able to redeem a deposit they entered into the system. The mechanism works based on the promise that this function will be abl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An InvalidLength check for multiRequest.data.length == 0 can be added
### Description
In `multiAttest()`, if `multiRequest.data.length == 0`, then it is likely a user mistake and we can revert immediately with an `InvalidLength()` error, similar to `multiAttestByDelegation()`. This change would prevent 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 | other | false | false | ## High: Dividend reward can be gamed
### Description
_Submitted by cmichel_
The `Router.addDividend` function tells the reserve to send dividends to the pool depending on the fees.
- The attacker provides LP to a curated pool. Ideally, they become a large LP holder to capture most of the profit, they should choose ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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/ID mappings can be combined into a single mapping of an address/ID 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 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 | medium | other | true | false | ## Medium: Solver Offboarding Can Block Invoice Settlement
### Description
The `settleInvoice()` function requires that the solver linked to the invoice is still active by calling `_isSolverActive(solver)`. If the solver has been offboarded after the invoice was created, settlement reverts with `SM_SolverInactive()`. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ConcentratedLiquidityPoolManager`'s incentives can be stolen
### Description
_Submitted by cmichel, also found by broccoli, hickuphh3, pauliax, and WatchPug_
The `ConcentratedLiquidityPoolManager` keeps all tokens for all incentives in the same contract. The `reclaimIncentive` function does not reduce the `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | false | false | ## High: Resolution upgrade inconsistency
### Description
The OUSD token achieves its rebasing functionality by tracking credit balances and scaling them by a conversion factor to retrieve the corresponding OUSD token balances. The `OUSDResolutionUpgrade` contract is designed as a temporary logic contract that replace... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Maturity
### Description
## Code Review Summary
## 1. Renaming Field in RewardInfo Structure
Renaming `reward_per_second` to `reward_per_unit_time` in the `RewardInfo` structure may render the code more accurate in terms of naming and documentation, especially when this field is utilized for both seconds... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | false | true |
[GolomToken.sol#L14-L73](https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/governance/GolomToken.sol#L14-L73)<br>
Potential downtime in GolomTrader
### Proof of Concept
GolomToken.sol doesn't have a function to mint the treasury tokens as specified in the docs (<htt... | Code4rena | 5 | Golom |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Parameters lack validation.
### Description
**Description**
Factory.sol: function deployProxies(). Since function can be called by anyone and input parameters are vital for deployed contracts, parameters should be verified to be valid.
**Recommendation**
1. Verify that strings "name", "symbol" and values fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Division By Zero Error
### Description
## Issue Overview
The issue is associated with the lack of protective measures in `set_validator_count` to prohibit the configuration of `validator_count` to zero.
## Affected Source
**File:** `sources/staking.move`
**Language:** Rust
## Code Snippet
This may resu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `>=` is cheaper than `>` (and `<=` cheaper than `<`)
### Description
Strict inequalities (`>`) are more expensive than non-strict ones (`>=`). This is due to some supplementary checks (ISZERO, 3 gas). This also holds true between `<=` and `<`.
Consider replacing strict inequalities with non-strict ones to sav... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typo mistakes
### Description
https://github.com/code-423n4/2023-12-revolutionprotocol/blob/main/packages/revolution/src/MaxHeap.sol#L64
https://github.com/code-423n4/2023-12-revolutionprotocol/blob/main/packages/revolution/src/MaxHeap.sol#L64-L65
https://github.com/code-423n4/2023-12-revolutionprotocol/bl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Overflow/Underflow | true | false |
## Severity
Critical Risk
## Description
The withdrawal function includes the user in their own delegation list and uses ceiling division for all calculations. This causes `totalDelegatedAmount` to exceed the requested withdrawal amount, resulting in an underflow when calculating `remainingAmount = amount - totalDe... | Shieldify | 5 | Terplayer Bvt Staking&Distribution |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A killed `TenetVesting` should have `withdrawable` return 0
### Description
The `TenetVesting` contract has a `kill` mechanism, which allows a vesting schedule to be revoked. Almost all methods check for the `isKilled` flag and if it is equal to `true` they revert, apart from the `withdrawable` method. To be p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users could potentially use their own referral code
### Description
[registerReferral](https://github.com/Cyfrin/2025-01-zaros-part-2/blob/39e33b2f6b3890573bb1affc41a7e520277ceb2c/src/referral/Referral.sol#L155) is called from two different places. In `VaultRouterBranch` when a user initially [deposits](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: Errors: Use Custom Errors instead of Revert Strings to save Gas
### Description
Custom errors from Solidity 0.8.4 are cheaper than revert strings (cheaper deployment cost and runtime cost when the revert condition is met)
Source: [Custom Errors in Solidity](https://blog.soliditylang.org/2021/04/21/custom-erro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [06] Having a hardcoded maximum slippage should be rethought
### Description
The Mantra DEX implements a hardcoded maximum slippage cap that can prevent legitimate trades and force users into unfavorable positions, especially during high volatility or for certain asset pairs.
The issue exists in the swap [imp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [12] Whole system is missing pausability
### Description
### Issue Description
All the contracts in scope are missing pausability mechanism and in case of a failure will not be able to be stopped. This poses significant risk especially in cross-chain protocols where `handlers` (`ChakraSettlementHandler` and `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unprotected `sweep` function
### Description
Currently, any user can call the sweep function and get all tokens from the contract.
https://github.com/cryptoalgebra/Algebra/blob/bddd6487c86e0d6afef39638159dc403a91ba433/src/periphery/contracts/base/PeripheryPayments.sol#L32-L48
### Recommendation
We recommend a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Unutilized Initial Supply
### Description
## Lending Pool Initialization
The `lending_pool::create` function allows for an initial supply of fungible assets to be deposited into the pool:
- **Parameter:** `initial_supply: FungibleAsset`
This initial supply is **not** reflected in any of the pool’s state v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: keep-core - TokenGrant and TokenStaking allow staking zero amount of tokens and front-running ✓ Addressed
### Description
Tokens are staked via the callback `receiveApproval()` which is normally invoked when calling `approveAndCall()`. The method is not restricting who can initiate the staking of tokens and... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Floating pragma
### Description
**Severity**: Informational
**Status**: Resolved
**Location**: All contracts
**Description**
The contracts should not use floating pragma, e.g. (pragma solidity >=0.8.20 <0.9.0;), which allows a range of compiler versions. It is important to lock the pragma to prevent contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Vault Share Inflation
### Description
A malicious user may frontrun an accounting update when the protocol is empty to steal assets from another user. The share inflation attack, common to ERC4626 implementations, is possible when the system posts a profit after having had a user deposit. The malicious user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: AuctionParticipant.sol: purchaseArbitrageTokens should not push duplicate auctions
### Description
## Handle
harleythedog
## Vulnerability details
## Impact
In AuctionParticpant.sol, every time `purchaseArbitrageTokens` is called, the current auction is pushed to `auctionIds`. If this function were to b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `_flashBorrowAndEnter()` Return Values Are Unused in Event Emission
### Description
The `AbstractLendingRouter._flashBorrowAndEnter()` function returns `borrowShares` and `vaultSharesReceived` values that are used in the `PositionEntered` event. However, in the `AbstractLendingRouter._enterPosition()` 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... | solodit_api | medium | storage | false | true | **Update**
Acknowledged in: `e0595d4`. The client provided the following explanation:
> The ProductApi3ReaderProxyV1.read() function intentionally returns block.timestamp. This design choice by Api3 reflects that the timestamp accurately marks the on-chain computation time of the derived product value. Aggregating tim... | Quantstamp | 5 | API3 - Data Feed Proxy Combinators |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rialto may not be able to cancel minipools created by contracts that cannot receive AVAX
### Description
A malicious node operator may create a minipool that cannot be cancelled.
### Proof of Concept
Rialto may cancel a minipool by calling [cancelMinipoolByMultisig](https://github.com/code-423n4/2022-12-g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Rounding Issue While Calculating `liquidPercentage`
### Description
**Severity** - Medium
**Status** - Resolved
**Description**
The `liquidPercentage` calculated inside `_processRewards()` (L773) is as follows →
Here a new deposit is being created (for rewards) and the `liquidPercentage` is `user.liqui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | front-running | false | false | ## Low: Trust Assumptions on the Off-Chain Platform
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Definitely something to iterate on in future versions.
**File(s) affected:**`BountyV1.sol`
**Description:** The protocol relies on an off-chain plat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-Generic Parameter Naming in `deposit`
### Description
The external `deposit` function of `P2pYieldProxy` names its calldata argument `_superformCalldata`, binding a generic proxy to a specific adapter conceptually. This diverges from the contract’s goal of serving multiple yield protocols and can mislead f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inflexible Voting System Prevents Rapid Parameter Adjustments
### Description
**Description:** The governance voting system uses a rigid rotation mechanism where which parameter can be modified is determined by `voting_counter % 6`.
This creates a fixed 6-parameter rotation cycle where each parameter can only... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: In " remove_timestamp_cache " a prototype pollution bricks validators
### Description
Report type: Blockchain/DLT
Target: https://github.com/shardeum/shardus-core/tree/dev
Impacts:
- Network not being able to confirm new transactions (total network shutdown)
## Description
## Brief/Intro
A prototype poll... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary precision loss in `_recipientBalance()`
### Description
Using `ratePerSecond()` to calculate the `_recipientBalance()` incurs an unnecessary precision loss.
### Impact
Precision loss in `_recipientBalance()`.
### Recommendation
Consdier changing to:
```solidity
balance = elapsedTime_ * tokenA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can't withdraw native tokens from the Dynamic Account
### Description
The owner of Dynamic Account needs to send native tokens to his account, to allow EntryPoint to pay the necessary gas through `BaseAccount.sol#_payPrefund()` when it calls `validateUserOp()`,
But, if the owner stops using this protocol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Chain ID parameter can be derived from permissioned game
### Description
In the `addDependency()` function of `SuperchainConfigInterop`, the `_chainId` parameter is provided as input but could be derived directly from the permissioned game associated with the system config. This would prevent potential mismatc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suboptimal Gas Usage in removeValidator Function
### Description
The `removeValidator` function in the Pepper contract iterates through the `validators` array to find and remove a specific validator. While the function correctly implements the removal process, it does not optimize for gas efficiency. The curre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-1 Several popular ERC20 tokens are incompatible with the vault due to MAX approve
### Description
**Description:**
There are several instances where the vault approves use of funds to the manager or a trade
router. It will set approval to MAX_UINT256.
The issue is that there are several popular token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code Duplication Hinders Readability and Maintainability of the Codebase
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d44be2d`. The client provided the following explanation:
> Created a new contract `ReachDistribution` that unifies methods between distributions. Only `swapETH` r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: Code Duplication in getPendingClaim and claim Functions
### Description
The Pepper contract contains two functions, `getPendingClaim` and `claim`, which share significant portions of identical logic.
```
function getPendingClaim() external view returns (uint256 pendingHarvest) {
require(block.number >= cl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 latest Solidity version with a stable pragma statement
### Description
Using a floating pragma `^0.8.13` statement is discouraged as code can compile to different bytecodes with different compiler versions. Use a stable pragma statement to get a deterministic bytecode. Also use latest Solidity version to 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 | low | oracle | false | false | ## Low: Oracle Cannot Handle ERC-20 Tokens with More than 18 Decimals
### Description
**Update**
Marked as "Acknowledged" by the Venus team. The Venus team provided the following explanation:
> We have an internal guideline with rules to be applied to new underlying tokens. Venus protocol doesn’t support underlying 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... | solodit_api | medium | Ownership | true | true |
[ERC721H.sol#L185](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/abstract/ERC721H.sol#L185)<br>
[ERC721H.sol#L121](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/abstract/ERC721H.sol#L121)<br>
ERC20H and... | Code4rena | 4 | Holograph |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Checks-Effects-Interactions pattern is not followed in the claimReward() function
### Description
The `DelegatedStaking` contract implements the `claimReward()` function used by delegators to claim their rewards:
```
function claimReward(address payable owner) external {
(uint256 totalToClaim, ClaimData[... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | false | ## Summary
The `TokenManager::_transfer` function performs unnecessary balance checks before and after the transfer. Additionally, it uses exact equality checks for balance differences, which can cause issues with tokens that have transfer fees or unusual rounding behaviors.
## Vulnerability Details
The `_transfer` ... | Codehawks | 5 | Tadle |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: built-in will return input value on chains without SHA256 precompile
### Description
When the SHA256 built-in function is called with a bytes32 input, we use the same scratch space to save the input and return the output. If a chain does not implement the SHA256 precompile (which is a requirement for many ZK r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Shifting cheaper than division
### Description
A division by 2 can be calculated by shifting one to the right. While the `DIV` opcode uses `5` gas, the `SHR` opcode only uses `3` gas. Furthermore, Solidity's division operation also includes a division-by-0 prevention which is bypassed using shifting.
### Proo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The locker's supply can be arbitrarily inflated by an attacker due to unaccounted merge()
### Description
Report type: Smart Contract
Target: https://github.com/zerolend/governance
Impacts:
- Theft of unclaimed yield
## Description
## Brief/Intro
Users can lock Zero tokens in locker contracts (LockerLP/Lo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: canDeploy functions can revert instead of returning false
### Description
If `_canDeployFrom[factory_][caller_]` is found to be false in the `canDeploy` and `canDeployFrom` functions, there will be an additional check if `factory_` is a loan manager factory and `caller_` is a pool manager. However, the check f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: User could deposit more ETH than allowed
### Description
zkSync has implemented a limit on the amount of ETH that can be deposited to L2 per account. However, the code currently has a design flaw that allows users to bypass this limit by exploiting a gas refund scheme. Specifically, in the `requestL2Transac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidation In LounVault.sol should have a onlyCreditor Modifier
### Description
**Severity** - Low
**Status** - Acknowledged
**Description**
The `liquidate()` function inside LoanVault.sol is called via `liquidate()` function inside CreditorNFT.sol . Inside liquidate of CreditorNFT the debt tokens are sent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ZcToken.withdraw will send user 0 tokens if called after maturity deadline but before market is set mature
### Description
_Submitted by panprog_
### Impact
If `maturityRate` is still `0` after maturity deadline (because no transactions setting `maturityRate` have been executed yet), then `previewWithdra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] Prime.sol's `_claimInterest()` should apply a slippage or allow users to partially claim their interest
### Description
Medium to low impact. The `_claimInterest` function hardcodes a 0% percent slippage and does not perform a final check after attempting to release funds from various sources. If the 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... | solodit_api | medium | liquidation | true | true | ### Relevant GitHub Links
<a data-meta="codehawks-github-link" href="https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/BidOrdersFacet.sol#L39">https://github.com/Cyfrin/2023-09-ditto/blob/main/contracts/facets/BidOrdersFacet.sol#L39</a>
<a data-meta="codehawks-github-link" href="https://github.com/Cyf... | Codehawks | 3 | DittoETH |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MEV miner can mint larger than expected UDT total supply
### Description
_Submitted by elprofesor_
`UnlockProtocol` attempts to calculate gas reimbursement using `tx.gasprice`, typically users who falsify `tx.gasprice `would lose gas to miners and therefore not obtain any advantage over the protocol itself. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potentially Excessive SD/ETH TWAP Time Window
### Description
According to Stader Labs’ documentation, the SD price oracle is a 24-hour TWAP. During times of high volatility and price movement, the SD price oracle may return a very outdated price. This could result in delayed or omitted liquidations that could... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Remaining Accounts Check
### Description
## Issue Description
The issue arises due to inadequate validation of the number of remaining accounts in process within `CrankPriceHistories`. The second check in the process verifies that `remaining_accounts.len() % 2` (which can only be zero or one) is gre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flash swap call back prior to transferring tokens in `indexPool`
### Description
_Submitted by broccoli, also found by 0xsanson and cmichel_
#### Impact
In the `IndexPool` contract, `flashSwap` does not work.
The callback function is called prior to token transfer. The sender won't receive tokens in the call... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Disable Graphql Introspection
### Description
## GraphQL Endpoint Introspection
The GraphQL endpoint for the wallet (here) currently has the introspection feature enabled. Introspection allows clients to query the GraphQL schema to discover its structure, including types, queries, mutations, and subscriptions... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Insufficient Validation of Token Addresses in Pool Initialization
### Description
**Severity**: Low
**Status** : Acknowledged
**Description** :
The `Core.initPool` function in the given smart contract lacks necessary validations to ensure the distinctiveness of `_ceToken` and `_debtToken` (debt token) 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 | low | other | true | false | ## Low: Calculation of auction expiration time depends on an approximation of seconds per block
### Description
The auction expiration formula uses an approximation of the number of blocks mined per day on the Ethereum blockchain. This number can change across different blockchains and from day to day. The current 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 | oracle | false | false | ## Low: Loops can be simplified
### Description
Several loops can be simplified:
Th loop can be in range (i, MAX_COINS): https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/CurveStableSwapFactoryNG.vy#L511.
There is no need to get the oracle price for the LP token:
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 | medium | liquidation | true | false | ## Medium: When underlying collateral tokens are paused, orders can't be canceled
### Description
When underlying collateral tokens are paused (e.g. USDC), orders can't be canceled, and will be executed immediately after unpause
### Impact
If the order was a market increase order, the user gets a free look into futur... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RedemptionVaultWIthBUIDL does not redeem full balance if BUIDL balance is less than 250k post transaction.
### Description
RedemptionVaultWIthBUIDL does not redeem full balance if BUIDL balance is less than 250k post transaction.
### Impact
1. Lock of BUIDL token in RedemptionVaultWIthBUIDL contract.
2. Di... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Current Market owner may not receive no-show bond after initial report
### Description
All market creators stake a no-show bond (paid in REP tokens) upon creating a market, which is to be automatically returned if the designated reporter reports a tentative outcome within the first 24 hours after the [market’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 | gas | storage | true | false | ## Gas: `ConfigurablePause.sol` - Save gas by using uint48
### Description
https://github.com/solidity-labs-io/kleidi/blob/1a06ac16bc99d0b4081281329d03064c3737f5e4/src/ConfigurablePause.sol#L15-L23
u48 is plenty and will allow one slot for all 3 values | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent evc ownership check in pull and push token can make user lose funds
### Description
In the `StakingRewardStreams` contract, we have the functions `StakingRewardStreams::stake()` and `StakingRewardStreams::unstake()` to stake and unstake the rewarded tokens respectively.
When we call the `Staking... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing RegisterAminoCodec Implementation in Regulation Module
### Description
The **RegisterLegacyAminoCodec** method in the **AppModuleBasic** struct of the regulation module is currently empty. This means that the module's types are not being registered with the **LegacyAmino** codec, which could lead to 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 | access-control | false | false | ## Low: iOS - LACK OF JAILBREAK DETECTION MECHANISM
### Description
The iOS application lacks anti-jailbreak mechanisms, exposing it to potential exploitation by adversaries. Jailbreaking allows attackers to bypass the inherent restrictions of the iOS operating system, enabling actions such as reverse engineering, app... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LP deposit can be DoS
### Description
## Vulnerability Report
## Context
Lottery.sol#L722-L726
## Finding Description
Attacker can DOS LP deposit functionality by risking a very low amount as shown below.
## Impact Explanation
**High**: Since the protocol will lose any more LP deposits, LP stakes will 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 | token | true | false | ## Gas: Redundant allowance and balance check before transfer
### Description
In `VeloDeployFactory._prepareToken`, prior to transferring tokens from `msg.sender`, we check whether the allowance to `address(this)` and `balanceOf` the sender are sufficient to execute the transfer, reverting if the amounts are insuffici... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Reentrance is possible if tokens with hooks (ERC777, etc.) are used
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In Contract WaveContract.sol, the method executeRuffle(...) sends rewards to the winner but if the reward token is ERC77& or any token with hooks, the winner can 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... | cyfrin_structured | low | initialization | true | false | ## Low: `public` functions not used internally could be marked `external`
### Description
`public` functions not used internally could be marked `external`:
- Found in contracts/protocol/beefy/StratFeeManagerInitializable.sol [Line: 190](contracts/protocol/beefy/StratFeeManagerInitializable.sol#L190)
```solidity
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS of Rental stopping mechanism
### Description
The `Guard::updateHookStatus` function is designed to allow protocol administrators to manage the status of hooks within the system. Hooks serve as essential components that customize and control flow of transactions within the protocol.
The vulnerability oc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid `DISPUTED_L2_BLOCK_NUMBER` is passed to VM
### Description
The span of the game tree at split depth is far larger than the length between the starting block and the claimed block. When `starting block + trace index + 1 > claimed block`, honest party should continue to commit to the root of the claimed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Misguided Zero-Value Checks for uint256
### Description
Since `uint256` cannot be negative, the check `_amount < 0` is inherently impossible. This leaves only the possibility of _amount being equal to zero as a valid check.
https://github.com/code-423n4/2024-04-renzo/blob/519e518f2d8dec9acf6482b84a181e403070... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | false | ## Low: Consolidate `DECIMAL_PRECISION` used in three contracts into one shared constant
### Description
Consolidate `DECIMAL_PRECISION` used in three contracts into one shared constant:
```solidity
core/StabilityPool.sol
21: uint256 public constant DECIMAL_PRECISION = 1e18;
dependencies/BabelBase.sol
11: uint2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overflow can still happen when calculating `priceX8` inside `poolMatchesOracle` operation
### Description
`poolMatchesOracle` is used to compare price calculated from uniswap v3 pool and chainlink oracle and decide whether rebalance should happened or not. `priceX8` will be holding price information calculate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | logic-error | true | true | ## Low: Asymmetric gauge unregistration can result in misallocation of tokens
### Description
The reward speed preservation logic in the `BenqiCoreModule` contract enables indefinite QI token distributions for markets associated with asymmetrically unregistered or otherwise expired supply/borrow gauges. Specifically, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: calculateDTokenAddress is not compatible with zkSync
### Description
The `calculateDTokenAddress` function in the current implementation calculates the address of the DToken contract using Ethereum's standard address derivation method. This method is based on the `keccak256` hash of the deployer's address and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `++i`/`i++` should be `unchecked{++i}`/`unchecked{++i}` when it is not possible for them to overflow, as is the case when used in `for`- and `while`-loops
### Description
1. File: src/AxelarGateway.sol (line [225](https://github.com/code-423n4/2022-04-axelar/blob/f1c8bfc16f82a27797f61cb3a310c0f936dce567/src/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 | token | true | false | ## High: Unintended behavior in recipe orderbook for null Weiroll Markets
### Description
If the provided order to `fillLPOrder` has a `fillAmount == 0`, any order will proceed past the following code block:
```solidity
bytes32 orderHash = getOrderHash(order);
if (fillAmount > orderHashToRemainingQuantity[orderHash])... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | initialization | true | false | ## Low: The `savedProfit` mapping will always return zero
### Description
When a DAO member calls [`MembershipERC1155::claimProfit`](https://github.com/OneWpOrg/audit-2024-10-oneworld/blob/416630e46ea6f0e9bd9bdd0aea6a48119d0b515a/contracts/dao/tokens/MembershipERC1155.sol#L138-L147), their current profit is calculated... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Recent Solidity Versions May Not Be Supported By Layer 2 Systems
### Description
Solidity versions starting from 0.8.25 use the `MCOPY` op-code by default. The op-code `MCOPY` will cause a revert if it is called on chains that are not upgraded to the EVM version Cancun. The Solidity operations that include ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: TWAP intervals should be flexible as per market conditions
### Description
The protocol is using the same `TWAP_INTERVAL` for both `weth-morpho` and `weth-reward` token pools while their liquidity and activity might be different. It should use separate appropriate values for both pools.
### Recommendation
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BURN ADDRESS SHOULD BE DEFINED AS DIFFERENT THAN SYSTEM CONTRACTS
### Description
The **CoreDAO** chain implements a number of dedicated built-in system contracts. Unlike smart contracts deployed by blockchain users, built-in system contracts were deployed at genesis time. The system contracts are increasin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Chest Reference In Lottery System
### Description
When users want to participate in the lottery, they need to burn their Borpa tokens. This is handled by the `burn()` function of the BorpaToken contract. It calls the `creditEntries()` function from the ChestManager contract to record the user's lotte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchained initializers should be called in `PausableOwnable::__PausedOwnable_init` instead
### Description
While not an immediate issue in the current implementation, the direct use of initializer functions rather than their unchained equivalents should be avoided. These have been implemented and used in some ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: `SecuritizeOnRamp` doesn't provide a mechanism for investors to invalidate their nonces
### Description
`SecuritizeOnRamp` has no function allowing investors to invalidate or increment their own nonce. The nonce only increments when `executePreApprovedTransaction` successfully executes.
### Impact
If an inves... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Decimals | true | true | _Submitted by berndartmueller, also found by WatchPug_
Withdrawing ETH collateral via the `withdrawCollateral` function using `type(uint256).max` for the `_amount` parameter reverts the transaction due to `_asset` being the zero-address and `IERC20Detailed(_asset).decimals()` not working for native ETH.
#### Proof of... | Code4rena | 3 | Sturdy |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calling `StakingVault::notifyRewardAmount` on empty vault leaves ILV stuck
### Description
**Description:** `StakingVault::notifyRewardAmount` is the vault’s reward hook that updates the rewards-per-share accumulator (`accIlvPerShare`) so stakers can later claim ILV. It is called by [`L2RevenueDistributorV3::_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missed messages in exceptions
### Description
**Description**
Token.sol. In case of discrepancy in requirements the error will not return a description of
exception. It will make it harder to reveal a cause of revert.
**Recommendation**:
Use messages in “require” statements to add a description of exception... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: compiler crash during raise codegen
### Description
There is a crash bug when vyper generates raise code.
### Impact
Low Risk | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USDLStrategy.\_swapPLSforUSDL() calls can be sandwiched
### Description
The `USDLStrategy` contract implements the function `_swapPLSforUSDL()`:

This function is used to swap the PLS tokens received 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 | other | false | false | ## Low: Pre-conditions not added
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In contract AggregateVault, functions openRebalancePeriod and closeRebalancePeriod have no preconditions added and todo comments left to add them.
**Recommendation**:
Remove the todo comments and 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 | access-control | true | false | ## Medium: `ownerMintUsingTokenId` can brick the whole contract
### Description
[contracts/RuniverseLandMinter.sol#L392](https://github.com/code-423n4/2022-12-forgotten-runiverse/blob/00a247e70de35d7a96d0ce03d66c0206b62e2f65/contracts/RuniverseLandMinter.sol#L392)
With the function `ownerMintUsingTokenId`, it is poss... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Old Distributions May Still Exist After Updating
### Description
Within the [`YRizStrategy` contract](https://github.com/radiant-capital/riz/blob/65ca7bb55550d30388e2b2277fefe5686ab7e4e8/src/vaults/YRizStrategy.sol), the [`setFullPoolDistributions` function](https://github.com/radiant-capital/riz/blob/65ca7bb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Free flashloans due to the lack of fee or interest charges
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
The `LiquidityPool.sol` is designed for LP providers to deposit tokens which can then be borrowed by `marginAccounts` through the function `LiquidityPool::bor... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.