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 | high | access-control | true | false | ## High: Funds get locked in the vault
### Description
In case:
- User X requests to redeem shares for assets and set `receiver` for Y
- Agent Z registered in the Dynamic Account of user X will remove liquidity from Uniswap V3
- Agent Z calls `OmoVault.sol#topOff()` function.
But the current implementation will reve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PaymentUtils.pay() misses safeTransfer()
### Description
Contracts usually use `safeTransfer()` and `safeTransferFrom()`.
`PaymentUtils.pay()` uses transfer directly. It is more secure to use `safeTransfer()` there. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Role Transfer Not Following Two-Step Pattern
### Description
**Update**
The Nemeos team stated that this is mitigated by having a multi-signature wallet for the factory owner's address.
**File(s) affected:**`PoolFactory.sol`
**Description:** The owner of the contracts can call `transferOwnership()` to transf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Description
### Description
Burning of child tokens can be disabled after `PaymentSettler::enableBurning` has been called by an admin calling `CentralToken::disableBurning` directly on the parent of the child tokens.
However, an admin could call `mint` once `disableBurning` as called because of the following ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RocketMiniPoolDelegate - on destroy() leftover ETH is sent to RocketVault where it cannot be recovered ✓ Fixed
### Description
When destroying the `MiniPool`, leftover `ETH` is sent to the `RocketVault`. Since `RocketVault` has no means to recover “unaccounted” `ETH` (not deposited via `depositEther`), fund... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | false | false | ## High: Flash loans of underlying tokens cannot be executed safely
### Description
The [`Trader` contract](https://github.com/primitivefinance/primitive-protocol/blob/78a8e64b7618e9199203ab84042876c580ae1e90/packages/primitive-contracts/contracts/option/extensions/Trader.sol) implements a set of functions that allow ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lock pragma to a specific version
### Description
**Description**
Lock the pragma to a specific version, since not all the EVM compiler versions support all the
features, especially the latest one’s which are kind of beta versions, So the intended behavior
written in code might not be executed as expected.
Lo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Print to console
### Description
This code was used for testing:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/adapters/UniswapV3.sol#L230
### Recommendation
We recommend removing these lines. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | false | ## Severity: High Risk
## Context
Locke.sol#L321
## Description
The truncated division can cause users to lose rewards in this update round, which may happen when any of the following conditions are true:
1. `RewardToken.decimals()` is too low.
2. Reward is updated too frequently.
3. `StreamDuration` is too large.
4... | Spearbit | 5 | Locke |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Due Diligence into Farm managers
### Description
## Vulnerabilities in NFT Locking Mechanism
It is possible for a farm manager to modify the locking duration, preventing users from properly unlocking NFTs. This can be abused to allow the farm manager to later steal locked NFTs.
## Code Snippet (Rust)
Unst... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | signature | true | false | ## Gas: `abi.encode()` is less efficient than `abi.encodePacked()`
### Description
In terms of efficiency, `abi.encodePacked()` is generally considered to be more gas-efficient than `abi.encode()`, because it skips the step of adding function signatures and other metadata to the encoded data. However, this comes at th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Usage of `uints`/`ints` smaller than 32 bytes (256 bits) incurs overhead
### Description
> When using elements that are smaller than 32 bytes, your contract’s gas usage may be higher. This is because the EVM operates on 32 bytes at a time. Therefore, if the element is smaller than that, the EVM must use more 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 | token | false | false | ## Low: Borsh Decoding Does Not Call done()
### Description
Borsh is a serialization protocol that allows encoding data to bytes and decoding data to object-oriented structs. The Borsh protocol expects the exact number of bytes to be parsed when decoding an object to prevent length extension attacks. In the functions ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | reentrancy | true | true | ## Low: Dust amounts of rewards get stuck in the Vault
### Description
In `StakingVault`, rewards are distributed through the `notifyRewardAmount` function. However, due to the current implementation, some rewards can remain stuck in the contract because of rounding errors.
For example:
* User1 stakes `1e18`
* User2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: Lack of checks for deposits and withdrawals recipients may allow for tokens lost in XERC20Lockbox contract
### Description
In the `XERC20Lockbox` contract, the functions that allow users to make deposits and withdrawals to an arbitrary recipient do not check if the recipient is the `XERC20Lockbox` contract 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 | medium | storage | false | false | ## Medium: Index returned overwrites an existing element
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In TradingStorage.sol - Methods: firstEmptyTradeIndex, firstEmptyOpenLimitIndex() returns index = 0 if all the array slots are occupied. This in turn overrides the first element (i.e. 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 | other | true | false | ## Low: Outdated usage index in view functions leads to incorrect debt calculations
### Description
The `LendingPool` contract uses an outdated usage index in the [getUserDebt()](https://github.com/Cyfrin/2025-02-raac/blob/89ccb062e2b175374d40d824263a4c0b601bcb7f/contracts/core/pools/LendingPool/LendingPool.sol#L579-L... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: poolCoinAmount validation
### Description
https://github.com/code-423n4/2022-06-nested/blob/b4a153c943d54755711a2f7b80cbbf3a5bb49d76/contracts/libraries/StakingLPVaultHelpers.sol
poolCoinAmount must be 2, 3, 4. so, if it not fall in this range it should be reverted but now it doesn't. On every functions in th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | false | false | ## High: Reentrancy vulnerabilities in Market contract
### Description
In the [`Market`](https://github.com/AugurProject/augur/blob/9a33c3269e812d0cb66d49b61a72db58e32e4749/packages/augur-core/source/contracts/reporting/Market.sol) [contract](https://github.com/AugurProject/augur/blob/9a33c3269e812d0cb66d49b61a72db58e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MERKLE ROOT RE-USAGE
### Description
The `merkleMint` function on the `MerkleMinter` contract does allow specifying a previous used `_merkleRoot`. The merkle proofs do not consider the token being used as part of the proof. This allows the same proof, with the same merkle root, to be used for any token. This m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Several important TODOs left
### Description
Several TODOs mentioned in the code which point to missing code implementation.
### Recommendation
Consider each TODO for implementation. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | logic | true | false | ## Low: [07] Missing check on compressed flags, allowing proof with invalid flag to pass
### Description
*Note: At the judge’s request, this downgraded issue from the same warden has been included in this report for completeness.*
### Finding description and impact
In scroll’s zktrie, account leaf node and storage l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: Inconsistent implementation of ERC-7201 Namespaced Storage locations
### Description
**Description:** Regarding the implementation of Namespaced Storage locations, the EIP-7201 formula should be followed to strictly conform to the EIP specification, as is correctly done by the modified OpenZeppelin libraries 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 | medium | token | false | false | ## Medium: Defaulted Idle CV with pending withdrawals will permanently break stablecoin accounting
### Description
[IdleCDOEpochVariant.sol#L646-L652](https://github.com/Idle-Labs/idle-tranches/blob/ed8172617a1d56c56e771b0abc203632fd067bd8/contracts/IdleCDOEpochVariant.sol#L646-L652)
/// @notice Claim a withdraw ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent `DOMAIN_TYPEHASH`
### Description
In the `VotingEscrow::delegateBySig` function, the `domainSeparator` is computed as follows:
However, the `DOMAIN_TYPEHASH` constant is defined as:
Here, the `domainSeparator` includes an extra `version` field, which is not part of the defined type hash, makin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Rollup.sol` cannot split batches across blobs, allowing inexpensive block stuffing
### Description
The maximum amount of calldata that can be passed to an L2 transaction is too large to fit in a single blob. Because `Rollup.sol` does not allow splitting batches across blobs, L2 blocks are capped by their 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 | rounding | false | false | ## Low: LACK OF DELEGATED AMOUNT VALIDATION IN ADD REDEMPTION REQUESTS FOR PREMATURE DEPOSITS
### Description
The `deposit` instruction allows lenders to deposit funds into a pool once it is enabled. A validation has been added to ensure that the `tranche_token_account` used for the deposit has the `pool_authority` se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | false | false | ## Medium: WardenPledge accidentally inherits Ownable instead of Owner which removes an important safeguard without sponsor knowledge
### Description
Owner may accidentally transfer ownership to inoperable address due to perceived safeguard that doesn't exist.
### Proof of Concept
contract WardenPledge is Ownable,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Payout of Rewards is Not Guaranteed
### Description
**Update**
The Blex team acknowledged the issue and provided the following explanation:
> When the reward distributor has insufficient rewards, users will not receive any rewards. The reason for doing this is to prevent potential vulnerabilities in the re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: More comprehensive testing
### Description
Some issues, like TRST-H-1 and TRST-H-2, could have been caught earlier in the development
process with a more robust test suite. Consider writing extensive tests for the changes made
from the initial codebase. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Time range check performed multiple times
### Description
When `RangeEditionMinterV2.sol.setTimeRange()` is called, we pass the `startTime`, `cutoffTime`, and `endTime` to the function.
First, we perform the check to `_requireValidCombinedTimeRange()`, which ensures our times are in the correct order:
Then... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 _capFeeAmount function is not working as intended
### Description
Panther token has a limit on the transfer size. Because of that, all the Panther transfer values in the `PantherSwapCompoundingStrategyToken` are also capped beforehand. The following function is called to cap the size of fees:
**wheat-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Slippage Protection in Deposit Function
### Description
The pool contract has a vulnerability in its deposit mechanism. When a user deposits tokens into the pool, the contract does not provide a slippage protection mechanism. This is problematic because the exchange rate between deposited tokens and LP... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker Can Initialize the Implementation
### Description
The contracts are upgradable, inheriting from the Initializable contract. However, the current implementations are missing the `_disableInitializers()` function call in the constructors. Thus, an attacker can initialize the implementation. Usually, the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Price band caps apply to decreasing orders, but not to liquidations
### Description
Price band caps limit the price at which an order can be settled (e.g. someone trying to reduce their exposure in order to avoid liquidation), but liquidations have no such limitation.
### Impact
The whole purpose of the Or... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [20] Using `private` rather than `public` for constants, saves gas
### Description
If needed, the value can be read from the verified contract source code. Savings are due to the compiler not having to create non-payable getter functions for deployment calldata, and not adding another entry to the method ID ta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `churnLimit` can be zero
### Description
If `churnValidatorsPerDayLimit` is small and the frequency of the report is high, then there is a chance that `churnLimit` will be rounded down to zero: https://github.com/lidofinance/core/blob/efeff81c18f85451ebf98e8fd8bb78b8eb0095f6/contracts/0.8.9/sanity_checks/Oracl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Argon2i algorithm is used instead of Argon2id
### Description
The Uniswap mobile wallet encrypts cloud backups with a key derived from a user’s password and a random salt. The Argon2i algorithm is used for this task. This algorithm has a few known attacks that reduce its memory requirements. Therefore, it is m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Potential Precision Loss Due to Imbalanced Schedule Configuration
### Description
When the total scheduled duration is significantly long (e.g., 1 month) and the `schedule.period` is relatively short (e.g., 1 hour), the computed `totalPeriods` can become disproportionately large. In such cases, if both `schedu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Avoid
### Description
[L-02] Avoid shadowing inherited state variables
Context
GraphProxy.sol#L140
Description
In GraphProxy.sol#L140, there is a local variable named _pendingImplementation, but there is a function named _pendingImplementation() in the inherited GraphProxyStorage with the same name. This use ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transactions calling addDust revert if token has more than 20 decimals
### Description
In the `addDust` function in the `OptionsPositionManager.sol` file, if `token0` or `token1` has more than 20 decimals, the transaction will always revert.
### Impact
The token pairs having at least one token with more than ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Premature Liquidation When a Borrower Pays early
### Description
On TellerV2 markets, whenever a borrower pays early in one payment cycle, they could be at risk to be liquidated in the next payment cycle. And this is due to a vulnerability in the liquidation logic implemented in `_canLiquidateLoan`. Note: 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 | liquidation | true | false | ## Low: borrowLTV can be equal to liquidateLTV
### Description
When setting LTV, it is possible for `borrowLTV` to equal `liquidateLTV`, which can lead to issues when a user attempts to borrow the maximum amount of an asset. This situation makes them susceptible to immediate liquidation, even if the collateral price 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 | high | liquidation | true | false | ## High: `USDs` self-backing breaks assumptions around economic peg-maintenance incentives
### Description
**Description:** When `SmartVaultYieldManager::deposit` is called via `SmartVaultV4::depositYield`, [at least 10%](https://github.com/the-standard/smart-vault/blob/c6837d4a296fe8a6e4bb5e0280a66d6eb8a40361/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: Removed yield tokens can never be added again affecting protocol yield strategy
### Description
Removed yield tokens from YieldDistributor can never be added again, which negatively affects protocol yield strategy and distribution thereafter.
### Recommendation
Consider checking for `yieldTokens[i].isActive =... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [13] Consider making `StakingLPEth#unstake()` and `StakingLPEth.sol` as a whole backed by pausable modifiers
### Description
https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/StakingLPEth.sol#L88-L100
This function is used to claim the staking amount after the coo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: `VaultAccountSecondaryDebtShareStorage.maturity` will be cleared prematurely
### Description
`VaultAccountSecondaryDebtShareStorage.maturity` will be cleared prematurely during liquidation
### Impact
Any vault logic that relies on the `VaultAccountSecondaryDebtShareStorage`'s maturity value would break since... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: 4. Blocking the minimal registrant in the whitelist
### Description
**Severity:** High
**Path:** WhitelistRegistry.sol:#L49-L70
**Description:**
The function `register` is used to register a new resolver if the voting power
meets the threshold requirement, in case the whitelist is full
(`_whitelist.length... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | access-control | true | true | Source: https://github.com/sherlock-audit/2025-05-yearn-ybold-judging/issues/154
## Found by
Obsidian
### Summary
Inflatability of the `TokenizedStrategy` share value, combined with the lack of an initial deposit via the `StrategyFactory`, allows a malicious attacker to steal 25% of the first depositor's funds.
#... | Sherlock | 5 | Yearn yBOLD |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Atypical transferOwnership() function on PRBProxyRegistry
### Description
The `transferOwnership()` function transfers the ownership of a proxy to a new owner. To an uneducated user, however, the function name might be confusing as it resembles a typical `transferOwnership()` function which transfers the 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 | other | true | false | ## Low: PRICE LIMIT IS NOT ENFORCED IN THE SETPRICE FUNCTION
### Description
The `Passage` contract allows the owner to set a width for the channel through the `setPrice()` function.
### Recommendation
**SOLVED**: The \client team fixed the issue by adding an if statement that reverts if price is below 1e15 in commit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use named constants to indicate purpose of magic numbers
### Description
**Description:** Use named constants to indicate purpose of magic numbers. For example in reference to the value of the `_tokenURIs` mapping:
* instead of using literal `2`, use existing named constant `URIS_PER_TOKEN`:
* when setting 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 | gas | initialization | false | false | ## Gas: Default value initialization
### Description
Saves `80 GAS` in 4 instances
If a variable is not set/initialized, it is assumed to have the default value`(0, false, 0x0 etc depending on the data type)`. Explicitly initializing it with its default value is an anti-pattern and wastes gas.
Saves `15-20` GAS per ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Missing code check in Solady safeTransfer functions
### Description
The `distributeFees()` function in `Beekeper` uses the `safeTransfer` extension from Solady.
The problem with that is that it doesn't check for the token code size, and it doesn't revert for calls to EOAs.
This means that it would be possibl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invalid audit.toml prevents cargo audit from being run
### Description
The project’s `anchor.toml` file contains an invalid key. This makes running `cargo audit` on the project impossible. The relevant part of the `audit.toml` file appears in figure 3.1. The `packages` key is unrecognized by `cargo audit`. As ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | upgrade | false | false | ## Low: Upgrading DAO tier emits same event as minting the same tier
### Description
If a DAO is registered as SPONSORED, its members can upgrade their membership tier by burning two lower tier tokens for one higher tier token in a call to `MembershipFactory::upgradeTier`.
This will [emit](https://github.com/OneWpOrg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Reward Allocation
### Description
## Discrepancy in Reward Distribution Between Marginfi Standard Program and Vault Program
There is a discrepancy between the utilization of **SY** and **YT** for reward distribution in the Marginfi-standard program and the vault program.
In the Marginfi-standa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Rounding Directions
### Description
## Internal Unlock Functionality
`internal_unlock` unlocks the amount from the delegation pool and burns the equivalent `truAPT` tokens. It creates an `UnlockRequest` for the user with the unstaked amount, which later facilitates the withdrawal of APT from the pro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Test scripts problem
### Description
This problem is not in the audit scope.
The following two tests do not work correctly:
`test_owner_recovers_erc20_to_own_address` and `test_owner_recovers_erc20_zero_amount`.
### Recommendation
It is recommended to fix the tests. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: Don't initialize default values to variables to reduce gas
### Description
Saves ``13 GAS`` for local variable and ``2000 GAS`` for state variable
https://github.com/delegatexyz/delegate-registry/blob/6d1254de793ccc40134f9bec0b7cb3d9c3632bc1/src/DelegateRegistry.sol#L35 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interface does not correspond to contract.
### Description
**Description**
Line 26, function withdrawAllAndUnwrap(). In the interface, it is declared that function returns
bool, however the actual contract in mainnet doesn’t return anything, thus the call to the
contract in ConvexBoosterContractHelper(line 8... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bet amount remains locked in the `Flip` contract when player wins
### Description
When a game is completed and the player wins, a percentage of the bet amount (fee) is sent to the manager and/or the staking contract. But the rest of the bet amount remains locked forever.
This means that for every game won, 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 | oracle | false | false | ## Low: The
### Description
[L-03] The whenOpen modifier just pauses the execute and bulkExecute function
The whenOpen modifier prevents the function it is used from, and the modifier constructor starts with the value 1(true) by default.:br
If 0(false) is set by Owner, the function it is used with becomes inoperable.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A proposal can be cancelled by anyone if the proposal has exactly proposalThreshold votes
### Description
If the proposer of a proposal has votes in the same amount as the proposalThreshold, they can create a proposal. But in this case, anyone can also cancel this proposal.
When creating a proposal the 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 | medium | oracle | false | false | ## Medium: Extended Utilization Of Stale Data
### Description
## Current State of PriceFeed
Currently, `PriceFeedState::update` returns the `last_good_price` every time. However, if the `last_good_price` is returned when both oracles are broken or untrusted, there is a risk that this price might be outdated. Thus, if... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Anyone Can Avoid All Vether Transfer Fees By Adding Their Address to the Vether `ExcludedAddresses` List.
### Description
`Vether.sol` implements a fee on every token transfer, unless either the sender or the recipient exists on a list of excluded addresses `(mapAddress_Excluded)`. However, the `addExcluded()... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Typecasting of `msg.sender` in Event Emission
### Description
The function `mintPortalEnergyToken` emits an event using `msg.sender` and typecasts it to an address, which is unnecessary since `msg.sender` already returns an address.
### Impact
While this issue does not pose a security risk, it int... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement Expiration Date Utilization in AddMultiGrant Function
### Description
The `AddMultiGrant` function in the `keeper` package **is** creating authorizations without setting an expiration date. This could lead to permanent authorizations.
```
func (k msgServer) AddMultiGrant(goCtx context.Context, msg *... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: the killed gauge collect claim amount
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
## Description
## Brief/Intro
the killed gauge can accrue 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 | oracle | false | false | ## Low: External Risks that May Affect Protocol Security
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Given that USDs is built to act as a Yield-Automator for its holders. It will always be dependent on external protocols for generating the yield.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: HybridDeleGator Should Only Be Deployed on Chains That Support P256 Signature Verification at 0xc2b78104907F722DABAc4C69f826a522B2754De4
### Description
#### Description and Recommendation
To ensure smooth operation, the `HybridDeleGator` contract should only be deployed on chains that support secp256r1 sign... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: No protection against non plugin or non target contracts
### Description
PRBProxy allows any type of contract to be delegatecalled into. When a user specifies a contract as a target that was not specifically coded to be used in this way, this can cause problems at the proxy level. One example of what can go wr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GETOUTSTANDINGDEBT FUNCTION RETURNS UNDERSTATED VALUE
### Description
In the `LineOfCredit` contract, the `getOutstandingDebt()` function allows users to get information about total outstanding debt valuated in USD. The presented amount is a sum of principal and interest. The assessment revealed that the `get... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Access restrictions on `NotionalV1ToNotionalV2.notionalCallback` can be bypassed
### Description
_Submitted by cmichel, also found by pauliax_
The `NotionalV1ToNotionalV2.notionalCallback` is supposed to only be called from the verified contract that calls this callback but the access restrictions can be cir... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: USDC Blacklisted user can break bidding
### Description
When there is a higher bid, or the listing is canceled, or the listing is bought directly, if there is an existing bid, the bid will be returned to the bidder. For some tokens, refunds are not always successful.
For example, for USDC, if a bidder 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 | liquidation | true | false | ## Medium: Asymmetric fee structure allows market participants to get the same outcome for less fee
### Description
When matching an order using swapping (either by matching two users or matching a user versus a market maker), a trade fee is charged. This fee is taken from the collateral amount traded.
We show 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 | medium | initialization | false | false | ## Medium: Not Being Able To Manage Configurations Appropriately Allows Users to Avoid Fees
### Description
The `isAmmPair` variable is used to track the AMMs in order for the Berabot token to know when to apply fees on transfers from and to such pools. The uniswap V2 WBERA/BerabotToken pool is the one being set in th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The length of an array is not cached before loops
### Description
In the `CHNGovernance` contract the `queue()` function iterates over all of the contract targets of the proposal and then calls the `_queueOrRevert()` function in order to queue all of the functions that have to be executed later. However the le... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FeeSplitter: Unbounded number of shareholders can cause DOS
### Description
_Submitted by GreyArt_
#### Impact
There is no limit to the number of shareholders. It is therefore possible to set a large number of shareholders such that `_sendFees()` will run out of gas when adding shares to each shareholder.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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/2022-11-buffer-judging/issues/95
## Found by
Ch\_301
## Summary
_fee() function is wrongly implemented in the code so the protocol will get fewer fees and the trader will earn more
## Vulnerability Detail
```solidity
(uint256 unitFee, , ) = _fees(10**decimals(), s... | Sherlock | 4 | Buffer Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [06] `DAO` CONTRACT'S `receive()` CAN BE UPDATED TO CALL `DAO.deposit` FUNCTION WITH `_token` INPUT BEING `address(0)`
### Description
The `DAO` contract's `receive()` currently emits the `NativeTokenDeposited` event. Yet, the `DAO.deposit` function covers the same purpose of depositing ETH into the DAO, 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 | access-control | false | false | ## Medium: You can deposit really small amount for other users to DoS them
### Description
Deposit and mint under [**LiquidityPool**](https://github.com/code-423n4/2023-09-centrifuge/blob/main/src/LiquidityPool.sol#L141-L152) lack access control, which enables any user to **proceed** the mint/deposit for another user... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Metamesh tests fail sporadically with certain parameters Difficulty: Low
### Description
The metamesh tests fail sporadically when small thresholds are involved. The existing metamesh tests appear in figure 7.1. Note that there is only one test in which a threshold differs from its associated number of nodes ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner can steal Concur rewards
### Description
_Submitted by Czar102_
[MasterChef.sol#L78-L80](https://github.com/code-423n4/2022-02-concur/blob/main/contracts/MasterChef.sol#L78-L80)
[MasterChef.sol#L157-L180](https://github.com/code-423n4/2022-02-concur/blob/main/contracts/MasterChef.sol#L157-L180)
Owne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Named parameters in mapping types
### Description
The code uses mapping types without named parameters and uses comments to document the parameters:
- `mapping(address => uint256) public wards; // usr => 1 == access`
- `mapping(address => FarmStatus) public farms; // farm => FarmStatus`
- `mapping(address => ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `mintParams` array limit inconsistent with documentation
### Description
_Resolved_
The `Execute.execute()` function's NatSpec states that `mintParams` can have a maximum of 10 elements:
However, the implementation enforces a maximum of 9 elements:
This inconsistency between documentation and 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 | medium | rounding | true | false | ## Medium: sqrtDiscriminant can be calculated wrong
### Description
Due to the wrong calculation of short and long tokens during the `leverage` and `deleverage` process, the users can suffer financial loss while the protocol will lose fees.
### Proof of Concept
The protocol uses `leverage` function to deposit short ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Event Emissions for Critical State Changes in Fias Token Contract
### Description
**Severity** - Informational
**Status** - Acknowledged
**Description**:
The Fias token contract, including its V2 upgrade, fails to emit events for significant state changes, particularly during token minting in the in... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: The Manager Can Manipulate Position Liquidity at the Users Detriment
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**:
The manager has full control over adding and removing liquidity positions through the addLiquidity() and removeLiquidity() functions. The manager could manip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Account Inconsistencies In Bridge Tokens Instruction
### Description
## Bridge Tokens Instruction Review
In the `bridge_tokens` instruction, the `token_mint` is utilized to determine the type of token being transferred. However, the current implementation does not verify if `token_mint` is the correct mint 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 | overflow | false | false | ## Medium: Lack of safeguards in PaymentForwader
### Description
For such an important component, `PaymentForwarder` is lacking in safety measures. All math operations are unchecked for overflows. The comments state: “We trust Ethereum amounts cannot overflow uint256”. Although this seems to be true, it’s better to be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: when ReserveBase undercollateralized , Manager.orders will not be able to execute
### Description
`Manager.sol` does not take into account that `reserve.redeemPrice` may be less than 1:1
The current code, `reserve.redeem(amount)` followed by a direct transfer of the same USDC, will fail because it results i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: itemPredicates encoded incorrectly according to EIP-712
### Description
The `itemPredicates` parameter is not encoded correctly, so the signer cannot see the verifier address when signing. The verifier address receives each batch of listed assets to check them for correctness and existence, which is vital to e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | true | ## Low: `MetaVault::addVault` should enforce identical underlying base asset
### Description
When supporting additional vaults, `MetaVault::addVault` should enforce that the new vault being supported has an identical underlying base asset as itself. Otherwise:
* `redeemRequiredBaseAssets` won't work as expected since ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicated `require()`/`if()` checks should be refactored to a modifier or function
### Description
Sign modifiers or functions can make your code more gas-efficient by reducing the overall number of operations that need to be executed. For example, if you have a complex validation check that involves multiple... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Token transfers may fail silently [sample]
### Description
The `DepositPaymaster` ignores the token transfer return value when [adding deposits](https://github.com/eth-infinitism/account-abstraction/blob/8832d6e04b9f4f706f612261c6e46b3f1745d61a/contracts/samples/DepositPaymaster.sol#L53), [withdrawing 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 | token | false | false | ## Low: Unnecessary private fields, duplicated getters
### Description
**Description**
You have private fields in your contacts for which there are public getters. If you do not plan to inherit from these contracts, then you can probably remove unnecessary getters and make the variables public. Solidity will automati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bypass `TimeLock` restrictions
### Description
Esto permite que llamadas como la que se muestran a continuacion, que se encuentran limitadas al contrato de `TIME_LOCK_ADDRESS`, sea posible ser llamadas por el owner, evitando cualquier limitación de tiempo, debido a que en primer lugar no se comprueba que la di... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | true | false | ## Low: Missing Zero Address Validation Causes Permanent Token Loss
### Description
The `PortalCCIP` contract contains a critical vulnerability where tokens can be permanently lost during cross-chain bridging operations. The issue arises from the missing validation of the `destinationAddress` parameter before burning ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Lack of min `toBuy` and `toBurn` for `buyAndBurn`
### Description
When `buyAndBurn` is called, it calculates the `toBuy` and `toBurn` amounts based on the `burnPercentage` value. As long as one of the values is non-zero, the operation will be processed.
This allows griefers to donate a dust amount of the inp... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.