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: The RustCrypto-utils dependency is behind two commits that added validation
### Description
The `eranrund/RustCrypto-utils` dependency used by MobileCoin is behind two commits from its upstream version that added compile-time const-oid validation. It seems that the modified code is not used directly in the Mob... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Missing Check of `msg.value` in `bridgeOut()` Function Allows DoS or Stealing Funds
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `95fad25a5770015dba8595595249a9fe8257b35e`.
**File(s) affected:**`CampTimelockEscrowNativeOFT.sol`
**Description:** The `bridgeOut()` function acts as... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: EulerSavingsRate : Lack of early interest accruals due to precision loss
### Description
In `EulerSavingsRate.interestAccruedFromCache()`, `esrSlotCache.interestLeft * timePassed / totalDuration` is used to calculate the interest accrued.
```solidity
function interestAccruedFromCache(ESRSlot memory esrSlotCac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Native Token Address Handling for Cross-Chain Compatibility
### Description
In **GeniusMultiTokenVault.sol**, the contract hardcodes the native token address as `address(0)`, which creates incompatibility issues with certain L2 networks like zkSync where ETH has a specific contract address.
```
contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: INSUFFICIENT VALIDATION AND POTENTIAL INTEGER OVERFLOW
### Description
The `appendChangeTxOut` function in the Bitcoin transaction handling system is responsible for calculating the change in satoshis after a transaction and appending outputs to a transaction. The function lacks proper validation checks for... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `e46324162112dcc81dc3ed2d25f74272290e7385`. The client provided the following explanation:
> Added addtional checks and acknowledged others. Comments: supplyCap = 0 This is a valid initialization setting for som... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 packet ID in `finalizeOpen()` causes NFT loss
### Description
In the `Packet.sol` contract, the `finalizeOpen()` function has a critical flaw that will cause all transactions to fail when the `burnType` is **INSTANT_OPEN_PACKET**.
When processing an **INSTANT_OPEN_PACKET** burn type, the function atte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [12] Modifier `onlyReadyForWithdrawal` is repeatedly execute when users withdraw multiple tokens
### Description
```solidity
modifier onlyReadyForWithdrawal(uint256 _vaultId) { // @audit Repeatedly checked when withdraw multiple tokens
if (_readyForWithdrawal[_vaultId] != msg.sender) {
revert NotApprovedEr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | initialization | true | false | ## Low: Fee collector field ambiguity wallet vs token account
### Description
`FeeManager::collector` is a `Pubkey` named like a wallet, but every place that uses it expects a **token account address** for the liquidity mint. In `initialize` and `update_fee_manager` you require `fee_collector_ta.address == fee_manager... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Typos and Incorrect comment
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract VaultETH_V2, correct the typo error for the mapping riksManagerList, it should be riskManagerList.
In Contract VaultETH_V2, mapping userAmountAtEpoch has an incorrect comment.
Recommend... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Explicit imports
### Description
Throughout the codebase, the approach to integrating external code involved importing full files, eg:
```
import "./Operator.sol";
```
### Recommendation
It's considered best practice to follow named imports instead of importing full files, for example:
```
import {Operator}... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _claimRewardToken() will update accountRewardDebt even when there is a failure during reward claiming, as a result, a user might lose rewards.
### Description
`` _claimRewardToken()`` will update accountRewardDebt even when there is a failure during reward claiming, for example, when there is a lack of bala... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excess Fee Not Refunded in `DaosVesting`
### Description
In `DaosVesting::setSchedules()`, if a user sends more ETH than the required `overrideFee`, that excess amount of ETH is lost forever. The function only checks if the sent amount is less than the fee (`msg.value < overrideFee`), but doesn't handle cases ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing Minimal Liquidity Check in addLiquidity
### Description
The `addLiquidity` function lacks a minimal liquidity check, indirectly relying on the `calcLpOut` function's behavior, which returns `0` if `wethValueInUSD` is less than `1e6` due to `1e18 / 1e6` rounding. While this prevents minting of fractiona... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `<array>.length` should not be looked up in every loop of a `for`-loop
### Description
The overheads outlined below are *PER LOOP*, excluding the first loop
* storage arrays incur a Gwarmaccess (100 gas)
* memory arrays use `MLOAD` (3 gas)
* calldata arrays use `CALLDATALOAD` (3 gas)
Caching the length 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 | access-control | true | false | ## Low: Owner can renounce Ownership
### Description
Typically, the contract’s owner is the account that deploys the contract. As a result, the owner is able to perform certain privileged activities.
The OpenZeppelin’s Ownable used in this project contract implements renounceOwnership. This can represent a certain ri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: Exposure to revert due to wrong operation.
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In contract DistributionManager.sol, the function distributeRewards
is exposed to a panic revert (leads to Denial of service) in some valid cases if the one of totalAllocationPoints 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: pendingWithdrawals just increments
### Description
Sponsor commented that this related to another bug and referenced "[H-05] `Withdrawable.withdraw` does not decrease `pendingWithdrawals`"
see issue [#48](https://github.com/code-423n4/2021-05-fairside-findings/issues/48) for more details. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | false | false | ## High: `Pool.sol` & `Synth.sol`: Failing Max Value Allowance
### Description
_Submitted by hickuphh3, also found by shw, jonah1005, 0xRajeev and cmichel_
In the `_approve` function, if the allowance passed in is `type(uint256).max`, nothing happens (ie. allowance will still remain at previous value). Contract integ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unbounded Transaction Execution
### Description
## Endpoint Contract Considerations
In the endpoint contract, while executing `aslowModetransaction` via the `executeSlowModeTransactions` function, it is better to ensure that the provided `count` is less than or equal to the length of the `slowModeTxs` array.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Calculated `token0TVL` may be zero under certain scenarios
### Description
Because of the brackets, the division of `prices[i] / decimals` is executed before multiplication, causing `token0TVL` to potentially be zero.
### Proof of Concept
Add the following test in `oracle.test.ts`. Note: `getPriceLP()` sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Lack of camelCase
### Description
**Description**
The function `pendingbridges` does not abide by camelCase naming conventions.
**Recommendation**
Rename it to `pendingBridges`.
**Resolution**
Bridges Team:
- The function has been renamed. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M-03 wrong token address on `ShortLongSpell.sol`
### Description
Source: https://github.com/sherlock-audit/2023-04-blueberry-judging/issues/114
## Found by
Ch\_301
## Summary
## Vulnerability Detail
[ShortLongSpell.openPosition()](https://github.com/sherlock-audit/2023-04-blueberry/blob/main/blueberry-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: Inconsistent handling of ammPositionIds in VeloDeployFactory.createStrategy
### Description
In `VeloDeployFactory.createStrategy`, at `VeloDeployFactory.sol#L282`, the function attempts to iterate over the `ammPositionIds` array. However, a few statements prior, at `VeloDeployFactory.sol#L231`, the function ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | reentrancy | false | false | Source: https://github.com/sherlock-audit/2023-02-notional-judging/issues/21
## Found by
usmannk
## Summary
Some curve pools have implementations such that Notional liquidations always revert.
## Vulnerability Detail
Liquidations are done, directly or indirectly, via the `deleverageAccount` function. This functi... | Sherlock | 4 | Notional Update #2 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Comment Missing function parameter
### Description
Some of the function comments are missing function parameters or returns
### Proof Of Concept
Instances include:
#### InfinityExchange.sol
[bool verifySellOrder](https://github.com/code-423n4/2022-06-infinity/blob/765376fa238bbccd8b1e2e12897c91098c7e5ac6/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 | other | true | false | ## Medium: User's funds are locked temporarily in the PriorityPool contract
### Description
**Severity:** Medium
**Description:** The protocol intended to utilize the deposit queue for withdrawal to minimize the stake/unstake interaction with the staking pool.
When a user wants to withdraw, they are supposed to call ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `setYieldSource` leads to temporary wrong results
### Description
_Submitted by gpersoon_
The use of `setYieldSource` leaves the contract in a temporary inconsistent state because it changes the underlying yield source,
but doesn't (yet) transfer the underlying balances, while the shares stay the same.
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 | cross-chain | false | false | ## Low: Bridge Cannot Handle ERC-20 Fee on Transfer
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In the contract `Teleportation.sol` is used to transfer funds from L1 to L2. The function `teleportAsset()` sends and emits tokens based on the input of `_amount`. If a token had a fee attached... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WASM CONFIG PARAMETERS ARE NOT COMPATIBLE WITH RECENT COSMWASM SDK
### Description
During the code review, It has been noticed that the pre-defined parameters are incompatible with the recent **wasmd** keeper. From the following [link](https://github.com/CosmWasm/wasmd/blob/d5ef3ba2de3c9c87adb2d8826da35f4c5b07... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Duplicate Validation Checks
### Description
**Description**
In Bank.sol the `require(receiver != address(this), "Bank: invalid receiver")` check can be deduplicated into a modifier that also validates that the receiver is a non-zero address.
Additionally, these checks can be made in `transferOut` and valid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Event Is Not Emitted when Transaction Reverts
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `dd79d7f`.
**Update**
Marked as "Fixed" by the client. Addressed in: `3f9a00380d668b7879b62d0fa86ed1c43cdb9736`. The client provided the following explanation:
> Premature event emission r... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Unused import
### Description
Importing pointless files costs gas during deployment and is a bad coding practice that is important to ignore.
Remove the following imports:
* [Reservoir.sol#L103](https://github.com/Plex-Engineer/lending-market-v2/blob/2646a7676b721db8a7754bf5503dcd712eab2f8a/contracts/Reserv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: StakedToken does not conform to spec when paused
### Description
## Vulnerability Report
## Severity:
Low Risk
## Context:
StakedToken.sol#L14
## Description:
Pausable makes the getters not conform to spec. E.g. "maxMint MUST factor in both global and user-specific limits, like if mints are entirely disa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `deposits` Index Will Start at 1
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> This does not impact the security of the contract.
**File(s) affected:**`Vepoch.sol`
**Description:** The `deposits` mapping will begin at index one upon first... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Increase Opslimit
### Description
## Libsodium Documentation on opslimit Parameter
The Libsodium documentation states that `3` is the minimum value for the `opslimit` parameter; however, it can be higher if it does not significantly impact performance.
## Example Code
## Remediation
It is recommended to 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 | other | false | false | ## High: Incorrect `ProposalManager.CLOCK()` behaviour
### Description
The `ProposalManager` contract interacts with `EscrowManager` as a **token**, but the `EscrowManager` contract does not implement the `CLOCK()` and `CLOCK_MODE()` methods.
When attempting to create a proposal using `ProposalManager.propose()`, 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: User may not be able to increase the amount of locked RAAC tokens
### Description
User may not be able to increase the amount of locked RAAC tokens due to underflow error.
### Impact
User cannot increase the amount of locked RAAC tokens, or pays RAAC tokens but mint no veRAAC tokens. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Contract architecture is overcomplicated
### Description
The codebase relies on a significant amount of cross-contract validation, obscure storage solutions, and a series of confusing branches, which obscures the understandability of the codebase.
For example, the `getPositionCurrentValue` function in the `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: Lack of pausable functionality in Rollman
### Description
The current implementation of the Rollman does not include a pausable mechanism. Without a pause function, the system may continue to operate even when it's unsafe or undesirable to do so, potentially leading to loss of funds or data corruption.
### Re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Address.isContract() is not a reliable way of checking if the input is an EOA
### Description
## Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/LiquidStakingManager.sol#L435
## Vulnerability details
## Impact
The unde... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User funds may be stuck due to race conditions.
### Description
**Description**
StWSX.sol, claim() (Verified)
Users can wait a long time until they have the chance to withdraw the whole requested unstake amount, as by the contract's design, the possibility of the unstake is bound to the availability of WSX on... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Permanent lock due to missing unlock mechanism for options
### Description
The protocol has a critical issue where liquidity can be permanently locked in the pool when options are not exercised within the specified window(`exerciseWindowDuration`) or have 0 `PNL`(at a loss). Here's the problematic flow:
```s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `assetsAllocatedToStrategies` will be incorrect after loss scenario
### Description
_Resolved_
In `deallocateFromStrategy`, one of the possible scenarios is the loss scenario. If there is a loss withdrawn amount will be lower than the requested amount. However, if there is a loss, the reduction amount is 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 | high | initialization | false | false | ## High: Unsound collateral design
### Description
## Collateral Management Vulnerability
Using the **AddCollateral** instruction, any user can add collateral to any borrow request. A malicious user can add collateral with a `collateral_mint` of their own and a `freeze_authority` set to their own account.
The user 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 | reentrancy | false | false | ## Low: Outdated ibc-go Module
### Description
The EMoney-Network project is currently using an outdated version of the ibc-go module (v6.1.1) which is vulnerable to a critical security issue (ASA-2024-007). This vulnerability allows potential reentrancy attacks using timeout callbacks in ibc-hooks.
If the EMoney... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Similar functions are used
### Description
Functions with similar logic are used:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/ACL.sol#L28
### Recommendation
We recommend adding 1 function with bool parameter to set true/false. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing Zero Address Check for `changeSenate` Function
### Description
Contract GeodeModule is missing address validation for the setter function - `changeSenate()`.
It is possible to configure the address(0), which may cause issues during execution.
For instance, if address(0) is passed to `changeSenate()` 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 | medium | other | true | true | ## Medium: Wrong value is returned in `upperLookupRecentCheckpoint`
### Description
In `Checkpoint::upperLookupRecentCheckpoint` function is designed to check if there exists a checkpoint with a key less than or equal to the provided search key in the structure (i.e., the structure is not empty). If such a checkpoint... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Validation checks
### Description
There is no check that all tokens in a newly created vault are unique. This could cause a wide
variety of problems.
**Team response:**
"Added unique token validation to the VaultV2 constructor"
**Mitigation review:**
The new check is sound. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: `++i`/`i++` should be `unchecked{++i}`/`unchecked{i++}` when it is not possible for them to overflow, as is the case when used in `for`- and `while`-loops
### Description
The `unchecked` keyword is new in solidity version 0.8.0, so this only applies to that version or higher, which these instances are. This sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: `NonCustodialPSM` can become insolvent as CPI index rises
### Description
_Submitted by hyh_
[NonCustodialPSM.sol#L236-L248](https://github.com/code-423n4/2022-03-volt/blob/main/contracts/peg/NonCustodialPSM.sol#L236-L248)
NonCustodialPSM mints and redeems VOLT to a chosen stablecoin at the current market... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Dishonest Stakers Can Siphon Rewards From xToken Holders Through The deposit Function In NFTXInventoryStaking
### Description
## Handle
leastwood
## Vulnerability details
## Impact
`xTokens` is intended to be a representation of staked vault tokens. As the protocol's vaults accrue fees from users, thes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | true | false | ## Medium: Volume Overflow Risk
### Description
## Current Situation
Currently, there is a lack of fees in the whitelisted pool, which may be exploited by utilizing self-trading and flash loans to artificially inflate volume metrics. In the absence of trading fees, attackers face minimal cost barriers to engaging in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Unable to deploy new leverage vault for certain MetaStable Pool
### Description
Notional might have an issue deploying the new leverage vault for a MetaStable Pool that does not have Balancer Oracle enabled.
### Impact
Notional might have an issue deploying the new leverage vault for a MetaStable Pool that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | true | false | ## Low: `safeTransferETH()` may revert due to a hardcoded gas limit
### Description
In `KekotronLib.sol` we have `safeTransferETH()` which is used for ETH transfer:
The function is used in many places in the protocol when sending ETH. The problem is that the function uses a fixed value of gas:
It is not good to ha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Swapping tokens/ETH for NFTs may exhibit unexpected behavior for certain values of input amount, trade fees and royalties
### Description
## Medium Risk Report
**Severity:** Medium Risk
**Context:**
- LSSVMPairERC20.sol#L34-L115
- LSSVMPairETH.sol#L22-L73
**Description:**
The `_pullTokenInputAndPay... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wallet Creation Fee Bypass
### Description
## Create Multisig Instruction Vulnerability
The `create_multisig` instruction does not properly validate the treasury account. This could allow users to bypass the fee when creating a wallet by passing their own fee account into the instruction. The following cod... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Locker does not have `onERC721Received` hook
### Description
The HoneyLocker.sol contract is intended to receive NFT (including ERC1155) tokens , though normally it can receive NFT tokens via a normal ERC721 transfer if the external integration integrates with the locker and leverages `safeTransferFrom` / `saf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lost SD Rewards
### Description
SD rewards are lost if no one delegates or requests withdrawals before `rewardEndBlock`. In `SDIncentiveController`, the `rewardPerToken()` function calculates the current reward-per-token value based on the current `block.number`. The following lines determine the reward-per... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Cloned allows certain actions for address(0)
### Description
## Severity: Low Risk
## Context:
- ERC20-Cloned.sol#L39
- ERC20-Cloned.sol#L99
- ERC20-Cloned.sol#L76
- ERC20-Cloned.sol#L167
- ERC20-Cloned.sol#L180
- ERC20-Cloned.sol#L46
## Description:
In `ERC20-Cloned`, `address(0)` can be used as the:
- spen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Bitmap Is Unnecessary
### Description
MerkleAirdrop.sol and SignatureBitMap.sol are using two `uint256` values in a mapping to store a series of negative/positive values in the range of a single `uint256`. The same information can be stored in a mapping of `uint256` to `bool` values, which is simpler and also ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect slippage calculation performed during strategy investments and divestitures
### Description
The incorrect arithmetic calculation for slippage tolerance during strategy investments and divestitures can lead to an increased rate of failed profit-and-loss (PnL) reports and withdrawals.
The `ConvexSt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attackers will reset `avgStart` of any user making rewards stuck for longer and get lost to savings
### Description
`StakedExa::_update()` resets `avgStart[to]` whenever the time passed is bigger than the reference time. An attacker can deposit 1 wei to some user and reset the `avgStart`, which will make 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 | other | true | false | ## Medium: No expiration deadline leads to losing a lot of funds
### Description
The `Fees::sellProfits()` does not set an expiration deadline, resulting in losing a lot of funds when swapping tokens.
### Impact
Without an expiration deadline, a malicious miner/validator can hold a transaction until they favor it or ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: [FIXED] Unsafe usage of `abi.encodeWithSelector` in `SafeToken`
### Description
In the function [`safeTransfer`](https://github.com/Into-the-Fathom/fathom-stablecoin-smart-contracts/tree/3768c87367d286ae0e82f444b2f9d760417b507e/contracts/main/utils/SafeToken.sol#L27 "/contracts/main/utils/SafeToken.sol") of 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 | storage | false | false | ## Low: Strict Revert on `None` Rule Type Causes Unnecessary Failures
### Description
Within the `checkCalldata` function of `P2pLendingProxyFactory`, encountering a `None` rule type causes the transaction to revert outright rather than rejecting non-zero calldata as intended.
The issue is classified as **low** seve... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect decimals for the vault token
### Description
The current implementation returns the asset's decimals as decimals:
```solidity
function decimals()
public
view
virtual
override(IERC20Metadata, ERC20)
returns (uint8)
{
return _underlyingDecimals + _decimalsOffset();
}
```
The `_de... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Medium: Potential Blockage of User Withdrawals When Bridge is Disabled in `withdrawTokens`
### Description
In the `withdrawTokens` function of the `Starklane` bridge contract, the contract checks if the bridge is enabled before allowing users to withdraw their tokens. If the bridge is disabled, the function reverts... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `mintGTToAddress()` in ERC20DAO doesn't check `distributionAmount` limit
### Description
While `mintGTToAddress()` in ERC721 and Factory contract check for `distributionAmount` limit the ERC20DAO doesn't check for `distributionAmount` limit and it would be possible for admins to mint unlimited amount of tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: The `accrueDrip()` function can use `_accrueDrip()` to avoid the empty block implementation
### Description
The implementation of the `accrueDrip()` function can be changed to use `_accrueDrip()` instead of the `drip` modifier to avoid the empty block implementation.
**[vaporkane (xETH) confirmed](https://gi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [11] Missing `CheckTx` optimization in account verification leads to redundant processing
### Description
In Nibiru's `app/evmante/evmante_verify_eth_acc.go`, the account verification decorator processes transactions regardless of whether it's in `CheckTx` phase or not:
Compare this with Ethermint's optimize... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _from should be _to in the FarmRebalancer maxDeposit check
### Description
## Vulnerability Report
**Severity:** Low Risk
**Context:** FarmRebalancer.sol#L68
**Description:** The current implementation checks the wrong farm's max deposit function.
**Recommendation:**
- `_amount = _amount > IFarm(_fr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minor Gas Inefficiencies via Redundant Operations
### Description
This issue identifies minor inefficiencies in several functions:
- In **SignatureRoleTimelock** `_getAddressIndex` and `_getBytes4Index` continue iterating even after the index is found.
* In **LibCryptoLegacy**, the `_tokenPrepareToDistribute` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Open TODOs
### Description
Code architecture, incentives, and error handling/reporting questions/issues should be resolved before deployment.
*There are 2 instances of this issue:*
https://github.com/debtdao/Line-of-Credit/blob/e8aa08b44f6132a5ed901f8daa231700c5afeb3a/contracts/modules/factories/LineFactory.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Users Could be Frontrun Should They Swap with an Approved swapRouter via the SwapRelayer Contract Due to a Lack of Token Transfer
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**:
The swap relayer contract is responsible for facilitating swaps against whitelisted swap router... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Failure In Updating State Post Withdrawal
### Description
The `withdraw_reserve_amount` function in `reserve_details` is responsible for handling the withdrawal of a specified amount of reserve currency from the reserve. However, after completing the withdrawal, it fails to update the `total_cash_available` v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] `ERC20Custody.sol` has the following useless code in `pause` function
### Description
`ERC20Custody.sol` has the following useless code in `pause` function which I suggest to remove. Since the function is guarded by `onlyTSS` the modifier, which ensure `msg.sender == TSSAddress` before going even further ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02]
### Description
In `Token`, `totalFounderOwnership()` does not incorparate the vesting period. It is just the total percent ownership that the founders received at one point in time, but this metric is pretty useless without incorporating the timespan (as 100% for 1 week is very different to 10% for 10 ye... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uncaught revert from decoding return data from ill-formed tokens
### Description
The try-catch has another case where a revert won’t be caught in the catch clause, which is when the ABI-decoding of the return data fails.
### Recommendation
Consider modifying the comment to add this case in. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: LayerZero receive function not paused in WrappedNFT
### Description
## Context
**File:** WrappedNFT.sol#L93
**Description:** The `_buildMsgAndOptions()` inherited from Layer Zero's `ONFT721Core` is overwritten to pause sending messages over LayerZero via the `whenNotPaused` modifier when the contract is pau... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inflation Of Pool Balances
### Description
I n both **StargatePool** and **StargatePoolNative**, `_getPoolBalance` retrieves the pool balance by directly calling `balanceOf` on the associated ERC20 token contract. However, this method fails to account for tokens sent directly to the contract address, thus byp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing result assignment
### Description
**Description**
Burn.sol, line 130. “_burnData[vaultAddress].totalBurned.add(toBurn);”
Total burned value is not updated - addition result is not placed to storage.
**Recommendation**:
fix the condition. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reward durations of reward tokens in existing vaults can never be updated
### Description
While `InfraredVault.updateRewardsDuration()` has an `onlyInfrared` modifier, `Infrared` does not have any function to call it. Therefore, `Infrared` is missing wrapper-function logic to call `updateRewardsDuration()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing afterLP modifier
### Description
The `topUpWeth` function in the `StakingVault` contract does not include an `afterLP` check. While this function is restricted to the creator, adding this check would align it with best practices seen in other parts of the contract.
`- src/StakingVault.sol`
```
fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: CACHE ARRAY LENGTH
### Description
In a for loop, the length of an array can be put in a temporary variable to save some gas. This has been done already in several other locations in the code.
In the above case, the solidity compiler will always read the length of the array during each iteration. That is,
* ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Entrypoint version typo
### Description
The comment above the VerifyingPaymaster states it is compatible with entrypoint v0.6. However, the updated VerifyingPaymaster is now compatible with entrypoint v0.7, so the comment can be updated.
### Recommendation
Update the comment above the VerifyingPaymaster as 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 | high | other | false | false | ## High: Members lose SPARTA tokens in `removeLiquiditySingle()`
### Description
_Submitted by 0xRajeev, also found by cmichel and XXX_
When a member calls `removeLiquiditySingle()` requesting only SPARTA in return, i.e. `toBASE` = true, the LP tokens are transferred to the Pool to withdraw the constituent SPARTA 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... | cyfrin_structured | medium | token | true | false | ## Medium: Inconsistent token amount in external redemption process of SecuritizeVault's liquidate function
### Description
In SecuritizeVault's liquidation process with external redemption, there's likely a mismatch between the actual received stable coins from the redemption contract and the amount calculated to sen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unnecessary listing.start check in cancelListing() can be removed
### Description
For English, Dutch, and Blind auctions, the `cancelListing()` logic checks that the auction window is not currently running. However, this check also includes if `listing.start` > 0. When listing an NFT for these types of auction... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If ETH is used as an input and output token to 0x, it will always revert
### Description
When transaction data to `transformERC20()` is decoded, the following check is made:
The intention is that, if a token going in or out of our sentiment wallet is ETH, we return an empty array. This is because (a) Sentimen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | true | false | ## Medium: Open interest calculation is incorrect
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
The open interest (OI) delta is calculated using the `current collateral/USD` price when `adding OI`. Conversely, when `removing OI`, the delta is calculated using the `collatera... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EVM channel task may terminate early
### Description
Currently, the codebase has two main components that interact together: the plugin and the EVM channel. The plugin provides the RPC endpoints and sends notifications to the EVM channel to execute the underlying logic. These two components are independent ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 SPDX License Identifiers
### Description
All Solidity source files are missing an SPDX license identifier. Add a license header at the very top of each file to clarify licensing and silence tooling warnings (Solc/linters/CI):
```solidity
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;
```
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 | true | false | ## Low: [14] PREIMAGE: `addLeavesLPP` not required to `finalize` on last leaf
### Description
When the last leaf is added, it is not actually required to set `_finalize` to true. This only works if `claimedSize % BLOCK_SIZE_BYTES == 0`, as otherwise the input will not be padded and the following check will fail:
For... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unreplenishable Deposit Limit
### Description
When users transfer ERC-20 tokens over the bridge, they [consume part of their deposit limit](https://github.com/matter-labs/zksync-2-contracts/blob/c44852f89f443bbe8120a7c6abcc6984b394eb29/ethereum/contracts/bridge/L1ERC20Bridge.sol#L352), which is never replaced.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deactivated collateral reserve can be used in liquidation
### Description
All asset reserves in the Aave protocol can be deactivated by a high-privileged account. When a reserve is deactivated, no actions should be allowed to be executed over it. This validation is implemented by means of the [`onlyActiveRese... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not handling approve return value
### Description
As defined in the [ERC20 Specification](https://eips.ethereum.org/EIPS/eip-20), the `approve` function returns a `bool` that signals the success of the call. However, throughout the codebase, the value returned from calls to `approve` is ignored. Examples of 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 | access-control | true | false | ## High: The function always revert if `_stakeNFT == True` due to a missing approval
### Description
Report type: Smart Contract
Target: https://github.com/zerolend/governance
Impacts:
- Permanent freezing of funds
- Temporary freezing of funds for at least 1 hour
## Description
## Brief/Intro
See the function `sa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Return Values in Functions Impair Protocol Integration and Information Flow
### Description
The [`undelegate` function](https://github.com/NethermindEth/forta-staking-vault/blob/ce87cffbf813e27cc83157933760b51fa44a1885/src/FortaStakingVault.sol#L233) allows anyone to undelegate FORT tokens from the `Fo... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.