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 | low | other | false | false | ## Low: Threshold Invariants Can Be Violated
### Description
**Update**
This issue is marked as Mitigated given that the lower bound for members is less strict in the daml, as it now just enforces that the number of members not less than 2. The member enforcement is mainly handled outside the daml.
Further, the clien... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code could be simplified.
### Description
**Description**
StakingB_1.sol Line 609
“pool.lastRewardBlock = block.number” can be executed before condition so this operation
shouldn’t be repeated twice in the code.
**Recommendation**:
Use just one realisation of “pool.lastRewardBlock = block.number” before con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Stuck fees in `PacketStore` upon `paymentToken` change without withdrawal
### Description
_Resolved_
In the `PacketStore.setPaymentToken()` function, the accepted payment token is changed without first withdrawing any accumulated fees that have yet to be transferred, which would result in these fees of the ol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: test coverage
### Description
There is a [single test file](https://github.com/CoinFabrik/ico/blob/142f43f3bec4afd0ffff3fce06946cf67cb0272f/test/crowdsale.js) in the codebase, which only checks a few methods on the `Crowdsale` contract. Consider adding tests for finalization, refunds, crowdsale failures, preal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When `sellCreditMarket()` is called to sell credit for a specific cash amount, the protocol might receive a lower swapping fee than expected
### Description
### Impact
The protocol might receive a lower fee than expected when `sellCreditMarket()` is called to sell credit for a specific cash amount.
### Proo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: `SiloFacet::transferDeposits` should only call `LibSiloPermit::_spendDepositAllowance` once | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: backdoor in `withdrawRedundant`
### Description
_Submitted by cmichel, also found by camden, WatchPug, and Ruhum_
The `Vault.withdrawRedundant` has wrong logic that allows the admins to steal the underlying vault token.
###### POC
* Vault deposits increase as `Vault.addValue` is called and the `balance` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Token transfer logic is incorrect for some tokens
### Description
The current transfer funds logic has multiple issues:
1. Tokens like USDT do not return a bool value on the `transfer`/`transferFrom` function. This means the below require check will fail.
```solidity
require(
token.transferFrom(msg.sen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The variable fShareRatio is vulnerable to manipulation by flash minting and burning
### Description
## Handle
shw
## Vulnerability details
## Impact
The variable `fShareRatio` in the function `purchaseMembership` of contract `FSDNetwork` is vulnerable to manipulation by flash minting and burning, which... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Migration blocked due to chain limit in `MessageRoot` contract
### Description
The protocol's goal of enabling migration to any chain is failed when the maximum number of chains is reached, as this prevents further migrations.
### Impact
The protocol aims to allow migration of any chain, even when the maxi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ARBITRARY MINTING OF COINS USING FAKE CW20 TOKENS
### Description
The `MintStableCoin` entry point of the **krp-cdp-contracts/custody** contract mints stable coins to users according to their deposited collaterals.
The entry point mentioned is designed to be called by the **target collateral** contract. Howe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | false | false | ## Low: Consider allowing update to `AAVE_DATA_PROVIDER`
### Description
`RockoFlashRefinance::AAVE_DATA_PROVIDER` immutably stores the address of `AaveProtocolDataProvider`. However `AaveProtocolDataProvider` is not upgradeable and the "current" one on mainnet was deployed 43 days ago to address 0x497a1994c46d4f6C864... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Incorrect tick parameter in collectFees() function leads to loss of vesting position fees or possible complete protocol lockup
### Description
Source: https://github.com/sherlock-audit/2025-02-yieldoor-judging/issues/376
## Found by
0xaxaxa, AlexCzm, Drynooo, Foundation, HChang26, KiteWeb3, R-Nemes, Ragnar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Deviation in oracle price could lead to arbitrage in high lltv markets
### Description
In Morpho Blue, the maximum amount a user can borrow is calculated using the conversion rate between `loanToken` and `collateralToken`, which is returned by an oracle:
```solidity
uint256 maxBorrow = uint256(position[id]... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | false | false | Source: https://github.com/sherlock-audit/2023-02-surge-judging/issues/122
## Found by
GimelSec, joestakey, peanuts, usmannk, bin2chen, ast3ros, 0x52, Bauer, TrungOre, gogo, ctf\_sec, \_\_141345\_\_
## Summary
When calculating userCollateralRatioMantissa in borrow and liquidate. It divides the raw debt value (in l... | Sherlock | 5 | Surge |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 of Revert Strings Instead of Custom Errors
### Description
In the `KodiakIslandGateway` contract, revert statements use hardcoded error strings, for example:
```solidity
if (amountOut
### Recommendation
We recommend replacing strings with custom errors.
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner Can Renounce Ownership
### Description
It was identified that the `Marketplace` contract indirectly inherits from `Ownable2Step` through `OnwnableWithPausable`. In the `Ownable2Step` contract, the `renounceOwnership()` function is used to renounce the `Owner` permission. Renouncing ownership before trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: L2SharedBridge l1LegacyBridge is not set
### Description
The migration steps for `L1ERC20Bridge/L2ERC20Bridge` are as follows:
> II. Upgrade L1ERC20Bridge contract
>
> 1. Upgrade L2 bridge
>
> The new L2ERC20Bridge will upgraded to become the L2SharedBridge, and it will be backwards compatible with all 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... | solodit_api | medium | Wrong Math | false | false | Source: https://github.com/sherlock-audit/2022-10-rage-trade-judging/issues/61
## Found by
clems4ever
## Summary
in `DnGmxJuniorVaultManager.sol` at line:647:
`usdcPrice` should be on denominator and `MAX_PRECISION` on numerator
(cf pricing in Vault: uint256 redemptionAmount = _usdgAmount.mul(PRICE_PRECISION).div(p... | Sherlock | 5 | Rage Trade |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | false | ## Low: Function updateInvoiceArrears() updates `lastInvoiceDate` even when `invoiceArrears` remains unchanged
### Description
Function updateInvoiceArrears() allows the DEFAULT_ADMIN_ROLE to update the `invoiceArrears` variable as well as `lastInvoiceDate` accordingly. However, even if the `invoiceArrears` variable r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: [25] `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
*There are 4 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 | access-control | false | false | ## Low: Renounce Ownership can be called accidentally
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In PearlPointsCalculator.sol & StakingConfigurator.sol: The `renounceOwnership` function can be called accidentally by the admin, leading to immediate renouncement of ownership to a zero addr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Length Validation in `verify_blob_preimage()`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `fbd3b5b0d930dcc869364d8f3d371dce069d32fc`.
**Description:** Validation in `verify_blob_preimage()` can be added with respect to a number of attributes:
1. At `oracle.rs#L176`, whe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Logical error in `validate_fees_are_paid` can cause a DoS or allow users to bypass fees if `denom_creation_fee` includes multiple coins, including `pool_creation_fee`, and the user attempts to pay all fees using only `pool_creation_fee`
### Description
[/contracts/pool-manager/src/helpers.rs# L561-L592](https... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: Use of low level calls
### Description
**Description:**
The call function is a low-level function in Solidity that allows contracts to call other contracts and pass in arbitrary data. While it can be useful in certain situations,it can also be dangerous if not used properly. The main issue with the call fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Owner Can Bypass the Voting Process to Steal All Users Funds
### Description
The `AdapterV1` contract allows the owner to unilaterally migrate all staked funds to a new contract without going through the voting process.
### Impact
The owner can bypass the intended democratic migration process, which requi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `pUSDeVault::maxRedeem` doesn't account for redemption pausing, in violation of EIP-4626 which can break protocols integrating with `pUSDeVault`
### Description
**Description:** [EIP-4626](https://eips.ethereum.org/EIPS/eip-4626) states on `maxRedeem`:
> MUST factor in both global and user-specific limits, lik... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: fees sent to QuantAMMAdmin is stuck forever as there is no function to retrieve them
### Description
When a user removes liquidity from the pool he pays fees and a portion of the fees is liquidity added back for `QuantAMMAdmin`
Those funds are stuck in, and can't be removed as there is no mapping or NFT mint... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No zero value checks for both `_nxtpData.amount` and `msg.value` in `startBridgeTokensViaNXTP`.
### Description
[L46-60](https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Facets/NXTPFacet.sol#L46-L60)
function startBridgeTokensViaNXTP(LiFiData memory _lifiData, ITransactionManager.PrepareArgs me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Code Refactoring
### Description
## Current Findings
1. Currently, no function exists that reverses the suspension of the `Master` object. This lack of finer-grained control over the status of `Master` objects results in inefficiencies in handling content moderation and enforcement actions.
2. In the curre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Error in Using the same max Price interval for all ASSETS.
### Description
Most tokens have different heart beats , with meme coins been highly volatile and other token like stable coin also. The code incorrectly assign a single value to track all asset price staleness.
This will allow for some tokens with 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 | oracle | false | false | ## Low: Divisions by zero possible
### Description
There are instances in the codebase where divisions by zero are not actively prevented. For example, this happens on [line 103 in `BetaOracleUniswapV2`](https://github.com/beta-finance/beta-private/blob/9e73eaf40e5118125d6925b29e4fb9ad8bf8e113/contracts/BetaOracleUnis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Do not pre-declare variable with default values
### Description
One of the practices in the project is to pre-declare variables before assigning a value to them. This is not necessary and actually costs some gas (MSTOREs and MLOADs).
As an example, consider going from:
to:
Same for the following 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 | oracle | false | false | ## Medium: Pendle PT Oracle Ignores Losses During SY Redemptions, Leading to Over-Valued Collateral
### Description
`PendlePTLib.redeemExpiredPT()` forwards `0` as `minTokenOut` when calling `SY.redeem()`. For SY tokens whose redemption path performs swaps or charges fees, the real amount of underlying received 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 | low | other | false | false | ## Low: ENUMERABLESET’S FUNCTIONS `add()` and `remove()` RETURNED VALUES ARE NOT CHECKED
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The functions `.add()` and `.remove()` from Openzeppelin’s EnumerableSet library (https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Lack of Validation for AccessControlManager Contract in ConcreteStorage
### Description
In the `ConcreteStorage` contract, during the `updateAccessControl` function, the provided `accessControlManagerContract_` is assumed to be a valid `AccessControlManager` without any validation. If a non-conforming contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Potential Deposit Blockage
### Description
The `maxDeposit` [function](https://github.com/dforce-network/sUSX/blob/2ff5d7a8f9a509006557bf5de72fabf40d1138a5/src/sUSX.sol#L229) will attempt to calculate the maximum amount that can be deposited based on the new `mintCap`, but it will revert due to underflow 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 | false | false | ## High: Undefined behavior for `mint`
### Description
In `FantiumMinterV1.mint()`, param `_to` is intended to be `_to Address to be the minted token's owner`. It's wrong because the final mint will be for `msg.sender` (https://github.com/metaxu-art/fantium-smart-contracts/blob/cb2d97bc30c40321991fe5ab8fc798babba1610f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Potential accumulation of dust amounts of stUSR in the contract due to rounding
### Description
The WstUSR contract's wrap and unwrap functions may lead to small amounts of stUSR (dust) accumulating in the contract over time due to rounding in the conversion process between stUSR and wstUSR.
In the `wrap` 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 | other | true | false | ## Low: Missing zero address validation in add() can cause issues with validator accounting
### Description
The `add()` function in the `InfraredDistributor` contract does not validate the provided validator address. This oversight can lead to scenarios where a zero address is added as a validator, which would be inco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `orderExist` Modifier May Incorrectly Return True
### Description
**Update**
The team fixed the issue as recommended in the commit `4063436` (as part of Missing Input Validation).
**File(s) affected:**`LimitOrderManager.sol`
**Description:** The `limitOrderManager.orderExists` modifier may run into a problem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | true | false | ## Description
A payload consists of a sequence of actions. When it is created, the payload should record its highest access level. This level is used to determine security measures such as delay periods and also which executor is used. However, the level recorded is not the highest level, but the level of the last ac... | SigmaPrime | 5 | Aave |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-upgradeable contracts inherited
### Description
**Severity**: Low
**Status**: Unresolved
**Description**
Across the protocol, several contracts that are upgradeable are using the following import for AccessControl contract:
import "@openzeppelin/contracts/access/AccessControl.sol";
Instances:
Vesting... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [09] No need to wrap `uniV3pool` parameter in `getAccountPremium` function
### Description
https://github.com/code-423n4/2023-11-panoptic/blob/aa86461c9d6e60ef75ed5a1fe36a748b952c8666/contracts/SemiFungiblePositionManager.sol#L1381C30-L1381C48
`univ3pool` parameter is already an `address`, not `IUniswapV3Poo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CriteriaResolvers.criteriaProof is not validated in the identifierOrCriteria == 0 case
### Description
In the case of `identifierOrCriteria == 0`, the criteria resolver completely skips any validations on the Merkle proof and, in particular, is missing the validation that `CriteriaResolvers.criteriaProof.lengt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `InvestorLockManager::createLockForInvestor`, `removeLockRecordForInvestor` should revert for invalid investor id
### Description
**Description:** `InvestorLockManager::createLockForInvestor` should revert for invalid investor id:
The same applies to `removeLockRecordForInvestor` - perhaps create a modifier ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Unnecessary `amount` parameter in `StakingContract::stakeWithERC20`
### Description
When provisioning a node through [`StakingContract::stakeWithERC20`](https://code.zeeve.net/zeeve-endeavors/benqi_smartcontract/-/blob/b63336201f50f9a67451bf5c7b32ddcc4a847ce2/contracts/staking.sol#L513-L577), users can pay wit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adversary can block `claimAuction()` due to push-strategy to transfer assets to multiple bidders
### Description
`claimAuction()` implements a push-strategy instead of a pull-strategy for returning the bidders funds.
This gives the opportunity for an adversary to DOS the function, locking all funds from othe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] `uint256` CAN BE USED INSTEAD OF `uint`
### Description
Both `uint` and `uint256` are used in the protocol's code. In favor of explicitness, please consider using `uint256` instead of `uint` in the following 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... | solodit_api | high | liquidation | false | true |
`Trading.limitClose()` uses `_checkDelay()`. This allows for riskless trades, by capturing price rises through increasing the stop-loss, while preventing the underwater position to be closed in case of the price dropping by continuously increasing the delay.
### Detailed description
A malicious trader can exploit th... | Code4rena | 5 | Tigris Trade |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User are forced to borrow again in order to unlock their NFTs from `IsolateLending.sol`
### Description
Isolated Margin Lending the BendDAO protocol will calculate the health factor based on a single collateral (one NFT), the liquidation of collateral will be achieved by selling the NFT through an auction 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 | high | storage | false | false | ## High: New `subGauge`s can't be used by the protocol
### Description
**Severity**
**Impact:**
High, as important protocol functionality is not working
**Likelihood:**
High, as the bug will happen every time
**Description**
The `createSubGauge` method in `GaugeFactory` creates a new `subGauge` but does not actual... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded iterations for
### Description
[L-03] Unbounded iterations for getMaxCommunityLpPositon()
Line References
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/WhitelistPeriodManager.sol#L248
Description
The getMaxCommunityLpPosition() iterates through the LP token supply to obtai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted Reactivation of Markets with Null Rewarder Address in PendleMarketDepositHelper Contract
### Description
**Severity**: Low
**Status**: Resolved
**Description**:
The PendleMarketDepositHelper contract currently possesses a potential vulnerability, where a removed market could be reactivated by a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: `getVotingPower` Is Not Equipped To Handle On-Chain Voting
### Description
_Submitted by leastwood_
As `NOTE` continues to be staked in the `sNOTE` contract, it is important that Notional's governance is able to correctly handle on-chain voting by calculating the relative power `sNOTE` has in terms of its ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: muldiv can be replaced with native arithmetic operators in most cases
### Description
`Math.muldiv` is used throughout the codebase for multiplication and division operations. It's more costly to use `Math.muldiv` than the native `*` and `/` arithmetic operations. It’s recommended to use native operations only... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Two contractOwner roles, likely with not intended behavior and risk of mistakes
### Description
Nume diamond has two `contractOwner` addresses, stored in two different storage, both are used in different situations:
- AppStorage.numeStorage().contractOwner
- LibDiamond.diamondStorage().contractOwner
**owner(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CallValueTooHigh error calculation is incorrect
### Description
In the `_validateSolverOperation()` function, the following check verifies that `solverOp.value` is larger than `address(this).balance` minus a gas amount:
```solidity
// Verify that we can lend the solver their tx value
if (
solverOp.value > a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Assertion always fails in case there are lent tokens.
### Description
**Description**
CommonV1.sol, modifier checkInvariant().
“Require” in line 90 will always fail in case there are tokens, sent to Aave, since balance cannot
be greater, than “vaultCollatSize + collatLentOut”
**Recommendation**:
Verify tha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: MinipoolManager: `recordStakingError` function does not decrease `minipoolCount` leading to too high GGP rewards for staker
### Description
The `MinipoolManager.recordStakingError` function () does not decrease the `minipoolCount` of the staker.
This means that if a staker has a minipool that encounters an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Unbounded loops in LiquidityMining ✓ Fixed
### Description
There are some methods that have unbounded loops and will fail when enough items exist in the arrays.
**code/contracts/LiquidityMining.sol:L83**
```
for (uint256 i = 0; i < \_teamsNumber; i++) {
```
**code/contracts/LiquidityMining.sol:L97**
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | logic | true | false | ## Low: Validation required for encrypted data integrity
### Description
The `findResolver(bytes, uint256)` function in the **UniversalResolver** contract processes encrypted labels by identifying specific conditions, such as the presence of square brackets (`[ ]`) and a label length of 66 bytes. It then attempts to d... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validations of parameters
### Description
## Handle
pauliax
## Vulnerability details
## Impact
There are a few validations that could be added to the system:
the constructor could check that _gravityId is not empty. state_powerThreshold should always be greater than 0, otherwise, anyone will be available t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | other | true | true | ## Lines of code
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/tokens/TokenggAVAX.sol#L88-L109
https://github.com/code-423n4/2022-12-gogopool/blob/aec9928d8bdce8a5a4efe45f54c39d4fc7313731/contracts/contract/tokens/TokenggAVAX.sol#L166-L178
https://githu... | Code4rena | 5 | GoGoPool |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Negative prices will cause old orders to be canceled
### Description
In most cases where orders are submitted using invalid oracle prices, the check for [`isEmptyPriceError()`](https://github.com/sherlock-audit/2023-02-gmx/blob/main/gmx-synthetics/contracts/oracle/OracleUtils.sol#L292-L310) returns true, 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 | token | false | false | ## Low: Double import
### Description
In the `RangeManager.sol` file, `SafeERC20` is imported twice.
### Impact
It is useless and misleading to import the same import in the same contract twice. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minimium Collateral Check Can Be Bypassed
### Description
The minimum collateral is enforced to prevent a well known vulnerability - there is no incentive to liquidate small loans. Therefore the impact of this check being bypassed is the same - small loans will not be liquidated which can lead to bad debt 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 | liquidation | true | false | ## High: User can get their Kerosene stuck because of an invalid check on withdraw
### Description
The protocol allows users to deposit both Kerosene and non-Kerosene collateral, to mint Dyad users should have an equal value of non-Kerosene (exogenous) collateral. So users should have 100% non-Kerosene and the rest co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Consensus Routines Do Not Check Threshold Key Role
### Description
When a threshold key is proposed to be created, it is necessary to specify a role in its request in order to indicate what the key’s purpose is. This role is checked against a list of available roles inside the protocol in the `generateThres... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Missing `Unstaked` event for immediate unstake in `UnstakeCooldown::transfer`
### Description
When `UnstakeCooldown::transfer` triggers an immediate unstake (i.e. the handler’s call to `proxy.request()` returns `unlockAt <= block.timestamp`), the function returns early after returning the proxy to the pool — 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... | solodit_api | high | TWAP | true | false | ## Severity: High Risk
## Context
MarketsManagerForAave.sol#L408-L411
## Description
The P2P rate is lazy-updated upon interactions with the Morpho protocol. It takes the mid-rate of the current Aave supply and borrow rate. It’s possible to manipulate these rates before triggering an update on Morpho.
```solidity
func... | Spearbit | 5 | Morpho |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Liquidation | true | true |
<https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/markets/gamma/ArrayLib.sol#L20-L32><br><https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/markets/gamma/GammaTradeMarket.sol#L146-L149>
### Impact
Griefing/DOS attack is possible... | Code4rena | 5 | Predy |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Oracles Are Not Checked for Validity or Staleness
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> * We are going to use USDs Master Oracle contract which is already audited.
> * Deployed contract: https://arbiscan.io/address/0x14D99412dAB1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens can be burnt explicitly.
### Description
**Severity**: High
**Status**: Resolved
**description**
AirPuffVaultM.burnFrom(), AirPuffVault.burnFrom(), AirPuff1X.burnFrom()
Native function `burnFrom()` still can be executed, so tokens can be burnt. Since the
contracts try to disallow any burn and trans... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage Concerns
### Description
**Update**
Addressed in: `5f236ecaedc8834617a1261ba31feef886169452`. The client introduced a cap of 100 NFT's per listing.
**File(s) affected:**`MarketPlace.sol`, `Listings.sol`, `RoyaltiesOracle.sol`
**Description:** Gas usage is a main concern for smart contract developers... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Validation | true | false | Source: https://github.com/sherlock-audit/2023-01-ajna-judging/issues/119
## Found by
berndartmueller
## Summary
Anyone can propose a slate of standard proposals to be funded in a distribution period with the `StandardFunding.checkSlate` function. The proposal slate can contain duplicate proposal ids, which, if th... | Sherlock | 4 | Ajna |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: DoS of `RootBridgeAgent` due to missing negation of return values for `UniswapV3Pool.swap()`
### Description
### Lines of code
### Vulnerability details
Both `RootBridgeAgent._gasSwapIn()` and `RootBridgeAgent._gasSwapOut()` do not negate the negative returned value of `UniswapV3Pool.swap()` before casti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [14] Missing event for critical parameter change
### Description
When changing state variables events are not emitted. Emitting events allows monitoring activities with off-chain monitoring tools. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: `multicall()`s involving `permit()` and `delegateBySig()` can be DOSed
### Description
Attackers monitoring the blockchain for multicalls can front-run by calling `permit()` and `delegateBySig()` before the `multicall()`, causing it to revert. Have separate flavors of the functions where the `multicall()` data... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional Fields For Events In Oracle
### Description
## OracleParams Change Event
Whenever a value in `OracleParams` changes, the `OracleParamChangeEvent` event emits. However, the event fails to specify the coin name for which it changes the parameters.
## Proposal
Add `coin_name` as a field in `OracleP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Perpetual - The specified decimals for the collateral may not reflect the token’s actual decimals Acknowledged
### Description
When initializing the `Perpetual` contract, the deployer can decide to use either `ETH`, or an `ERC20`-compliant collateral. In the latter case, the deployer must provide a nonzero 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 | other | true | false | ## Gas: `require()` or `revert()` statements that check input arguments should be at the top of the function
### Description
1. File: contracts/PooledCreditLine/PooledCreditLine.sol (line [394](https://github.com/sublime-finance/sublime-v1/blob/46536a6d25df4264c1b217bd3232af30355dcb95/contracts/PooledCreditLine/Poole... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [21] FDG: Honest challengers can lose their bonds when proposing valid root claims that will become invalid in the event of chain reorgs.
### Description
In the event of a chain reorg, valid root claims can become invalid because the L2 state and correct output can change. The honest challenger can lose their ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Votes manipulation in PoolVoter
### Description
Report type: Smart Contract
Target: https://github.com/zerolend/governance
Impacts:
- Manipulation of governance voting result deviating from voted outcome and resulting in a direct change from intended effect of original results
## Description
## Vulnerabil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 3] An attacker can set the exchange rate of ZEALInfinityPool to a very large or unlimited value
### Description
**Severity:** Medium
**Path:** contracts/ZEALInfinityPool.sol#L192-L194
contracts/ZEALInfinityPool.sol#L85-L99
**Description:** In the ZEALInfinityPool contract, the exchange rate between staked... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | token | true | false | ## Gas: savings
### Description
## Context
- **Files and Lines Involved:**
- ERC20Paymaster.sol#L50-L56
- ERC20SponsorPaymaster.sol#L67-L73
- SponsorshipVault.sol#L32-L35
- SponsorshipVault.sol
- ERC20Paymaster.sol#L41
- ERC20SponsorPaymaster.sol#L38-L41
## Description
## Modifiers
- **Affected Files:**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DOS attack by delegating tokens at MAX_DELEGATES = 1024
### Description
The delegate function in the VotingEscrow contract allows any user to delegate voting power to any other address. However, delegated token information is stored in arrays whose size is capped by MAX_DELEGATES = 1024. This limit is desig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: transferVaultBalance function is unusable and mistransfers user's funds due to hardcoded asset ID
### Description
The admin migration tool uses a hardcoded id (80085) when moving balances between vaults, so it targets a single arbitrary account instead of user's real `assetIds`.
Because balances are account... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | initialization | true | false | ## Low: Avoid unnecessary initialization to zero
### Description
Avoid unnecessary initialization to zero:
```solidity
File: contracts/ousg/InvestorBasedRateLimiter.sol
253: for (uint256 i = 0; i < addresses.length; ++i) {
```
```solidity
File: contracts/ousg/ousgInstantManager.sol
106: uint256 public mintFee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No checks on the size & gas consumption
### Description
The handleOps() function in the contract does not perform any checks on the size of the UserOperation array or estimate the gas consumption required to process all the operations. This oversight can potentially lead to situations where the loop iterating ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Time Period
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6415e30ebdfe9976aecad1bedd6f68a041ad43b2`.
**File(s) affected:**`StandardFunding.sol`
**Description:**`StandardFunding.claimDelegateReward()` checks if the challenge stage of the distribution has ended 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 | low | other | false | false | ## Low: Outdated dependencies
### Description
It was identifying during the assessment of the program `endo_avs` in-scope that its dependencies for the Anchor framework and also for Solana are not current.
```
[[package]]
name = "solana-program"
version = "1.18.7"
```
```
[[package]]
name = "anchor-lang"
version = "... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: selfdestruct may cause the funds to be lost
### Description
### Impact
After the contract is destroyed, the subsequent execution of the contract's `#buy()` will always succede, the msg.value will be locked in this address.
### Proof of Concept
When FixedPrice.sol and OpenEdition.sol are finished, `selfdest... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Deletion Should Be Done After Reading Validator Addresses
### Description
**Severity** - Medium
**Status** - Resolved
In the function `pruneQuorums()` (L133 LibQuorum.sol) `self.quorumSignatureSenders[h];` is deleted at L143 , then at L145 `values()` are read from the same `self.quorumSignatureSenders[h]`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Proxy reuse without implementation check inside `UnstakeCooldown` leads to execution on outdated/vulnerable logic
### Description
**Description:** The contract reuses old proxies from the user’s `UnstakeCooldown::proxiesPool` without verifying whether those proxies were created from the current implementati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 @inheritdoc rather than using a non-standard annotation
### Description
### Proof Of Concept
https://github.com/code-423n4/2023-06-llama/tree/main/src/LlamaCore.sol#L514
https://github.com/code-423n4/2023-06-llama/tree/main/src/LlamaCore.sol#L564
https://github.com/code-423n4/2023-06-llama/tree/main/sr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninitialized implementations
### Description
The proxy contracts that represent the strategies [should be initialized](https://github.com/OriginProtocol/origin-dollar/blob/bfe0ac8e5d7c05b9bf1021fafb25e0aed8a6ed45/contracts/contracts/utils/InitializableAbstractStrategy.sol#L69) before they are used. However, 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 | access-control | true | false | ## High: Anyone can set a malicious `diamond` address.
### Description
**Severity**: High
**Status**: Resolved
**Description**
The `Referrals.sol` smart contract implements an `addDiamond` function which set a specific address to the `diamond` which is used by the `onlyDiamond` modifier. The function `addDiamond` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | high | other | true | true | ## High: Inaccurate uptime distribution in `UptimeTracker::computeValidatorUptime` leads to reward discrepancies
### Description
The `UptimeTracker::computeValidatorUptime` function calculates a validator's uptime by evenly distributing the total recorded uptime across all epochs between the last checkpoint and the 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 | other | true | false | ## Low: Inconsistency in harvest mechanism
### Description
The `harvest()` mechanism in the `StrategyAerodromeGaugeGreen` contract allows to compound earnings and charges performance fee. However, there is no minimum harvest threshold, which could lead to inefficient harvesting when triggered with low amounts.
Additi... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.