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: Use
### Description
[L-04] Use safeTransferOwnership instead of transferOwnership function
Position.sol#L12
PositionMetadata.sol#L8
transferOwnership function is used to change Ownership from Ownable.sol.
Use a 2 structure transferOwnership which is safer.
safeTransferOwnership, use it is more secure due to ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: `disburser` and `owner` Are Set to the Same Address
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: The ownership has to be transferred to a multisig, however until then we are considering controlling them by the same address, hence we are going... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 checking if the value is 0
### Description
When `_collectFees` is triggered and the collected fees are 0, and the tokens are the input token inside `buyAndBurn`, it still triggers `_safeTransferToken` with providing 0 value.
If the tokens revert on a 0 transfer value, the operation could revert and cause... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | true | false | ## Medium: POSSIBLE SIGNATURE RE-USAGE
### Description
None
Code Location
-------------
### Recommendation
**SOLVED**: Code is not checking for `msg.sender` in signatures. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | initialization | true | false | ## High: Call the deposit function before the distribute function to steal tokens
### Description
Report type: Smart Contract
Target: https://github.com/alchemix-finance/alchemix-v2-dao/blob/main/src/Voter.sol
Impacts:
- Manipulation of governance voting result deviating from voted outcome and resulting in a direct... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Missing Check | true | true | ## Severity
**Impact:** Medium, admin won't be able to retrieve tokens after lock time has passed
**Likelihood:** Medium, attacker needs to be a temporary holding beneficiary
## Description
`TemporaryHoldings.sol` allows the `beneficiary` address to use tSQD in the whitelisted protocol contracts for a limited amoun... | Pashov Audit Group | 4 | Subsquid |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: `platformFee` can be set above 1e18, which would disable all claims
### Description
The owner can set the platform fee at any time using this function:
There are no checks on this value. However, it is crucial that this value remain below `1e18` or the contract will no longer work, because in the `_claim()` ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use assembly to validate `msg.sender`
### Description
We can use assembly to efficiently validate `msg.sender` with the least amount of opcodes necessary. For more details check the following report [Here](https://code4rena.com/reports/2023-05-juicebox#g-06-use-assembly-to-validate-msgsender)
[512](https://g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Fixed] Lack of event emissions after sensitive changes
### Description
It is beneficial for critical functions to trigger events for purposes like record keeping and filtering. However, functions like [`updateParameters`](https://github.com/opynfinance/Convexity-Protocol/blob/c34598565cba2bfcf824eb2da63d95... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Launched tokens are vulnerable to flashloan attacks forcing premature graduation, allowing reward manipulation
### Description
Bonding.sol only allows a launched memecoin to graduate when [`gradThreshold`](https://github.com/code-423n4/2025-04-virtuals-protocol/blob/084a1b46749e2a9924ecc8c06982a40cc8b3dd5a/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inability of Synthesis to call `burnWithAllowanceDecrease()` or `mintWithAllowanceIncrease()` functions
### Description
While the `SynthesisV2` contract maintains the ownership of the `SynthERC20` token, it lacks the functionality to call `burnWithAllowanceDecrease()` and `mintWithAllowanceIncrease()`.
https:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | storage | true | false | ## High: c.lienRequest.strategy.vault is not checked to be a registered vault when commitToLiens is called
### Description
From when `commitToLiens` is called till when we end up calling `IVaultImplementation(c.lienRequest.strategy.vault).commitToLien( ... )` and after the value of `c.lienRequest.strategy.vault` is no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Invariants
### Description
**Executive Summary**
This is a collection of invariants that I came up with while doing the manual review
**Sorting**
**A Trove is always added to the end of the batch in sorted troves**
**Troves are sorted by interest rate**
**Troves are sorted in this way**
- The first trove ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fees are sent to vault instead of feeRecipient
### Description
Each time AMKT tokens are issued or redeemed, or a bounty is fulfilled, a call is made to `vault.tryInflation()`. This function checks if a day has passed since the last inflation and, if it has, takes protocol fees in the form of newly minted AMK... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | L2 Sequencer | true | false | Source: https://github.com/sherlock-audit/2022-11-sentiment-judging/issues/3
## Found by
pashov, obront
## Summary
Chainlink recommends that all Optimistic L2 oracles consult the Sequencer Uptime Feed to ensure that the sequencer is live before trusting the data returned by the oracle. This check is implemented in... | Sherlock | 5 | Sentiment Update |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Owner can load more refund money than necessary
### Description
[`loadRefund`](https://github.com/CoinFabrik/ico/blob/142f43f3bec4afd0ffff3fce06946cf67cb0272f/contracts/Crowdsale.sol#L429) allows to send balance into the contract so that it can be used for refunds. This money can only be withdrawn via 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 | high | token | true | false | ## High: `GovPool::delegateTreasury` does not verify transfer of tokens and NFTs to delegatee leading to potential voting manipulation
### Description
**Description:** `GovPool::delegateTreasury` transfers ERC20 tokens & specific nfts from DAO treasury to `govUserKeeper`. Based on this transfer, the `tokenBalance` 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 | low | token | false | false | ## Low: Unhandled failures in token interactions
### Description
There are ERC20 `transfer` operations, executed over potentially untrusted ERC20 tokens, which are not correctly wrapped to ensure that they are always safe and behave as expected.
Specifically, for the `transfer` on [line 177](https://github.com/acros... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Deposit can return zero shares when user deposits a positive amount of tokens
### Description
**Description:** Stateless fuzzing found an edge-case where a user could deposit an amount of tokens > 0 but receive zero output shares. The cause appears to be either a rounding down to zero precision loss in the sha... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Transfer of wallet ownership can be DoSed — Method 1
### Description
An active attacker can prevent the owner of a wallet from transferring wallet ownership. The attack works as follows:
The attacker can front-run all transactions calling [`setOwner(X)`](https://github.com/InstaDApp/contract-v2/blob/4863c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Key Check
### Description
## Obligation Lock Functionality
`obligation::lock` is designed to lock the obligation functionality. Currently, the function invokes `assert_reward_key_in_store`, which is inconsistent with its intended purpose. Instead, `assert_lock_key_in_store` should be invoked, as the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Inconsistencies In Contract State
### Description
## Issue Description
In DN404, the variable `$.numExchangableNFT` remains unchanged when minting new NFTs or burning existing ones within `_mint` and `_burn` respectively. Consequently, when a user mints or burns NFTs, the contract’s internal state fails to... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: Swapper mechanism cannot incentivize ETH-WETH swaps without risking owner funds
### Description
Source: https://github.com/sherlock-audit/2023-04-splits-judging/issues/60
## Found by
obront
## Summary
## Vulnerability Detail
When `flash()` is called on the Swapper contract, pairs of tokens are passed ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: parentLock with commitless finalizeSplit bug can be bricked under exceptional circum- stance
### Description
By abusing the finalizeSplit bug from "Split finalization succeeds with non-existent split proposals," which skips validity checks, if a parentLock split happens to occur on the exact second of its end ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expiration timing can be set to before the current time
### Description
When depositing LP tokens into HoneyLocker.sol, the user will call `depositAndLock()`, and set the `_expiration` time. This `_expiration` parameter is not checked, so the caller can set a time before `block.timestamp`.
Tokens can then 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 | reentrancy | false | false | ## Low: Lack of Reentrancy Protection in Public Functions transferBtc and claimBtcReward
### Description
The `transferBtc` and `claimBtcReward` functions in the provided contract are public functions that involve the transfer of Ether (rewards) to external addresses. However, these functions do not implement any reent... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 `StakingManager` Should Not Be Ejectable
### Description
**Update**
Marked as "Acknowledged" by the client.
The client provided the following explanation:
Quantstamp recommends that the StakingManager should be blacklisted from ejection from the TokenLocker, noting:
The StakingManager contract holds 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: Version Bump to Latest
### Description
During the review, a new version of Solidity was released with an important bugfix.
### Recommendation
Move from `0.8.15` to `0.8.16`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Modifier `conditionCheck` doesn't revert if no conditions passed
### Description
There is an issue at line https://github.com/MetaLex-Tech/borg-core/blob/9074503d37cfa1d777ef16f6c88b84c98b4f54eb/src/libs/conditions/conditionManager.sol#L123. Execution breaks when at least one condition succeeds, but in the ca... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlimited public minting for Stable Token
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In Contract StableToken, the method mintTo(...) is public and allows anyone to mint any amount of tokens. The contract has an owner so it is advised to allow only the owner to mint the 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 | token | false | false | ## Low: Token Migrations Can Cause Losses - Phase 2
### Description
Tokens inheriting from the [`BridgedERC20Base`](https://github.com/taikoxyz/taiko-mono/blob/b47fc34cb0e7fe9b7ebd9416b3051a067483b860/packages/protocol/contracts/tokenvault/BridgedERC20Base.sol) contract can be [migrated](https://github.com/taikoxyz/ta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Compliance May Be Bypassed for Curve
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `6246e0d18a7295095b6cc2930b671f7b100592c1`.
**File(s) affected:**`CurveFiValidatorSwapRouter.sol`
**Description:** To add liquidity to Curve, it is required that the protocol is supported, but to 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 | medium | other | false | false | ## Medium: LibOwnable._setAdmin allows setting address(0) as the admin of the contract
### Description
While other contracts like RiverAddress (for example) do not allow `address(0)` to be used as a set input parameter, there is no similar check inside `LibOwnable._setAdmin`. Because of this, contracts that call `LibO... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Hardcode Decimal Values
### Description
## Code Update Documentation
The `valuedecimals = 9` passed to `coin::create_currency` may be declared as a global constant to enhance code readability.
## Remediation
Replace the nine passed to `coin::create_currency` with the global constant `const DECIMALS: u8 = 9`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Liquidators can earn extra yield by flash depositing into tranches
### Description
**Severity**
**Impact**: Medium, Liquidation yields can be denied to liquidity providers
**Likelihood**: Medium, Not applicable in current deployment configuration, but valid in general
**Description**
The `liquidationPen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It Is Not Possible to Add or Remove Tokens From Whitelist
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> No modification is necessary. The tokens to be supported were determined at the time of strategy issuance and do not need to be changed.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Consider refactoring SortedCdps._getCdpsOf to simply the code and save gas
### Description
The `_getCdpsOf(address owner, bytes32 startNodeId, uint maxNodes, uint maxArraySize)` internal function can only be called by the following functions:
1. `function getCdpsOf(address owner) external view override return... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [19] Non-usage of specific imports
### Description
The current form of relative path import is not recommended for use because it can unpredictably pollute the namespace.
Instead, the Solidity docs recommend specifying imported symbols explicitly.
https://docs.soliditylang.org/en/v0.8.15/layout-of-source-files... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Unused imports
### Description
There are two unused imports:
* [`CommonErrors`, `CollateralMigrator.sol#17`](https://github.com/woof-software/benqi-collateral-migrator/blob/d91ce3dbf56d3939d54520f6f41afeebbbfc069a/contracts/CollateralMigrator.sol#L17):
```solidity
import {CommonErrors} from "./errors/Commo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Medium: Nested Protected Functions May Cause Unexpected Reverts
### Description
* A firewall\-protected function calling another firewall\-protected function in the same contract will cause a revert in the [NonReentrantPolicy](https://github.com/ironblocks/onchain-firewall/blob/8f4fcf861d53c835ed005db67b8af4037464e... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of Block Height Validation
### Description
## SP1Blobstream Commit Header Range
In SP1Blobstream, `commitHeaderRange` commits new block headers and associated data commitments to the contract state. The block heights, `trusted_block_height` and `target_block_height`, are crucial as they indicate the spe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `TimelockSafeGuard.hashOperation` Marked `view` Instead of `pure`
### Description
`hashOperation` reads no state but is declared `view`. Using `pure` better reflects its behaviour, enables compiler optimisations, and aids static analysis.
### Recommendation
Change the function declaration from `public view` 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 | signature | false | false | ## Low: User code update procedure is insufficiently constrained
### Description
Users are able to update the code of their jetton cards and TON cards to any version that was ever released, including older versions. Additionally, if the public key used for signing is the same for both contracts, a jetton card can be u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [05] Use modifier `onlyHostChain`
### Description
In `TapToken` there is a modifier `onlyHostChain` to check that the operation is done on the `governanceEid`-chain. This is used in the call `setTwTAP`.
It is, however, not used in the call [`TapToken::emitForWeek`](https://github.com/Tapioca-DAO/tap-token/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 | low | initialization | true | false | ## Low: Remove InitAccount
### Description
## Liquidator Invoke of Margin Program
The `liquidator_invoke` of the Margin Program invokes an adapter program with the given instruction data and accounts. The call is signed by `margin_account`. It is checked that the adapter program is present in one of the `MarginAdapte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _enforceLiquidationQueue() could fail due to one of the underlying components failing
### Description
The function `_enforceLiquidationQueue()` calls `balanceOf()` and `convertToAssets()`
of a series of components. If one of these components reverts, due to a temporary problem,
a bad implementation, or being... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: `NodeId` truncation can potentially cause validator registration denial of service
### Description
`AvalancheL1Middleware::addNode` function truncates 32-byte `nodeId` to 20-bytes when checking validator registration status. This truncation occurs when interacting with the `BalancerValidatorManager`.
```solid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | true | false | ## Medium: Infinite approval to an arbitrary address can be used to steal all the funds from the contract
### Description
_Submitted by WatchPug, also found by catchup, csanuragjain, rayn, and VAD37_
[AnyswapFacet.sol#L131-L157](https://github.com/code-423n4/2022-03-lifinance/blob/699c2305fcfb6fe8862b75b26d1d8a2f46a5... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vulnerability in Ethereum Node Allowing DoS via Malicious P2P Message
### Description
A vulnerability has been discovered in the Ethereum node implementation, specifically in the handling of p2p messages. The vulnerability allows an attacker to send specially crafted p2p messages to a vulnerable Ethereum no... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unnecessary Account Reallocation
### Description
I n t h e **edit_user_profile** i n s t r u c t i o n, t h e `realloc` a t t r i b u t e i s u t i l i z e d u n n e c e s s a r i l y i n t h e a c c o u n t c o n s t r a i n t s f o r t h e **user_profile** a c c o u n t, i n d i c a t i n g t h a t t h e a 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... | cyfrin_structured | low | token | true | false | ## Low: Optimize away two memory variables in `RewardsDistributor::generateLeaves`
### Description
Optimize away two memory variables in `RewardsDistributor::generateLeaves` by using a named return variable and removing the temporary `leaf` variable:
```solidity
function _generateLeaves(
address[] calldata earner... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Cleanup Reverts for Pause/Unpause Approvals
### Description
The `TreasuryVesting` contract implements two different patterns for handling operations. While standard operations (like adding categories) use a structured `TimelockOperation` system with proper expiry and cleanup mechanisms, emergency operations... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | false | false | ## Low: Use named returns where this eliminates a local variable and especially for `memory` returns
### Description
Use named returns where this eliminates a local variable and especially for `memory` returns:
* `TokenBank::viewAllFees` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect contract addresses in `C.sol`
### Description
There are [two address constants](https://github.com/BeanstalkFarms/Beanstalk/blob/c7a20e56a0a6659c09314a877b440198eff0cd81/protocol/contracts/C.sol#L81-L82) in `C.sol` which have been added as part of the BEAN/ETH Well integration. Currently, `BEANSTALK_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | rounding | true | false | ## High: TribalChief - A wrong user.rewardDebt value is calculated during the withdrawFromDeposit function call
### Description
When withdrawing a single deposit, the reward debt is updated:
**contracts/staking/TribalChief.sol:L468-L474**
```
uint128 virtualAmountDelta = uint128( ( amount \* poolDeposit.multiplier... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect haircut asset value conversion in `STBL_PT1_Issuer::generateMetaData`
### Description
**Description:** `STBL_PT1_Issuer::generateMetaData` (and its `STBL_LT1_Issuer` counterpart) uses the wrong oracle conversion function when calculating `haircutAmountAssetValue`, resulting in mathematically incor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Splitting `require()` statements that use `&&` saves gas
### Description
If you're using the Optimizer at 200, instead of using the `&&` operator in a single require statement to check multiple conditions, Consider using multiple require statements with 1 condition per require statement:
Please, note that th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: Missing bounds check on weight values in `WeightedTokensVPCalc` and `WeightedVaultsVPCalc`
### Description
The `WeightedTokensVPCalc` and `WeightedVaultsVPCalc` contracts lack proper bounds checking when setting weight values, which could lead to integer overflow during voting power calculations or complete el... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | false | ## Medium: Unlimited token reallocation power creates centralization risk
### Description
The `WorldLibertyFinancialV::ownerReallocateFrom` function provides the owner with unrestricted power to burn tokens from any address and mint them to any other address, completely bypassing all security mechanisms implemented 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 | token | false | false | ## Low: Incomplete ERC20 interface support
### Description
**Description:** The `supportsInterface()` function doesn't declare support for `IERC20` interface ID despite implementing ERC20 functionality.
This could cause issues with interface detection in some integration scenarios.
**Recommended Mitigation:** Add sup... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Timelock behind up\_deploy\_code
### Description
**Description:**User should get considerable time to opt out of an upgraded code. Since up\_deploy\_code does not require any delay, a malicious owner can simply deploy malicious code instantly.
- An innocent contract Ais deployed with high staking APR
- Use... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error in totalvotes due to a mistake in the totalweight formula
### Description
In `_changeGaugeWeight`, the calculation of `totalVotes` is performed as follows:
### Recommendation
Rewrite the expression for `totalWeight` as follows:
```solidity
totalWeight += (newSum * typeWeight) - (oldSum * typeWeight);
`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Don't emit misleading events when roles haven't been added or revoked
### Description
`AccessControlUpgradeable::_grantRole` and `_revokeRole` [return](https://github.com/OpenZeppelin/openzeppelin-contracts-upgradeable/blob/master/contracts/access/AccessControlUpgradeable.sol#L204-L231) `bool` to indicate 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 | medium | access-control | true | false | ## Medium: First mint could be frontrun to break L1 `totalSupply` calculation
### Description
In order to perform the migration for the AMKT token from L1 to L2, the following process is used:
- First, the `totalSupply` of the L1 token is minted on L2
- Then, it is sent to the L2 bridge, so that the full quantity is l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Contract functions should use an `interface`
### Description
All `external`/`public` functions should override an `interface`. This is useful to make sure that the whole API is extracted.
*There are 85 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 | medium | other | true | false | ## Medium: stakingContext.auraRewardPool.withdrawAndUnwrap boolean return value not handled in Boosted3TokenPoolUtils.sol and TwoTokenPoolUtils.sol
### Description
stakingContext.auraRewardPool.withdrawAndUnwrap boolean return value not handled in Boosted3TokenPoolUtils.sol and TwoTokenPoolUtils.sol
### Impact
Becaus... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Silo and Dolomite lack LTV limit increasing liquidation risk
### Description
**Description:** When borrowing from Aave, there is a check in [`Aave_Module::aave_borrow`](https://github.com/d2sd2s/d2-contracts/blob/c2fc257605ebc725525028a5c17f30c74202010b/contracts/modules/Aave.sol#L51-L54) to ensure that the lo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Minting public vault shares while the protocol is paused can lead to LP fund loss
### Description
Assets can be deposited into public vaults by LPs with `PublicVault.mint` function to bypass a possible paused protocol.
### Impact
LPs can deposit assets into public vaults with the `PublicVault.mint` functio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | signature | false | false | ## Medium: Inactive node operator can always block deposits
### Description
**Severity:** Medium
**Path:** NodeOperatorRegistry.sol:_increaseValidatorsKeysNonce#L1315-L1321
**Description:**
The function to deposit ETH to the DepositContract requires a set of signatures of the deposit data. One element is the stakin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious Relayer can Replay Execute Calldata on Different Chains Causing Double-Spend Issue
### Description
_Submitted by xiaoming90_
[BridgeFacet.sol#L411](https://github.com/code-423n4/2022-06-connext/blob/4dd6149748b635f95460d4c3924c7e3fb6716967/contracts/contracts/core/connext/facets/BridgeFacet.sol#L41... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement Rate Limit
### Description
## API Security Concerns
The bridge does not enable a rate limit on the website APIs, facilitating DOS attacks.
## Remediation
Implement a rate limit on the NextJS APIs using IP addresses as the connection identifier.
### middleware.ts
### Recommendation
Implement a 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 | oracle | false | false | ## Low: Considerations Regarding AMM TWAP Readings
### Description
The AMM `twapTick` is used in `forceExercise` to determine if a `tokenId` is forcibly exercisable. It is also used in `liquidateAccount` to compute the collateral required to determine if a said `tokenId` is margin called. The `twapTick` is constructed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If a `lendingPool` is added to the network while in `late` state, can be defaulted instantly
### Description
If a lending pool is added to a protection pool, the `defaultStateManager` sets the `currentState` to late without setting the late timestamp. This can enable anyone in the network to be able 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 | gas | other | true | false | ## Gas: For same condition checks use modifiers
### Description
https://github.com/delegatexyz/delegate-registry/blob/6d1254de793ccc40134f9bec0b7cb3d9c3632bc1/src/DelegateRegistry.sol#L75C9-L75C47 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | rounding | true | false | ## High: Division Before Multiplication Can Lead To Zero Rounding Of Return Amount
### Description
_Submitted by kirk-baird, also found by csanuragjain, datapunk, and ladboy233_
There is a division before multiplication bug that exists in [`lend()`](https://github.com/code-423n4/2022-06-illuminate/blob/92cbb0724e594c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: Single-step ownership transfer pattern is not recommended
### Description
The two `BaseContract` implementations currently inherit from OpenZeppelin's `OwnableUpgradeable`, which uses a **single-step ownership transfer** pattern. This approach is risky: if an incorrect address is set as the new owner, the cont... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: The router can be unpaused by the Owner when paused by manager/callback contracts
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In Contract GlmRouter.sol, the method `setPause(...)` can be accessed by manager callback, rebalance, and rebalance callback contracts to pause the dep... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [G‑06] Avoid contract existence checks by using solidity version 0.8.10 or later
### Description
Prior to 0.8.10 the compiler inserted extra code, including `EXTCODESIZE` (**100 gas**), to check for contract existence for external calls. In more recent solidity versions, the compiler will not insert these che... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Use of modifier `nonZeroNavRate` in `SecuritizeOnRamp` and `SecuritizeOffRamp` results in duplicate external call with identical result
### Description
**Description:** `SecuritizeOnRamp` and `SecuritizeOffRamp` both have modifier `nonZeroNavRate` which makes an external call to enforce a positive rate:
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 | signature | false | false | ## Low: Redundancy of Replaying Messages in L2ScrollMessenger
### Description
The logic to retry messages sent from L1 to L2 lives solely in the [`replayMessage` function](https://github.com/scroll-tech/scroll/blob/2eb458cf4224d82fc56254e91e297a9ed261cefb/contracts/src/L1/L1ScrollMessenger.sol#L175) in `L1ScrollMessen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | token | true | false | ## Low: Enforce that `StakingVault::decimals` is greater or equal to the underlying asset decimals
### Description
[EIP4626](https://eips.ethereum.org/EIPS/eip-4626) states:
> Although the convertTo functions should eliminate the need for any use of an EIP-4626 Vault’s decimals variable, it is still strongly 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 | token | false | false | ## Low: Use `SafeTransferLib` to handle non-standard tokens
### Description
The contract transfers tokens with the raw `transfer` and `transferFrom` functions. The contract also sometimes checks the return value with an `if(!ERC20(token).transfer(...))` clause. A better way to handle this is by using the `SafeTransfer... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | logic | false | false | ## Medium: Token fees can lead to incorrect calculations
### Description
Certain tokens, such as USDT, have the ability to [charge fees on transfers](https://etherscan.io/address/0xdac17f958d2ee523a2206206994597c13d831ec7#code). Although the fee rate is currently `0`, this may change in the future. The result of this ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Conflicting method permissions
### Description
Throughout the protocol, there are multiple methods that involve a transfer of funds, i.e. pulling funds via `ERC20.transferFrom`. These methods have different permission levels, e.g. permission-less, restricted to the `MANAGER_AGENT_ROLE`, etc.
However, these me... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Error in condition
### Description
**Description**
updateTokenShares(uint8), line 615
Condition “_value >= 0” contains a mistake - it should be “_value > 0”, because uint8 is an
unsigned type and the purpose of the condition is to prevent 0 amount transactions.
**Recommendation**:
Correct 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 | low | other | false | false | ## Low: Remove unnecessary address payable Won't Fix
### Description
The `address payable` type is only needed for transferring ether to an address. The `OrchidDirectory` and `OrchidLottery` contracts work with tokens, not ether, so there’s no need for any parameters to be of type `address payable`.
### Recommendati... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Ownership transfer fails silently
### Description
The [`transferOwnership` function](https://github.com/AugurProject/augur/blob/67c0fec95e65fca8d27751f28a6c06e5247978c6/packages/augur-core/source/contracts/libraries/Ownable.sol#L39-L44) of the `Ownable` contract returns a boolean indicating if the transfer suc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BuyTheDipGeometricDistribution` parameter encoding documentation is inconsistent
### Description
**Description:** The `BuyTheDipGeometricDistribution` [parameter encoding documentation](https://docs.bunni.xyz/docs/v2/technical/ldf/params/#parameter-encoding-5) specified an unused byte between alpha values; ho... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: | Default Value Assignment
### Description
**Description**
On line 195 the `uint` variable i is initialized to the default value of 0.
**Recommendation**
Remove the unnecessary assignment.
**Resolution**
NFTR Team:
The suggested changes were implemented. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | true |
`VoteEscrowDelegation._transferFrom` should be successfully executed if `msg.sender` is the current owner, an authorized operator, or the approved address. `removeDelegation` is called in `_transferFrom`. `removeDelegation` only accepts the token owner. Thus, `_transferFrom` can only be executed by the token owner.
#... | Code4rena | 5 | Golom |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incentive ID collisions from missing `emissionSettings` in hash
### Description
_Resolved_
In `ERC20Staker`, each ERC20 staking incentive is uniquely identified using a deterministic hash computed via `computeERC20IncentiveId`:
However, the hash does **not** include the `emissionSettings` field of the `ERC2... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | timing | true | false | ## Low: Don't write to the same storage slot multiple times
### Description
In EVM writing to storage is expensive; ideally only write to the same storage slot once. For example `ComplianceServiceRegulated::cleanupInvestorIssuances` does this:
```solidity
uint256 time = block.timestamp;
uint256 curren... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: `LibWell.getWellTwaUsdLiquidityFromReserves()` returns liquidity with incorrect precision
### Description
Any Well can be whitelisted according to docs:
https://docs.bean.money/almanac/farm/sun#minting-whitelist
`LibWell.getWellTwaUsdLiquidityFromReserves()` uses uncached prices when is called from `SeasonGet... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | high | Reentrancy | true | true | _Submitted by cmichel_
The `postIncomingMessages` function calls `_callReceiverContract(fromChainHash, messages[i], startingCounter + 1)` which gives control to a contract that is potentially attacker controlled *before* updating the `incomingMessageCounter`.
```solidity
for (uint256 i = 0; i < messages.length; i++) ... | Code4rena | 3 | SKALE |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of uints/ints smaller than 32 bytes (256 bits) incurs overhead
### Description
The EVM operates with 32 byte words. Therefore, if you declare state variables less than 32 bytes the EVM will need to perform extra operations to cast your value to the specified size.
Total Instances: `2`
https://github.co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Contract name duplication hinders third-party integrations
### Description
The codebase has two contracts that share a name. This causes the frameworks to generate incorrect JSON artifacts, preventing third parties from using their tools correctly. `SafeMath` is defined in `RewardPool.sol`:
```solidity
librar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 error messages
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In the PNFT token contract, there are missing error messages on line: 812
require(balanceAfter - balanceBefore == amount);
And line: 865
require(ComptrollerNFTInterface(newComptroller).isComptroller());
**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 access to `deposit()` method
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In Contract GlmVault.sol, the method `deposit(...)` can be called by any of the GLM contracts such as Manager, Router, Rebalance or any of the callbacks contracts. While it might be needed later,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Remove `console.log`
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In Contract TokenSale.sol, there is a `console.log` statement that should be removed before production deployment.
**Recommendation**:
Remove the unused logs. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possibility to burn all ETH in Crowdfund under some circumstances
### Description
_Submitted by Lambda, also found by 8olidity_
If `opts.initialContributor` is set to `address(0)` (and `opts.initialDelegate` is not), there are two problems:
1.) If the crowdfund succeeds, the initial balance will be lost. It ... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.