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 | other | true | false | ## Medium: An auction created when there is no treasury backing
### Description
Whenever an auction is created, we set the reserve price like this:
```solidity
uint256 reservePriceWithBuffer = currentRFV + (currentRFV * reservePriceBuffer) / 100;
_setReservePrice(uint192(reservePriceWithBuffer));
```
`currentRFV` i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Using bytes number instead of slots number in the next slot calculation
### Description
The `MultiFlowPump._getSlotsOffset` function correctly calculates "the starting byte of the slot that contains the `n`th element of an array". But this is not the correct value for the use cases where the function is invoke... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `exitPosition` in `TapiocaOptionBroker` may incorrectly inflate position weights
### Description
Users who `participate()` and place stakes with large magnitudes may have their weight removed prematurely from `pool.cumulative`, hence causing the weight logic of participation to be wrong. `pool.cumulative` wil... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | false | false | ## High: Reentrancy in transfer(), mint(), burn(), addNonStakingAccount() and removeNonStakingAccount functions
### Description
**Severity**: Critical
**Status**: Acknowledged
**Description**
The functions _transfer(), _mint(), _burn(), addNonStakingAccount() and removeNonStakingAccount() are susceptible to reentra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused "payable"
### Description
At line:
https://github.com/tonkers-kuma/strategy-ssb/blob/e49d07a64ea0eb4f5a199c2bf9ea4c8aee2b313f/contracts/Strategy.sol#L133
### Recommendation
We recommend removing "payable". | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | access-control | false | false | ## Medium: Owner should be allowed to change feeManager
### Description
_Submitted by csanuragjain_
Once Fee Manager has been set initially by owner, then owner has no power to change it. Owner should be allowed to change fees manager in case if he feels current fee manager is behaving maliciously
### Proof of Conce... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: When the `borrowAToken` cap is reached, users may not always be able to repay their debt in some cases due to precision errors
### Description
*Note: At the judge’s request [here](https://github.com/code-423n4/2024-06-size-findings/issues/127#issuecomment-2244619915), this downgraded issue from the same warden... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Implement Early Address Verification
### Description
## Hub.instantActionMessages Address Parameter
In `Hub.instantActionMessages`, the address parameter `iap.token` is not sanitized until reaching the interest logic. This isn’t a security concern at the moment, as `iap.token` passes through all crucial hub a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: There may be problems with the use of `Layer2`
### Description
According to the scope information of the project, it is stated that it can be used in rollup chains and popular EVM chains.
Some conventions in the project are set to version Pragma 0.8.19, allowing the conventions to be compiled with any 0.8.x ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Initializer | true | true | ## Lines of code
https://github.com/code-423n4/2022-10-thegraph/blob/309a188f7215fa42c745b136357702400f91b4ff/contracts/l2/gateway/L2GraphTokenGateway.sol#L87
https://github.com/code-423n4/2022-10-thegraph/blob/309a188f7215fa42c745b136357702400f91b4ff/contracts/l2/token/L2GraphToken.sol#L48
https://github.com/code-423... | Code4rena | 4 | The Graph |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing sanity checks
### Description
## Context
(See each case below)
## Description
### GovernanceCCIPRelay.sol
- **Lines 66-69**: The `GovernanceCCIPRelay.constructor` misses the following sanity checks:
- Revert if `_router` == `address(0)`.
- Revert if `_timelock` == `address(0)`.
- Revert if `_... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Use of `tx.origin`
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `9511c9715c1375b6554a3ff6648d7c0bbf0f50e1`. The client provided the following explanation: killed all use of tx.origin
**File(s) affected:**`DoomsdaySettlers.sol`
**Description:** In two locations, the check `msg.sen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: Unchecked return value of low level `call()`/`delegatecall()`
### Description
*There are 2 instances of this issue:*
https://github.com/code-423n4/2023-01-popcorn/blob/d95fc31449c260901811196d617366d6352258cd/src/vault/adapter/abstracts/AdapterBase.sol#L444-L446
https://github.com/code-423n4/2023-01-popcor... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: An athlete cannot update their address
### Description
An athlete cannot update their address in `updateCollectionAthleteAddress()` (https://github.com/metaxu-art/fantium-smart-contracts/blob/cb2d97bc30c40321991fe5ab8fc798babba1610f/contracts/FantiumNFTV1.sol#L308).
### Recommendation
It is recommended to 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 | low | other | true | false | ## Low: Dust amount left after all refund is made
### Description
When the market is expired, the `refund` function calculates the refund amount based on the user's contribution to the funding goal. The refund amount is calculated by dividing the user's contribution by the accrued capital and multiplying it by the cla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Updating the Governance registry and Guardian addresses emits no events
### Description
In the `Governance` contract the [`registryAddress`](https://github.com/AudiusProject/audius-protocol/blob/6f3b31562b9d4c43cef91af0a011986a2580fba2/eth-contracts/contracts/Governance.sol#L17) and the [`guardianAddress`](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... | skyward_49k | low | cross-chain | false | false | ## Low: API - OUTDATED VERSIONS OF TLS SUPPORTED
### Description
The relay server [relay.ssp.runonflux.io](http://relay.ssp.runonflux.io) supported outdated and deprecated versions of the TLS protocol, specifically TLS 1.0 and TLS 1.1. These versions are known to have vulnerabilities and are no longer recommended for ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | liquidation | true | false | ## High: Lack of withdrawal limits check
### Description
The provided update fully excludes withdrawal limits checks from the `CollateralConfiguration.checkWithdrawLimits` function and puts them into the `AccountCollateral.updateBalance` function. So `AccountCollateral.transferFunds` and `ExposedModule.updateCollatera... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: Proposal might suffer compounded loss when cancelled
### Description
When cancelling a proposal, the [`cancelExchangeProposal`](https://github.com/celo-org/celo-monorepo/blob/d06617c7f4e59f643a0a0120e5501bcf762f1a7d/packages/protocol/contracts/liquidity/GrandaMento.sol#L308) function calls [`getSellTokenAndSel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong validation in `Goldigovernor.cancel()`
### Description
**Severity:** Medium
**Description:** In `Goldigovernor.cancel()`, the proposer should have fewer votes than `proposalThreshold` to cancel his proposal.
**Impact:** A proposer can't cancel his proposal unless he decreases his voting power.
**R... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Lack of documentation
### Description
There are several instances throughout the codebase where NatSpec is missing or incomplete. Some examples of this are:
* Functions in [WETHGateway](https://github.com/beta-finance/beta-private/blob/9e73eaf40e5118125d6925b29e4fb9ad8bf8e113/contracts/WETHGateway.sol#L8) ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Depositing tokens in GNTDeposit does not reset the timelock
### Description
The GNTDeposit contract implements a timelock on user accounts to restrict the initial window that tokens may be withdrawn. However, a user is able to withdraw tokens earlier than expected since the individual deposit of new tokens is... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Seizing payouts for frozen users can lead to double spending if the holder is unfrozen in subsequent distributions
### Description
**Description:** The `ChildToken::seizeFrozenFunds` function is designed to perform the following operations:
- Permit the legitimate holder to claim all dividend distributions ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RBS may redeploy funds automatically if price stays above or below wall for longer than `_config.regenWait`
### Description
_Submitted by 0x52_
Loss of treasury funds.
### Proof of Concept
if (capacity_
if (
uint48(block.timestamp) >= RANGE.lastActive(true) + uint48(config_.regenWait) &&
_sta... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | true | ## Low: Proposal creation bypasses minimum voting weight requirement when no tokens are locked hence no voting power exists
### Description
`AdminVoting::minCreateProposalPct` specifies the minimum voting weight required to create proposals, however this is bypassed allowing anyone to create proposals when no tokens a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Sending an NFV to an `ODProxy` Will Deploy Another `ODProxy`
### Description
**Update**
A new mapping `_proxyRegistry` has been added. A check has been added to ensure a proxy cannot be built for another proxy. Fixed in commit `c9a4d56`.
**File(s) affected:**`contracts/proxies/Vault721.sol`
**Description:**`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | signature | true | false | ## Low: Unused function argument in `SmartVaultYieldManager::quickDeposit` should be removed
### Description
The `SmartVaultYieldManager::quickDeposit` function has the following signature:
```solidity
function quickDeposit(address _hypervisor, address _collateralToken, uint256 _deposit)
```
However, the `_hyperviso... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Logic in `LibFertilizer::push` related to (deprecated) intermediate addition of Fertilizer to FIFO list should be removed
### Description
Intermediate addition to the FIFO list was formerly allowed only by the Beanstalk DAO, but this functionality has since been deprecated in the current upgrade with the remov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Tokens accidentally sent to the contract cannot be recovered
### Description
### Context
contracts/staking/NeoTokyoStaker.sol:
It can't be recovered if the tokens accidentally arrive at the contract address, which has happened to many popular projects, so I recommend adding a recovery code to your critical 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... | cyfrin_structured | low | token | false | false | ## Low: In rewards distribution, dust amount is left and stuck in the contract
### Description
When rewards distribution happens, it's distributed over 7 days(604800 seconds), the reward rate is calculated per second, thus every time, the remainder which is less than 604800 wei of tokens are left in 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 | low | front-running | false | false | ## Low: Typo
### Description
- https://github.com/code-423n4/2023-02-malt/blob/700f9b468f9cf8c9c5cffaa1eba1b8dea40503f9/contracts/StabilityPod/StabilizerNode.sol#L411
sandwich is not correct here.
**[0xScotch (Malt) confirmed](https://github.com/code-423n4/2023-02-malt-findings/issues/42)**
*** | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: `FeeLib` calculations can revert
### Description
The `FeeLib` library is based on the [Uniswap's V3 `PositionValue` library](https://github.com/Uniswap/v3-periphery/blob/main/contracts/libraries/PositionValue.sol). However, it is not taken into account that the fee calculations [expect overflows and underfl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `require()`/`revert()` strings longer than 32 bytes cost extra gas
### Description
Each extra memory word of bytes past the original 32 [incurs an MSTORE](https://gist.github.com/hrkrshnn/ee8fabd532058307229d65dcd5836ddc#consider-having-short-revert-strings) which costs **3 gas**
*There are 17 instances of th... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | true | ## Low: Removal of Hypervisor data locks deposited Smart Vault collateral
### Description
A Gamma Vault (aka Hypervisor) is an external contract that maintains and offers fungible shares in Uniswap V3 liquidity positions. The Standard leverages multiple Hypervisors to enable the collateral backing `USDs` to earn yield... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mitigating Newline Injection
### Description
## Security Best Practices for Title Rendering in Blink
Within Blink, when rendering the title and other strings, check for and remove carriage returns (`\r`, `\n`) to mitigate potential newline injection attacks. Injected newline characters may disrupt the intende... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing `address(0)` checks when assigning values to address state variables
### Description
**Description:** Missing `address(0)` checks when assigning values to address state variables.
**Impact:** Address state variables may be unexpectedly set to `address(0)`.
**Proof of Concept:**
From Solarity 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: Event is missing `indexed` fields
### Description
Each `event` should use three `indexed` fields if there are three or more fields
*There are 66 instances of this issue. For details, see the warden's [full report](https://github.com/code-423n4/2022-05-aura-findings/issues/173).*
**[0xMaharishi (Aura Finance)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑10] Event is missing `indexed` fields
### Description
Index event fields make the field more quickly accessible to off-chain tools that parse events. However, note that each index field costs extra gas during emission, so it's not necessarily best to index the maximum allowed per event (threefields). Each ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `updateBitFlag` does not update the index of the base asset
### Description
The `updateBitFlag` function allows the basket's asset list to be updated, with the restriction that the new `bitFlag` must be a superset of the previous `bitFlag`. During the `updateBitFlag` process, if all validations pass, the fu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Expired locks can be used to claim rewards
### Description
This report is so short because the bug is straightforward to explain and prove.
### Impact
Stealing bribe rewards using expired tokens can lead to solvency issues. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Refund Ether | true | true |
If ERC20 and eth are transferred at same time, the mistakenly sent eth will be locked.
There are several functions that could be affected and cause user fund lock:
* `addCollateral()`
* `addCredit()`
* `increaseCredit()`
* `depositAndClose()`
* `depositAndRepay()`
* `close()`
### Proof of Concept
In `r... | Code4rena | 4 | Debt DAO |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Goldivault.changeProtocolParameters()` shouldn't update `endTime`.
### Description
**Description:** `Goldivault.changeProtocolParameters()` updates `endTime` only without changing `startTime`.
It's more appropriate not to update `endTime` as this function is just to change parameters.
**Client:** Fixed in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: The last user to stake or unstake will be delegated the whole voting power
### Description
The `StakingContract.sol` allows users to stake `NODE.sol` ERC20 tokens which is a governance token. However each time a user calls the `stake()` or `unstake()` functions the voting power of all the NODE.sol tokens that... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | Pause | true | false | ## Vulnerability Report
## Context
(No context files were provided by the reviewer)
## Description
The `_credit` function in the `WrappedBitcornNativeOFTAdapter.sol` contract lacks the `whenNotPaused` modifier, allowing token credits even when the contract is paused. This enables users to receive tokens through cross... | Cantina | 4.994754 | Bitcorn |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Forwarder can be frozen and still receive and claim payouts while frozen
### Description
**Description:** If the forwarder is frozen before the first payout then they don't receive and can't claim any payouts while frozen.
But if the forwarder is frozen after the first payout, then they do receive and can cla... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 parameter validation
### Description
## Handle
cmichel
## Vulnerability details
## Vulnerability Details
Some parameters of functions are not checked for invalid values:
- `BaseVaultAdaptor.constructor`: The addresses should be checked for non-zero values
- `LifeGuard3Pool.constructor`: The 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 | liquidation | true | false | ## Low: Instant liquidations after clearing LTV
### Description
The `clearLTV` function is used to set the Loan-to-Value (LTV) to zero and disable the liquidations of collateral by the governor when "the collateral is found to be unsafe to liquidate". After calling this function, the asset cannot be used as collateral... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No check for address(0)
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In contract cloudX_staker.sol and contract cloudX_rewardLocker.sol, the method setTokenWallet(...) does not check for address(0). If address(0) is passed, owner will have to make another transaction to 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 | medium | liquidation | true | false | ## Medium: RecollateralizationLib: Dust loss for an asset should be capped at it’s low value
### Description
## Lines of code
https://github.com/reserve-protocol/protocol/blob/df7ecadc2bae74244ace5e8b39e94bc992903158/contracts/p1/mixins/RecollateralizationLib.sol#L275
## Vulnerability details
## Impact
The `Recoll... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect implementation of the `PositionMarginProcess.updatePositionFromBalanceMargin()` function.
### Description
The `updatePositionFromBalanceMargin()` function does nothing when `position.initialMarginInUsd == position.initialMarginInUsdFromBalance && amount < 0`. However, in this case, the function shou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pool address can be address(0) and revert due to the same
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In Contract AFiStorage.sol, method getMinimumAmount(...) has the following check:
Here, if tokenIn == midTok, the getPool will return address(0) as both of the addresses ar... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | initialization | true | false | ## Gas: `last_point` value rewritten right after initialization
### Description
If `_epoch > 0`, then `last_point` is rewritten, and initialization on L726 becomes waste of gas;
https://github.com/code-423n4/2022-07-golom/blob/7bbb55fca61e6bae29e57133c1e45806cbb17aa4/contracts/vote-escrow/VoteEscrowCore.sol#726
### M... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | true | false | ## Low: State Inconsistency Due to Solana Rollback
### Description
One function in the protocol is vulnerable to state inconsistencies in the event of a Solana rollback:
1. **Setting Config Parameters**:
- Global configuration parameters could become outdated during a Solana rollback
- Protocol could operate 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 | high | oracle | false | false | ## High: Price manipulation by calling `updatePhase` with different symbols
### Description
In the audited commit `29a0ccb5fc7ac838bd44c75c0afc398b84be267a`, the `endRoundId` value is not dependent on the asset symbol. By calling the `updatePhase` function with a different `symbol` argument, an attacker may manipulate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Anyone can drain the whole ETH balance of ThreeDNSRegControl when making a commitment
### Description
## Commitment Orderflow Vulnerability Analysis
## Context
- CommitmentOrderflow.sol#L140
- Multicall.sol#L23
## Description
### ThreeDNSRegControl Contract Holding ETH
The `ThreeDNSRegControl` contract 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 | low | token | false | false | ## Low: Incompatibility With Rebasing/Deflationary/Inflationary tokens
### Description
## Handle
0xRajeev
## Vulnerability details
## Impact
Yield protocol allows different tokens to be used as collateral or underlying. The Join and Pool contracts do not appear to support rebasing/deflationary/inflationary 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... | cyfrin_structured | low | initialization | true | false | ## Low: Missing zero address check in Uniswap modules initialization
### Description
The `initialize` function in `UniswapV3ModuleLibrary` does not check if `poolFactory` or `positionManager` are the zero address. If `poolFactory` is set to `address(0)`, the module can be reinitialized, since the only protection again... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong comment
### Description
- https://github.com/reserve-protocol/protocol/blob/9ee60f142f9f5c1fe8bc50eef915cf33124a534f/contracts/plugins/assets/Asset.sol#L146
- https://github.com/reserve-protocol/protocol/blob/9ee60f142f9f5c1fe8bc50eef915cf33124a534f/contracts/plugins/assets/compoundv3/WrappedERC20.sol#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | flash-loan | false | false | ## Medium: Possible flashloan attack
### Description
Current version of flashloan function gives opportunity to any user to set `exchangeRate = 0`, which can be used in another protocols to steal assets:
https://github.com/CreamFi/compound-protocol/blob/23a4ae93adc70334553f5a83429a4e967c1eefaa/contracts/CCollateralCap... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Account remains connected to previous credit manager
### Description
After returning, credit account is still connected to previous credit manager:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/AccountFactory.sol#L196
### Recommendation
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 | initialization | false | false | ## Medium: Bug inside ABDKMathQuad library
### Description
The `FairSideFormula` library is using the `ABDKMathQuad` library underneath. According to the `ABDKMathQuad` README, the range of values is the following:
> The minimum strictly positive (subnormal) value is 2^−16494 ≈ 10^−4965 and has a precision of only on... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | front-running | false | false | ## Medium: Anyone can front-run the creation of a vesting account to block it
### Description
Creation of a vesting account will not work when the recipient of the vested funds [already exists](https://github.com/sherlock-audit/2024-12-seda-protocol/blob/main/seda-chain/x/vesting/keeper/msg_server.go#L56-L58). Anyone ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `depositWETHInEtherfi()` is limited to depositing only 1e18
### Description
**Severity**
**Impact:** Medium
**Likelihood:** Medium
**Description**
The YieldManager owner can deposit WETH into the `eETHliquidityPool` using the `depositWETHInEtherfi()` function:
- Currently, the function withdraws ETH f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | access-control | true | false | ## Low: `SherpaUSD::consumeTotalStakedApproval` and `SherpaUSD::consumeAccountingApproval` callable by anyone
### Description
In the rebalancing/settlement flow for cross-chain accounting, [`SherpaUSD::consumeTotalStakedApproval`](48a767f7ed2265404c59592c098b7/contracts/SherpaUSD.sol#L282-L291) and [`SherpaUSD::consum... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 spec on the modules
### Description
The spec file intends to outline the common structure for specifications within this directory. The regulation/lock module is missing spec. This documentation is segmented into developer-focused messages and end-user-facing messages. These messages may be shown to 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 | access-control | true | false | ## Low: Additional Safety Checks
### Description
## Issues and Remediation
## Issues
1. **Writable Account Checks**
The writable account checks may not be stringent in the codebase currently, relying on CPI calls to catch errors if an account is not writable when expected. These checks are performed indirectly thr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: OLD TOKENS ARE NOT RECOVERABLE WHEN THE NEW TOKEN IS SET
### Description
The privileged address can set the token. However, when the token is set to another address, the old tokens cannot be retrieved using the contract.
* Admin sets allocation via setAllocations function.
* After the time, the user claims... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `oracleSlippagePercentOrLimit` can exceed the `Constants.SLIPPAGE_LIMIT_PRECISION`
### Description
Trade might be settled with a large slippage causing a loss of assets as the `oracleSlippagePercentOrLimit` limit is not bounded and can exceed the `Constants.SLIPPAGE_LIMIT_PRECISION` threshold.
### Impact
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 | medium | other | true | false | ## Medium: DIVISION BY ZERO BLOCKS TRANSFER OF FUNDS
### Description
The `sendFundsToUser()` is a function on the LiquidityPool contract that allows users to be paid in certain tokens for the specified chainIds. This function is only callable by executors. When an executor attempts to call this function, the following... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | reentrancy | true | false | ## High: Malicious manager can reinvest tokens to drain the pool
### Description
Each token in a pool has a manager who can borrow tokens. A malicious manager could borrow the tokens, swap them for all the other tokens, and drain the pool.
The function `withdrawFromPoolBalance` allows a manager of a token in a pool ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Input Validation
### Description
**Update**
The client fixed the issue in commit `b0c7380bc15fe21d5c18b45452bcb439752531b2` and provided the following explanation:
> Checks on the value of parameters in the mint_and_lock function, transfer_and_lock, the F2A initializer, and the DAO constructor have 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 | high | token | true | false | ## High: Unsafe Arbitrary Call
### Description
## Security Risk in OpportunityAdapter
The `executeOpportunity` function in `OpportunityAdapter` poses a significant security risk due to its use of `_callTargetContract`. This function enables arbitrary calls to external contracts, which introduces considerable security... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 storage access
### Description
The `_zrKeyRes()` function emits the `ZrKeyResolve` event and calculates the `walletIndex` by unnecessarily reading from storage: `wallets[id].length - 1`. This approach is inefficient as it incurs higher gas costs.
### Recommendation
Avoid direct storage access for ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: borrow() function has state updates after a callback to msg.sender
### Description
_Submitted by jayjonah8_
In TimeswapPair.sol, the `borrow()` function has a callback to the msg.sender in the middle of the function while there are still updates to state that take place after the callback. The lock modifier... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Untraceable Contract Events
### Description
**Update**
Addressed in: `b166e5b`. While the recommended events have been added, the team introduced a new important state-changing function `updateTradeSigner()` which does not emit an event. The client provided the following explanation: _Added meaningful events_
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Distribution of Private Key Information ✓ Fixed
### Description
The snap context includes an `account` field containing the private key. This context houses sensitive data and is distributed across all request handlers. Due to this setup, redundant access to the private key is provided to several f... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Strike Price Not Validated Against Strike Percent, Leading to Exploitation Risk
### Description
The `strikePrice` and `strikePercent` are important parameters in the [Borrowing::depositTokens](https://github.com/sherlock-audit/2024-11-autonomint/blob/0d324e04d4c0ca306e1ae4d4c65f0cb9d681751b/Blockchain/Blockch... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of pubkey integrity checks
### Description
The function `UncmpPubKeyToCmpPubKey` is responsible for converting uncompressed public keys into their compressed format. While it correctly handles the conversion by extracting the `x` and `y` coordinates and determining the prefix based on the parity of `y`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 check for zero amount
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In contract DistributionManager.sol, the function setRewardsPerSecond, there is no zero amount check.
**Recommendation**:
Add the zero amount check
**Comment**: It can be zero initially to avoid distribu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Assumptions are made about Aave and Compound integrations Acknowledged
### Description
The code makes several assumptions about the Aave and Compound integrations. A malicious or malfunctioning integration (or lending pool) might violate those assumptions. This might lead to unintended behavior in the system.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
Instead of using the `&&` operator in a single require statement to check multiple conditions, I suggest using multiple require statements with 1 condition per require statement (saving 3 gas per `&`): | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: typo error in variables
### Description
**Description:** The variable `mint_token_prgoram_version` contains a typo: "prgoram" should be "program". This typo is repeated in the error message.
**Impact:** This does not affect functionality, it reduces code readability and consistency.
**Recommended Mitigation... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 of the Splitter Contract Can Dilute Existing Shareholders
### Description
The `[addPayee](https://github.com/oceanprotocol/vw-cli/blob/0397c74da60ae50db5c6414307849120b899af6e/contracts/Splitter.sol#L138)` function of the `Splitter` contract allows the owner of the contract to unilaterally mint new sh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Utilize underscores as thousands separator to help legibility with larger values
### Description
Underscores may be utilized in numerical values within Solidity contracts to aid in their readability, specifically pertaining to larger values, as a thousands separator.
### Recommendation
Use underscores as a se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: No events when approving/blocking a DEX contract.
### Description
[DexManagerFacet.sol](https://github.com/code-423n4/2022-03-lifinance/blob/main/src/Facets/DexManagerFacet.sol)
Implementing events here would increase transparency and trust.
**[H3xept (Li.Fi) commented](https://github.com/code-423n4/2022-03-... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | false | false | ## Low: Migration process allows inclusion of zero-weight and inactive validators
### Description
The `BalancerValidatorManager::initialize()` function's migration logic does not validate the status or weight of validators being migrated. This allows inactive validators with zero weight to be assigned to security modu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Possible zero balance on `Lido`
### Description
It is possible that `Lido` can have zero balance on reward distribution: https://github.com/mixbytes/lido-dot-ksm/blob/76a10efa5f223c4c613f26794802b8fb9bb188e1/contracts/Lido.sol#L588
### Recommendation
We recommend to add a check for the case when `Lido` has z... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent maturity check
### Description
Throughout the majority of the [SmartYield contract](https://github.com/BarnBridge/BarnBridge-SmartYieldBonds/blob/943df3a8fcd8dd128af3beb0c85a0480c0e95ead/contracts/SmartYield.sol), a bond is classed as mature when `currentTime >= maturesAt`. One example of this is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Use named mapping parameters to explicitly denote the purpose of keys and values
### Description
Use named mapping parameters to explicitly denote the purpose of keys and values:
```solidity
off-ramp/BaseOffRamp.sol
43: mapping(string => bool) public restrictedCountries;
off-ramp/CountryValidator.sol
26: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Missing NatSpec `@param` from function declaration
### Description
Some functions have an incomplete NatSpec: add a `@param` notation to describe the function parameters to improve the code documentation.
*There are 19 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 | initialization | true | false | ## Medium: Adapters logic contracts can be destroyed
### Description
### Impact
AdapterBase based adapters instances like BeefyAdapter, and YearnAdapter can be rendered inoperable and halt the project.
### Proof of Concept
When using upgradeable smart contracts, all interactions occur with the contract instance, 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 | initialization | true | false | ## Low: Missing check on newAsset’s decimals
### Description
The Migrator contract allows users to migrate their MPL tokens to a new version of the token; however, it lacks a check to ensure that `newAsset`'s decimals are equal to the old asset's decimals. A migration functionality is implemented in the xMPL 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 | low | token | true | false | ## Low: FAIR - Calling transferFrom should not emit the Approval event Won't Fix
### Description
The method `transferFrom()` sends some already approved tokens to some address:
**code/contracts/FAIR.vy:L427-L439**
```
@public
def transferFrom(
\_from: address,
\_to: address,
\_value: uint256
) -> bool:
""... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: orderId is not properly validated
### Description
The `orderId` is not properly validated on the *Token purchase* if it already exists in previous purchases by the buyers. Basically, the `orderId` is not validated on the purchase function. This issue arises in the emit event that the `orderId` is not checked ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: First Depositor can flash loan the protocol too artificially increase the token rewards without incurring any risk
### Description
When a user stakes SuperDCATokens , the timestamp is updated to prevent a flashloan attack however when the first user stake the timestamp update is not updated due to the fact... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unhandled Error Code from `_reduceReservesFresh()` in `VToken`
### Description
**Update**
The client has acknowledged the issue and commented: "The protocol do the "best effort" to reduce reserves automatically, but there are scenarios (i.e. when there is not enough liquidity in the pool) where it won't be pos... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LV token holders receive proportional fees, when they shouldn't
### Description
The Corc protocol claims that the LV token holders should accrue fees that the protocol generates, from the docs: *In our design we envision several mechanisms through which the Liquidity Vault will generate revenues. Some of thes... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: L12] Units of variables are not clear
### Description
###### Low
When writing code for Ethereum, there are usually at least two units at play: wei and the basic unit of a token specific to the system. Often, percentages and the count of other items are also used.
In many places of the Eco system it is not ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | solodit_api | medium | front-running | true | true |
The `removeLiquidityWithPermit()` and `removeLiquidityETHWithPermit()` functions in RouterV2 are vulnerable to front-running attacks that consume user permit signatures, causing legitimate liquidity removal transactions to revert and resulting in gas fee losses and a DOS.
### Finding description
The RouterV2 contra... | Code4rena | 5 | Audit 507 |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Premature Reward Claiming
### Description
## Vulnerability in claim_rewards
The vulnerability in `claim_rewards` arises from the fact that protocol rewards may be claimed for future epochs or even the current epoch. This is problematic because the rewards for these epochs, as well as the stake distribution, a... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.