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 | true | false | ## Low: Lack of zero-value checks on functions
### Description
Certain setter functions fail to validate incoming arguments, so callers can accidentally set important state variables to the zero 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 | overflow | true | false | ## Low: Distribution Timeframe Invariants
### Description
## Arithmetic Underflow Mitigation
A currently unexploitable arithmetic underflow could be further mitigated by enforcing stricter invariants on the input data.
We also note that this was a discrepancy with the internal audit. Specifically, the internal audi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: Public Visibility on checkMerkleRootAndVerifySignatures Allows for DOS Attacks and User Fund Loss ✓ Fixed
### Description
When a new task is created through `BatcherPaymentService`, the `createNewTask()` function is called with appropriate signature arguments to validate user submissions, subtract funds from ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ViewFacet.queryAssetBalances` doesn't unclude uncollected uniswap fees for compounded maker position
### Description
When `ViewFacet.queryAssetBalances` calculates the earnings for compounded maker, it ignores the uncollected uniswap fees:
```solidity
uint256 fee0DiffX128 = newFeeGrowthInside0X128 - node... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect fee handling in `Position.sol's` Market `Buy`/`Sell` functions
### Description
The incorrect fee handling in the `Position.sol` market buy and sell functions can lead to improper fee deductions and wrong trade execution.
### Proof of Concept
In `Position.t.sol`, `_rubiconSwap_` executes the orde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Unnecessary use of var
### Description
In `getExpectedRepaymentValue` of `SimpleInterestTermsContract`, `var` is used in the [destructuring of a tuple](https://github.com/dharmaprotocol/charta/blob/b110959477cf37375bf7e9344d40eb85219c8575/contracts/examples/SimpleInterestTermsContract.sol#L94).
It is encoura... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bug in `MatchOneToManyOrders` may cause tokens theft
### Description
_Submitted by PwnedNoMore_
The `MatchOneToManyOrders` does not check whether a given sell order is malicious, i.e., containing no NFT tokens but still requiring payment.
This may cause the sellers to maliciously profit.
For example, we ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Unsafe cast in `ConcentratedLiquidityPool.burn` leads to attack
### Description
_Submitted by cmichel, also found by broccoli_
The `ConcentratedLiquidityPool.burn` function performs an unsafe cast of a `uint128` type to a *signed* integer.
Note that `amount` is chosen by the caller and when choosing `amoun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | false | false | ## Medium: Precision Loss in CashAsset.withdraw()
### Description
`CashAsset.withdraw()` appears to have some precision loss, which can lead to reverts when using stable assets with native decimals larger than 18 digits. The `withdraw()` function converts the requested `stableAmount` by calling `to18DecimalsRoundUp()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Accounts from contexts are not always used by the instruction
### Description
The context definition for the `initialize` instruction defines a `drift_signer` account. However, this account is not used by the instruction. It appears to be a remnant used to pass the address of the state PDA account; however, the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Wherever Necessary, Pre and Post-Conditions Could Be Added to the Transactions
### Description
**Update**
The client fixed the issue in: `837063e5ba5e71b79262d9679017716328df233d` with the following explanation:
> Added pre-conditions where possible and not redundant.
**File(s) affected:**`transactions/*`
*... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Burn Reward Multiplier Reset on `claim()` Reduces Accrual
### Description
Burn-mode rewards compute the multiplier from time since the last burn claim and then reset that reference timestamp on each claim, erasing duration and keeping the multiplier near 1. Normal staking keeps the multiplier based ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Duplicated check.
### Description
**Severity**: Informational
**Status**: Resolved
**description**
AirPuffHandlerM.handlerSwap(), _curveSimpleSwap().
Before processing the swap via the Сurve, the contract checks if any Curve pool is set for
the vault. If the strategy has no specific router path for chosen t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: If the accounted token balance is higher than actual token balance some transfers can send "0" tokens to destination
### Description
In extreme cases, such as when late liquidations incur losses to liquidity providers, the actual balance will not exist in the vaults. The transfer will not revert due to how ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Wrong error message.
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In the `addAirdrop()` function of the vesting contract, it checks if the caller has already been added but the error message is wrong.
**Recommendation**:
Change the message to read “User already added”. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol unintentionally implements an asymmetric method of calculating the price difference
### Description
The protocol exhibits a disparity in the calculation of price differences due to the current implementation in `LibOracleHelpers::getPercentDifference()`. This affects `LibWstethEthOracle::getWsteth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can drain all ETH from IPSeed due to re-configuring `tokenId`
### Description
**Severity**
Impact: High. Attacker can drain all ETH from IPSeed.
Likelihood: High. Nothing prevents from exploiting.
**Description**
Metadata of `tokenId` can be partially configured. While `projectId` is empty string... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: RTokens can be purchased at a discount
### Description
If the collateral in a basket has decreased in price but has not defaulted, users may be able to purchase RTokens at a discount by creating large issuance requests. The status of a collateral token can be either **SOUND**, **IFFY**, or **DISABLED**. 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 | medium | access-control | false | false | ## Medium: Lack of access control for LendingPoolAddressesProvider and NetworkMetadataProvider
### Description
Both `LendingPoolAddressesProvider` and `NetworkMetadataProvider` contracts lack access controls for operations that set address or uint256. This allows an attacker to change the behavior of a given `AToken`,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Magic Numbers and Lack of Scientific Notation
### Description
In programming, "magic numbers" refer to the use of unexplained numerical or string values directly in code, without any clear indication of their purpose or origin. The use of magic numbers can lead to confusion and make your code more difficult to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Users cannot sell their points in some scenarios
### Description
When users want to sell their tokens by calling `sellPoints()` the code calculates the value and also updates the points price:
The issue is that during value calculation or price update code won't allow selling tokens if the price reaches 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 | initialization | false | false | ## Medium: Lack Of Checks To Prevent Adding Duplicate Assets in the Initialize() Functions
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
There exists no checks to prevent adding duplicate assets when attempting to initialize the ynLSD contract. The impact of duplicate assets lies 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 | gas | overflow | true | false | ## Gas: `CitadelMinter.mintAndDistribute()`: L199 should be unchecked due to L193-L197
### Description
Solidity version 0.8+ comes with implicit overflow and underflow checks on unsigned integers. When an overflow or an underflow isn't possible (as an example, when a comparison is made before the arithmetic operation)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Compiler Check
### Description
## Maximum Bound in a Range
For the maximum bound in a range, in situations where both the range and the bound are numerical integers, and the range surpasses the bound, it would be advisable to incorporate a compiler check. When both values are numerical integers, and the range... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Privileged Roles and Ownership
### Description
**Update**
Marked as "Acknowledged" by the client. Addressed in: `599e4cf98403d99f48b25ce42ce412747cd368f5`. The client provided the following explanation:
> We are aware of the privileged roles and elevated capability of TOKEN_SAVER_ROLE which we might use 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 | true | false | ## Medium: UNUSED CREDIT TOKENS LOCKOUT UNTIL NEW REVENUE
### Description
In the `SpigotedLoan` contract, the borrower can add spigots with revenue contracts that will support repayment of the debt. The revenue contract earns revenue tokens that later can be exchanged for the credit tokens using the `claimAndRepay()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: ETH withdrawal within allowed limit could fail
### Description
The protocol enforces an ETH withdraw limit (currently 10% of the total balance) within each 1-day window as a safety mechanism. This is done through the [`_verifyWithdrawalLimit` function in `Mailbox.sol`](https://github.com/matter-labs/zksync-2-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Amount Calculation When Providing Liquidity
### Description
When users [zap their RDNT tokens from vesting](https://github.com/radiant-capital/v2-core/blob/e8f21f103e17736907b62809d1ad902febc53714/contracts/radiant/zap/LockZap.sol#L209), the optimal amount of base token necessary to provide liquid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | false | false | ## Gas: Set accumulatedFee directly to 0 instead of subtracting by itself
### Description
## Code Review Summary
**Context:** `SimpleSwapFacility.sol#L262-L270`
**Description:**
In `SimpleSwapFacility.collectFees()`, the `accumulatedVariable` is subtracted by itself, which is equivalent to setting it to 0. This 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 | high | liquidation | false | false | ## High: Liquidation can be DOSed due to lack of liquidity on collateral asset reserve
### Description
Lack of liquidity on collateral asset reserves can cause disruption to liquidation.
### Impact
This should be high risk since in a typical normal scenario, this vulnerability can happen without so much effort.
The p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | storage | false | false | ## Medium: Missing gap to Avoid Storage Collisions
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The contracts are intended to be an upgradeable smart contracts, but do not have a __gap variable.
In upgradeable contracts, it's crucial to include a _gap to ensure that any additional stora... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | logic | true | false | ## Medium: Country updates is not reducing from the storage the prev country
### Description
**Description:** The `adjustInvestorCountsAfterCountryChange` function in `ComplianceServiceRegulated.sol` contains an accounting flaw that leads to double counting of investors across countries. When an investor changes 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 | medium | other | false | false | ## Medium: `swap()` will be reverted if `path` has more tokens.
### Description
`swap()` will be reverted if `path` has more tokens, the keepers will not be able to successfully call `swapForTau()`.
### Impact
The keepers will not be able to successfully call `SwapHandler.swapForTau()`. Someone will get a reverted tr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BathBuddy` contract should implement methods to pause and unpause contract
### Description
The `BathBuddy` contract inherits from OpenZeppelin `Pausable` contract with the intention of adding pausing features to the contract.
The [`Pausable` implementation](https://github.com/OpenZeppelin/openzeppelin-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 | high | other | true | false | ## High: LENDER CAN WITHDRAW INTEREST MULTIPLE TIMES
### Description
In the `LineOfCredit` contract, a lender has the possibility to withdraw accrued interest via `withdrawInterest()` function. The function does not record the fact of withdrawal; thus, the function can be called multiple times until the contract has 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 | low | other | false | false | ## Low: Code structure is messed up.
### Description
**Description**
StakingB_1.sol Line 524
Storage and events must be separated in order to make code structure more readable.
**Recommendation**:
Move the “amountOfUser” variable to the other variables. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrage profit is not calculated correctly when there is an index with an `INVALID_POOL_ID`
### Description
### Impact
1/3 to 2/3 of arbitrage profit may not be distributed
### Proof of Concept
Arbitrage profit is always divided by 3, despite some indicies might have an `INVALID_POOL_ID`. That means if 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 | oracle | false | false | ## Low: Accuracy of market and oracle TWAPs is tied to the frequency of user interactions
### Description
The oracle and market TWAPs can be updated only during traders’ and liquidity providers’ interactions with the protocol; a downtick in user interactions will result in less accurate TWAPs that are more susceptible... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing revert messages in require statements
### Description
There are several `require` statements in the project without revert messages. This behavior results in an increased difficulty of debugging the system.
The list of affected `require` statements is:
* In the [`Freezable` contract](https://github... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | true | false | ## Medium: Remote Protocol Proxies Unable To Execute Core Functions
### Description
The `openProtection`, `SupplyAndProtect`, and `SupplyBorrowAndProtect` functions from the UserBase contract utilize similar logic to validate whether the caller is authorized to perform the intended operation. The logic begins by check... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: All taker collateral and collected fees can be stolen by re-entering via `RFTLib.settle` to manipulate uniswap spot price when adding Maker liquidity
### Description
When any user adds maker liquidity (via `newMaker` or `adjustMaker`), the amounts of `token0` and `token1` required from the user are calculated... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | false | ## Low: Equal distribution fallback logic error
### Description
In the `L2RevenueDistributorV3::_allocateEqual()` function, when the total reserve units are zero, the contract falls back to equal distribution of remaining ILV to active reserve-weighted pools. However, the eligibility check for Vault pools includes 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 | other | true | false | ## Medium: Set.updateMarketState(MarketState.TRIGGERED) call could revert under specific conditions
### Description
Under the following conditions:
- Shortfall
- Approved set by backstop
- Backstop with 0 asset balance
- Revert on zero value token used as asset revert-on-zero-value-transfers
Trigger contract will neve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: uint256.percentage() and int256.percentage() are not inverses of each other
### Description
The Units library provides two percentage helper functions to convert unsigned integers to signed 64x64 fixed-point values, and vice versa. Due to rounding errors, these functions are not direct inverses of each other. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: Lack of Input Parameter Validation
### Description
The [`resolverPercentageThreshold` variable](https://github.com/1inch/limit-order-settlement/blob/ff7909c4f32bee8879211607275dc30d788afee8/contracts/WhitelistRegistry.sol#L40) stores the percentage of the total supply that an address has to stake in order to b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Commented out code
### Description
The [`OpenOracleData` contract](https://github.com/compound-finance/open-oracle/blob/e7a928334e5e454a88eec38e4ee1be5ee3b13f08/contracts/OpenOracleData.sol) includes [commented out lines of code](https://github.com/compound-finance/open-oracle/blob/e7a928334e5e454a88eec38e4ee1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol admin account has a large centralization attack surface
### Description
**Impact:**
High, as creators can lose their raffled items and payouts
**Likelihood:**
Low, as it requires a malicious or a compromised admin
**Description**
A malicious or a compromised admin can execute various rug-like at... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minting new PropertyTokens close to the end of the distribution period will dilute rewards for holders who were holding for the full period
### Description
**Description:** Holder's balanceHistory is updated each time a transfer of tokens occurs (mint or burn too). The [accounting saves the holders' balance du... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: Fund will be stuck if a buyout is started while there are pending migration proposals
### Description
_Submitted by shenwilly, also found by 0x52, codexploder, dipp, kenzo, Lambda, MEP, panprog, smiling_heretic, Treasure-Seeker, TrungOre, xiaoming90, and zzzitron_
Funds in migration proposals could poten... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IMPRECISION OF A CONSTANT
### Description
During the audit, it has been observed that integers with scientific notations are directly compared with function arguments.
Code Location
-------------
### Recommendation
**ACKNOWLEDGED**: MonoX refrain from introducing extra variables as it increases the contract ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | cross-chain | false | false | ## Low: Hard-Coded `_price` Can Become Stale and Inaccurate in the Event of a Depeg
### Description
**Update**
The client acknowledged the issue and provided the following explanation:
> The SwapStableInvestStrategy is intented to be used with stablecoins or other situations where the peg is supposed to be strong. So... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | true | ## Low: VeloDeployFactory tickSpacing collision possible in mappings
### Description
VeloDeployFactory supports multiple pools which can have overlapping `tickSpacing` used for strategy creation. Prior to creating strategies with `createStrategy`, we set the strategy and deposit parameters according to the `tickSpacin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Replay Attack | false | true | ## Severity: Medium Risk
## Context
- `SeaDrop.sol#L227`
- `SeaDrop.sol#L318`
## Description
In the case of `mintSigned` (minting via signatures) and `mintAllowList` (minting via merkle proofs), there are no checks that prevent re-using the same signature or Merkle proof multiple times. This is indirectly enforced by... | Spearbit | 5 | SeaDrop |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: introduce a max lock time limit
### Description
_Submitted by pauliax_
I suggest introducing a max lock time limit, so it won't be possible to accidentally lock tokens forever. As of right now there is no limit on when the timelock expires, so theoretically it is possible to set it to hundreds of years 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 | low | other | false | false | ## Low: `totalPrincipalStaked` Is Not Decreased When NFT Is Minted
### Description
In the `AdapterV1::acceptMigrationDestination()`, `totalPrincipalStaked` is not decreased.
### Recommendation
Set the `totalPrincipalStaked` to 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 | medium | liquidation | true | false | ## Medium: It is possible to open and liquidate your own position in 1 transaction to overcome efficiency and liquidity removal limits at almost no cost
### Description
In 2.0 audit the [issue 104](https://github.com/sherlock-audit/2023-07-perennial-judging/issues/104) was fixed but not fully and it's still possible, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Leave some degree of configurability for extra parameters in `_adapterParams` to allow for feature extensions
### Description
As recommended by LayerZero [here on the last line of Message Adapter Parameters para](https://layerzero.gitbook.io/docs/faq/messaging-properties#message-adapter-parameters), the team 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... | solodit_api | high | reentrancy | true | false | ## Severity: High Risk
## Context
`QuestBoard.sol#L678-L815`
## Description
Functions `closeQuestPeriod()` and `closePartOfQuestPeriod()` have similar functionality but interfere with each other.
1. Suppose you have closed the first quest of a period via `closePartOfQuestPeriod()`. Now you cannot use `closeQuestPeri... | Spearbit | 5 | Paladin |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MISSING TEST COVERAGE FOR PERMIT OPERATIONS
### Description
There are two permit functions (`permitAndDepositErc20` and `permitEIP2612AndDepositErc20`) on LiquidityPool contract to complete Meta transactions. However, there is no test scenario in the test scripts about whether these functions work correctly.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Typos
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In the following documentation diagram, Librarys is spelled incorrectly and should be changed to Libraries.
**Recommendation**:
It is recommended that the typos be changed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-L-2 Redundant checks in Vault V3
### Description
**Description:**
`depositProfitTokenForUsers()` and `withdrawProfit()` contain the following check:
However, lastProfitTime is only ever set to block.timestamp. Therefore, it can never be
larger than block.timestamp.
**Recommended Mitigation:**
It would ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setMerkleRoot()` Input Parameter Check
### Description
`MerkleAirdrop.setMerkleRoot()` [allows](https://github.com/p2p-org/eth-merkle-drop/blob/dd05a846fc427b92b9fd60c8aeed990b16270286/src/MerkleAirdrop.sol#L26-L29) updating the `merkleRoot` to the same value it already holds, which could make it more difficu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Direction in Withdraw Functionality
### Description
## YieldToken::convertToShares Issue
In the current implementation of `YieldToken::convertToShares`, the calculation rounds down when converting assets to shares. This may result in underestimating the number of shares required for 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 | front-running | true | false | ## Medium: A lack of slippage protection can lead to a significant loss of user funds
### Description
Talos strategy contracts interact with Uniswap V3 in multiple areas of the code. However, none of these interactions contain any [slippage control](https://dacian.me/defi-slippage-attacks#heading-no-slippage-parameter... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: User’s funds may get stuck.
### Description
**Description**
CommonV1.sol: function initWithdrawOnBehalf().
In case, user has queued LP tokens to withdraw in epoch 0, he is no longer able to withdraw
these funds(due to assertions in CommonV1.sol, line 117 and CashVaultV1.sol, line 66), until
he queues another... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non monotonic L2 block timestamps
### Description
The L2 blocks use two different sources for the block timestamps:
- The blocks produced from the sequencer's blueprints use the blueprint timestamp, which are set arbitrarily by the sequencer.
- The blocks produced from the delayed inbox are based on the L1 b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | front-running | false | false | ## Low: Non-matued shorts might no be able to close because of the netting feature
### Description
A correctly implemented long, shorts netting feature per checkpoint will check that the protocol is still solvent when closing netted, non-matured shorts. This can lead to a DoS for non-matured closeShort calls by frontr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BondNFT.sol#claim() needs to correct all the missing epochs
### Description
## Lines of code
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/contracts/BondNFT.sol#L177-L183
https://github.com/code-423n4/2022-12-tigris/blob/588c84b7bb354d20cbca6034544c4faa46e6a80e/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unused `getGoverningPower` function and `govType` variable
### Description
This issue has been identified in all three vesting contracts. An unused `getGoverningPower` function is implemented in each contract. Also, the function [`setGovVariables`](https://github.com/MetaLex-Tech/MetaVesT/blob/1bae6630e222e9bf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inconsistent Leverage in Funding Calculations
### Description
## Cumulative Funding Rate Calculation
The `cumulative_funding_rate` was calculated based on the open interests, whereas for calculating `accrued_funding` in `position.rs`, only the amount was considered instead of the total size including leverage... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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] `minimumOutputAmount` in CurveAdaptor can be integrated into the curve functionalities
### Description
The Curve Adapters interact with curve pool through three functions, `exchange()`, `remove_liquidity_one_coin()` and `add_liquidity()`. The last parameter of these functions are set to zero, which is the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: In flights can get reset to zero
### Description
The current implementation of the RateLimiter will reset the in-flight amount to zero when `timeSinceLastDeposit` is greater than or equal to the window, this is handled in an `if` statement:
However, the code does not check if the `timeSinceLastDeposit` is en... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Timestamp update fails in `updateElyAssetPrice()` when `totalSupply` is zero
### Description
_Resolved_
The `updateElyAssetPrice()` function in `ElytraOracleV1` contains a design where it sets the `elyAssetPrice` to `1e18` when the total supply becomes zero, but fails to update the `lastPriceUpdateTimestamp`.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Unnecessary `renounceOwnership` Function
### Description
The `CryptoLegacyBasePlugin` contract includes a standard [renounceOwnership](https://github.com/CryptoCust/cryptolegacy-contracts/blob/e409929501d5b78941bc78411f1fa3da36249a94/contracts/plugins/CryptoLegacyBasePlugin.sol#L177-L179) function, allowing th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Unnecessary conditions can be removed from `LibUniformDistribution` conditionals
### Description
`LibUniformDistribution::inverseCumulativeAmount0` short circuits if the specified `cumulativeAmount0_` is zero, meaning that the value of this variable is guaranteed to be non-zero in subsequent execution as it is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Bond penalty may not apply
### Description
The optimistic oracle is designed so that in the event of a dispute, [the incorrect party pays the bond penalty to the vindicated party](https://github.com/UMAprotocol/protocol/blob/1631ef7ad29aaeba756ef3b9a01c667e1343df85/packages/core/contracts/oracle/implementatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | true | ## High: Missing Asset Decimal Adjustment When Calculating TVL
### Description
When the TVL is being calculated in the `VaultKerosene.sol` contract the balance is multiplied with the oracle price, and adjusted with the oracle decimals.
```solidity
tvl += vault.asset().balanceOf(address(vault))
* vault.assetPrice()
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent value tracking in `maxRedeemPerBlock` across stablecoins
### Description
The `maxRedeemPerBlock` limit tracks collateral amounts (USDC/USDT) rather than the actual `lvlUSD` value being redeemed. Since stablecoins can deviate from their peg (e.g., USDC at $0.99 and USDT at $1.01), this creates 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 | high | liquidation | false | false | ## High: Bids only transfer collateral for the first token type
### Description
When a bid is submitted, its validity is assessed against all the different collateral tokens in the bid added together. However, only the first collateral token is actually transferred.
A user could submit a large bid with collateral 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 | low | cross-chain | false | false | ## Low: Peggo does not validate Ethereum address formats
### Description
In several code paths in the Peggo codebase, the `go-ethereum` `HexToAddress` function (figure 28.1) is used to parse Ethereum addresses. This function does not return an error when the format of the address passed to it is incorrect.
The `HexTo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double-spending vulnerability leads to a disruption of the DSC token
### Description
There is a double-spending vulnerability in the `DSCEngine` contract, leading to a disruption of the DSC token.
### Impact
With this double-spending vulnerability, an attacker can deposit ETH to double their collateral val... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not using UserLockRewardVars struct in \_getUserAccruedRewards function can greatly reduces gas cost and contract size
### Description
### Target codebase
[HolyPaladinToken.sol#L805-L848](https://github.com/code-423n4/2022-03-paladin/blob/9c26ec8556298fb1dc3cf71f471aadad3a5c74a0/contracts/HolyPaladinToken.sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | oracle | true | false | ## Gas: Use custom errors instead of require/assert
### Description
Consider the use of a custom error, as it leads to a cheaper deploy cost and run time cost. The run time cost is only relevant when the revert condition is met.
https://github.com/code-423n4/2023-08-goodentry/blob/main/contracts/GeVault.sol#L79
ht... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unchecked Return Value of External Call
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In the contract EsEMBR.sol, the function vest() does not handle the return value for an external contract call to the Vester contract.
**Recommendation**:
All external calls that retu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reversed Funding Rate
### Description
## Parcl Finance Audit 04 | Vulnerabilities
## Funding Rate
Normally, the funding rate helps decrease skew in the pool by forcing the majority side to pay fees to the minority side. However, this is reversed in the code. The `get_funding_rate` function calculates 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 | token | true | false | ## Medium: The PolicyBook should make DAI transfers inside the contract ✓ Fixed
### Description
The `PolicyBook` contract gives full allowance over DAI tokens to the other contracts:
**code/contracts/PolicyBook.sol:L120-L125**
```
function approveAllDaiTokensForStakingAndVotingAndTransferOwnership() internal {
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 | oracle | false | false | ## Low: Application Monitoring Can Be Improved by Emitting More Events
### Description
**Update**
The client implemented some suggestions in commit `e122f9e32434c7543b9d84756ca4ff2ad4786dde`.
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> Acknowledged
**File(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 | reentrancy | false | false | ## Low: Missing Re-entrancy Guard
### Description
The re-entrancy guard is missing on the Eth anchor interaction. The external router interaction can cause to the re-entrancy vulnerability.
### Proof of Concept
Navigate to the following contract.
[CToken.sol#L781](https://github.com/code-423n4/2022-04-dualityfocus/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failed ETH Transfers Not Handled in RefundGas Function
### Description
The `refundGas()` function in RefundGasUpgradeable.sol does not properly handle failed ETH transfers when refunding gas to voters. While the function emits an event with the transfer status, it does not validate or revert on failed transfer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Unclear comments and naming
### Description
Throughout the codebase, there are many spots in which variable names or comments are unclear. The examples we identified are:
* The [constant `DENOMINATORS` and the mappings `multipliers`, `poolCaps`, and `accountLimits`](https://github.com/saddle-finance/saddle-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 | medium | token | false | false | ## Medium: Lack of documentation for complex functionality
### Description
The codebase contains several internal functions that perform complex computations but lack sufficient documentation. Further, some state variables have complex implicit assumptions about the values they store that are not documented. This lack... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Missing/Limited Test Suite
### Description
**Update**
The team has added a test-suite with fairly high coverage at `94.21%` branch coverage. However, one of the tests fail with the following error message:
Furthermore, we noticed some critical paths of the code, perhaps partially due to the failed test, hav... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | false | false | ## Medium: Loans of tokens with >18 decimals can result in incorrect collateral calculation
### Description
It is possible for a user to mislead a Pool Delegate to a seemingly innocuous loan by utilizing a token with more than 18 decimals as collateral and lucrative loan terms.
The [final calculation](https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Wrong comment
### Description
**Description:**
**Client:** Fixed in [PR #16](https://github.com/0xgeeb/goldilocks-core/pull/16)
**Cyfrin:** Verified. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Missing storage gap in upgradeable parent contract causes storage slot collision risk
### Description
**Description:** The `VaultDeployer` abstract contract is designed to be upgradeable and inherited by child contracts `SegregatedVaultDeployer` and `SecuritizeVaultDeployer`. However, `VaultDeployer` lacks sto... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `constant`s should be defined rather than using magic numbers
### Description
Even [assembly](https://github.com/code-423n4/2022-05-opensea-seaport/blob/9d7ce4d08bf3c3010304a0476a785c70c0e90ae7/contracts/lib/TokenTransferrer.sol#L35-L39) can benefit from using readable constants instead of hex/numeric literals... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use of `ecrecover` Instead of Native Account Abstraction in `_recoverSigner` Function
### Description
**Severity**: Low
**Status**: Resolved
**Description**
The `_recoverSigner` function uses the `ecrecover` method for signature recovery. When deploying on `zkSync`, it is recommended to use native account 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 | low | token | false | false | ## Low: Potential Misconfiguration of ERC-20 Token Decimals - Phase 2
### Description
The [`ERC20TokenHub` constructor](https://github.com/ava-labs/teleporter-token-bridge/blob/8922c54665527a3bdc2a63b76d2f77958f7d9461/contracts/src/TokenHub/ERC20TokenHub.sol#L45-L52) allows the deployer to specify both the ERC-20 [tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Users can not create the permanent lock directly
### Description
In the `_createLock` function, it calls the `_processLockChange` function with `nftStates[newTokenId].locked`, which is an empty variable at L420. This means it only initializes with the `isPermanentLocked` parameter set to `false`.
When users 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 | gas | other | true | false | ## Gas: Cheaper no to cache `calldata` array length
### Description
**Description:** It is [cheaper not to cache `calldata` array length](https://github.com/devdacian/solidity-gas-optimization?tab=readme-ov-file#6-dont-cache-calldata-length-effective-009-cheaper):
* `WorldLibertyFinancialRegistry::agentBulkInsertLegac... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.