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... | cyfrin_structured | low | token | true | false | ## Low: Save 2 storage reads in `StabilityPool::enableCollateral`
### Description
Save 2 storage reads in `StabilityPool::enableCollateral` by:
1) Reading from `queueCached.firstSunsetIndexKey` then writing after:
```diff
- delete _sunsetIndexes[queue.firstSunsetIndexKey++];
+ delete _sunsetIndexes[queueCached.firstS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DONATE CALL BEFORE DEPOSIT LEADS LOSS OF POSSIBLE REWARDS
### Description
If the `totalSupply()` is zero for the Alluvial, the `donate()` function will not mint any rewards.
The documentation explains the use of `donate` function as below:
Allows anyone to add ethers to river without minting new shares
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 | medium | token | true | false | ## Medium: Issue when handling native ETH trade and WETH trade in DODO RouterProxy#externalSwap
### Description
Lack of logic to wrap the native ETH to WETH in function externalSwap
### Impact
A lot of method that does not use WETH to settle the trade will not be callable.
### Recommendation
We recommend the project... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Badly named constant `BIP`
### Description
[MathUtils Line 6](https://github.com/code-423n4/2023-10-wildcat/blob/main/src/libraries/MathUtils.sol#L6)
### Issue Description
The variable `BIP` is used to represent the maximum BIP in the protocol, where at most different rates can be set to 10,000, equivalent 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 | high | cross-chain | false | false | ## High: Wrong trading pricing calculations
### Description
_Submitted by 0xsanson, also found by shw_
In the `Pricing` contract, an agent can manipulate the trading prices by spamming a high amount of trades.
Indeed an agent can create a high amount of orders at an arbitrary price and with a near-zero amount (so th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Tests do not work
### Description
Currently, the protocol's tests do not work, making it impossible to check test coverage and prepare PoCs.
### Recommendation
We recommend prioritizing, preparing, and setting up all the tests before the protocol deployment. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Limitation in Asset Transfer Capabilities During Contract Deployment in GaslessFactory
### Description
The `GaslessFactory` contract facilitates the deployment of new contracts through two primary functions: [`deploy`](https://github.com/fireblocks/fireblocks-smart-contracts/blob/cf1bb85ea84cd9ce9b509e285e835b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fail fast in `BeefyVaultConcLiq:withdraw`
### Description
**Description:** In `BeefyVaultConcLiq:withdraw` the `minAmount0` and `minAmount1` [slippage check](https://github.com/beefyfinance/experiments/blob/14a313b76888581b05d42b6f7b6097c79f3e65c6/contracts/protocol/concliq/vault/BeefyVaultConcLiq.sol#L225) sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `claimReward`/`withdraw` allowed to execute before staking starts
### Description
https://github.com/defistarter/contracts/blob/9ffe009ee6047ced669711dde14fe38483abdf7e/StakingPool.sol#L259
https://github.com/defistarter/contracts/blob/9ffe009ee6047ced669711dde14fe38483abdf7e/StakingPool.sol#L245
These met... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RToken issuance/redemption throttles can be monopolized by Bundlers and Batchers
### Description
When the RToken issuance and redemption are close to their limits, every upcoming issuance and redemption creates opportunity for a new operation in opposite direction to happen in the form of restored amount avail... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards can be stolen when `IncentivizedERC20` tokens are recursively provided as liquidity
### Description
**Description:** By virtue of the composable nature of DeFi, it is common to have wrapped liquidity tokens that encapsulate some form of yield or other tokenized incentives in a manner similar to Valkyr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Redundancy
### Description
## Code Review Summary
## Findings
1. **Unneeded Constants**
The `BASE_SEED_USER_METADATA` and `USER_METADATA_SIZE` constants in `kamino_lend_cpi` are not required.
2. **Redundant Accounts in Instruction**
The `kamino_reserve` and `emission_token_program` accounts in 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 | false | false | ## Low: Lack of Validation That Contract Receiving Messages Supports ITeleporterReceiver Interface
### Description
A contract that would like to receive messages from the `TeleporterMessenger` contract [must implement the `receiveTeleporterMessage` function](https://github.com/ava-labs/teleporter/blob/253b833518aa7a64... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Storage pattern inconsistency exposes `registry` variable
### Description
Currently, `registry` is only updated by calling itself using `setRegistry`. However, the `RegistryAdapter` contract stores the `registry` storage variable in `slot 0` without using the ERC-7201 namespaced storage pattern that's used thr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Discrepancy between Natspec and implementation affects readability
### Description
## Code Review Recommendations
## Context
See each particular case below.
## Description
### Case 1: MultiRewards.sol#L276
- **Issue**: The comment "Hook called in getRewardForUser function after updating rewards" is misleadi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Slippage | true | false | Source: https://github.com/sherlock-audit/2023-01-uxd-judging/issues/429
## Found by
HollaDieWaldfee, hansfriese
## Summary
Users can lose funds while rebalancing.
## Vulnerability Detail
The protocol provides two kinds of rebalancing functions - `rebalance()` and `rebalanceLite()`.
While the function `rebalance()... | Sherlock | 4 | UXD Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dead Code
### Description
## SessionKeyValidator Code Review
In `SessionKeyValidator`, `_getChainId` remains unutilized throughout the entire code base. The presence of such code may negatively impact the code base’s readability and maintainability.
## File Path
`plugin/validator/SessionKeyValidator.sol`
##... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Avoid _shadowing_ inherited state variables
### Description
`_tokenSender` is shadowed.
### Recommended Mitigation Steps
Avoid using variables with the same name, including inherited in the same contract. If used, it must be specified in the NatSpec comments. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No need to cast to `address payable` in `_sendFunds`
### Description
Casting `address` to `address payable` is only needed when using `send` or `transfer`, so it is not needed here | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 inflation attack mitigation in `StakedYuzuUSD`
### Description
_Acknowledged_
The `StakedYuzuUSD` contract is vulnerable to an inflation attack where an attacker can manipulate the share price by directly donating `yzUSD` to the contract.
Since the `_assetDecimalOffset` will be `0` and the asset's 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 | medium | storage | true | false | ## Medium: `Market::configureConnectedVaults` Will Always Fail with Array Out of Bounds Error
### Description
`Market::configureConnectedVaults` attempts to add vault IDs to a new enumerable set at index `connectedVaults.length` whithout first expanding the array's storage slots, causing an array out of bounds error.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Unsafe ABI Encoding
### Description
It is not an uncommon practice to use `abi.encodeWithSignature` or `abi.encodeWithSelector` to generate calldata for a low-level call. However, the first option is not typo-safe and the second option is not type-safe. The result is that both of these methods are error-prone ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary deadline requirements
### Description
Some functions unnecessarily require transactions to be minted within a deadline:
1. **MarginalV1LBSupplier.createAndInitializePool()**: The function deploys new contracts and doesn’t rely on an external state, thus there are no time-sensitive dependencies on ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Limitless Allocations
### Description
## Allocation Model Analysis
The allocation model in the protocol used for reward distribution appears weak. While not a security vulnerability due to the centralized nature of these functions, it should be confirmed that these are intentional design choices.
## Examples... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimize gas usage in MozToken
### Description
In `getLockedPerAgreement()`, if the **elapsed time = vestPeriod**, it would be best to just set
**lockedAmount = 0**. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Emit local variables instead of state variable (Save ~100 Gas)
### Description
### Emit `_maxMintPerBlock` instead of `maxMintPerBlock`
https://github.com/code-423n4/2023-10-ethena/blob/ee67d9b542642c9757a6b826c82d0cae60256509/contracts/EthenaMinting.sol#L436-L440
Since we are setting our state variable `ma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Enforce `maxnodeDelegatorCount > nodeDelegatorQueue.length`
### Description
Put an assertion to ensure that the `maxnodeDelegatorCount > nodeDelegatorQueue.length` to prevent unexpected behavior from happening.
### Example of an occurrence
Could be added, for instance, [here](https://github.com/code-423n4... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [21] Make `PredyPool#withdrawCreatorRevenue()` more effective
### Description
https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/PredyPool.sol#L199-L213
This function is used to withdraw the accumulated creator revenue.
and only the pool owner is expected to have ac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: It is safer to change the `owner` address with the `safeSetOwner` pattern
### Description
The `owner` address change is done with the `setOwner` function, but there is a risk of incorrect address definition here, it is a serious risk for the platform, so it is safer to do it with the `safeSetOwner` pattern.
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Approved proposals may be executed at any time
### Description
After a proposal reaches the `Approved` stage, it can be executed [at any time after the “veto period” ends](https://github.com/celo-org/celo-monorepo/blob/d06617c7f4e59f643a0a0120e5501bcf762f1a7d/packages/protocol/contracts/liquidity/GrandaMento.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 | high | front-running | true | false | ## High: Missing Slippage Protection in Expired PT Redemption Causes User Fund Loss
### Description
Source: https://github.com/sherlock-audit/2025-06-notional-exponent-judging/issues/874
## Found by
0xPhantom2, Bluedragon, Schnilch, albahaca0000, boredpukar, jasonxiale, sergei2340, touristS, xiaoming90, yoooo, zhuy... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero address can be valid
### Description
After the operator dismisses, the zero address will become a valid address https://github.com/p2p-org/eth-staking-fee-distributor-contracts/blob/30a7ff78e8285f2eae4ae552efb390aa4453a083/contracts/access/OwnableWithOperator.sol#L63-L65.
### Recommendation
We recommend ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reentrancy on pool initialization allows users to re-initialize pools
### Description
An incorrect check-effect-interaction pattern in the pool initialization allows users to re-initialize a pool multiple times through a reentrancy.
When initializing a pool through `initialize`, `isPoolInitialized` is checked ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Type casts
### Description
**Description**
Provided contracts use type casts. This is quite an expensive and unsafe operation in Solidity.
**Recommendation**:
If there is no solution without type casts just take the risks. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ACL Contracts Should Not Have Any Public Functions that Are Not Implemented by the Protocol Being Checked
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `c17d8406d9a5d2b02d16962a4b50e599b04f8dd2`. The client provided the following explanation:
> Modified as recommended.
Fixed as 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 | access-control | false | false | ## Low: Lack of Event Emission in Privileged Functions
### Description
**Severity**: Low
**Status**: Resolved
**Location**: locking.sol, TokenDistributer.sol
**Description** :
During the security audit of the smart contract, an issue has been identified in the implementation of privileged functions, one example is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: When `slashedAmount` rounds to `0`, wasteful operation in `slash()`
### Description
In `slash()`, It's possible that `slashedAmount` might round down to `0`. In this case, wasteful zero value math and storage update will be performed.
Note: Each storage slot edit costs 5000 gas.
**Instance 1**
https://git... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: First loss cover fee investment will fail if it does not exceed minimum deposit amount
### Description
Fees are invested in two different ways. Whenever an admin account attempts to withdraw accrued income and alternatively via `investFeesInFirstLossCover()` which is managed by the pool owner and sentinel s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Improper Token Weight Calculation
### Description
## Token Weight Calculation in the Tank Module
The `get_token_weight` function in the tank module calculates the weight of the user’s deposit. This token weight is used to determine the amount that can be withdrawn by the user.
### Code Snippet
In this func... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Residual allowance
### Description
In order to invoke the Optimistic Oracle, the `OptimisticRewarderBase` contract [grants it a token allowance](https://github.com/UMAprotocol/protocol/blob/0c4cea3c3d5e48da6f8984b8ba3afdfea4ce47cc/packages/core/contracts/financial-templates/optimistic-rewarder/OptimisticReward... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potentially Unclaimable Star Upon Losing Tokens
### Description
The Treasury contract requires a fixed amount of 1e18 STAR tokens to redeem a star asset. Since STAR tokens are only minted when users deposit stars, the amount of tokens held by the Treasury must be 1e18 multiplied by Treasury’s asset count (equa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos and grammatical errors in the comments
### Description
`Information provided with publishing a new release` -> Information provided when publishing a new release
`Lanch` -> `Launch`
`offchain` -> `off-chain`
`inheritted` -> `inherited`
`contorller` -> `controller`
`Tranfer` -> `Transfer`
`addidtion... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible underflow of uint128
### Description
## Analysis of FeeDistributor.sol Implementation
## Context
(No context files were provided by the reviewer)
## Overview of FeeDistributor.sol
`FeeDistributor.sol` is a direct fork of Curve's `FeeDistributor.vy`.
### Zerolend Implementation
The implementation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | false | Source: https://github.com/sherlock-audit/2023-02-olympus-judging/issues/44
## Found by
joestakey, cccz, mahdikarimi, xAlismx, hansfriese, GimelSec, cducrest-brainbot, 0x52, Ruhum, rvierdiiev
## Summary
SingleSidedLiquidityVault._accumulateInternalRewards will revert with underflow error if rewardToken.lastRewardTi... | Sherlock | 5 | Olympusdao |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 version of Solidity
### Description
[Current code](https://github.com/WeTrustPlatform/rosca-contracts/blob/2af29be97d529488f5488fe0592f9e6b3585254f/contracts/ROSCA.sol#L1) is written for an old version of solc (0.4.4). We recommend changing the solidity version pragma for the latest version (`pragma... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Cache `msgValueRemaining - toPayTreasury` in buyToken() to save gas
### Description
The same subtraction operation with the same variables is carried out in three different steps. Consider caching this value to save gas.
Instead of this:
Use this (see Line 177): | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use require instead of assert
### Description
The Solidity assert() function is meant to assert invariants.
Properly functioning code should never reach a failing assert statement.
Instances:
Recommended: Consider whether the condition checked in the assert() is actually an invariant.
If not, replace the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Creation of ERC4337 accounts can have funds stolen if a salt less than 296 is used
### Description
ERC4337 account creation can be frontrun in case a salt less than 2^96 is used, allowing an attacker to steal any funds to be provided to the newly created account.
### Recommendation
Strictly enforce that 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 | low | access-control | true | false | ## Low: Zero amount minting can lock minting capability for a year
### Description
The `mintTo` function within the `MintManager.sol` contract enables zero-amount mints that refresh the minting cooldown period. This capability can obstruct valid minting activities by resetting the cooldown timer without minting any to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: DSC protocol can consume stale price data or cannot operate on some EVM chains
### Description
The stale period (3 hours) is too large for Ethereum, Polygon, BNB, and Optimism chains, leading to consuming stale price data. On the other hand, that period is too small for Arbitrum and Avalanche chains, render... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Access Control in `recv_external()` Enables Key Holder Actions After DAO Initialization
### Description
**Update**
The team fixed the issue as recommended. Addressed in: `6213b743b259aa18ca5eaf292d4c4ac21a45b400`.
**File(s) affected:**`contracts/walletV4_plugin.fc`
**Description:** In `walletV4_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 | high | other | false | false | ## High: Not appropriate Inferences will be used when calculating the forecast
### Description
Not appropriate Inferences will be used when calculating the forecast due to not saving filtered results
### Impact
Not appropriate Inferences will be used when calculating the forecast
### Recommendation
It should look li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Usage of custom error types
### Description
Use custom error types instead of a library with string constants.
### Recommendation
Instead of using the custom string library:
```solidity
library Errors {
string internal constant AG_FEE_TOO_BIG = "1";
//...
}
// usage
require(condition, Errors.AG_FEE_TOO_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Friend Access Control
### Description
## Access Control in Contracts
Allow only the **Book** contract to interact with **Instrument** and **Order** contracts, through the `friend` specifier. This would help to tighten the access control of contracts by only allowing the Book contract to invoke 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 | gas | liquidation | true | false | ## Gas: Unnecessary call to `SmartVaultV4::usdCollateral` when depositing/withdrawing collateral to/from yield positions
### Description
**Description:** When depositing/withdrawing collateral to/from yield positions in `SmartVaultV4`, the Smart Vault is validated to remain sufficiently collateralized and the collater... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: inefficiency due to `unimex_factory` variable type in ApeMexMargin
### Description
**Description**
In contract ApeMexMargin, at line 95, variable unimex_factory is stored in contract state and is of type IUniMexFactory, this variable is used around in the contract logic code to make external calls to a 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 | high | other | true | false | ## High: Eliminate assembly code by using ABI decode ✓ Fixed
### Description
There are several locations where assembly code is used to access and decode byte arrays (including uses inside loops).
Even though assembly code was used for gas optimization, it reduces the readability (and future updatability) of 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 | other | true | false | ## Medium: Borrowing fee calculation is inconsistent
### Description
The `AssetService::_settlePendingBorrowingFee()` function is called when the user's settlement balance is updated or it's needed for a calculation.
### Recommendation
Accumulate the fees in a different manner so they add up, regardless if the user i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: `twTAP.sol`: Reward tokens stored in index 0 can be stolen
### Description
The function `claimAndSendRewards` can be called to collect rewards accrued by the twTAP position. This function can only be called by the `TapOFT.sol` contract during a crosschain operation. Thus a user on chain A can call `claimRewar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using an older Solidity compiler version
### Description
Currently the protocol contracts use `pragma solidity 0.8.6;` which is a version that according to the [List of Known Bugs](https://docs.soliditylang.org/en/develop/bugs.html) in Solidity contains some Low severity issues. It is highly suggested to updat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing yield from Claimable cause fund loss
### Description
If Claimable yield is changed to any other mode, then users will lose all unclaimed yield. This happens because changing from Claimable to any other mode only takes the fixed part of balance and ignores the claimable part.
### Recommendation
While... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of zero amount check
### Description
The protocol logic restricts withdrawal from accounts and bridging out zero amounts:
But it can be done for addresses via `WithdrawalsModule.withdraw` function because of the zero amount check absence in the `Withdrawals.withdraw`:
Consider checking that the `input... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: batchCreate functions can overflow total amount and revert
### Description
When streams are batch created through the proxy target contract, the total amount needed to fund the streams is calculated in the following loop:
```solidity
// Calculate the sum of all of stream amounts. It is safe to use unchecked 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 | low | other | true | false | ## Low: Incorrect NatSpec Comment on Return Values in `_getRatios()` Function
### Description
The NatSpec comment for the internal function `KodiakIslandGateway._getRatios()` states that it returns a `Ratios` struct with **three** values:
- `depositRatio`
- `priceRatio`
- `is0to1`
However, the actual `Ratios` st... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Same Constant redefined elsewhere
### Description
Keeping the same constants in different files may cause some problems or errors, reading constants from a single file is preferable. This should also be preferred in gas optimization | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No handling with msg.value but there is a payable keyword
### Description
**Description:**
Both singleClaim()and claim()has payable keyword but there is no handling of msg.value. This means that this function can receive ETH as a msg.value but this msg.value doesn’t use.
Finally,ETH sent to this function 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 | token | false | false | ## Low: Variable shadowing in ReserveStabilizer
### Description
The [`ReserveStabilizer` contract](https://github.com/fei-protocol/fei-protocol-core-internal/blob/f54d7bb07c55adb78e2e142e7044f60090bb7602/contracts/stabilizer/ReserveStabilizer.sol) has a global variable [`token`](https://github.com/fei-protocol/fei-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: CHANGES SHOULD USE TWO-STEP PROCEDURE
### Description
Handle ownership transfers with two steps and two transactions. First, allow the current owner to propose a new owner address. Second, allow the proposed owner (and only the proposed owner) to accept ownership, and update the contract owner internally.
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency in access control for setInputs
### Description
In both `StrategyV5Chainlink` and `StrategyV5Pyth`, the `setInputs` function is restricted to the `admin` role:
function setInputs(address[] calldata _inputs, uint16[] calldata _weights, address[] calldata _priceFeeds) external onlyAdmin {
...
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect version number
### Description
Pull request [#9252](https://github.com/celo-org/celo-monorepo/pull/9252/files#diff-7ed4b70452014859fd0baa0e2346f7bd804d43f6dc055a71e5bcda62846814d6R299-R302) changes the behavior of the `setSpread` function in `Exchange.sol`, but does not update the version reported by... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Medium: Streaming enforcers increase token spending even without actual token transfer
### Description
The streaming enforcers (`ERC20StreamingEnforcer` and `NativeTokenStreamingEnforcer`) are vulnerable to a token spend allowance depletion attack when used with the `EXECTYPE_TRY` execution mode. The issue exists b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Silent Error in RecordWithdrawValidatorCommission Function
### Description
In the `RecordWithdrawValidatorCommission` function within the keeper, there is a potential issue where the function does not return an error in case of failure.
```
// Eden
unclaimed := commitments.GetRewardUnclaimedForDenom(ptypes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `SwapOperations` `swapFee` is non deterministic and can cause people to lose funds
### Description
**Impact**
SwapOperations charges a fee that is computed by `SwapPair` as follows:
https://github.com/blkswnStudio/ap/blob/8fab2b32b4f55efd92819bd1d0da9bed4b339e87/packages/contracts/contracts/SwapPair.sol#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 | medium | other | false | false | ## Medium: No token recover mechanism when the auction ends without any bid
### Description
**Description:** In `SpiceAuction` contract, when an auction ends with no bids, the auction tokens are locked into the contract and can't be recovered. `recoverToken` function doesn't help recover the auction token because it 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 | gas | other | true | false | ## Gas: Unnecessary vars.order.reduceOnly condition
### Description
In the `LimitTradeHandler`, there is a large nested if statement, with the first statement branching on the boolean `vars.order.reduceOnly`. Within two sub-branches of the else case, there are these two lines:
```solidity
bool _flipSide = !vars.order... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Offramp cannot submit BTC transactions if submitters inactive
### Description
The `verifyAndReleaseBtcTransfer` function has an access control check that allows only authorized actors (submitters) to verify BTC tx on the EVM side. This puts offramp actors into dependent on submitters, so if submitters are inac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `AirdropBroker`: Airdrops in epoch 4 can participate and exercise options in subsequent epochs
### Description
In `AirdropBroker`, the owner calls `registerUsersForPhase` with `_phase = 4` to airdrop to users in epoch 4 to 8.
And the documentation says:
> Phase Four will have five sub phases, each bearin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC721 Airdrop item can be redeemed/swapped out by user who is not an authorised claimant
### Description
ERC721 airdrop item can be redeemed/swapped out by user who is not an authorised claimant.
### Impact
An airdropped ERC721 item can be stolen by malicious user, the authorised claimant won't be able m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Functions have the same implementation.
### Description
**Description**
Disqualifier.sol: getBaseBounty() and getCompound Bounty().
Implementation of functions getBaseBounty and getCompoundBounty is absolutely identical. Thus only one function can be left.
**Recommendation**:
Consider removing or modifyi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: The `_zapIn` function may unexpectedly revert due to the incorrect implementation of `_transferTokenInAndApprove`
### Description
The `_transferTokenInAndApprove` function should approve the `router` on behalf of the *VaultZapper* contract. However, it checks the allowance from `msgSender` to the `router`, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault's total credit capacity keeps changing when being recalculated even though there is no market activity
### Description
Circular dependency between calculations of market's `totalDelegatedCreditUsd` and vault's `depositedUsdc` will lead to inconsistent calculation result for every `Vault.recalculateVau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rebalance Security Checks
### Description
## native_pool::rebalance Function Overview
The function `native_pool::rebalance` does not include calls to the `assert_version` and `when_not_paused` functions.
## Original Implementation
## Remediation
Include calls to the `assert_version` and `when_not_paused` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary checked arithmetic in for loops
### Description
*Note: Non-preferred, the amount of gas saved is at cost of readability, only apply when gas saving is a top priority.*
There is no risk of overflow caused by increamenting the iteration index in for loops (the `i++` in for `for (uint256 i = 0; i < r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Incorrect Staleness Threshold for Chainlink Price Feeds
### Description
**Severity**: Medium
**Status**: Resolved
**Location**: GammaSwapLiquidityWarehouse.sol
**Description**
The current implementation uses a single `STALENESS_THRESHOLD` constant (24 hours) for all Chainlink price feeds. This approach ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Treasury cannot withdraw expired assets if NFT is disabled
### Description
**Description:** The `STBL_LT1_Issuer::withdrawExpired` function attempts to claim rewards for disabled NFTs, but the `STBL_LT1_YieldDistributor::claim` function explicitly reverts when called on disabled NFTs.
In `STBL_LT1_Issuer.with... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 input validation in the Heap library
### Description
Neither the [`heapifyDown`](https://github.com/celo-org/celo-monorepo/blob/db2e561e1f13220a98743a7999818e48a5089d13/packages/protocol/contracts/common/libraries/Heap.sol#L45-L54) nor the [`siftDown`](https://github.com/celo-org/celo-monorepo/blob/db2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Pause Mechanism Allows Withdrawals During Emergency Pause
### Description
The `withdraw_impl` function in `gateway.move` lacks a pause mechanism, unlike the deposit functionality which has proper pause checks. This creates an inconsistency in the security controls and could allow withdrawals to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: `Claimers` can receive less `feePerClaim` than they should if some prizes are already claimed or if reverts because of a reverting hook
### Description
If a claimer propose an array of prizes to claim, but some of these prizes have already been claimed, or some claims revert, then the actual `feePerClaim` 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 | other | true | false | ## Low: REVERT STRING SIZE OPTIMIZATION
### Description
Shortening the revert strings to fit within 32 bytes will decrease deployment time gas and decrease runtime gas when the revert condition is met.
Revert strings that are longer than 32 bytes require at least one additional `mstore`, along with additional overhea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add NatSpec documentation
### Description
NatSpec documentation to all public methods and variables is essential for better understanding of the code by developers and auditors and is strongly recommended. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | reentrancy | true | false | ## Medium: `SDLVesting::withdrawRESDLPositions` enhancements
### Description
The `SDLVesting::withdrawRESDLPositions()` function violates the Checks-Effects-Interactions (CEI) pattern by performing external calls before updating state. The function also lacks input validation for lock times and may attempt to transfer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `++i` costs less gas than `i++`, especially when it's used in `for`-loops (`--i`/`i--` too)
### Description
**Client:** Fixed in [27225c2](https://github.com/Ranama/StakePet/commit/27225c256c3173cc306045949584b66be7f60c0f)
**Cyfrin:** Verified. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Percentage setter should be bounded
### Description
The `Fractionalizer::setReceiverPercentage` method sets a percentage value that is unbounded, meaning it can possibly be more than 100%. While this functionality is still not used it seems dangerous. I suggest you remove it until it is used (together with `se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Function do not emit proper events
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The following state changing function do not emit proper event:
NarwhalPool.setRewardsDuration
NarwhalPool.notifyRewardAmount
VesterNLP.setGov
BaseToken.setGov
Vester.setGov
TradingVaultV2.set... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DOS of proposals by abusing ballot names without important parameters
### Description
An adversary can prevent legit proposals from being created by using the same ballot name.
Proposals with the same name can't be created, leading to a DOS for some days until the voting phase ends. This can be done repeat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sushi: balanceOfToken underestimates balance
### Description
The `balanceOfToken` computation is too pessimistic, i.e., it can underestimate the current balance slightly.
**code/sushi-pooltogether/contracts/SushiYieldSource.sol:L29-L45**
```
/// @notice Returns the total balance (in asset tokens). This ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stale price used when `citadelPriceFlag` is cleared
### Description
_Submitted by IllIllI_
During the [video](https://drive.google.com/file/d/1hCzQrgZEsbd0t2mtuaXm7Cp3YS-ZIlw3/view?usp=sharing) it was explained that the policy operations team was meant to be a nimble group that could change protocol 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 | access-control | false | false | ## Low: Shared Pause/Unpause Role Creates Security Risk
### Description
The `pause()` and `unpause()` functions in `TimelockUpgradeableProxy` contract both use the same `pauseAdmin` role for authorization. However, unpausing is a more critical action than pausing as it restores full system functionality and should req... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 event emission can be done as a griefing attack
### Description
The [`UpdateWeightRunner::setRuleForPool`](https://github.com/Cyfrin/2024-12-quantamm/blob/a775db4273eb36e7b4536c5b60207c9f17541b92/pkg/pool-quantamm/contracts/UpdateWeightRunner.sol#L235) lacks validation that allows anyone to set rules... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: State variables should be cached in stack variables rather than re-reading them from storage
### Description
The instances below point to the second+ access of a state variable within a function. Caching of a state variable replaces each Gwarmaccess (100 gas) with a much cheaper stack read. Other less obvious ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.