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 | access-control | false | false | ## Medium: Multiple Methods To Avoid Paying Fees On Withdrawals
### Description
Users are intended to pay an annual fee based on deposit size to Brava. This annual fee can be bypassed via various means which remove the liquidity provider tokens from the protocol.
1. Some pool withdraw action contracts include a funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unexpected behavior for fee on transfer tokens
### Description
The `swapExactTokensForTokens()` and `swapTokensForExactTokens()` functions will not work correctly with fee on transfer tokens, as in the calculations it is assumed that the amounts in and out are the same as the amounts sent and received, which 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 | dos | false | false | ## High: getBlobFromRequest() vulnerable to resource consumption related DOS (CPU/memory/disk)
### Description
The function `getBlobFromRequest()` makes allocations in a loop before checking the size of `Blob.data` or the number of `SecurityParams`. This information is checked later on, as it is included in the variou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | rounding | true | false | ## High: Reward Accumulation Manipulation Through Frequent Claims
### Description
This issue has been identified within the `claim` function of the `DIAWhitelistedStaking` contract.
Any user can deprive other stakers of rewards by calling the `claim` function multiple times per day. The reward accumulator is updated 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 | low | other | false | false | ## Low: The Solidity version should be updated.
### Description
**Description**
Best practices for Solidity development and auditors standard checklist requires strict and
explicit usage of the latest stable version of Solidity, which is 0.8.11 at the moment.
**Recommendation**:
Consider updating to “pragma solidit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential inconsistent state validation for NFT transfers
### Description
In the **BaseRegistrar** contract, the `transferFrom` function does not include the `live` modifier, which ensures that the contract is actively managing a registration for its `baseNode`. While this may seem like an oversight, the NFT 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 challenge order checks in the `verifyChallenge()` function.
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
The challenges are intended to be verified in order. But the `verifyChallenge()` function doesn’t check if the challenge to be verified is in the correct 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 | medium | other | false | false | ## Medium: Partial Refunds Are Not Possible In The Treasury Due To Assumption That A User Has Fully Withdrawn
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
A user is able to invest into a certain project via the treasury contract function `investInProjects()`. Due to an assumption 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 | medium | other | false | false | ## Medium: Changing `A` Abruptly Without Timelock
### Description
This issue has been identified within the `updateA` function of the `SelfPeggingAsset` contract.
The parameter `A` can be changed abruptly in a single transaction, which could significantly alter the price curve. If the pool is imbalanced, an unexpecte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: PrivatePool.flashLoan() takes fee from the wrong address
### Description
## Lines of code
https://github.com/code-423n4/2023-04-caviar/blob/main/src/PrivatePool.sol#L623
## Vulnerability details
## Impact
Instead of taking the fee from the receiver of the flashloan callback, it pulls it from `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 | high | oracle | true | false | ## High: Composable pools can be calculated incorrectly
### Description
In the contract `BPTOracle.BptPriceComposablePool`, the price of a composable pool is calculated using the following function:
```solidity
function BptPriceComposablePool(bytes32 poolId) public view returns (uint256) {
(address[] memory tokens,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Events related issues
### Description
## Vulnerability Report
## Severity: Low Risk
### Context
- `LendingPoolAddressesProvider.sol#L197-L199`
- `LendingPoolAddressesProvider.sol#L213-L215`
- `MiniPoolAddressProvider.sol#L280`
- `MiniPoolAddressProvider.sol#L292`
- `MiniPoolAddressProvider.sol#L326`
- `MiniP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Filename and interface name mismatch
### Description
In both `IEthLizards` and `IGenesisEthLizards` there is a mismatch between the filenames and the interface names - while the filenames write `Lizards` with a capital `L`, the interfaces use a lower-case one. Same problem is present for the `IUSDc` interface ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimizations and Improvements
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `972878e4a7abbd77618763e37d8d04fbddd6c019`. The client provided the following explanation:
> GenericDifferentSpenderAdapter is now GenericAdapter GenericBasicAdapter is now GenericEqualSpenderAndHandlerAda... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Manual ERC721 transfers could be claimed as NTokens by anyone
### Description
The `PoolCore` contract has an external function `supplyERC721FromNToken`, whose purpose is to validate that the given ERC721 assets are owned by the NToken contract and then to mint the corresponding NTokens to a caller-supplied 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 | gas | initialization | false | false | ## Gas: Don't initialize variables with default value
### Description
**Description:** Don't initialize variables with default value, eg in `TickMath::getTickAtSqrtRatio()`:
**Impact:** Gas optimization.
**Wormhole:**
`TickMath` is no longer used as on chain slippage calculations are not being done anymore. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: During refinance() new Pool balance debt is subtracted twice
### Description
A borrower has the opportunity to move their loan to another pool under new lending conditions.
During refinancing interest from the loan is transferred to the old pool.
The debt is then transferred to the new pool however this sub... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Confusing modifier name
### Description
A confusing name is set on the modifier `onlyAdminWithdrawAfterEnd`. By its name it says only admin withdraw after end time, but at the same time the modifier only check if `block.timestamp < endTime`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `receiveFromDepositPool()` does not track assets transferred
### Description
The `receiveFromDepositPool()` function in `ElytraUnstakingVaultV1` contains a flaw where it attempts to calculate received assets by comparing the vault's balance before and after a transfer operation. However, this approach fails c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Use of transfer function is potentially unsafe [core and sample]
### Description
**Client reported:** *The Ethereum Foundation identified this issue during the audit*
The `withdrawTo` function in `StakeManager` and the `transfer` function in `SimpleWallet` both uses Solidity’s built-in `transfer` function (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 | low | other | false | false | ## Low: Use a more recent version of solidity
### Description
Use a solidity version of at least 0.8.13 to get the ability to use `using for` with a list of free functions.
*There are 3 instances of this issue.* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Unchecked Return Value
### Description
**Description**
The `withdraw` function uses `transfer` which provides a return value that should be checked. Not all ERC20 implementations revert in case of failure, so it is important to have some logic in the event these executions fail.
**Recommendation**
Check t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Use of 3rd party library in Factory contract.
### Description
**Description**
In the Factory contract, all except init and update of the contract are using third-party lib, which is out of scope.
programs/nft_factory
**Recommendation**
We need verification from the Onemind team that out-of-scope libs can be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Depeg event can happen at incorrect price
### Description
Depeg event can still happen when the price of a pegged asset is equal to the strike price of a Vault which is incorrect.
This docs clearly mentions:
"When the price of a pegged asset is below the strike price of a Vault, a Keeper(could be anyone) wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NonReentrant Modifier Not Positioned First
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The nonReentrant modifier should be applied as the first modifier in any function to prevent reentrancy attacks. Placing it after other modifiers may leave the function vulnerable, as external c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | upgrade | true | false | ## Low: Unused Import of `OwnableUpgradeable` in `Accounting.sol`
### Description
`OwnableUpgradeable` is imported but not used directly in this file.
### Recommendation
Remove the unused import to improve code cleanliness:
```diff
- import { OwnableUpgradeable} from "@openzeppelin/contracts-upgradeable/access/Ownabl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: try-catch Block Can Still Revert
### Description
In the [`_unsubscribe`](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/base/Notifier.sol#L46-L55) function of [`Notifier.sol`](https://github.com/Uniswap/v4-periphery/blob/df47aa9ba521fc15ffd339dc773d32f5fc4c91fc/src/ba... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Code duplication
### Description
There is duplicated code in the [_addCalldataCheck](https://github.com/code-423n4/2024-10-kleidi/blob/main/src/Timelock.sol#L1034-L1155) function.
Specifically on the [1058](https://github.com/code-423n4/2024-10-kleidi/blob/main/src/Timelock.sol#L1058-L1060)
and on the [10... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double Denormalization
### Description
The function `calculateNotionals` is incorrectly used in multiple places, specifically:
- `calculateMaxWithdrawableAndBorrowableAmounts` in `HubPriceUtilities`
- `calculateNotionalRepaid` and `calculateNotionalReceived` within `LiquidationCalculator`.
The `calculateNoti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unneeded import in `RTokenAsset.sol`
### Description
`IRToken.sol` has already been imported by `IMain.sol`, making the former an unneeded import.
https://github.com/reserve-protocol/protocol/blob/9ee60f142f9f5c1fe8bc50eef915cf33124a534f/contracts/plugins/assets/RTokenAsset.sol#L5-L6 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | false | ## Medium: Broken block time assumptions affect am-AMM epoch duration and can DoS rebalancing on Arbitrum
### Description
`AmAmm` defines the following virtual function which specifies the auction delay parameter in blocks:
```solidity
function K(PoolId) internal view virtual returns (uint48) {
return 7200;
}
```... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Lack of incentives for Liquidation calls
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
The `liquidation` operates as follows:
1. All collateral balances owned by the `marginAccount` are retrieved in the code line `MarginAccount#L221-L231`.
2. Assets are liquidated fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Get a Free Domain with Undefined Price Configuration
### Description
**Update**
The client fixed the issue in `f42f8ded71b9e28406735b0a77081cc856bd4cf8` by adding an `isSet` boolean variable to the `PriceConfig` struct. This boolean is validated in `getPrice()` function before returning the price from 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... | solodit_api | medium | Wrong Math | true | false | Source: https://github.com/sherlock-audit/2023-05-blueberry-judging/issues/25
## Found by
0x52, nobody2018
## Summary
`BalancerPairOracle#getPrice` internally calls `computeFairReserves`, which returns fair reserve amounts given spot reserves, weights, and fair prices. When the parameter `resA` passed to `computeFa... | Sherlock | 3 | Blueberry Update #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool: `approveAndCall` sets unnecessary approval
### Description
_Submitted by cmichel_
The `Pool.approveAndCall` function approves the `recipient` contract with the max value instead of only the required `amount`.
For safety, the approval should not be set to the max value, especially if the amount 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 | cross-chain | true | false | ## Low: EVENT IS MISSING INDEXED FIELDS
### Description
Index event fields make the field more quickly accessible to off-chain tools that parse events. However, note that each index field costs extra gas during emission, so it’s not necessarily best to index the maximum allowed per event (three fields).
Code Location... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential Bypass of Fees Parameters in Order Creation
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Noted
**File(s) affected:**`fusion-swap/src/lib.rs`
**Description:** In the `Create` context of the fusion-swap program, makers are 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 | high | other | true | false | ## High: `getClaimableFlux()` miscalculates claimable FLUX from veALCX values
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/FluxToken.sol
Impacts:
- Permanent freezing of unclaimed royalties
## Description
## Brief/Intro
When NFT holders clai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused `receive()` function will lock Ether in contract
### Description
If the intention is for the Ether to be used, the function should call another function, otherwise it should revert | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused or Dead Code
### Description
During the security assessment of the smart contracts, several instances of unused code were identified. These unnecessary components can clutter the codebase, reduce readability, and potentially lead to confusion during development or auditing. Additionally, unused imports ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [17] Tautology in `publishPubdataAndClearState`
### Description
In [L1Messenger, function `publishPubdataAndClearState`](https://github.com/code-423n4/2023-10-zksync/blob/1fb4649b612fac7b4ee613df6f6b7d921ddd6b0d/code/system-contracts/contracts/L1Messenger.sol#L206) there is a tautology:
As `numberOfL2ToL1Log... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `SDLVesting::vestedAmount` gas optimizations
### Description
The `SDLVesting::vestedAmount` function computes the `totalAllocation` before the `if (_timestamp < start) return 0;` check. In the event that check returns true and the function returns 0 then the gas spent on that computation is wasted.
Moreover... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: UNUSED FUNCTIONS
### Description
`setPauser` and `pauser` functions in **CCMPConfigurationFacet** contract implement their logic and do not reuse some internal functions that do the same tasks. Although it is not a security issue, it is worth noting that this recommendation is more focused on code hygiene 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 | high | front-running | false | false | ## High: Possible attacks on Seconds * Liquidity calculation
### Description
This is a possible line of attack on the staking contract, in particular the `claimReward()` function: [`ConcentratedLiquidityPoolManager.sol#L90` L94](https://github.com/sushiswap/trident/blob/c405f3402a1ed336244053f8186742d2da5975e9/contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Complicated dependency management, Solidity files contain all dependencies required for specific Contract.
### Description
**Recommendation**:
Split FACTORY.sol, ROUTER.sol, NUS.sol, NUS_WETH.sol, REWARDSFACTORY.sol to have one
contract per Solidity file. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | true | false | ## High: Infinite Loop In _getSelfDelegations()
### Description
The _getSelfDelegations() function can suffer from an infinite loop if the operator has staked in a strategy that is not included in the _strategyParams array. This causes syncWithOmni() to fail if any operator has staked in an incompatible strategy.
```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 | overflow | false | false | ## Low: Assets With More Than 18 Decimals Not Supported for Zapping
### Description
The `LockZap` contract allows zapping any ERC-20 asset into staking via the [`zapAlternateAsset`](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/zap/LockZap.sol#L221-L249) 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 | storage | true | false | ## Low: Remove redundant condition in \_isNotProxy() function
### Description
There is 1 instance of this issue:
https://github.com/open-dollar/od-contracts/blob/f4f0246bb26277249c1d5afe6201d4d9096e52e6/src/contracts/proxies/Vault721.sol#L154C1-L156C4
The condition `ODProxy(_userRegistry[_user]).OWNER() != _user` 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 | medium | initialization | true | false | ## Medium: Each generation should have 1 "Golden God" NFT, but there could be 0
### Description
### Vulnerability Details
The location of the "Golden God" NFT with entropy of `999999` is calculated by the `initializeAlphaIndices` function in the `EntropyGenerator` contract.
It is confirmed by the devs/sponsors 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 | gas | other | true | false | ## Gas: [G‑21] `require()` or `revert()` statements that check input arguments should be at the top of the function
### Description
Checks that involve constants should come before checks that involve state variables, function calls, and calculations. By doing these checks first, the function is able to revert before... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unchecked Return Value
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> These return values will not have a bad impact on the protocol for the time being.
**File(s) affected:**`BorrowerOperations.sol`, `CollateralManager.sol`, `StETHoracle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Suggestion to Add Invariant Checks to Fail if Unexpected Edge Cases Happen
### Description
**Update**
All items were fixed or considered.
**Update**
Marked as "Fixed" by the client. Addressed in: `6ee0dfe3f579deecab72516ffe84dd0821dd24ec` and `51bf954e0c5020e2ebdcb88289098ccc93a43204`.
**File(s) affected:**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Solmate `SafeTransferLib` doesn't check for a token contract existence
### Description
There is a known issue described [here](https://detectors.auditbase.com/solmates-safetransferlib-token-existence). It is possible to have a non-existent token contract at the specified address, which won't be checked by the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | true | ## High: getOraclePrice is prone to manipulation
### Description
The `getOraclePrice` function is used to retrieve the latest price from a Velodrome pool. There is a faulty assumption that if the latest observation's timestamp is in the past, the `slot0` price can't have been manipulated, and thus it is returned 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 | gas | other | true | false | ## Gas: Using UniswapV3 ``mulDiv`` function is gas-optimized
### Description
Reference: https://github.com/Uniswap/v3-core/blob/412d9b236a1e75a98568d49b1aeb21e3a1430544/contracts/libraries/FullMath.sol#L14
Reference: https://xn--2-umb.com/21/muldiv/ | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Approved operator of collateral owner can't liquidate lien
### Description
If someone wants to liquidate lien then `canLiquidate` function [is called](https://github.com/code-423n4/2023-01-astaria/blob/main/src/AstariaRouter.sol#L625-L627) to check if it's possible.
As you can see owner of collateral toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LockZap Does Not Correctly Enforce Maximum Borrowing Power
### Description
When [zapping](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/zap/LockZap.sol#L277-L287) assets into locked LP tokens, users need to provide both RDNT and the base token (WBNB ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `EUSDMiningIncentives` contract is incorrectly implemented and can allow for more than the intended amount of rewards to be minted
### Description
### Lines of code
### Impact
The `EUSDMiningIncentives` contract is intended to function similarly to the Synthetix staking rewards contract. This means 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 | dos | true | false | ## Medium: The endAuction function attempts to send native tokens to the StabilityPool, which does not support
### Description
The endAuction function attempts to send native tokens to the StabilityPool after auction is end, however due to StabilityPool not implement receive{} function , this function can be dos.
And... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: TRST-L-7 Manager is able to create arbitrary orders
### Description
**Description:**
Manager is able to call `createUniswapRangeOrder()` with controlled RangeOrderParams,
meaning it can be used for a completely different use case than hedging strategy. It is
recommended to allow only very specific parameter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event is missing `indexed` fields
### Description
Each `event` should use three `indexed` fields if there are three or more fields | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | false | false | ## Gas: It costs more gas to initialize non-constant/non-immutable variables to zero than to let the default of zero be applied (2 instances)
### Description
* Deployment. Gas Saved: **4 415**
* Minumal Method Call. Gas Saved: **0**
* Average Method Call. Gas Saved: **0**
* Maximum Method Call. Gas Saved: **0**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Long-term orders may be filled with an incorrect amount
### Description
When calculating how many blocks have passed after the auction started, the value `block.number - decayStartBlock` is cast into type `uint16`. However, if the value is larger than `type(uint16).max`, a downcast overflow will occur.
Conside... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Order of Layout
### Description
**Description**
The layout contract elements in LPStaking, Pool, LPTokenERC20, and Router contracts are not
logically grouped.
The contract elements should be grouped and ordered in the following way:
Pragma statements;
Import statements;
Interfaces;
Libraries;
Contract.
Insid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds.maxFundDur has no effect if maxLoanDur is set ✓ Fixed
### Description
`Funds.maxFundDur` specifies the maximum amount of time a fund should be active. It’s checked in `request()` to ensure the duration of the loan won’t exceed that time, but the check is skipped if `maxLoanDur` is set:
**code/ethere... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | false | false | ## Gas: Tight Variable Packing
### Description
### PROBLEM
Solidity contracts have contiguous 32 bytes (256 bits) slots used in storage.
By arranging the variables, it is possible to minimize the number of slots used within a contract's storage and therefore reduce deployment costs.
address type variables are each 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 | low | other | false | false | ## Low: Key functions do not have return values
### Description
Many key functions do not have return values but they imply different behavior in case of non-revert.
- https://github.com/curvefi/curve-stablecoin/blob/0d9265cc2dbd221b0f27f880fac1c590e1f12d28/contracts/Controller.vy#L586
- https://github.com/curvefi/cu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Early Initiation of Grace Period Prevents Creator's Ability to Withdraw Funds via Clawback
### Description
This issue arises when a campaign creator chooses to deploy the campaign first and fund it later. If a malicious recipient funds the Merkle Lockup contract immediately after deployment and triggers the `c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Unchecked return value from increaseClaimableBy() function call
### Description
In the TANIssuanceHistory contract, the `increaseClaimableByBatch()` function calls `tanIssuancePlugin.increaseClaimableBy(accounts[i], amounts[i])` but does not check the return value. The `increaseClaimableBy()` function in the 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: Unused import
### Description
In [Monetary.sol](https://github.com/dydxprotocol/solo/blob/17df84db351d5438e1b7437572722b4f52c8b2b4/contracts/protocol/lib/Monetary.sol#L21-L22) it is unnecessary to import the SafeMath and Math libraries as they are never used.
***Update:*** *Fixed in* [*pull request #210*](ht... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing zero address checks on constructor
### Description
It has been observed missing zero address checks on the `Radiant` and `Silo` constructors:
```
constructor(
IERC20 baseAsset_,
address feeRecipient_,
address owner_,
uint256 rewardFee_,
address siloAsset_,
address siloRepository_,
addres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | EIP-165 | true | false |
According to [LSP7's specification](https://github.com/lukso-network/LIPs/blob/main/LSPs/LSP-7-DigitalAsset.md#specification), the [ERC-165](https://eips.ethereum.org/EIPS/eip-165) interface ID for LSP7 token contracts should be `0x5fcaac27`:
> ERC165 interface id: `0x5fcaac27`
However, `_INTERFACEID_LSP7` has a dif... | Code4rena | 5 | LUKSO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | false | false | ## High: Locked Residual Token Amounts on Deposit
### Description
In `P2pYieldProxy._deposit` (ERC-20 branch) the proxy pulls `amount` tokens from the client but forwards only `amountToDepositAfterFee = amount * s_clientBasisPointsOfDeposit / 10 000` to the underlying protocol. The difference (`amount – amountToDeposi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Front-Running | true | false | Source: https://github.com/sherlock-audit/2023-01-cooler-judging/issues/218
## Found by
kiki\_dev, HollaDieWaldfee, IllIllI, ak1
## Summary
Dust amounts can cause payments to fail, leading to default
## Vulnerability Detail
In order for a loan to close, the exact right number of wei of the debt token must be se... | Sherlock | 4 | Cooler |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 bits are erased in updateMember()
### Description
The functions `updateMember()` in `RestrictedRedemptions` and `RestrictionManager` update the timestamp and the `FREEZE_BIT`. However, they do not retrieve and maintain the remaining 63 bits of the `hookData`, resulting in the erasure of the unused bits.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Infinitely Locked `VotingEscrow` Positions Are Not Accounted During Voting in `GaugeController`
### Description
In `VotingEscrow`, an infinite lock sets a constant vote bias equal to the deposit and a slope of 0. However, in `GaugeController.vote_for_gauge_weights()`, vote bias is recalculated as `slope * dt`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Close Conditions May Be Incorrectly Set in `BatchManager`
### Description
**Update**
The team fixed the issue as recommended in the commit `278fe7f`.
**File(s) affected:**`BatchManager.sol`
**Description:** When batch closing positions through `BatchManager.closeBatchPositions()`, each position listed 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... | skyward_49k | medium | dos | false | false | ## Medium: If a Pool at the Beginning of `withdrawQueue()` Is Paused, the Depositor Won't Be Able to Redeem from Other Active Pools
### Description
When a user wants to withdraw his stakings, he returns his shares by calling `withdraw()` or `redeem()`, those two functions calls [`withdrawFromIonPool()`](https://github... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: System Heavily Depends on Off-Chain Components
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> These design decisions are intentional and explanations of the off-chain components of the system will be made clear in the public documentation.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: reinvestReward() generates dust totalPoolClaim causing vault abnormal
### Description
If the first user deposits too small , due to the round down, it may result in 0 shares, which will result in 0 shares no matter how much is deposited later.
In `National`, this situation will be prevented by setting `a 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 | medium | other | true | false | ## Medium: User can make their `veNFT` unpokeable by voting for a to-be-killed gauge
### Description
Source: https://github.com/sherlock-audit/2024-06-velocimeter-judging/issues/208
## Found by
bughuntoor, eeyore
## Summary
## Vulnerability Detail
In order to understand the impact of the issue, we need to first un... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: [Medium][Outdated State] `_removeSigner` incorrectly updates `signerCount` and safe `threshold`
### Description
`_removeSigner` can be called whenever a signer is no longer valid to remove an invalid signer. However, under certain situations, `removeSigner` incorrectly reduces the number of `signerCount` 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: DAOs can be created with non-zero `TierConfig::minted`
### Description
**Description:** When creating a new DAO membership, there is no validation on the `minted` member of the parallel `TierConfig` structs, meaning that DAOs can be created with non-zero minted tokens even when the supply for a given tier inde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RegistryFactory::removeAttester can reduce attester count under limit
### Description
The `RegistryFactory` constructor enforces that the initial `threshold` must be less than or equal to the number of provided `attesters`. However, the `removeAttester` function does not enforce this constraint. As a result, 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 | oracle | true | false | ## High: Bypassing Funds Repayment via Double Upscaling
### Description
The vulnerability arises from double upscaling during the repayment process in `pay_flashloan` when handling meta-stable pools. Specifically, `pay_flashloan` upscales `balance_after_flashloan` twice. When handling meta-stable pools, the funds are ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Uniswap Pool Initialization Fails if Pool Exists
### Description
The [`UniswapPoolHelper`](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/zap/helpers/UniswapPoolHelper.sol) and [`BalancerPoolHelper`](https://github.com/radiant-capital/v2-core/blob/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | storage | true | false | ## High Risk Vulnerability Report
## Severity
**High Risk**
## Context
- **File:** `PoolManager.sol#L190`
```solidity
uint256 err = ComptrollerLike(comptroller)._deployMarket(false, constructorData, targetParams.collateralFactor);
```
- **File:** `PoolManager.sol#L254`
```solidity
uint256 errZero = Comptro... | Spearbit | 5 | Sense |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TotalBalanceEnforcer` validation bypass when mixed with state modifying enforcers
### Description
**Description:** Total Balance Change Enforcers fail to validate the final balance state when mixed with state-modifying enforcers (such as `NativeTokenPaymentEnforcer`) in delegation chains.
The early return b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Rational actors will just set themselves as referral
### Description
## Handle
cmichel
## Vulnerability details
## Vulnerability Details
When depositing, a referral can be chosen and the only check is:
One can refer themselves
## Impact
(From the contracts that are part of this repo, it's not immediatel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can call depositToConsensusLayer and potentially push wrong data on-chain
### Description
Anyone can call `depositToConsensusLayer` and potentially push wrong data on-chain. An example is when an operator would want to remove a validator key that is not funded yet but has an index below the operator lim... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: No access control on assignFees() function in NFTXVaultFactoryUpgradeable contract
### Description
_Submitted by ych18_
If the Vault owner decides to set factoryMintFee and factoryRandomRedeemFee to zero, any user could call the function NFTXVaultFactoryUpgradeable.assignFees() and hence all the fees are u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | true | ## High: Oracle request timestamp and pending position timestamp mismatch can make most position updates invalid
### Description
Source: https://github.com/sherlock-audit/2023-07-perennial-judging/issues/42
## Found by
KingNFT, WATCHPUG, minhtrng, panprog
When a new pending position is added, its timestamp is 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 | low | signature | true | false | ## Low: Intel Attestation Service (IAS) is a single point of failure
### Description
MobileCoin achieves enhanced privacy by verifying ring signatures within an Intel SGX enclave. However, such enhanced privacy comes at the cost of relying on the Intel Attestation Service (IAS). If a MobileCoin node is unable to conta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Update solidity version
### Description
**Description**
Contract utilizes 0.7.6 version, though it is recommended to use the version from the latest
release, which is 0.8.11
**Recommendation**:
update version to 0.8.11 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistency In Batch Messaging Implementation
### Description
## StakeUpMessenger::_batchSend Implementation Issue
The current implementation of `StakeUpMessenger::_batchSend` attempts to send the entire `msg.value` (provided fee amount) in the first call to `_lzSend` within the loop. This creates a proble... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tranche’s withdrawal fees are not deducted properly
### Description
**Severity**: High
**Status**: Acknowledged
**Description**
In Contract Tranche.sol, methods redeem/withdraw calls _withdraw(...) method internally. The method _withdraw has the following logic:
Here, the fee is calculated but the whole ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Work with incorrect decimals
### Description
Price feed can return price with not 18 decimals:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/oracles/PriceOracle.sol#L56
### Recommendation
We recommend to check decimals of the `priceFeeds[token... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: [04] The `>=` check for `generationMintCounts` could be simplified
### Description
In the `TraitForgeNft` contract, the check `generationMintCounts[currentGeneration] >= maxTokensPerGen` can be simplified to `generationMintCounts[currentGeneration] == maxTokensPerGen`.
Since `generationMintCounts[currentGene... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: check if pool exists in getPool
### Description
## Handle
gpersoon
## Vulnerability details
## Impact
The function getPool doesn't check if the pool exits (e.g. it doesn't check if the resulting pool !=0)
Other functions use the results of getPool and do followup actions.
For example createSynth checks 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 | high | rounding | true | false | ## High: Inconsistent rounding of lock time causes voting power errors
### Description
In the VotingEscrow contract, lock end times are consistently rounded down to week boundaries (Thursday 00:00 UTC) in all functions except for `split`. This inconsistency disrupts the checkpoint system and causes incorrect voting po... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.