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 | true | false | ## Medium: Non-compliance with EIP-721 in `tokenURI()` function
### Description
Similar Finding: [Link](https://solodit.cyfrin.io/issues/dropboxtokenuri-returns-data-for-non-existent-tokenid-violating-eip721-cyfrin-none-earnm-dropbox-markdown)
The `tokenURI` function in the`RipFunPacks` contract does not strictly adh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use `totalReserves - rewardsInETH.unwrap()` rather than `_preRewardETHReserves - rewardsInETH.unwrap() + _newETHRewards` in `swETH::reprice`
### Description
**Description:** Both result in the same output but the first expression saves a `SUB` opcode. In addition the suggested modification results in simpler c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Undeclared identifier
### Description
**Severity**: Critical
**Status**: Resolved
**Description**
Variable `_decimals` is not defined but is set in the constructor method
**Recommendation**:
declare the variable as `uint8 immutable private _decimals` in the contract and override the `decimals`
function... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Oracle | false | true |
<https://github.com/code-423n4/2022-10-inverse/blob/main/src/Oracle.sol#L87><br>
<https://github.com/code-423n4/2022-10-inverse/blob/main/src/Oracle.sol#L121><br>
The `Oracle` contract normalizes prices in both `viewPrices` and `getPrices` functions to adjust for potential decimal differences between feed and token d... | Code4rena | 4 | Inverse Finance |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Missed check of `BASE_CONVERSION_DIA_FEED` value
### Description
The `spTKNMinimalOracle.constructor` checks that `only one (or neither) of the base conversion config should be populated`. At the same time the check of `BASE_CONVERSION_DIA_FEED` variable is missed. This can cause misconfiguration of the contra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: REQUIRE STATEMENTS ARE NOT COMPATIBLE WITH THE COMMENTS
### Description
In the two require statements, Comment mentioned as opposite version of implementation. Ensure that require statements are compatible with the implementation.
Code Location
-------------
[BtcLightClient.sol#L477](https://github.com/cored... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential front running attack or losing of allowance
### Description
At the line https://github.com/1inch-exchange/1inch-token/blob/99fd056f91005ca521a02a005f7bcd8f77e06afc/contracts/ERC20Permit.sol#L53 `_approve` method replaces the allowance, so there are two potential problems here:
1. If a signer wants... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant/Duplicate checks
### Description
There are a few checks (require) in TokenFaucet that are redundant and/or checked twice.
### Recommendation
Remove the redundant checks to reduce the code size and complexity. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non view function is called with staticcall in `CErc20Delegator`
### Description
The v1 of [borrowRatePerBlock](https://github.com/Plex-Engineer/lending-market-v2/blob/443a8c0fed3c5018e95f3881a31b81a555c42b2d/contracts/CToken.sol#L208) and [supplyRatePerBlock](https://github.com/Plex-Engineer/lending-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 | low | other | false | false | ## Low: Lack of zero-address checks
### Description
It is a standard practice to validate important addresses for zero value. `updateTreasury()`
does not conform to this best practice.
**Team response**
Accepted & done | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Oval] CoinbaseSourceAdapter May Return Old Prices
### Description
In order to limit the staleness of the data returned by source adapters, the [`maxAge`](https://github.com/UMAprotocol/oval-contracts/blob/297ab25a914171aedaeb01dabf4a829a304cce08/src/DiamondRootOval.sol#L89) function has been introduced. It 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 | high | token | true | false | ## High: Approvals can be exploited due to insufficient checks in `_exitPositionAndRemoveCollateral`
### Description
**Severity**
**Impact**: High, loss of provided liquidity tokens due to approval exploit
**Likelihood**: High, can be called by anyone
**Description**
The function `_exitPositionAndRemoveCollateral`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unsafe Casting In OperatorSetLib.decode()
### Description
The function `decode()` will take a 32-byte `_key` as input and decode it to a 20-byte avs address and a 3-byte id. The remaining bytes are unused and may be arbitrarily set.
### Recommendation
The EigenLayer team has acknowledged this issue and has 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 | signature | true | false | ## Low: Contract may emit multiple resolving events for the same data
### Description
The `_sigRes()` function, accessible via the external `zrSignRes()` function, is responsible for finalizing the signature response does not have a verification mechanism to verify that the function input data has been executed previo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Limit the array length
### Description
**Description**
It’s important to note that at
contracts/Cohort.sol#171-186
contracts/Cohort.sol#192-230
contracts/Cohort.sol#232-242
contracts/Cohort.sol#244-261
There are iterations over arrays. It consumes as much gas as the array length has. So starting
from some poi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | logic-error | true | false | ## Low: Dividend Calculation Uses Stale Token Balance in Subsequent `update()` Calls After `fees_deposit` with DRVS
### Description
The `fees_deposit()` function calls `client_community_state.update()` before `client_state.sub_crncy_tokens()`, causing `self.header.drvs_tokens` to be updated with a stale value that doe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Allocation role
### Description
Currently, there is only one role identified by `isAllocator` that can call:
- `allocate`
- `setLiquidityAdapterAndData`
- `deallocate`
The role is not fine-grained enough. It might make sense to define separate roles for each of these endpoints as some are more critical than t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Fallback & vault fees must remain at zero for Optimizer to work as intended
### Description
In the OnlyBoost whitepaper, it's explained that fees on Convex rewards must be set to zero in order to justify the optimizations provided by the protocol.
> As we said earlier, it is a very nice increase but doesn't j... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | upgrade | true | false | ## Low: Share tokens can be transferred
### Description
The `SecuritizeVault` implements ERC4626's `deposit` function with an additional restriction requiring the depositor to be the same as the receiver (`_msgSender() == receiver`). While this was intended to ensure vault tokens are only owned by the designated inves... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unconventional Mint Function
### Description
**Update**
Fixed along with [NFT-4](https://certificate.quantstamp.com/full/nf-ton-pulse/7880ca8f-d4d5-4407-ad57-1c0dabe6b187/index.html#findings-qs4)
**File(s) affected:**`NFT1155`
**Description:** The function `createToken()` for `NFT1155` does not allow the cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrary contract call allows attackers to steal ERC20 from users' wallets
### Description
_Submitted by WatchPug_
[`Swap.sol L200-L212`](https://github.com/code-423n4/2021-10-tally/blob/c585c214edb58486e0564cb53d87e4831959c08b/contracts/swap/Swap.sol#L200-L212)
A call to an arbitrary contract with custom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial of Service via Storage Bloating from Unrestricted Deposits
### Description
The `deposit()` function lacks a minimum deposit threshold and uses an O(n) linear search via `_checkExists()` to verify token existence in the `depositedTokens` array. An attacker can deploy numerous tokens and deposit minima... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: `OraclePoolOfferHandler` has an invalid check on `collateralTokenId`, incorrect loan offers can pass validation
### Description
In `OraclePoolOfferHandler::validateOffer`, loan offer terms can be validated in [three ways](https://github.com/code-423n4/2024-06-gondi/blob/ab1411814ca9323c5d427739f5771d3907dbea3... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: NEW QUERIES ARE NOT ADDED INTO THE HANDLER
### Description
In the recent branch, **SlashWindow** query has been added. **SlashWindow** queries the current slash window progress of the oracle. However, the query is not added into the wasm handlers.
Code Location
-------------
[Location](https://github.com/ume... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [7] `<x> += <y>` costs more gas than `<x> = <x> + <y>` for state variables
### Description
*There are 14 instances of this issue:*
https://github.com/code-423n4/2022-05-backd/blob/2a5664d35cde5b036074edef3c1369b984d10010/protocol/contracts/StakerVault.sol#L343
https://github.com/code-423n4/2022-05-backd/blo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: Functions guaranteed to revert when called by normal users can be marked payable
### Description
If a function modifier or require such as `onlyOwner`/`onlyX` 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 cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | false | false | ## High: Reward Inflation Through a Flash Loan
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `e1359d81959883d4485f09e48e28afa970627d89`. The client provided the following explanation:
> Added a depositTs in struct Deposit, it is updated in deposit() and increaseDeposit() and validated in 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 | medium | rounding | true | true | ## Medium: `TradingLimits::update()` incorrectly only rounds up when `deltaFlowUnits` becomes 0, which will silently increase trading limits
### Description
[TradingLimits::update()](https://github.com/sherlock-audit/2024-10-mento-update/blob/main/mento-core/contracts/libraries/TradingLimits.sol#L124) divides the trad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Slippage | false | true | _Submitted by 0x52_
Loss of funds in TransmuterBuffer
### Proof of Concept
If the buffer is called during and unfavorable time then a large portion of deposited funds may be lost due to slippage because deposit is called with 0 as the minimum out allowing any level of slippage
### Recommended Mitigation Steps
Impl... | Code4rena | 4 | Alchemix |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary computation
### Description
When emitting an event that includes a new and an old value, it is cheaper in gas to avoid caching the old value in memory. Instead, emit the event, then save the new value in storage.
[SmartAccount.sol#L468](https://github.com/code-423n4/2023-01-biconomy/blob/main/scw... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: gabriel-vasile/mimetype@v1.4.4 dependency contains dangerous test case
### Description
## Vulnerability Report
**Severity:** Low Risk
**Context:** beacond/go.mod#L124
**Description:**
Multiple packages contain the dependency `github.com/gabriel-vasile/mimetype@v1.4.4` which has a test case that contain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WETH Stuck In OperatorRewardsCollector During Liquidation Process
### Description
In `OperatorRewardsCollector.sol`, an incorrect amount of ETH is converted into WETH in the `_completeLiquidationIfExists()` function, resulting in excess WETH being stuck in the `OperatorRewardsCollector` contract. Specifically... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: WrappedTokenBridge#recoverTokens will drain the whole token balance
### Description
`recoverTokens` is supposed to retrieve tokens accidentally sent to the contract. However, if this function is called to recover the bridge's `token`, `wrappedToken`, or `LINK`, it will drain the whole balance of the contract, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Users can fail to withdraw deposited assets from a vault that uses `YearnAdapter` contract as its adapter because `maxLoss` input for calling corresponding Yearn vault's `withdraw` function cannot be specified
### Description
### Impact
For a vault that uses the `YearnAdapter` contract as its adapter, 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 | low | initialization | false | false | ## Low: Emit missing events
### Description
**Description:** Emit missing events:
* `RequestsManager::constructor` should emit `AllowedTokenAdded`
**Avant:**
Fixed in commit [7a3587c](https://github.com/Avant-Protocol/Avant-Contracts-Max/commit/7a3587ca6d673d143565703d094b6f9526fd8020).
**Cyfrin:** Verified. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | dos | true | false | ## Low: Make the gas limit configurable
### Description
The `SecuritizeBridge` contract currently uses a fixed (hardcoded) gas limit of 2,500,000 for all cross-chain message transactions through the Wormhole protocol. This value represents the maximum computational units (gas) allowed for the execution of the transact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Business Logic | true | false | ## Vulnerability Report
## Severity
**High Risk**
## Context
`OptimismHubConnector.sol#L69-L121`
## Description
The `processMessageFromRoot()` function calls `_processMessage()` to process messages for the "fast" path. However, `_processMessage()` can also be invoked by the AMB in the slow path.
The second call to... | 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 | high | dos | false | false | ## High: Large centralization attack surface
### Description
**Severity**
**Impact:**
High, as multiple authorized actors can act maliciously to steal funds
**Likelihood:**
Medium, as it requires malicious or compromised actors, but it's not just the protocol `owner`
**Description**
1. The `owner` of `PoolGovernan... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | true | false | ## High: The MultiSigGenVerifier threshold can be passed with a single signature
### Description
A single signature can be used multiple times to pass the threshold in the MultiSigGenVerifier contract, allowing a single signer to take full control of the system. The `signedDataExecution` function in the MultiSigGenVeri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradeable Contract Missing a Storage Gap
### Description
The abstract contract `CoStake` is meant to be inherited by other contracts. However, it does not contain a `__gap` variable, even though it is upgradeable. This means that in the event of adding new state variables when upgrading the contract, it can ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VRFNFTRandomDraw admin can prevent created or started raffle from taking place
### Description
### Impact
The admin/owner of `VRFNFTRandomDraw` can `startDraw()` a raffle, including emitting the `SetupDraw` event, but in a way that ensures `fulfillRandomWords()` is never called. For example:
* `keyHash` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [02] `oraclePrice` will be imprecise
### Description
Public `oraclePrice` variable will be imprecise and confused. If other contracts try to get oracle price by calling `oraclePrice()` rather than calling `getCurrentOraclePrice()`, it will get wrong price.
### Proof of Concept
[ScalingPriceOracle.sol#L36](ht... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | false | false | ## Low: Misalignment of `pause()` and `unpause()` access controls across contracts
### Description
All three contracts, `Ignite`, `ValidatorRewarder`, and `StakingContract`, have pausing functionality that can be triggered by accounts with special privileges; however, they all implement the access control differently:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Role Transfer Not Following Two-Step Pattern
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> The owner address will belong to a gnosis safe controlled by DAO. This additional check is not necessary.
**File(s) affected:**`Vepoch.sol`
**Descr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | initialization | true | true |
`swap/UDA.sol` [# L38](https://github.com/eubarah/gardenkey/blob/main/evm/src/swap/UDA.sol/# L38)
### Finding description
The `UniqueDepositAddress.initialize()` function at line 38 ignores the return value of `ERC20.approve()`:
```
function initialize() public initializer {
// ... parameter extraction ...
... | Code4rena | 5 | Garden |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider making contracts `Upgradeable`
### Description
This allows for bugs to be fixed in production, at the expense of **significantly** increasing centralization.
*There are 20 instances of this issue.*
--- | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: use of array without checking its length
### Description
## Handle
JMukesh
## Vulnerability details
## Impact
since no limit is mentioned in batchWhitelist() for the input of _users array , it may run out of gas if array length become large
## Proof of Concept
https://github.com/code-423n4/2021-08-realit... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | integer-overflow | true | true | ## Medium: Effective price calculations can be affected by edge cases in `Math512Lib::sqrt512` and `Math512Lib::div512by256`
### Description
`Math512Lib::sqrt512` implements a full-width integer Newton-Raphson square root. This hinges on the assumption that the initial guess is larger than the upper limb and fits with... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 call to base initializers
### Description
Upgradeable contracts that inherit from other base contracts should call the corresponding base initializers during initialization.
*Instances (4)*:
- [AfEth::OwnableUpgradeable](https://github.com/code-423n4/2023-09-asymmetry/blob/main/contracts/AfEth.sol#L7... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: ownershipChange can be sidestepped
### Description
The check there is to prevent adding to managed after a transfer from or creation:
```solidity
require(ownershipChange[_tokenId] != block.number, "VotingEscrow: flash nft protection");
```
However, it doesn't prevent adding and removing from other managed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | token | false | false | ## Low: Unnecessary variable declarations
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
The XyroToken contract declares _balances, _totalSupply, _name, and _symbol variables but they are already declared in ERC20.sol and the variables are not used in the contract.
**Recommendatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk
### Description
The **bithive** contract designates an owner during installation, granting full control over the upgrade process and the ability to configure critical protocol parameters in `bithive/src/admin.rs`.
This violates the principle of separation of duties, introduces centrali... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | low | other | false | false | ## Low: The killed gauge will return the incorrect rate
### Description
`rate` is not updated in the killed gauge https://github.com/curvefi/stableswap-ng/blob/8c78731ed43c22e6bcdcb5d39b0a7d02f8cb0386/contracts/main/LiquidityGauge.vy#L242-L243 which will lead to a situation where the killed gauge returns a non-zero ra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Not restricting `SessionKeyValidator` as the transaction target
### Description
Within `SessionLib.validate`, it checks `transaction.to` to ensure it is not set to `msg.sender`, preventing callers from abusing session keys to administer the smart account. However, it allows `transaction.to` to be set to `Sessi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 max check
### Description
**Description**
IgnitionCore.sol, buyTokensETH() and buyTokensQuoteAsset().
The check if the max raised is exceeded is performed without including the currently
purchased value. So the max amount can be exceeded at least once.
**Recommendation**:
Include the currently pu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Inconsistent restriction on `increase_amount` and `deposit_for`
### Description
`increase_amount` and `deposit_for` perform the same operation but have inconsistent restrictions: `increase_amount` only allows the approved spender or owner of the `tokenId` to execute the operation, whereas `deposit_for` can be ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Misleading natspec
### Description
[`WalletRegistry::registerWallet`](https://github.com/code-423n4/2023-10-brahma/blob/main/contracts/src/core/registries/WalletRegistry.sol#L31-L40):
> `Can only be called by safe deployer or the wallet itself`
It cannot be called by safe deployer, as it only instructs 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 | initialization | false | false | ## Low: No address(0) check
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract YourToken.sol, the constructor has 2 params (defaultAdmin and initialOwner) that are not validated for address(0). If accidentally initialOwner is passed as address(0) then 1 billion tokens will be minted ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong consideration of `blockformation` period causes incorrect `votingPeriod` and `votingDelay` calculations
### Description
In `GovernorBravoDelegateMaias.sol` contract, there are wrong calculations in [MIN_VOTING_PERIOD](https://github.com/code-423n4/2023-05-maia/blob/54a45beb1428d85999da3f721f923cbf36ee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Denial of Service when Updating Pool Parameters
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `51b9c90e5c8a2a39862457636779153df2f70783`.
**File(s) affected:**`fund/update.rs`
**Description:** The function `set_capacity_amount()` allows the admin to set a new `capacity_amount` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: The pending fee should be settled before adjusting the fee
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
Functions related to fees, such as `setFeeRecipient`, `setBaseFee`, `setBaseFeeSplit`, and `setAffiliate`, will affect the distribution target and the amount ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Some functions do not verify if markets are approved
### Description
Some functions in the **GmxFrfStrategyAccount** contract do not verify if the markets they are interacting with have been approved by the **GmxFrfStrategyManager** contract, e.g.: by using the `onlyApprovedMarket` modifier. The affected funct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Custom Errors
### Description
As your using a solidity version greater 0.8.4 you can replace revert strings with custom errors. This will save in deployment costs and runtime costs.
I ran a test in remix comparing a revert string vs custom errors and found that replacing a single revert string with a custom er... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Submitting mint request using user's trading balance and cancelling it will not refund tokens back to trading account
### Description
The Elfi protocol provides a feature that allows users to transfer a portion of their tokens after depositing them into a trading account, helping them manage their finances mo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Router deposit support depends on Arbitrum-privileged function
### Description
The `L1TokenGateway` accepts indirect deposits from the router. The `L1GatewayRouter` needs to have the token to gateway path registered. The tokens can either self-register if they support this functionality, or it must be register... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of Outdated snap.config.json Instead of snap.config.js
### Description
According to the [MetaMask-CLI Documentation](https://github.com/MetaMask/snaps/tree/main/packages/snaps-cli#configuration) the use of `snap.config.json` is discouraged and projects should switch to `snap.config.js` instead. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Circumstantially redundant Reward struct members
### Description
In the `MultiRewards.addReward` function, we accept the parameters `_rewardsDistributor` and `_rewardsDuration`, which are added to the `rewardData` for the specified `_rewardsToken`:
```solidity
function addReward(
address _rewardsToken,
ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `public` functions not called by the contract should be declared `external` instead
### Description
Contracts [are allowed](https://docs.soliditylang.org/en/latest/contracts.html#function-overriding) to override their parents' functions and change the visibility from `external` to `public`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `constant`s should be defined rather than using magic numbers
### Description
*There are 47 instances of this issue. For details, see the warden's [full report](https://github.com/code-423n4/2022-05-aura-findings/issues/173).* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Using `private` rather than `public` for constants, saves gas
### Description
If needed, the value can be read from the verified contract source code. Savings are due to the compiler not having to create non-payable getter functions for deployment calldata, and not adding another entry to the method ID table
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Out-of-Gas Vulnerability when Calculating TWAP
### Description
**Update**
Several gas optimizations were added to calculate the TWAP price and significantly lower the upper bound.
**File(s) affected:**`Amm.sol`
**Description:** When initialized, the default interval for a TWAP calculation represented by the ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: The Merkle Tree Reports Having an Incorrect Root Hash
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `dcb686cf8735501e069ab02204ce517e29ec9fd8`. The client provided the following explanation:
> Updated getRootHash function.
**File(s) affected:**`Merkle.sol`, `MerkleBase.sol`
**Des... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mapping Key Order Inconsistency
### Description
The `AbstractRewardManager._getAccountRewardDebtSlot()` function declares a nested mapping with order `account -> rewardToken`, but the actual usage throughout the codebase accesses it as `[rewardToken][account]`. This inconsistency between declaration and usage ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inaccurate revert string
### Description
The [`withdrawTo`](https://github.com/freeverseio/crypto-payments/blob/956a98e53ef540f7b2b40f3b923d0b0e3e5d32ef/contracts/buyNow/base/BuyNowBase.sol#L154) function will revert with the message [`tx sender not authorized to withdraw on recipients behalf`](https://github.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | true | false | ## Low: CTM Admin can't revert malicious batches due to restricted permission
### Description
The [chain type manager documentation](https://github.com/matter-labs/era-contracts/blob/gateway-release-candidate/docs/chain_management/chain_type_manager.md#emergency-upgrade) states that the `ChainTypeManager` (CTM) admin ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Timestamp Discrepancy in Spot Oracle Price Feeds May Cause Inaccurate Price
### Description
The [`getPrice` function](https://github.com/Ion-Protocol/ion-protocol/blob/98e282514ac5827196b49f688938e1e44709505a/src/oracles/spot/EthXSpotOracle.sol#L38) of the `EthXSpotOracle` contract computes the price of ETH... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | logic | true | false | ## High: Attacker can get unlimited loan for some minimum deposit due to the incorrect calculation of user health in `getLoanLiquidity`.
### Description
Report type: Smart Contract
Target: https://sepolia.etherscan.io/address/0x8Aac7fA5B2d0c7Ca4f1610bB43CF0d62A670Fa14
Impacts:
- Direct theft of any user funds, whet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Boost Delegation Allows Invalid Recipients on BoostController
### Description
The `delegateBoost()` function **does not validate the recipient (`to`) properly**, allowing users to **delegate boosts to unverified addresses**. This could lead to **boosts being sent to malicious contracts, ineffective delegations... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Using a vulnerable dependency from some libraries
### Description
This project is using a vulnerable version of some libraries, which have the following issues:
Current `@openzeppelin/contracts` version: 4.6.0
|Risk|Title|Min Version|Max Version|
|------|-------|-------------|-------------|
|LOW|[Denial of 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 | signature | true | false | ## Low: Unused DAppOperation fields
### Description
The `DAppOperation` struct has the following definition:
```solidity
struct DAppOperation {
address from; // signor address
address to; // Atlas address
uint256 value;
uint256 gas;
uint256 nonce;
uint256 deadline;
address control; // control
address ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: LOC validity may last longer than maxLocDurationSeconds
### Description
An LOC that is created from a previously expired one allows the creator to specify an expiration date that is more than the maximum duration allowed. Users can create a new LOC using the ID of a previously expired LOC as a more efficient 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 | access-control | true | false | ## Low: Essential Roles Setter Functions Implement Single-Step Role Transfer
### Description
It’s possible to lose these roles under specific circumstances. Because of human error, it’s possible to set a new invalid address. When you want to change the address it’s better to propose a new one, and then accept the owne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | access-control | false | false | Source: https://github.com/sherlock-audit/2024-05-napier-update-judging/issues/65
The protocol has acknowledged this issue.
## Found by
zzykxx
## Summary
Users can redeem their `PT`/`YT` tokens before a price decrease of a supported LST/LRT token in order to avoid losses.
## Vulnerability Detail
Napier allows us... | Sherlock | 4 | Napier Finance - LST/LRT Integrations |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Code repetition in PropsSidechainCompatible contract
### Description
Following code reusability best practices, [the](https://github.com/propsproject/props-token-distribution/blob/eaf0c6fddd320a258a9d7531d72d07a830fae58a/contracts/token/PropsSidechainCompatible.sol#L59) [`settle`](https://github.com/propsproje... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interactions with AMMs do not use deadlines for operations
### Description
From a judge's comment in a previous [contest](https://code4rena.com/reports/2022-06-canto-v2/#m-01-stableswap---deadline-do-not-work):
Most of the functions that interact with AMM pools do not have a deadline parameter, but specif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Starting surplus auctions can be prevented
### Description
Accumulated surplus of reflex indexes can be auctioned to retrieve protocol tokens to be burned. This happens in the [`auctionSurplus()`](https://github.com/reflexer-labs/geb/blob/261407b6b332c2063e4256aa5f9b223d52dad7e1/src/AccountingEngine.sol#L27... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Direct Inclusion and Modification of OpenZeppelin Modules Leading to Inconsistencies
### Description
The review identified that the project directly includes copies of OpenZeppelin modules within its repository (e.g., some files under `contracts/erc20/`, `contracts/utils/` and `contracts/library/`) and applies... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: valutIndex = 1 is never used
### Description
The value of vaultIndex = 1 is never assigned to any vault.
This can be changed to as below, so that vaultID = 1 is also used
**[outdoteth (Cally) commented](https://github.com/code-423n4/2022-05-cally-findings/issues/281#issuecomment-1128026692):**
> high qual... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add sanity check to revert if `_treeDepth == 0` in `L1MessageManager::_addL2MerkleRoots`
### Description
**Description:** Add sanity check to revert if `_treeDepth == 0` in `L1MessageManager::_addL2MerkleRoots` to prevent adding an L2 Merkle root with `treeDepth == 0` as this would create a state where subsequ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | logic-error | true | true | ## Medium: Redemptions are blocked when L2 sequencers are down
### Description
Given that rollups such as [Optimism](https://docs.optimism.io/chain/differences#address-aliasing) and [Arbitrum](https://docs.arbitrum.io/arbos/l1-to-l2-messaging#address-aliasing) offer methods for forced transaction inclusion, it is impo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | cross-chain | true | false | ## High: Attacker can steal `JackpotTicketNFT`’s from `JackpotBridgeManager.sol`
### Description
### Finding Description
The `JackpotBridgeManager` contract facilitates cross-chain ticket purchases and winnings claims for the Jackpot system. It acts as a custodian for NFTs representing tickets that are purchased from... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | input-validation | true | false | ## Low: Extra validation on `CentralToken::addChildToken` will prevent adding incorrect `ChildToken`
### Description
Currently, it is possible to:
- Create a `childToken0` which sets `centralToken0` as its parent
- For a different central call `centralToken1::addChildToken(centralToken0)`
### Recommendation
To preven... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: `yUSDeVault` inherits from `PreDepositVault` but doesn't call `onAfterDepositChecks` or `onAfterWithdrawalChecks`
### Description
`pUSDeVault` and `yUSDeVault` both inherit from `PreDepositVault`.
`pUSDeVault` uses `PreDepositVault::onAfterDepositChecks` and `onAfterWithdrawalChecks` inside its overriden `_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 | high | logic | true | false | ## High: Incorrect `nextOpenInterest` values set for `priceImpact`
### Description
Logic for setting `nextOpenInterest` values is incorrect for long and short, depending on which side the action was in.
These incorrect values for `nextOpenInterest` values lead to incorrect calculation of `priceImpact` for the user.
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Pre-conditions should be specified for onCollateralLiquidated()
### Description
Looking at the pool's implementation of `ILiquidationReceiver`, there are 2 very important pre-conditions made.
1. The liquidator transfers proceeds before (after's possible as well, if the contract has sufficient funds).
2. The am... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | ## Severity: Medium Risk
## Context
RoutersFacet.sol#L401
## Description
The comments from the `setRouterRecipient` function mentioned that the router should only be able to set the recipient once. Otherwise, no problem is solved. However, based on the current implementation, it is possible for the router to set its ... | 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 | low | liquidation | false | false | ## Low: The Protocol Might Get More Collateral than Desired
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> We could add the extra check in Comptroller._setLiquidationIncentive, but we prefer to not add it to reduce the number of changes, and avoid 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 | liquidation | false | false | ## High: Permanent reward accrual after liquidation
### Description
When a subaccount is liquidated, each position is wound down completely. In normal circumstances, a position being closed would trigger the protocol's `onDecreasePosition()` hooks, but this is missing during liquidation. Currently, these hooks manage ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee auction allows assets to be purchased for free
### Description
The FeeAuction contract implements a Dutch auction mechanism where the price decreases linearly over time, eventually reaching zero if no one purchases the assets during the auction period. This allows users to claim valuable protocol fee token... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.