prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Order book slippage
### Description
`OrderMixin` contract allows users to match makers and takers in an orderbook-like manner. One additional feature this contract has is that both makers and takers are allowed to integrate hooks into their orders to better react to market conditions and manage funds on the fl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Missing early return case in `AmAmm::_updateAmAmmView`
### Description
`AmAmm::_updateAmAmmWrite` runs the state machine to charge rent and update the top and next bids for a given pool, but returns early if the pool has already been updated in the given block as tracked by the `_lastUpdatedBlockIdx` state. `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 | gas | other | true | false | ## Gas: Only read and write once for storage locations `boxIdCounter` and `mintedTierAmount` in `DropBox::_assignTierAndMint`
### Description
**Description:** In `DropBox::_assignTierAndMint`, `boxIdCounter` and `mintedTierAmount` can be cached before the loop, use the cached version during the loop and finally update... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Manipulation of the Y State Results in Interest Rate Manipulation
### Description
_Submitted by Rhynorater, also found by harleythedog, hyh, and WatchPug_
Due to lack of constraints on user input in the `TimeswapPair.sol#mint` function, an attacker can arbitrarily modify the interest rate while only paying 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... | solodit_api | medium | Business Logic | true | true | Source: https://github.com/sherlock-audit/2023-01-ajna-judging/issues/120
## Found by
berndartmueller, ctf\_sec, oxcm
## Summary
The claimable rewards for an NFT staker are capped at the Ajna token balance at the time of claiming. This can lead to a loss of rewards if the `RewardsManager` contract is underfunded w... | Sherlock | 4 | Ajna |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Replace require Statements with Custom Errors
### Description
As stated in the [official](https://soliditylang.org/blog/2021/04/21/custom-errors/) release of Solidity 0.8.4, utilizing custom errors can reduce runtime and deployment costs, as indicated by the [following](https://blog.openzeppelin.com/defining-i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: Incorrect Basefee Calculation on Taiko Rollups - Phase 1
### Description
On a Taiko rollup, the basefee at block `n` is computed as `b(n) = b0 * 1/TA * exp(gas_excess / TA)`, where `b0 = 1`, `T` the gas target is `60` million gas and `A` is the adjustment factor set to `8`. This formula is [explained](https:/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [15] Fix incorrect documentation for position creation authorization check
### Description
Take a look at the documentation for the check provided during creation of positions:
[/contracts/farm-manager/src/position/commands.rs# L41-L56](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | false | false | ## High: A Malicious Observer can use TON's Outbound Tracker to steal funds from Zetachain
### Description
The [`processOutboundTracker()`](https://github.com/sherlock-audit/2025-04-zetachain-cross-chain/blob/main/node/zetaclient/chains/ton/observer/outbound.go#L102-L134) does not check that the TON transaction's nonc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `get_place_buy_price` function does not currently support the maximum `MAX_SUPPLY` value.
### Description
**Description:** Whenever a user buys or sells a seat, we calculate the seat price at that moment using the difference between get_reserve from the new/current position and the old position.
In `get_rese... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Public functions to external
### Description
The following functions could be set external to save gas and improve code quality. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ambiguous `rateMinRAY` Direction and Decimals in Redemption Adapter
### Description
In `MidasRedemptionVaultAdapter.redeemInstantDiff()`, the `rateMinRAY` parameter is documented as *minimum rate from input token to mToken*, while for redemption the input is `mToken` and the output is `tokenOut`. The code com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `PerpetualBond.epoch` not updated after yield distribution
### Description
**Description:** In [`PerpetualBond::distributeBondYield`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/PerpetualBond.sol#L215-L241) the caller is supposed to provide a `nonce` 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 | other | true | false | ## High: Missing chargeFee modifier allows spamming the CL
### Description
The `removeOperator`, `redelegate` and `redelegateOnBehalf` **do not have** the `chargeFee` modifier. As none of them requires the user sending funds, it allows a malicious user to spam the CL by sending these events, which requires consumption... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] Typo in `PositionManager`
### Description
In the contract `PositionManager`, there is a typo in the comment in the word `addresss`.
### Recommendation
We recommend fixing the typo to `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 | medium | access-control | false | false | ## Medium: Delayed Transaction Handling in `updateExchangeRate`
### Description
This issue has been identified within the [updateExchangeRate](https://github.com/Se7en-Seas/cMETH-boring-vault/blob/d6e2d18f45a3e05d749d34966139fc85fc47f7e6/src/base/Roles/AccountantWithRateProviders.sol#306) function of the `AccountantWi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradable contracts used for immutable deployment
### Description
Upgradable contracts are used but no Proxy contract found. Upgradable contracts are designed to be used with Proxy contracts due to the intricacies of delegatecall and storage slot clashing concerns. The repository doesn’t contain any proxy ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Variable names that consist of all capital letters should be reserved for `constant`/`immutable` variables
### Description
If the variable needs to be different based on which class it comes from, a `view`/`pure` *function* should be used instead (e.g. like [this](https://github.com/OpenZeppelin/openzeppelin-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 | high | signature | true | false | ## High: Enable Mode Signature can be replayed
### Description
During enable mode, two validators are used:
1. **validator**: The module to be installed as any module type that can be defined. It must be a validator either already before the user operation or after enabling it as a validator in enable mode. This vali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Adding too much Pendle markets DoSes Pendle `PowerFarm`
### Description
There is no constraint on how many pendle markets can be added:
Adding too much doses syncing supply: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious DAO can mint arbitrary fork DAO tokens
### Description
The original DAO is assumed to be honest during the fork period, which is reinforced in the protocol by preventing it from executing any malicious proposals during that time. Fork joiners are minted fork DAO tokens by the original DAO via `c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Lack of zero-value checks
### Description
Certain setter functions and constructors fail to validate incoming arguments, so callers of these functions, or the deployer of the contracts, could mistakenly set important state variables to a zero value, misconfiguring the system.
For example, the `Executor` cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error Handling
### Description
## Inner Product Function in range_proof/util
The `inner_product` function computes the inner product of two vectors by multiplying their corresponding elements and summing up the results. It ensures that the input vectors have the same length and returns the inner product as 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 | access-control | false | false | ## Low: Docker image running as root
### Description
Docker containers generally run with root privileges by default. This allows for unrestricted container management, meaning a user could install system packages, edit configuration files, bind privileged ports, etc. During static analysis, it was observed that the 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 | medium | dos | true | false | ## Medium: A Buyer Can Use Two Different Referral Codes for the Same Trade
### Description
There is no validation on the referral code that is passed into `CSXTrade::commitBuy()`. The code is simply assigned to the `referralCode` storage variable and then is used to calculate the buyer discount in the function itself.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Remove deprecated `Göerli testnet` files from deployment
### Description
The input folder contains a folder with `primary.json` for deployment on the **Göerli testnet**. However, the Göerli testnet has been deprecated and can no longer be used for test deployments. As a result, the presence of the `primary.jso... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessively large max values allowed in `setRedeemDelay()` and `setFillWindow()`
### Description
_Resolved_
`setRedeemDelay()` in the `StakedYuzuUSD` and `setFillWindow()` in `YuzuProto` contracts set the waiting period users must wait before finalizing their redemption. The issue is that this value can be 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 | other | true | false | ## Medium: The spent offer item amounts shared with a zone for restricted (advanced) orders or with a contract offerer for orders of CONTRACT order type is not the actual spent amount in general
### Description
When Seaport is called to fulfill or match a collection of (advanced) orders, there are scenarios where not ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `_updateTwav()` and `_getTwav()` will revert when cumulativePrice overflows
### Description
_Submitted by peritoflores, also found by WatchPug_
### Impact
Contract will break when `cumulativeValuation` overflows.
### Proof of Concept
Cumulative prices are designed to work with overflows/underflows beca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EOA.isSenderEOA() does not check the caller 's code size
### Description
In `EOA.isSenderEOA()`, if the caller is not `tx.origin`, it is determined to be an EOA by checking if the first three bytes of code at the caller's address is equal to `0xEF0100`:
```assembly
// If the sender is not the origin, check fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Governor can prevent user repaying debt
### Description
When borrowing from the bank, the protocol [requires that the token being borrowed is whitelisted](https://github.com/AlphaFinanceLab/homora-v2/blob/5efa332f2ecf8e9705c326cffda5305bc6f752f7/contracts/HomoraBank.sol#L457), to ensure that only approved t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Functions, parameters and variables in snake case
### Description
Use camel case for all functions, parameters and variables and snake case for constants | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Double assignment in `InitDiamond` should be removed to avoid confusion | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: FEES CAN NEGATE SEND AMOUNT
### Description
The `debridge` programs allows users to send tokens to other chains with the `send` instruction. The `fix_fee`, `transfer_fee` and `execution_fee` charged to the user can be equivalent to the original amount of tokens sent, resulting in the `final_amount` of tokens t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Rebalance logic is wrong and this distorts the pool's important states
### Description
The important states including `long0Balance, long1Balance, long1FeeGrowth, long1ProtocolFees` are wrongly calculated and it breaks the pool's invariant.
### Proof of Concept
The protocol provides a rebalancing functional... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner can front-run sequence configurations by setting fee to 100%
### Description
**Impact:**
High, as if it goes unnoticed it can rug the `revenueRecipient` address
**Likelihood:**
Low, as it requires a malicious/compromised owner account
**Description**
The `setPrimarySaleFeeBps` is callable at any ti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Booster#buy should support buying multiple boosts at a time
### Description
**Details**
Booster#buy only allows the purchase of one boost at a time. Consider allowing users to bulk buy boosts to save transactions and gas.
**Lines of Code**
[Booster.sol#L80-L100](https://github.com/Buffer-Finance/Buffer-Prot... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of assert statement in production code
### Description
When optimizations are requested with the `-O` flag, assert statements are removed from the program. The following functions use assert statements that will be skipped if optimizations are enabled:
- `GltStrategy.get_balance`
- `GltStrategy.get_price`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 docstrings in contract and functions in Airdrop contract
### Description
The`AirDrop` contract’s source code, which handles token distribution, has no inline documentation whatsoever. Consider documenting with *docstrings* everything that is part of the public API.
***Update:** the `AirDrop` 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 | high | logic | true | false | ## High: Improper Reward Calculations
### Description
## Token Earnings Calculation Issue in Protocol Module
In the protocol module, `accumulated_gain` calculates the earnings of a token solely based on the scale of the snapshot. However, a user’s amount may have participated in the distribution of the subsequent sca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Immediate liquidation possible when reducing an agent’s liquidation threshold
### Description
The `modifyAgent` function allows reducing an agent’s liquidation threshold without checking if this would immediately put the agent in a liquidatable position. If an agent’s current position is near the threshold, 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 | signature | false | false | ## Low: Missing error check when calling ecrecover
### Description
Several calls are made to the ECDSA library, which is a wrapper around the built-in `ecrecover` function, without explicitly checking if an error occurred (i.e., an address of 0 is returned).
- implementations/key-ring/DharmaKeyRingImplementationV0.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 | cross-chain | false | false | ## Low: Cross-chain system contract invocation is allowed and undocumented
### Description
System contract addresses can be specified in [`requestL2Transaction`](https://github.com/matter-labs/zksync-2-contracts/blob/3f345ce52bc378c4b5d710c80d817db170775049/ethereum/contracts/zksync/facets/Mailbox.sol#L232). However, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A pool lender can fully drain another user's pool by abusing `buyLoan`
### Description
A pool lender can fully drain another user's pool by abusing `buyLoan` function.
### Impact
Pool lender can drain other pools. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing MarketID Consistency Check in settleMatchedOrders
### Description
The settleMatchedOrders function doesn’t enforce that all makerOrders share the same
marketId as the provided takerOrder. While it correctly verifies signature validity and array length
consistency, it does not validate that each makerOr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: Struct can be packed into fewer storage slot by truncating time
### Description
### `deadline`, `rewardX64` and `liquidity` can be packed in a single slot.
SAVES: 4000 Gas, 2 Slots
You can pack the `ExecuteParams` struct into fewer storage slots by truncating the `deadline` to a smaller data type such as ui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant event parameters in event OrgOnboarded
### Description
The event `OrgOnboarded` contains both `approvers` and `approvers2`. Both are not needed because the function `onboard()` also emits an `ApproverAdded` for each approver.
```solidity
event OrgOnboarded(
address indexed orgAddress,
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 | high | cross-chain | false | false | ## High: Native Token Bridge Functionality is Unsupported
### Description
The protocol currently supports bridging ERC\-20 tokens. In this process, the `BridgeToken` contract approves the `amount` to the `Cell` contract, which then transfers the tokens for further operations.
However, if the token is an ERC\-20 toke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | true | false | ## High: The `transferFrom()` in `OmoRouter.sol` has approval vulnerabilities
### Description
The `transferFrom()` function in `OmoRouter.sol` contract transfers a certain amount of shares from a sender `from` to a recipient address `to`.
```solidity
File: OmoRouter.sol
File: OmoRouter.sol
function transferFrom(ui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No `withdrawTo` functionality in `AmbirePaymaster`
### Description
The ERC4337 implementation on Ethereum has a `StakeMaster` contract with a `withdrawTo` functionality, allowing a paymaster to withdraw his deposit as seen [here](https://github.com/eth-infinitism/account-abstraction/blob/674b1f51164e641a18d5c1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | dos | true | false | ## Gas: Use `uint32` for more efficient storage packing when tracking minted and unclaimed tier box amounts
### Description
**Description:** Firstly change `DropBox` storage like this for more efficient storage slot packing:
* move `vrfHandler` up to the start of the public variables
* change some non-constants to `ui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | storage | true | false | ## Gas: `distribute()` accounting to keep balance of 1 is incorrect
### Description
In the `distribute()` function, we attempt to distribute all funds in the wallet and warehouse, leaving a balance of 1 in both places to avoid the gas costs of "un-zeroing" the storage slot later.
- In the `distributeByPush` code path... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible overflow can occur
### Description
Possible overflow can occur:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/pool/PoolService.sol#L145
### Recommendation
We recommend using safeMath for `expectedLiquidity() + amount`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] `OptimismMintableERC20Factory.createOptimismMintableERC20` FUNCTION CAN BE CALLED FOR MULTIPLE TIMES FOR SAME `_remoteToken`-`_name`-`_symbol` COMBINATION
### Description
The `OptimismMintableERC20Factory.createOptimismMintableERC20` function can be called multiple times for the same `_remoteToken`-`_name... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MerkleDropFactory.depositTokens() does not require the tree to exist
### Description
## Lines of code
https://github.com/code-423n4/2022-05-factorydao/blob/db415804c06143d8af6880bc4cda7222e5463c0e/contracts/MerkleDropFactory.sol#L68-L79
## Vulnerability details
## Impact
The function `depositTokens()`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Borrow() s after validateBalances()
### Description
The function `borrow()` can still be called in the `AllocateValue` and `PostOps` phases. As this occurs after `validateBalances()`, the solver must account for this in `_settle()`. However, the solver is no longer in control and could be adversely affected 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 | high | token | true | false | ## High: UNRESTRICTED POOL TOKEN MINTING
### Description
One of MonoX's main objectives is to allow users for listing ERC20 tokens without the need for providing liquidity. In order to keep track of users' shares in pools, a corresponding amount of liquidity pool tokens is minted to providers. The exact amount to be m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: REDUNDANT CODE
### Description
It was observed that there is a redundant code in `withdraw_upvote_deposit_of` and `withdraw_downvote_deposit_of` in the `voter_actions` module. Even though there is already a variable called `voter = env::predecessor_account_id();` new variable called `account_id = env::predeces... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10] `require()`/`revert()` strings longer than 32 bytes cost extra gas
### Description
Each extra memory word of bytes past the original 32 [incurs an MSTORE](https://gist.github.com/hrkrshnn/ee8fabd532058307229d65dcd5836ddc#consider-having-short-revert-strings) which costs **3 gas**
*There are 7 instances 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 | storage | true | false | ## Low: Factory Is Not Compatible With ZKSYNC Era
### Description
The **CREATE3Factory** contract will not work on ZKSYNC Era while other factory patterns using **CREATE2** remain functional. The documentation explicitly states that basic **CREATE2** patterns work:
```
// This works on ZKSYNC
MyContract a = new MyCon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Sanity Checks in `PlatformLogic.setTreasuryFeeSplit()` Function, Allows to Apply Over `100%` Fees
### Description
The vulnerability lies in the `PlatformLogic.setTreasuryFeeSplit()` function of the smart contract, where there is a lack of sanity checks for the input value `_treasuryFeeSplit`. The funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: `VetoProposal`: User can veto multiple times so every proposal can be vetoed by any user that has a small amount of votes
### Description
The [`VetoProposal`](https://github.com/code-423n4/2023-04-party/blob/440aafacb0f15d037594cebc85fd471729bcb6d9/contracts/proposals/VetoProposal.sol#L8-L69) contract allows ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple issues when migrating to new fantiumNFTContractAddress
### Description
FantiumMinterV1 allows setting a new fantiumNFTContractAddress with updateFantiumNFTAddress(). It only changes the address stored but does not affect other scenarios.
1) The new fantiumNFTContractAddress will have an empty `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 | gas | other | false | false | ## Gas: Cache array length in for loops can save gas
### Description
*Note: Minor optimation, the amount of gas saved is minor, change when you see fit.*
Reading array length at each iteration of the loop takes 6 gas (3 for mload and 3 to place memory_offset) in the stack.
Caching the array length in the stack saves... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | true | ## Medium: Invalid oracle version can cause the vault to open too large and risky position and get liquidated due to using unadjusted global current position
### Description
Source: https://github.com/sherlock-audit/2023-09-perennial-judging/issues/55
## Found by
panprog
The fix to [issue 49 of the main contest](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 | low | front-running | false | false | ## Low: Attacker can front-run delegator when changing allowance
### Description
Users can grant allowances to borrow debt assets to other users using the `delegateAllowance` function. Similar to the classical ERC20 `approve` attack, it is possible for a malicious user to front-run the delegator when they attempt to 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 | other | false | false | ## Low: Missing Public Function
### Description
## Upgrade Functionality in package.move
In `package.move`, `authorize_upgrade` issues an `UpgradeTicket` that enables a particular upgrade to be performed utilizing `UpgradeCap`. However, the public function to return the `UpgradeCap` from an `UpgradeTicket` does not 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... | skyward_49k | medium | other | false | false | ## Medium: Improper parallel time system
### Description
The `LendingLedger` system will employ a distinct time system from the `VotingEscrow` and `GaugeController` implementations whereby rewards are denoted per block rather than based on time.
From an implementation perspective, there is no real reason to implement... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Lack of Comparison between minLTV and maxLTV Could Break Functionality
### Description
**Description:**
In the current contract design, there are setter functions setMinLTV() and setMaxLTV() for updating the minLTV and maxLTV variables. However, there is no validation logic to ensure that minLTV is always les... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: USE OF SEND PATTERN INSTEAD OF CALL.VALUE
### Description
Solidity has three methods to complete Ether transfers. The first one is `transfer` method. It forwards 2300 gas, and it does not have callback to check whether transfer is completed or not. The second one is `send` method. It also forwards 2300 gas, bu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: modexp Lacks Optimizations for Trivial Cases
### Description
The [`modexp_inner`](https://github.com/matter-labs/zksync-protocol/blob/97162ccf21bb80be6f543307d93588f290720fc0/crates/zk_evm_abstractions/src/precompiles/modexp.rs#L135C8-L135C20) function uses a fixed 256-bit square-and-multiply algorithm for mod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Buyout cannot be rejected when paused
### Description
_Submitted by Lambda, also found by SmartSek_
### Impact
While `buy()` and `sell()` are only callable when the system is not paused, `redeem()` and `withdrawERC721()` are also callable when it is not. This means that the `BUYOUT_DURATION` is ignored 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 | access-control | false | false | ## Medium: readOnlyMode is ineffective and may result in a false sense of security ✓ Addressed
### Description
`AccountRules` and `NodeRules` can both enter and exit a mode of operation called `readOnlyMode`.
The only effect of `readOnlyMode` is to prevent admins (who are the only users able to change rules) from ch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Event parameter names are messed up
### Description
In the `MuteBond` contract, the following events are defined:
[Link](https://github.com/code-423n4/2023-03-mute/blob/4d8b13add2907b17ac14627cfa04e0c3cc9a2bed/contracts/bonds/MuteBond.sol#L12-L18)
Some of the parameter names do not accurately describe t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Yield bearing vault initializer fails to initialize parent contracts
### Description
The `__YieldBearingVault_init()` function in the `YieldBearingVault` contract does not properly initialize its parent contracts `ERC4626` and `ERC20`. This function only calls `__YieldBearingVault_init_unchained()`, which init... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: Uncollected Storage Fee
### Description
## SBT Soul Transfer Dynamic Length Fields Issue
This suggestion concerns how `sbt_soul_transfer` handles dynamic length fields; for example: `AccountId` within specific data structures, such as `BalanceKey`. This may result in a situation where the total utilized 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 | low | other | true | false | ## Low: Inconsistent comparison while checking `eta`
### Description
**Description:** In `Goldigovernor` and `Timelock`, inconsistent comparisons are used.
**Client:** Fixed in [PR #6](https://github.com/0xgeeb/goldilocks-core/pull/6)
**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 | access-control | false | false | ## Low: Privileged Roles and Ownership
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> The owner of the PSM contract will be 0x939bd8d64c0a9583a7dcea9933f7b21697ab6396, that is the Timelock contract used to execute the normal Venus Improvement Propos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | false | false | ## Medium: Lack of swap sanitization could lead to user's collateral being stolen
### Description
During the collateral swap process, the [swap function](https://github.com/widolabs/wido-contracts/blob/d96ef2dd6a7ff3d04c44ebe87994411d1f8c84e7/contracts/compound/libraries/LibCollateralSwap.sol#L62C9-L62C14) is supposed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens can be stolen through `transferTo`
### Description
I know that it's stated that:
> VADER, USDV, SYNTHS all employ the `transferTo()` function, which interrogates for `tx.origin` and skips approvals. The author does not subscribe to the belief that this is dangerous
In my opinion, it can be very dange... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Business Logic | false | false | ## Medium Risk Report
**Severity:** Medium Risk
**Context:**
- aave-v2/MorphoGovernance.sol#L395
- compound/MorphoGovernance.sol#L372
**Description:**
When a market is being marked as deprecated, there is no verification that the borrow for that market has already been disabled. This means a user could borrow... | Spearbit | 5 | Morpho |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing infinite approval functionality
### Description
Most other contracts in the repository use `type(uint256).max` to mean infinite approval, rather than a specific approval amount. Not doing the same thing here will mean inconsistent behavior between the components, will mean that approvals will eventuall... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS risk from pending prize locking mechanism
### Description
The `calculatePendingPrizesForRarity` function in the `SpinLottery` contract implements a minimum guarantee mechanism where, if `_prizeCount` is greater than `1` and the `weight` is greater than `0`, the `pendingCount` is conservatively set to 1.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe Casting in _addInt128()
### Description
The _addInt128() function can silently overflow due to unsafe casting, resulting in an attacker being able to allocate more magnitude than intended.
The _addInt128() function can overflow due to unsafe casting from `int128` to `uint128` when the casted value is n... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol won't work correctly with tokens that do not revert on failed `transfer`
### Description
**Impact:**
High, as it can lead to a loss of value
**Likelihood:**
Low, as such tokens are not so common
**Description**
Some tokens do not revert on failure in `transfer` or `transferFrom` but instead 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 | high | overflow | false | false | ## High: FullMath requires overflow behavior
### Description
UniswapV3’s `FullMath.sol` is copied and migrated from an old solidity version to version 0.8, which reverts on overflows. However, the old `FullMath` relies on implicit overflow behavior. The current code will revert on overflows when it should not, which 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 | high | access-control | true | false | ## High: INADEQUATE ACCESS CONTROL IN ADDGASFEE FUNCTION ALLOWS TO STEAL USERS' TOKENS
### Description
An attacker can use `addGasFee` function in **CCMPSendMessageFacet** contract and send a custom `GasFeePaymentArgs` to force the transfer of ERC20 tokens from all the users, who previously approved **CCMPGateway** to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Both buyAllAmountWithLeverage and sellAllAmountWithLeverage always revert
### Description
Both `buyAllAmountWithLeverage` and `sellAllAmountWithLeverage` always revert. **So all users cannot open a leveraged position**.
### Proof of Concept
`openPosition` is the entry point for users to open long/short po... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `UberOwner` has too much power
### Description
_Submitted by tensors_
The Uber Owner has too much power within the system. This makes the protocol closer to a centralized prediction market whose rules are determined by the Uber Owner. See issue page for referenced code
The above functions can be used by the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Update solc version and use unchecked in Uniswap related libraries
### Description
The highlighted libraries above are referenced from the Uniswap codebase, which is intended to work with the Solidity compiler =0.8, which doesn't have unchecked arithmetic by default. Hence, to port the code, it has to be tu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It's not possible to execute a rewards migration of a `BatonFarm`
### Description
**Severity**
**Impact:**
High, as it can lead to stuck rewards
**Likelihood:**
Low, as it is not likely that a migration is needed
**Description**
The `BatonFarm` contract which is an external dependency of the `Nft` contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Consider implementing unlimited approvals for `rOUSG` token
### Description
**Description:** ERC20 tokens commonly implement unlimited approvals by allowing users to approve spenders for `type(uint256).max`. Consider implementing this common feature; an [example](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 | medium | other | true | false | ## Medium: Voting power does not decay when calculating shares of flow emissions if the user does not vote again.
### Description
Voting power does not decay when calculating shares of flow emissions earned by a pool/gauge, if the user does not vote again. The votes are still counted, but assigned too much power.
###... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incentive does not initialize when Ether depreciates
### Description
Once `FEI` reaches parity with `USDC`, there are 2 ways for the `FEI` price to fall below the peg: either by users selling `FEI` (which the protocol handles) or by ETH depreciating against `USDC`. There is no incentive to support the peg 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 | initialization | true | false | ## Low: Potential division by zero in _calcTrancheValue
### Description
Junior tranche withdrawals may fail due to an unexpected division by zero error. One of the key steps performed during junior tranche withdrawals is to identify the dollar value of the tranche tokens that will be burned by calling `_calcTrancheVal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards Paid to Keeper Never Emitted in Events
### Description
The reward paid to a keeper who has called functions for the contract is calculated and returned by `KeeperRewards.payKeeper()`. However, this reward value is never recorded by the function `performUpkeepSinglePool()`. This means when the events `K... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use Custom Errors instead of Revert Strings to save Gas
### Description
Custom errors are available from solidity version 0.8.4. Custom errors save [**\~50 gas**](https://gist.github.com/IllIllI000/ad1bd0d29a0101b25e57c293b4b0c746) each time they're hit by [avoiding having to allocate and store the revert stri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract Quest the function `claim` shouldn't only set the receipt as claimed, but to burn it as well. As this problem brings the risk, where users can sell already claimed receipts to other people
### Description
The function `claim` is used by users to claim their ERC721 receipts for rewards. By using 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: Insufficient HEU Tokens for Claims
### Description
**Severity** : Low
**Status**: Acknowledged
**Description**:
The claim() function does not validate whether the contract has enough HEU tokens to fulfill a user's claim. If the balance of HEU is insufficient (e.g., due to previous withdrawals or unexpected... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Account owner of the minted TLC tokens must call delegate to own vote power of initial minted tokens
### Description
The _account owner of the minted TLC tokens must remember to call `tlcToken.delegate(accountOwner)` to auto-delegate to itself; otherwise, it will have zero voting power. Without doing that, any... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.