prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: `VE3DRewardPool` claim in loop depend on pausable token
### Description
_Submitted by VAD37_
### Vulnerability Details
Project veToken is supposed to be a generalized version of Convex for non-Curve token.
There is only one contract for all rewards token in the platform.
All ve3Token rewards are bundled... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Controller Can Buy Arbitrary NFTs and Steal OCH Via Approvals
### Description
1. The purchase path accepts opaque Seaport calldata and only checks the function selector, without enforcing that acquired assets belong to `COLLECTION`, and it uses explicit ETH forwarding with no contract-side spend cap (`valueWei... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: The function updateValset does not have enough sanity checks
### Description
## Handle
hrkrshnn
## Vulnerability details
## `updateValset` does not have enough sanity checks
In
[updateValset](https://github.com/althea-net/cosmos-gravity-bridge/blob/92d0e12cea813305e6472851beeb80bd2eaf858d/solidity/con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | true | false | ## Low: `safeApprove()` is deprecated
### Description
[Deprecated](https://github.com/OpenZeppelin/openzeppelin-contracts/blob/bfff03c0d2a59bcd8e2ead1da9aed9edf0080d05/contracts/token/ERC20/utils/SafeERC20.sol#L38-L45) in favor of `safeIncreaseAllowance()` and `safeDecreaseAllowance()`
1. File: src/CitadelMinter.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 | medium | initialization | true | false | ## Medium: Discrepancy between clear text and amount PCT when depositing fee on transfer tokens
### Description
**Severity:** Medium
**Path:** contracts/EncryptedERC.sol#L472-L506
**Description:** The `EncryptedERC.sol` contract will not work properly with a fee on transfer tokens, as when depositing such one via 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... | solodit_api | medium | Check Return Value | true | false | Source: https://github.com/sherlock-audit/2022-09-notional-judging/issues/117
## Found by
ctf\_sec
## Summary
stakingContext.auraBooster.deposit boolean return value not handled in Boosted3TokenPoolUtils.sol
## Vulnerability Detail
the function _joinPoolAndStake in Boosted3TokenPoolUtils.sol is used extensively ... | Sherlock | 3 | Notional |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Superfluous Permission endowment:network-access
### Description
The snap requests permission `endowment:network-access` to interact with external entities over HTTP/fetch. While the sandbox/demo dapp may use the fetch API in its context as a web app, the requested permission is only relevant for the snap and ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Admin can't increase claim balance when `hasAllowanceMechanism` has been set in Claim contract
### Description
When users creates DAO they specify the `claimBalance` and later they can increase it. The issue is that when `hasAllowanceMechanism` is set there's no way to increase `claimBalance` because `depos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect check in the `sellTokens`
### Description
The ETH balance sufficiency check in the `ContinuosBondingERC20Token.sellTokens` does not count the `treasuryClaimableEth` variable but should. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | signature | true | false | ## Gas: Empty blocks should be removed or emit something
### Description
The code should be refactored such that they no longer exist, or the block should do something useful, such as emitting an event or reverting. If the contract is meant to be extended, the contract should be `abstract` and the function signatures ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Absence of autonomous mechanism for `selling collateral assets in the external market in exchange for USDS` will cause undercollateralization during market crashes and will cause USDS to depeg
### Description
* The stablecoin USDS retains its US dollar peg by being overcollateralized. That is true on a bul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent behavior between NToken and PToken liquidations
### Description
When a user liquidates another user’s ERC20 tokens and opts to receive PTokens, the PTokens are automatically registered as collateral. However, when a user liquidates another user’s ERC721 token and opts to receive an NToken, the NTo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: `MultiRewardStaking.changeRewardSpeed()` breaks the distribution
### Description
### Impact
The `changeRewardSpeed()` doesn't calculate the new `endTimestamp` correctly. That causes the reward distribution to be broken.
### Proof of Concept
Given that we have an existing reward with the following configu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: ERC721Votes: Token owners can double voting power through self delegation
### Description
## Lines of code
https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddbbacdd7d7812e912a369cfd862ee67dc03/src/lib/token/ERC721Votes.sol#L131-L135
https://github.com/code-423n4/2022-09-nouns-builder/blob/7e9fddb... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | ## Vulnerability Report
## Severity
**Medium Risk**
## Context
- Executor.sol#L143-L149
- Executor.sol#L191-L199
- Executor.sol#L242-L249
- Executor.sol#L338-L345
## Description
The initial balance of (native) tokens in both the Lifi Diamond and the Executor contract can be swept by all the swap functions in all the... | Spearbit | 5 | LI.FI |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `OverlayV1UniswapV3Market` computes wrong market liquidity
### Description
_Submitted by cmichel_
The `OverlayV1UniswapV3Market.fetchPricePoint` tries to compute the market depth in OVL terms as `marketLiquidity (in ETH) / ovlPrice (in ETH per OVL)`.
To get the market liquidity *in ETH* (and not the other 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 | gas | initialization | true | false | ## Gas: Check for `bytes(_symbol).length > 0` before calling `NFTDropCollection.initialize()`, like it's done for `NFTCollection.initialize()`
### Description
This could save a lot of gas if the revert condition is met.
For `NFTCollection`, the check is made in `NFTCollectionFactory.createNFTCollection()`.
* [NFTCo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `votingReward` not set on `Gauge`
### Description
The `Gauge` contract does not set the `votingReward` during its initialization and does not have a setter function for it.
As a result, when `notifyRewardAmount()` is called and fees are claimed from the pair, the transaction will revert.
```solidity
(clai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Fee-on-Transfer and Rebasing Tokens Not Supported for Lp Token
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> No plans to create pools for Fee-on-Transfer and Rebasing Tokens.
**File(s) affected:**`SophonFarming.sol`
**Description:** 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: Support Atomic Update Function
### Description
## Unstake Process and Fee Allocation
The unstake process in `epoch_was_changed` exchanges AFSUI for SUI and imposes a fee on it. The fee is distributed among treasury, developer, and crank incentive pools, where the sum of the three should equal one hundred perc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extended Recovery Period After Emergency Shutdown Due to Rate Adjustment Limitations
### Description
The RAACMinter contract's emergency shutdown mechanism, while successfully halting emissions, leads to an extended period of economic distortion during recovery. Due to the interaction between the benchmark rat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect asset handling during withdraw
### Description
During the `withdraw` function execution in the `LendingPool` contract, there is an issue with the handling of the `whbar` asset. The `burn` function of the `AToken` contract transfers the `_underlyingAsset` to the `receiverOfUnderlying`, which correspo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | true | false | ## Gas: Cache computation results instead of repeatedly performing the same computation
### Description
**Description:** Cache computation results instead of repeatedly performing the same computation.
* `contracts/utils/TransactionRelayer.sol`
**Securitize:** Acknowledged. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The Mantle DA Status Is Not Cleared on OP-Batcher Start
### Description
Upon starting the OP-Batcher, [the state is cleaned](https://github.com/mantlenetworkio/mantle-v2/blob/e29d360904db5e5ec81888885f7b7250f8255895/op-batcher/batcher/driver.go#L179) but the Mantle DA status is not.
Consider calling the [`cl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unexpected tokens with fees will break the vault
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
Contract AssetVault is a type of vault that supports only one ERC20 tokens, so for each token there will be a different vault deployed, based on the initial premise there will be qui... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Roles cannot be renounced
### Description
The role management scheme implemented in the [`MultiRole` contract](https://github.com/UMAprotocol/protocol/blob/9d403ddb5f2f07194daefe7da51e0e0a6306f2c4/core/contracts/common/implementation/MultiRole.sol) does not include a way for accounts to renounce the roles they... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of ERC20 approval on depositing to external money markets Compound V2
### Description
Notional's current rebalancing process for depositing prime cash underlyings into Compound V2 generates the mint function without approval.
### Impact
This finding should be considered valid for several reasons:
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 | gas | other | true | false | ## Gas: With assembly, `.call (bool success)` transfer can be done gas-optimized
### Description
Return data `(bool success,)` has to be stored due to EVM architecture. But in a usage like below, ‘out’ and ‘outsize’ values are given (0,0); this storage disappears and gas optimization is provided.
- (bool success,) = ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Halting the protocol should be `onlyGovernance` and not` onlyStrategist`
### Description
_Submitted by 0xRajeev_
#### Impact
A malicious strategist can halt the entire protocol and force a permanent shutdown once they observe that governance is trying to set a new strategist and they do not agree with that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Admin | true | false | ## Security Report
## Severity: High Risk
### Context
- `RoutersFacet.sol#L263-L267`
- `RoutersFacet.sol#L297`
- `RoutersFacet.sol#L498`
- `BridgeFacet.sol#L622`
### Description
A malicious owner or user with the `Role.Router` role (denominated as A in this example) can drain a router's liquidity for a current route... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Missing events for important state changes
### Description
The following calls lack events emitted even though they change important states inside the contracts:
* `Strategy::claim`
* `Strategy::setFrozen`
* `Strategy::setSelector`
* `VaultV3::emergencyFreeze`
### Recommendation
Consider adding events to be 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 | low | liquidation | false | false | ## Low: [02] Custom error misleading name
### Description
The name of the following custom error should be renamed as follows to be more in line of its intended purpose:
https://github.com/GenerationSoftware/pt-v5-cgda-liquidator/blob/7f95bcacd4a566c2becb98d55c1886cadbaa8897/src/LiquidationPair.sol#L12
https://gith... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Can block bridge or limit the bridgeable amount by initializing the ITSHub balance of the original chain
### Description
### Impact
Token deployers can block the token bridge or limit the bridgeable amount without having Operator or FlowLimiter permissions. Especially, Canonical tokens can be attacked by any... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not restricted round start
### Description
**Description**
BEP20TokenWhitelisted.sol, line 476, _applyLGEWhiteList
For now anyone can start the purchases rounds (send tokens to _lgePairAddress, thus
triggering _applyLGEWhiteList ).
**Recommendation**:
Confirm the functionality or consider restricting for ow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Handling empty arrays by reverting with an explicit custom error
### Description
An array out-of-bounds access error may be triggered in the `SablierMerkleLT._calculateStartTimeAndTranches()` function. If the state variable `_tranchesWithPercentages` is an empty array, accessing `tranchesWithPercentages[0]` wi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Error handling syntax improvements
### Description
The code uses `if (!statement) revert error;` for error handling, which is less readable than using the `require(statement, error);` syntax introduced in Solidity version 0.8.26. This impacts the clarity and maintainability of the code.
The issue is classifie... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | true | false | ## Medium: SEV 5: The getAccountMarginRequirementUsdAndUnrealizedPnlUsd function returns incorrect margin requirement values when a position is being changed
### Description
The `getAccountMarginRequirementUsdAndUnrealizedPnlUsd` function incorrectly uses current order's fill price as the mark price for computing marg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | call vs transfer | false | true | ## Handle
elprofesor
## Vulnerability details
## Impact
The use of ` .transfer()` in ` Swap.sol` may have unintended outcomes on the eth being sent to the receiver. Eth may be irretrievable or undelivered if the `msg.sender` or ` feeRecipient` is a smart contract. Funds can potentially be lost if;
1. The... | Code4rena | 3 | Tally |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use Ownable2Step instead of Ownable for better security
### Description
## Context and Description
**Context:** `TANIssuanceHistory.sol#L21`
**Description:**
The `TANIssuanceHistory` contract inherits from OpenZeppelin's `Ownable` contract, which allows for immediate ownership transfers. This creates a ris... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious DAO Pool can create a token sale tier without actually transferring any DAO tokens
### Description
**Description:** `TokenSaleProposalCreate::createTier` is called by a DAO Pool owner to create a new token sale tier. A fundamental prerequisite for creating a tier is that the DAO Pool owner must 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 | high | liquidation | true | false | ## High: Improper Checking Of Instruction Sequence
### Description
## refresh_ix_utils.rs Overview
In `refresh_ix_utils.rs`, the `check_ixns` function ensures that a specific sequence of instructions, as defined by the `RequiredIx` structures, is executed correctly and meets certain criteria. It ensures that, before ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: APR calculated before fees in `rebase()`, inflates value
### Description
_Resolved_
`rebase()` is used to calculate and update the new APR for stakers.
The issue is that `aprChange` uses `newSupply` before fees are applied, causing the calculated APR to be higher than the actual one. As a result, users will ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Store _serviceRegistry and _serviceId as immutable parameters in the OlasMech contract
### Description
## Context
OlasMech.sol#L278-L299.
## Description/Recommendation
Avoid storing `_serviceRegistry` and `_serviceId` in an external write-only-once contract. Instead, store them as immutable parameters in 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 | liquidation | false | false | ## Medium: Missing checks if pairs equal tokens
### Description
The `UniswapStyleLib.getAmountsOut`, `PriceAware.setLiquidationPath` (and others) don't check that `path.length + 1 == tokens.length` which should always hold true. Also, it does not check that the tokens actually match the pair. It's easy to set faulty l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: addInvestor() Does Not Check Availability of investors_supply
### Description
_Submitted by Meta0xNull_
#### Impact
When add investor, `addInvestor()` does not check how many tokens is available from `investors_supply`. The total tokens allocated for Investors could more than `investors_supply`.
Possible A... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Index Pool always swap to Zero
### Description
_Submitted by broccoli, also found by 0xsanson, cmichel, and WatchPug_
#### Impact
When an Index pool is initiated with two tokens A: B and the weight rate = 1:2, then no user can buy token A with token B.
The root cause is the error in pow. It seems like 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 | low | cross-chain | false | false | ## Low: Removed safety check
### Description
**Severity**: Informational
**Status**: Acknowledged
**Description**
ChainportMainBridge, _depositTokens()
The check against the inflated tokens (that the final balance does not exceed the expected)
was removed.
The issue is marked as Info, as currently its impact cann... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: traceurl - miss updating pool's token balance after finishLiquidation()
### Description
In D3Liquidation's finishLiquidation() function, update pool's token balance is missing.
### Impact
After finishLiquidation, there will be unequally of pool's token balance record and IERC20(token).balanceOf(pool), 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 | high | other | false | false | ## High: Users' rewards can be lost if the incentive maker adds a new farming with the same key
### Description
If the incentive maker adds a new farming after the previous one was unattached by the pool, then all users' rewards will be lost.
https://github.com/cryptoalgebra/Algebra/blob/7290fad656bfa89db3743c52af6311... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ERC20 BondingCurve accepts ETH
### Description
The [`BondingCurve`](https://github.com/fei-protocol/fei-protocol-core-internal/blob/f54d7bb07c55adb78e2e142e7044f60090bb7602/contracts/bondingcurve/BondingCurve.sol#L180) contract has a [`purchase`](https://github.com/fei-protocol/fei-protocol-core-internal/blob/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | false | false | ## High: Withdrawal of tokens with debt as zero
### Description
This code allows you not to spend debt in liquidation (
https://github.com/curvefi/curve-stablecoin/blob/0d9265cc2dbd221b0f27f880fac1c590e1f12d28/contracts/Controller.vy#L990):
```
debt = unsafe_div(debt * frac, 10**18)
```
If `debt * frac` is less than ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Useless payable modifier.
### Description
**Description**
TokensFarm.sol, function makeWithdrawRequest
Function with payable modifier, but eth is not used anywhere in the function.
**Recommendation**
Remove the modifier or add the necessary processing logic.
**Re-audit comment**
Resolved | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Naming Suggestions
### Description
The following instances could benefit from better naming:
* In [`SecurityCouncil.sol`](https://github.com/zksync-association/zk-governance/blob/b2e01439937325ceb3d059d0f07c9d73339977a7/l1-contracts/src/SecurityCouncil.sol#L35), the `UNFREEZE_THRESHOLD_TYPEHASH` can be renam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use calldata instead of memory for function arguments that do not get mutated
### Description
When you specify a data location as `memory`, that value will be copied into memory. When you specify the location as `calldata`, the value will stay static within calldata. If the value is a large, complex type, usin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Various use of "transfer" opcode to send ETH
### Description
In GroupcoinFactory.sol, when buying and selling tokens, the `.transfer` opcode is used to handle ETH transfer, it does this by forwarding a fixed amount of 2300 gas. This is dangerous for two reasons:
1. Gas costs of EVM instructions may change ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: INCREMENTS CAN BE UNCHECKED IN LOOPS
### Description
Most of the solidity for loops use an uint256 variable counter that increments by 1 and starts at 0. These increments don't need to be checked for over/underflow because the variable will never reach the max capacity of uint256 as it would run out of gas lon... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ANDROID - EXPOSURE OF SENSITIVE DATA THROUGH CLIPBOARD
### Description
The application allows users to copy sensitive data, such as mnemonics or private keys, to the system clipboard. While this feature may provide convenience, it introduces significant security risks. Clipboard data can be accessed by othe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Wrong Math | true | false | Source: https://github.com/sherlock-audit/2023-06-Index-judging/issues/42
## Found by
0x52
## Summary
The exponential and logarithmic price adapters do not work correctly when used with token pricing of different decimal places. This is because the resolution of the underlying expWad and lnWad functions is not fit ... | Sherlock | 5 | Index Update |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Badger rewards from Hidden Hand can permanently prevent Strategy from receiving bribes
### Description
_Submitted by scaraven, also found by berndartmueller, cccz, dipp, GimelSec, kenzo, kirk-baird, and unforgiven_
### Impact
If the contract receives rewards from the hidden hand marketplace in BADGER 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 | access-control | true | false | ## Low: Redundant manual access control checks
### Description
**Description:** In both `BaseRewards` and `BaseSlashing` contracts, functions perform manual access control checks (`_checkRewarder` and `_checkSlasher`) instead of using the already-defined `onlyRewarder` and `onlySlasher` modifiers. Specifically:
* `di... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: [G-08]
### Description
[G-08] require()/revert() strings longer than 32 bytes cost extra gas
Each extra memory word of bytes past the original 32 incurs an MSTORE which costs 3 gas.
Exchange.sol#L49
Exchange.sol#L295
Exchange.sol#L604
Pool.sol#L63 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Adding Collateral to Non-Trader Addresses Is Possible
### Description
**Update**
Collateral can only be added to whitelisted trader address as of commit `5a3b5b2`.
**File(s) affected:**`src/CreditVault.sol`
**Description:** In the `CreditVault.sol` contract, anyone can call the function `addCollateral()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `optionTokens` can be expired even though the epoch is not over
### Description
When deploying an `optionToken` the parameter `expiry` is rounded down to the “nearest day at 0000 UTC” but since the end of an epoch is calculated by the `epochDuration` and the exact time the epoch has stared and the `optionTo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The old Openzeppelin version is being used
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The project is using an ‘old’ version of the Openzeppelin dependencies while newer ones are available. Using the newest version is always recommended.
**Recommendation**:
Update 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 | cross-chain | false | false | ## Medium: The `TokenBridge` Owner Can Double-Spend Withdrawals
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `3fa949a2e9a903c54637fcd39abe8ea70d20f8bd`.
**File(s) affected:**`TokenBridge.sol`, `TokenBridgeWithSnapshotWithdraw.sol`
**Description:** The bridge owner has the power to both 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 | rounding | false | false | ## Medium: (HAL-08) Decimal Precision Incompatibility in Reward Accrual with HALO Tokens
### Description
In the `HaloStakeVault.sol` contract, the `stakeToken` and `rewardToken` global variables are set when the contract is deployed. The `ACC_PRECISION` is a constant variable with the value of 1e18. If the `rewardToke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Record updates cannot lead to rewards decreasing
### Description
Record modification cannot lead to rewards decreasing because it is impossible to receive more rewards than ReturnsReceivers have https://github.com/TwoFiftySixLabs/mntEth/blob/bd15a96aee7df0fc0566d662df0cf50ff2619d31/src/Oracle.sol#L298-L303. 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 | low | overflow | true | false | ## Low: Multiplication over�low can block certain wallet operations
### Description
Some wallet transfers involving a very large number of tokens may trigger an integer overflow that will revert the transaction. The `convertToEther` and `convertToStablecoin` functions are designed to compute the value of certain 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 | initialization | true | true | ## Medium: Missing validations on administration functions
### Description
Staking relies on correct parametrization from the owner. Several administration functions lack proper input validation, which might lead to a misconfigured system or loss of privileged access.
Within the `setOwner` function (Figure 5.1), ther... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The NativeTokenPaymentEnforcer Enforcer May Change the Final State in Contradiction With Other Enforcers ✓ Fixed
### Description
The `NativeTokenPaymentEnforcer` is an enforcer that, combined with a delegation, ensures a `delegate` pays to redeem it. This enforcer relies on a second delegation that gives the r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Function `WildcatMarketController.setAnnualInterestBips` allows for values outside the factory range
### Description
When a `WildcatMarketController` is created, it is hardcoded with a `MinimumAnnualInterestBips` and `MaximumAnnualInterestBips` range that cannot be changed; these values come from `WildcatMa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Value loaded from memory inside futex() is different from what userspace uses for comparison
### Description
Futexes are in-memory 32-bit values used mostly in userspace to synchronize threads, via atomic instructions. The need to call the `futex()` system call is relatively rare; it only happens when there 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 | rounding | false | false | ## Low: Use Battle-Tested `Logarithm2()` Library
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `5b989b78da3b6994e4cf512e069ff6943e232f10`. The client provided the following explanation:
> Changed log2 to openZepplin documentation.
**File(s) affected:**`MerkleBase.sol`
**Description:** Th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: initSupplySubTargetSupply Can Be Stored In Variable Instead
### Description
**Severity** - Informational
**Status** - Resolved
**Description**
In contracts BurnContract.sol and DomainNFT.sol ‘s calculateMintAmounts() function the initSupplySubTargetSupply is calculated by subtracting the TARGET_TOTAL_SUPPL... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RELAX STRICT CONDITIONS ON SWAPS WITHOUT DEBT
### Description
The `multiSwap` function from the `PrimexPricingLibrary.sol` contract executes the token swap across the specified DEX and paths for opening and closing orders. However, when executing an order without leverage, the protocol sets the tolerable li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extension period not applied correctly for next root when SPLIT_DEPTH is set to 1 or less
### Description
When `SPLIT_DEPTH` is set to `1`, the extension period for the next root is not considered, resulting in the root claim not receiving the intended extension time. This occurs because the calculation `SPLIT... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 cast of the gasLimit in OptimismForwarder
### Description
In the `OptimismForwarder` contract, the minimum gas limit parameter is received as a `uint256` and then unsafely cast to a `uint32`:
```solidity
ICrossDomainOptimism(l1CrossDomain).sendMessage(
target,
message,
uint32(gasLimit)
);
```
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 | other | false | false | ## Medium: Missed Fills When Tick-Spacing Changes
### Description
`LimitOrderManager._getCrossedTicks()` relies on `tickLowerLasts[pool]`, a value recorded under the previous tick-spacing. If governance changes a pool’s tick-spacing (e.g., from 10 to 20), the stored `tickLowerLast` no longer aligns with the new grid. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Vault with more than one collateral can have Bad Debt Redistribution prevented via a sin- gle wei donation
### Description
## Context
Liquidation.sol#L211-L227
## Impact
Since donations to underwater accounts are not checked, a 1 wei donation can be used to prevent a bad debt redistribution from happening. Wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused Code Elements Create Unnecessary gas spent
### Description
The protocol contains several unused elements across multiple contracts that increase contract size and complicate code readability without providing functional value.
In **GeniusVaultCore.sol**, the `_updateStakedBalance` function exists 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 | medium | other | false | false | ## Medium: Consensus Key Re-utilization
### Description
## Blockchain Security Issue
Blockchain networks often maintain a history of previously utilized consensus keys for validators to prevent the re-utilization of old keys, which may compromise security if compromised or associated with a decommissioned validator. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: `ReLPContract` wrongfully assumes protocol owns all of the liquidity in the UniswapV2 pool
### Description
Possible full DoS for `ReLPContract`
### Proof of Concept
When taking out a `bond` in `RdpxV2Core` if `isReLPActive == true`, a call to `ReLPContract#reLP` is made which 're-LPs the pool\` (takes out 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 | true | false | ## Low: `LogarithmVault.sol::maxMint` is returning `super.maxDeposit` instead of `super.maxMint`
### Description
**Severity:** low
**Path:** src/vault/LogarithmVault.sol#L652
**Description:** The `LogarithmVault::maxMint` function at line 652 incorrectly calls `super.maxDeposit()`. Instead, it should convert the us... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] Setters should always have equality checkers
### Description
Using [this](https://github.com/search?q=repo%3Acode-423n4%2F2024-03-revert-lend%20function%20set&type=code) search prompt code, we can see that multiple setter functions exist in scope, with them not having any check that the new accepted value... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: COGNITIVE COMPLEXITY OF FUNCTION IS TOO HIGH
### Description
Cognitive Complexity is a measure of how hard the control flow of a function is to understand. Functions with high Cognitive Complexity will be difficult to maintain.
`CrossChainPathFindingService.ts`
* `refreshDst`
### Recommendation
**ACKNOWLEDG... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | true | false | ## Risk Assessment
## Severity
**Medium Risk**
## Context
- `BridgeFacet.sol#L492-L495`
- `RoutersFacet.sol#L556-L559`
## Description
Connext Diamond defines a cap on each token. Any transfer making the total token balance more than the cap is reverted.
```solidity
uint256 custodied = IERC20(_local).balanceOf(addre... | Spearbit | 5 | Connext |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If Optimism Wallet has expensive receive() function, their payments can be bypassed
### Description
When `disburseFees()` is called, the amount of fees to send to Optimism is calculated. Then, `SafeCall` is used to send those funds to Optimism. Finally, the remaining balance of the contract is bridged to L1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Swap | true | false | ## Vulnerability Report
### Severity
**Medium Risk**
### Context
- `LibSwap.sol#L30-L68`
- `SwapperV2.sol#L67-L81`
- `Swapper.sol#L65-L78`
- `Executor.sol#L323-L333`
### Description
The function `LibSwap.swap()` pulls in tokens via `transferFromERC20()` from `msg.sender` when needed. When put in a loop, through `_ex... | Spearbit | 5 | LI.FI |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | access-control | true | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked payable
### Description
If a function modifier such as onlyOwner is used, the function will revert if a normal user tries to pay the function. Marking the function as payable will lower the gas cost for legitimate callers because the comp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CreditDelegationBranch::depositCreditForMarket cannot update market realized debt properly
### Description
The function `CreditDelegationBranch::depositCreditForMarket` calls `market.settleCreditDeposit`, which modifies `realizedDebtUsdPerVaultShare`. However, if `CreditDelegationBranch::updateMarketCreditD... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | cross-chain | false | false | ## Medium: Protocol Assumes Unlimited Relayer Liquidity on L2
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We are aware of the mentioned risk, but due to the high gas fees on L1, we have decided not to deploy the contract on L1 for now. However, w... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: srcToken and srcChainId is not updated on old token after migration through changeBridgedToken()
### Description
[Link](https://github.com/code-423n4/2024-03-taiko/blob/f58384f44dbf4c6535264a472322322705133b11/packages/protocol/contracts/tokenvault/BridgedERC20.sol#L73)
When a token is migrated to another 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 | true | false | ## Gas: Use direct global `msg.sender` instead of taking it as function parameter
### Description
Use directly `msg.sender` instead of taking it as `owner` function parameter.
[V3Vault.sol#L410-L425](https://github.com/code-423n4/2024-03-revert-lend/blob/main/src/V3Vault.sol#L410-L425)
### Recommended Mitigation St... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of State Migration and State Integrality Check
### Description
**Description:**
In the current implementation, there is no state migration interface. In this case, the contract cannot deserialize the account's state due to the newly added attribute counter2.
**Recommendations:**
To fix the problem, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Zero address check for tokens
### Description
In the current implementation the token and price feed addresses aren’t checked for zero address upon initialization, there is a modifier which catch scenarios when price feed with zero address will be passed, but not for token addresses.
### Impact
It will make f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: Lack of Price Feed Update Function in `RedStoneNavProvider`
### Description
The `RedStoneNavProvider` contract sets the RedStone price feed address during initialization but provides no mechanism to update it afterwards. The priceFeed is set once in the `RedStoneNavProvider::initialize` function and becomes im... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: potCreator has a way to always win a round
### Description
Once `entropy.request()` is called and `sequenceNumber` is known, `potCreator` knows the random number that will be generated through `entropy.reveal()`. Thus, `potCreator` can predict `winnerIndex` before calling `rotateLiquidity()`. This information... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | true |
`setPendingRedemptionBalance()` are not checking Old balances, resulting in the possibility of overwriting the new balance added by the user.
### Proof of Concept
In `setPendingRedemptionBalance()`, `MANAGER_ADMIN` can adjust the amount of the cash token of user to be burned in some cases: addressToBurnAmt\[user]
T... | Code4rena | 4 | Ondo Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: BkdLocker#depositFees() can be front run to steal the newly added rewardToken
### Description
## Lines of code
https://github.com/code-423n4/2022-05-backd/blob/2a5664d35cde5b036074edef3c1369b984d10010/protocol/contracts/BkdLocker.sol#L90-L100
## Vulnerability details
Every time the `BkdLocker#depositFee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: Incorrect handling of negative multipliers in `QuantAMMWeightedPool` leads to underflow in weight calculation
### Description
**Description:** In [`QuantAMMWeightedPool::calculateBlockNormalisedWeight`](https://github.com/QuantAMMProtocol/QuantAMM-V1/blob/7213401491f6a8fd1fcc1cf4763b15b5da355f1c/pkg/pool-quan... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.