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 | overflow | false | false | ## Medium: `maxDeposit()` uses `yieldVault.maxDeposit()` but `_depositAndMint()` uses `yieldVault.mint()`
### Description
`maxDeposit()` might return a value greater than can be deposited, violating EIP-4626.
### Proof of Concept
[`maxDeposit()` returns up to `yieldVault.maxDeposit(address(this))`](https://github.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 | initialization | true | false | ## Low: Account Count Validation Mismatch in `new_base_crncy` Instruction
### Description
**Description:** The `new_base_crncy` instruction has an inconsistency between the declared minimum account count and the actual number of accounts required.
The function comment and implementation both indicate that `9` account... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ReentrancyGuard._status` Is Not Initialized in the `P2pYieldProxy.initialize` fucntion.
### Description
In the `P2pYieldProxy.initialize` function, the `_status` variable is not set to the `_NOT_ENTERED` state.
### Recommendation
We recommend explicitly initializing `_status` to `_NOT_ENTERED` inside the `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... | cyfrin_structured | medium | input-validation | true | false | ## Medium: Operator precedence Issue during points program expiration validation in `change_points_program_expiration`
### Description
In `change_points_program_expiration`, the validation for `new_expiration_time` uses `!data.new_expiration_time < root_state.points_program_expiration` instead of `!(data.new_expiratio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add checks to xcall()
### Description
## Security Vulnerability Report
**Severity**: High Risk
**Context**:
- BridgeFacet.sol#L240-L339
- BridgeFacet.sol#L400-L419
- Executor.sol#L142-L280
**Description**:
The function `xcall()` does some sanity checks; nevertheless, more checks should be added to prev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interactions preceding the effects
### Description
**Severity**: Low
**Status**: Resolved
**Description**
dpnm_sc.sol - in activate, dealing with smart contracts requires care, that's why we are obliged to abide by certain patterns. One such pattern is checks-effects-interactions. Method activate does not 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 | false | false | ## Low: An arbitrary length can be specified in different functions
### Description
Different hashing functions allow specifying a length as a parameter:
- `function sha2(bytes memory message, uint256 offset, uint256 length, uint64[8] memory h) internal pure`
- `function sha384(bytes memory message, uint256 offset, uin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Anyone can call `VVVVCTokenDistribution::claim` function by utilizing `ClaimParams` signed by the `signer`
### Description
Legimate users can claim their reward with the `ClaimParas` signed by the signer. However, The `VVVVCTokenDistribution::claim` function just checks the validity of the signed `params` 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 | low | other | false | false | ## Low: `SwapOperations` computes the swap fees without accounting for how fees will alter reserves
### Description
**Impact**
At a broadstroke The formula to compute the post-swap reserves used by `getAmountsOut` and `getAmountsIn` is as follows:
However, the math is not accounting for fees that will be taken on 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 | low | other | false | false | ## Low: Lack of Specific Functions and Testing for Solana Function Selectors in PhotonFunctionSelectorLib
### Description
The `PhotonFunctionSelectorLib` library provides functionality for encoding and decoding function selectors, including support for Solana function selectors. However, there are a few areas that cou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Loss Due to Unrefunded Excess when Purchasing NMT
### Description
**Update**
The client fixed the issue in commit `bbd804a7a2243020a03515dae9df5af153b6d7e1` by returning any excess tokens to the user.
**Alert**
Note that because [NETM-21](https://certificate.quantstamp.com/full/net-mind/e7dfdc3c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | false | ## Low: `stringToUint("")` Returns `0` Instead of Reverting
### Description
_Resolved_
The current implementation of `StringUtils.stringToUint` returns `0` when given an empty string (`""`). This can mask malformed or missing inputs — e.g., in `_processRequest`, `args[2]` could be an empty string, causing `houseId` 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 | other | true | false | ## Low: zNS - Avoid no-ops ✓ Fixed
### Description
Code paths that are causing transactions to be ended with an ineffective outcome or no-operation (no actual state changes) are not advisable, as they consume more gas, hide misconfiguration or error cases (e.g. adding the same controller multiple times), and may impac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PLACE VARIABLE DEFINITION AT THE BEGINNING OF THE CONTRACT
### Description
Regarding [Solidity Style Guide](https://docs.soliditylang.org/en/latest/style-guide.html), the variable definition can be moved to the beginning of the contract.
Code Location
-------------
### Recommendation
**SOLVED:** The `Moonwel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No slippage or deadline control for swapping while stability burning
### Description
No slippage or deadline control for swapping while stability burning
### Impact
User will be affected by unintended and unhandled slippage, potentially affecting the funds they get back from the swap
### Recommendation
Al... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insecure initialization functions
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
Throughout the codebases, there are many initialization functions that do not have any access control.
This means that an attacker can initialize them before the true caller does.
So... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Fee Calculation for Decrease Position with Referrer Rewards
### Description
In the `modifyPosition` function, within the `!isIncrease && !liq` block, the calculation of fees distributed to the Liquidity Provider (LP) and Treasury includes the `usdcRewardAmount` rewarded to the referrer.
This beha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Persistent Contract Call revert prevents finalizing a ballot
### Description
The `DAO._executeApproval` function does not handle an external contract call error:
Given an approved `CALL_CONTRACT` ballot that can be finalized, the ballot won't be marked as finalized if the external contract call (from abov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract deployment restriction can be bypassed
### Description
### Finding description and impact
The `Create` and `Create2` message handlers check the sender is allowed to deploy a contract by calling `assertAllowedPublishers(..)` [here](https://github.com/initia-labs/minievm/blob/744563dc6a642f054b4543d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Large decimal of `referenceToken` causes overflow at oracle price calculation
### Description
The price calculation at the `V3Oracle.sol` will revert upon reaching certain level when `referenceToken` is used with high decimal value (e.g. 18). The revert (specifically happening when calling `getValue()`) wou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Vault depositors can be front-ran and lose their funds
### Description
**Impact:**
High, as a theft of user assets is possible
**Likelihood:**
Medium, as it works only if the attacker is the first vault depositor
**Description**
The following attack is possible:
1. The `LendingVault` contract has just bee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unnecessary events and errors
### Description
The 4626.sol contract is a copy of OpenZeppelin's implementation. We can notice some of the events/errors from the OZ implementation are still present but remain unused.
### Recommendation
Consider removing these unnecessary parts of the contract to keep it clean ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Issue While Starting New Epoch In Farming
### Description
## Epoch Management in thala_protocol/farming.move
The `end_epoch` function in `thala_protocol/farming.move` ends the currently running epoch in order to start a new epoch.
## Behavior
- If an epoch ends earlier than `epoch_end_seconds`, the code... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: manipulation of the Utilization Rates using the locker.sol function deposit and redeem to Force Liquidations
### Description
A user with a significant number of *NFTs* can manipulate the `totalsupply` of *ERC20* tokens to indirectly push protected listings towards liquidation by influencing the `utilization... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Deployment Audit] Usage of Temporarily Disabled Features
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: We will be revisiting this topic and adding the signature checks back in once we figure out how to do this properly and we will use `recove... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol is will not work on most of the supported blockchains due to hardcoded WETH contract address.
### Description
The WETH address is hardcoded in the `Swap` library.
### Impact
Protocol will not work on most of the supported blockchains.
### Recommendation
The WETH variable should be immutable in 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... | cyfrin_structured | low | token | true | false | ## Low: Use constants instead of magic numbers
### Description
Use constants instead of magic numbers; 1000000, 1e6 and 10 ** 6 are all identical and should declared in a constant that is imported into the various files.
```solidity
TokenBank.sol
111: if (newFee > 1000000) revert InvalidValuePassed();
252: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Inconsistent role ID in `cardAllocationPool` initialization
### Description
_Acknowledged_
In the `CardAllocationPool` contract, the assignment of the `redeemManagerRoleId` is done during the initialization phase, requiring the role ID to be specified explicitly.
This approach differs from other contracts, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Insufficient reward balance check
### Description
The `notifyRewardAmount` function extends the reward finish time with the following balance check:
```solidity
require(
rewardRate * duration balance'
);
```
The intended functionality is to transfer the needed reward amount of ZK tokens into the ZtaKe contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Wrong debt calculations during withdrawal
### Description
**Severity:** Critical
**Path:** Crate.sol
**Description:** The functions `safeWithdraw`, and `safeRedeem` have inconsistent debt calculation logic.
A bad actor can call `safeWithdraw/safeRedeem` function with such parameters that revert `swapVirtua... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IndexTemplate.sol Wrong implementation allows lp of the index pool to resume a locked PayingOut pool and escape the responsibility for the compensation
### Description
## Handle
WatchPug
## Vulnerability details
Based on the context, the system intends to lock all the lps during PayingOut period.
However... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can sell their market seat without paying loss coverage
### Description
**Description:** When users incur loss, its covered from available insurance funds and is stored and tracked inside `taker_info4.loss_coverage`, this is what user owes to protocol before he closes his position, because insurance 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 | initialization | false | false | ## Medium: Initialization can be frontrun to set the owner
### Description
Contracts utilizing an initialization function are vulnerable to frontrunning attacks during deployment. An attacker could intercept the deployment process and assign themselves as the contract owner, as ownership is granted to the msg.sender. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Unnecessary Multiplication by fixedPoint
### Description
The map variable `executionPrice` stores the current execution price as an `int256`, which is fetched from the `ChainlinkOracleWrapper.sol` contract. The price returned by `ChainlinkOracleWrapper` is in WAD (10^18) units.
```solidity
int256 latestPrice ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `PreDepositVault::initialize` should not be exposed as public
### Description
`PreDepositVault::initialize` is currently exposed as public. Based on the `pUSDeVault` and `yUSDeVault` implementations that invoke this super function, it is not intended. While this does not appear to be exploitable or cause any 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 | oracle | false | false | ## Low: Stale price data may cause incorrect round outcomes
### Description
_Resolved_
In the endRound function, the contract retrieves the latest value from the DIA price feed, but does not check whether the price is fresh or from before the round's end time (startTime + 24 hours). As a result, it is possible for 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... | solodit_api | high | other | true | false | ## High Risk Report
## Severity
**High Risk**
## Context
`xPYT.sol#L179`
## Description
Conceptually, the `xPYT.pound` function performs the following steps:
1. Claims `yieldAmount` yield for itself, deposits the yield back to receive more PYT/NYT (Gate.claimYieldEnter).
2. Buys `xPYT` with the NYT.
3. Performs a `... | Spearbit | 5 | Timeless |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: View function creates a pointer to storage
### Description
The [`GovernorAlpha` contract](https://github.com/emptysetsquad/emptyset/blob/bf9753ef9cd5b17236036257f290e0d0b850a029/protocol/contracts/src/governance/GovernerAlpha.sol#L27) implements the functionality to propose, vote, and execute proposals.
To k... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero prize locking for single prizes due to implicit condition
### Description
_Resolved_
In the SpinLottery contract, the logic for handling single prize requests contains an implicit condition that could lead to unintended outcomes.
Specifically, when `_prizeCount` is set to `1`, the function returns `rar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unfair pricing of metamorpho share when it is used as collateral in morpho market
### Description
MetaMorpho uses `MorphoChainlinkOracleV2.sol` for fair pricing of the vault's share. However, in the case of a vault that supports **lostAssets** (i.e., no share price decrease feature), if `lostAssets > 0` 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 | medium | other | true | false | ## Medium: processAuction() in VaultAdmin.sol can be called multiple times by keeper if the auction is canceled.
### Description
processAuction() in VaultAdmin.sol can be called multiple times by keeper if the auction is canceled.
### Impact
Why the processAuction should not be called multiple times?
In the first ti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Limitations and Risks for Users in the Fast Bridge Project Severity: Quality Assurance
### Description
**Description:**
The Fast Bridge project allows for the transfer of tokens between the NEAR Protocol and Ethereum networks. However, there are several limitations and risks for users. For example, if there ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Underflow risk in receive() function due to discrepancies between locked and claimed ETH amounts
### Description
Report type: Smart Contract
Target: https://etherscan.io/address/0xd9a442856c234a39a81a089c06451ebaa4306a72
Impacts:
- Temporary freezing of funds for at least 1 hour
- Permanent freezing of fund... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Position value can fall below minimum acceptable quote value when partially closing positions requested to be closed in full
### Description
Source: https://github.com/sherlock-audit/2023-08-symmetrical-judging/issues/12
## Found by
panprog
This is [issue 248](https://github.com/sherlock-audit/2023-06-s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Vulnerable Dependencies
### Description
Sure! Please provide the text you would like to convert to formatted markdown, and I'll assist you with that. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward Distributor implementation uses vulnerable Vyper version
### Description
The reward distributor implementation is currently set to use Vyper 0.2.16. This version contains [a vulnerability that prevents reentrancy locks from working properly](https://github.com/vyperlang/vyper/security/advisories/GHSA-58... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: inefficient implementation of a loop in get_vault_borrowing_power()
### Description
Description
get_vault_borrowing_power() may loop through a large number of array elements, calling external functions on every
single one, leading to significant gas costs.
get_vault_borrowing_power() contains a loop, starting ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Node.redeem() Is Documented to Return Assets Redeemed but Returns Shares Redeemed Instead
### Description
Via `INode.sol`, the `Node.redeem()` function is documented to return the assets redeemed:
```solidity
/// @return assets The amount of assets received
function redeem(uint256 shares, address receiver, ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee market post handler misses to account for gas consumed after taking the gas snapshot, leading to higher refunds and unpaid gas
### Description
### Finding description and impact
Mantra’s `xfeemarket` post handler refunds unspent gas after the transaction is executed. For this, in line `99`, a snapshot ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious actors can exploit user-approved allowances on `VaultRouter` to drain their ERC4626 tokens
### Description
### Finding description and impact
Once a user approves `VaultRouter` to spend their ERC4626 shares, anyone could call `VaultRouter# execute()` to drain the user’s ERC4626 shares.
### Proof o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Malicious User Can DoS The deposit Functionality Temporarily, By Front-Running The `setMaxTotalSupply()` Function
### Description
The `maxTotalSupply` state variable is responsible for setting and limiting the maximum total supply of the Enigma Vault. The operator of the Enigma contract can change the max t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Redundant Event Emissions in Role Updates
### Description
**File(s) affected:**`PowerloomDataMarket.sol`,
**Description:** The `PowerloomDataMarket.updateAddresses()` function emits role update events even when no state change occurs:
* `ValidatorsUpdated` event emitted when adding an existing validator
* ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Greedy Contract
### Description
**Update**
2021-08-03: the admin team decided to leave it unchanged to save gas.
**File(s) affected:**`packages\arb-bridge-peripherals\contracts\tokenbridge\ethereum\gateway\L1WethGateway.sol,packages\arb-bridge-peripherals\contracts\tokenbridge\arbitrum\gateway\L2WethGateway.s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: If rewards are not distributed to some gauges in an epoch, it can lead to incorrect rewards distribution in the next epoch
### Description
Some gauges may receive more rewards, while others may not receive any rewards at all.
### Proof of Concept
In the `VoterUpgradeableV2.notifyRewardAmount` function, 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 | other | false | false | ## Low: Multiple getters for the same state variable
### Description
Several contracts in the Augur code base contain multiple public getter functions for the same state variable. For example:
* In the [`ERC777BaseToken`](https://github.com/AugurProject/augur/blob/9a33c3269e812d0cb66d49b61a72db58e32e4749/packages/au... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bridge integration issues with swapping protocols
### Description
Cross-chain swapping could not occur on chains having long invocation delays since deadline of the swap might expire and become outdated. Consider having custom delays for dapps looking to use bridge. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Missing validator’s registering
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
HordStakingManager.sol, launchNewValidatorWithSSV()
The `removeValidatorFromSSV()` function contains the check on validator to be initialized:
`require(isValidatorInitialized[pubkey], "VNI")`. Howev... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of precision due to rounding
### Description
## Non-Critical Issues Summary
| Number |Issues Details|Context|
|:--:|:-------|:--:|
| [N-01]|Critical Address Changes Should Use Two-step Procedure| 1 |
| [N-02] |Initial value check is missing in Set Functions |4|
| [N-03] |Critical dependencies such as Ope... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Use named imports
### Description
The codebase in some places used named imports but not in others; recommend using named imports everywhere. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interrupted snapshots can lead to inconsistent state
### Description
During the state sync process, Tendermint may choose to stop synchronizing an in-progress snapshot and begin downloading another. If Tendermint is unable to retrieve the next chunk after some time (e.g. because no suitable peers are available... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: optimization by caching array length in `distributeWei` in ProjectDivsDistributor
### Description
**Description**
In contract ProjectDivsDistributor, in function distributeWei, there can be an optimization on saving gas by saving the value of addresses.length in a value in memory, because every time the for l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Input Validation
### Description
Throughout the [codebase](https://github.com/NethermindEth/forta-staking-vault/tree/ce87cffbf813e27cc83157933760b51fa44a1885/), there are some instances in which the lack of input validation could lead to different undesired scenarios:
* The [`delegate` function](http... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Makers can permanently lock JIT penalty revenue from the protocol treasury
### Description
Missing accounting and withdrawal for JIT penalties will cause a permanent lockup of protocol revenue for the protocol treasury as makers who withdraw shortly after adding liquidity will incur a penalty that remains 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... | solodit_api | high | Deposit/Reward tokens | true | true | _Submitted by leastwood_
`ConvexYieldWrapper.sol` is a wrapper contract for staking convex tokens on the user's behalf, allowing them to earn rewards on their deposit. Users will interact with the `Ladle.sol` contract's `batch()` function which:
* Approves Ladle to move the tokens.
* Transfers the tokens to `Conv... | Code4rena | 4 | Yield |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider Defining Commission Scaling Factor as a Constant
### Description
The [`commission_scaling_factor`](https://github.com/longgammalabs/hanji-contracts/blob/09b6188e028650b9c1758010846080c5f8c80f8e/src/OnchainLOB.sol#L51) is set as an `immutable` variable, but it is typically a constant value (e.g., `1e6`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Missing Check | false | false | **Impact:**
Low, as methods do not have `whenNotPaused` modifier
**Likelihood:**
High, as it is certain that contract can't be paused at all
**Description**
The `Organizer` smart contract inherits from OpenZeppelin's `Pausable` contract, but the `_pause` and `_unpause` methods are not exposed externally to be callab... | Pashov Audit Group | 5 | Parcel Payroll |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault721.tokenURI does not comply with ERC721 - Metadata specification
### Description
According to the standard, the `tokenURI` method must be reverted if a non-existent tokenId is passed. In the Vault721 contract, this point was ignored. What leads to a [violation of the EIP721 spec](https://eips.ethereum... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Change References to SafeERC20.sol toSafeTransferLib.sol
### Description
## Severity: Low Risk
## Context
- Divider.sol#L6
- GClaimManager.sol#L5
- Periphery.sol#L5
- BaseAdapter.sol#L5
- CAdapter.sol#L6
- CropAdapter.sol#L6
- LP.sol#L5
- Pool.sol#L4
- Vault.sol#L4
- Zero.sol#L5
- BaseFactory.sol#L6
- WstETHA... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | token | true | false | ## Medium: `RewardsDistributor` doesn't correctly handle deposits of fee-on-transfer incentive tokens
### Description
`the kenneth` stated in telegram that Fee-On-Transfer tokens are fine to use as incentive tokens with `RewardsDistributor`, however when receiving Fee-On-Transfer tokens and storing the reward amount 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 | rounding | true | false | ## Low: `SystemConfig::MarketPlaceInfo.tokenPerPoint` does not take into account the possibility points will be much larger than their equivalent tokens with decimals.
### Description
if the token that represent the points will have low decimals, and will represent much lower amount than points, the protocol will not ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unreachable code and unnecessary return of bool value.
### Description
**Description**
Function addReward, Line 294 contains return statement, which is never reached, since
function _payMe() always either returns true or reverts. Also, there is no need for the function
addReward to return bool, since this fun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Incomplete storage cleanup on full withdrawal
### Description
_Resolved_
In the `locked_funds.move` function `update_user_collateral_coin_types()` when users withdraw all tokens of a specific type, the tracking list is updated, but the underlying `BalanceStore` dynamic field entry is not removed from storage.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It's better to emit after all processing is done
### Description
* contracts/contracts/core/connext/facets/AssetFacet.sol:
* contracts/contracts/core/connext/facets/RoutersFacet.sol:
* contracts/contracts/core/connext/helpers/ConnextPriceOracle.sol:
* contracts/contracts/core/connext/helpers/SponsorV... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | false | **Severity:** High
**Context:** [`Boost.sol#L35-50`](https://github.com/getmetafinance/meta/blob/00bbac1613fa69e4c180ff53515451df4df9f69e/contracts/reward/Boost.sol#L35-50)
**Description:**
In the rewards contracts(`StakeRewards.sol`, `MintRewards.sol`), the staking rewards are multiplied by the boost factor when the... | Hans | 5 | Meta |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Importing Debugging Libraries in Production Code Severity: Quality Assurance
### Description
**Description:**
The contract imports the Hardhat console library import "hardhat/console.sol";. This library is used for debugging during development and should not be included in production code. Including this libr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Integer Overflow
### Description
## Integer Overflow Vulnerability in Token Transfer Incentives
There is a potential for integer overflow in the mechanism for calculating incentives for token transfers. The code tracks an `incentive_counter`, representing the cumulative incentives earned, and checks whether ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TellorOracle freshness duration configuration
### Description
**Severity:** Low
**Path:** src/oracles/providers/TellorOracle.sol#L55
**Description:**
The `TellorOracle.sol` contract currently uses a constant value (TELLOR_PRICING_FRESHNESS) set to 15 minutes to determine the freshness of the Tellor price da... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Enable the optimizer
### Description
**Description:** [Enable the Foundry optimizer](https://dacian.me/the-yieldoor-gas-optimizoor#heading-enabling-the-optimizer) in `foundry.toml`:
**Avant:**
Fixed in commit [871140d](https://github.com/Avant-Protocol/Avant-Contracts-Max/commit/871140d5175f2f7ca7de7be960b83... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function `disableFee()` can corrupt return value of `fee()`
### Description
For some reason `disableFee()` can set `_opt.feeDisable = true`:
It will result in a default value instead of 0 returned from `fee()` because `_opt.fee == 0` and `_opt.feeDisable == true`:
_Consider removing function `disableFee()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Staking Dependency Reduces User Influence in Migration
### Description
The owner proposes a new migration destination, users vote to accept it or remain with the current adapter but after an owner has proposed a new adapter there's no going back due to the `notMigrating()` and `isMigrating()` modifiers and how... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Optimizing the for loop
### Description
_Submitted by hrkrshnn, also found by GalloDaSballo, cmichel, gpersoon and shw_
The for loop can improved, here is a diff:
The other implementation creates unnecessary copies in memory. And overwrites slots unnecessary (something like `sstore(slot,sload(slot))`). The ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused 'Finished' auction state.
### Description
**Description**
Unused auction state. In the enum 'AuctionState', the 'Finished' field isn't used anywhere further.
programs/auction_house/src/auction.rs
Line. 78.
**Recommendation**
The 'Finished' auction state should be used further or removed.
**Re-audit ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Conditions' order impact
### Description
The current implementation of the conditions check relies on the condition order, which makes the system more vulnerable to the owner's faults and makes the protocol less flexible.
https://github.com/MetaLex-Tech/LeXscrow/blob/94ca277528bb25b8421dc127941c18915144eb29... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Potential infinite loop
### Description
The `get_amounts_out` and `get_amounts_in` functions in the `libraries/math/src/pool_math.sw` file contain while loops that iterate over the entire length of the `pools` array. This design allows for an arbitrarily large number of iterations, potentially leading to exces... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Minted `ceTokens` not added to users list if minted using `Repay()`
### Description
**Severity**: High
**Status**: Resolved
**Description**
In Contract Core.sol, the method `repay(...)` allows a user to deposit any extra amount more than the repay amount. This deposit mints `ceTokens` for the user but the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing Docstrings
### Description
Throughout the [codebase](https://github.com/euler-xyz/ethereum-vault-connector/blob/69626eba206ae301b919f021e71b49feaf7ea8f5/src/), there are multiple instances of code that does not have docstrings. For instance:
* The [`name` state variable](https://github.com/euler-xyz/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Balancing mechanism will often be imprecise
### Description
This is a catch all issue to discuss the areas in which the formulas used for balancing, as well as the implementation realities to lower gas fees, cause the optimizer to misallocate funds between Convex and StakeDAO.
It is clear that the purpose ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Additional assertions to track voting power changes in `Uni`
### Description
As already explained above, voting power is a very important aspect of `UNI` token, which, on the one hand, is influenced by the introduction of `UniStaker` (via surrogate delegations), and on the other hand voting power changes ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Include Pending In Unstake
### Description
## Native Pool Unstake and Vulnerabilities
The `native_pool::burn_ticket_non_entry` function employs `native_pool::unstake_amount_from_validators` to collect SUI for returns to the user. However, it does not consider the coins held in `NativePool::pending`.
## 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 | overflow | true | false | ## Low: Arithmetic underflow when `startTime` is in the future
### Description
_Resolved_
The `Airdrop` contract allows setting `startTime` to a future timestamp during initialization:
However, when users call `claim()` or `getClaimableAmount()` before `startTime`, the elapsed time calculation causes an arithmetic ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: The tx_is_well_formed and mc_transaction_core::validation::validate functions panic on cra�ted input
### Description
Calling `tx_is_well_formed` or `mc_transaction_core::validation::validate` with crafted data results in an “attempt to subtract with overflow” panic in debug mode. The panic will not occur in pr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: costs are severely underpriced for certain WASM instructions which can lead to network DoS
### Description
Insufficient gas pricing for complex WebAssembly operations will cause a denial of service vulnerability for the SEDA Protocol as malicious actors will exploit underpriced operations like TableGrow, Memo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of parallelization for batches allows attackers to delay batcher from relaying data
### Description
If withdrawals are submitted one after another, this will delay batches from being sent to the data availability provider, as each withdrawal that is submitted is processed sequentially. This means any t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Validators Array Length Has to Be Updated When the Validator Is Alienated.
### Description
In GeodeFi when the node operator creates a validator with incorrect withdrawal credentials or signatures the Oracle has the ability to alienate this validator. In the process of alienation, the validator status is up... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 inline documentation
### Description
The repository's code contains limited comments (inline documentation), and critical functions lack adequate explanations. This makes understanding the protocol's operations difficult when reviewing the code.
### Recommendation
Ensure every function within the pro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicated calls to file a pip in spotter contract
### Description
The `DSSAddIlkSpell` contract twice files a pip in the spotter contract. The deploy function takes a list of addresses to call and arguments to execute and change. However, the two config lines highlighted in figure 15.1 execute the same call to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Closedown condition is inconsistent with the stated documentation of majority agreement
### Description
[Documentation](https://hackmd.io/CPINxScvSE2vo-t8mwY_Og#Risks) states the following:
_"Closing the Contract: If the majority of the pets agree, they can vote to close the contract. Once closed, the remaini... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Minting and burning synths exposes users to unlimited slippage
### Description
_Submitted by TomFrenchBlockchain, also found by cmichel_
#### Impact
The amount of synths minted / assets received when minting or burning synths can be manipulated to an unlimited extent by manipulating the reserves of the pool... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant storage array
### Description
In Goldsand.sol, we have a `funders` storage array that is pushed to every time a new user calls `fund`. This array isn't used for anything other than to output the array length in `getFundersLength`. We can save about 22,100 gas for each fund call from a new user if 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 | medium | other | false | false | ## Medium: Missing Proof Validation
### Description
The [`Verify` function](https://github.com/Consensys/gnark/blob/e2040836eb41a40df04a4a3648764b07a0fa12a2/backend/plonk/bn254/verify.go#L46) does not validate the following:
* Whether the polynomial openings are valid field elements
* Whether the public witness valu... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.