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 | false | false | ## Medium: Excessive Curve 3Pool withdrawal
### Description
When withdrawing funds from the `ThreePoolStrategy`, the number of LP tokens to burn is determined by [retrieving the asset value of all LP tokens](https://github.com/OriginProtocol/origin-dollar/blob/bf4ff28d5944ecc277e66294fd2c702fee5cd58b/contracts/contrac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading docstrings
### Description
**Update:** *Partially fixed in [pull request #78](https://github.com/endaoment/endaoment-contracts/pull/78). Most of the docstrings have been fixed, some of them have been added or refactored.*
Several docstrings throughout the code base were found to contain misleading... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Risk of global state variable collision
### Description
The layout of the loan application’s global state could cause a loan’s `params` variable to collide with a pool variable.
A loan has two types of variables:
- `params`, which is set by the owner and contains the loan parameters
- `pools`, which contains... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralized risks allows rogue pool behavior in BathToken.
### Description
_Submitted by 0x1f8b_
Centralized risks allows rogue pool behavior.
### Proof of Concept
The `onlyPair` modifier is as detailed below:
And the `bathHouse` is the admin as you can see in the following [comment](https://github.com... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The `_fee()` function is wrongly implemented in the code
### Description
_fee() function is wrongly implemented in the code so the protocol will get fewer fees and the trader will earn more
### Impact
The protocol will earn fees less than expected
### Recommendation
The `_fee()` function needs to calculat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: GoVetLostCancel
### Description
**Severity**: Low
**Status**: Acknowledged
The cancel function should be called, not discarded, to avoid a context leak.
**Files**: rpc/backend/evm_query_client_test.go: 143, 149
**Recommendation**:
Call the cancelFn function after using the context to prevent resource lea... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add a validation to check the message sender and the token value
### Description
**Description:** The `SecuritizeBridge` contract has a potential concern in its token bridging functionality.
While the contract is designed to work with compliance-verified investors, there's a gap in the validation process:
In ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: LibMath - roundHalfUp returns unfinished result ✓ Fixed
### Description
The method `LibMathSigned.roundHalfUp(int x, int y)` returns the value `x` rounded up to the base `y`. The method suggests that the result is the rounded value while that’s not actually true. The result for a positive `x` is `x + base/2` a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: `updateAssetStrategy` does not check allocation to strategy is zero
### Description
_Resolved_
The `updateAssetStrategy` function in `ElytraConfigV1` contract allows the protocol to assign a new strategy to an asset. However, it does not verify that the asset's allocation in the current (old) strategy is zero... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee calculation is potentially incorrect
### Description
## Handle
itsmeSTYJ
## Vulnerability details
## Impact
More fees are actually charged than intended
## Mitigation Steps
[Basket.sol line 118](https://github.com/code-423n4/2021-09-defiProtocol/blob/main/contracts/contracts/Basket.sol#L118)
As... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Unused variable.
### Description
**Severity**: Low
**Status**: Resolved
**Description**
TestStake::reStake()::totalWithdrawn.
The local variable totalWithdrawn accumulates stake amounts but is not used anywhere else in the function. It may indicate incomplete contract logic in the production code and lead 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 | front-running | true | false | ## Medium: Possible sandwich attack when buying a coin
### Description
When buying a coin through `buy()` in GroupcoinFactory.sol, the buyer will attach some `msg.value` to the function in order to buy a certain number of coins. In `buy()`, there is no slippage protection, so a malicious user can buy
For example,
- ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `CooldownEnd` pushed longer when `cooldownAssets()` is called
### Description
In `StakedUSDf.sol`, when a user initiates a withdrawal while the cooldown mechanism is active, they must wait for `cooldownDuration` before accessing their assets. However, if the user calls `cooldownAssets` again before the cooldow... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: LOG MANAGEMENT - LOG INJECTION
### Description
The HTTP Server within {project} was observed to be logging HTTP requests at an early stage with the HTTP `body`. The attacker can fill the disk with logs simply by sending simple HTTP requests with large chunks of data within the request body to the Custody HTTP ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MISSING EVENTS FOR ADMIN ONLY FUNCTIONS THAT CHANGE CRITICAL PARAMETERS
### Description
Role-only privileged functions that change critical parameters should emit events. Events allow changing parameters to be captured so that off-chain tools/interfaces can record such changes with timelocks allowing users 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 | cross-chain | false | false | ## Medium: Cross-chain replay attacks are possible with deployLPToken
### Description
## Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/main/contracts/liquid-staking/LPTokenFactory.sol#L27-L48
## Vulnerability details
### Impact
Mistakes made on one chain can be re-applied to a new chain
Ther... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | front-running | false | false | ## High: BBRO REWARDS SCHEMA COULD PRODUCE UNFAIR ADVANTAGES
### Description
When users `stake`, the `compute_normal_bbro_reward` function is called to calculate the bBRO rewards accrued. Because of the calculation of `bbro_reward` value depends on the subtraction between `last_distribution_block` and `last_balance_up... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `minMarketTokens` Hardcoded To 0
### Description
**Severity** - Medium
**Status** - Acknowledged
**Description**
The value for minMarketTokens at L638 inside VaultkaVaultV2 is hardcoded to 0 , the index token for the market could change in price and alter the price of the market token, making the market ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Daily Rent Calculation Loses Partial-Day Precision
### Description
In the `SheepDog` contract, the rent calculation in the `getCurrentRent` function, defined as:
```
uint256 _calcRent = (block.timestamp - rentStart[_user]) / 86400 * TEN;
```
suffers from precision loss due to integer division, resulting in 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 | overflow | true | true | ## Low: Significant code duplication
### Description
Significant code duplication exists throughout the codebase. Duplicate code can lead to incomplete fixes or inconsistent behavior (e.g., because the code is modified in one location but not in all).
For example, the `FraxUnifiedFarmTemplate.sol` and `StakingRewardsM... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Boolean Return Assumption in transferFrom() Causes Token Compatibility Issues
### Description
The GatewaySend contract incorrectly uses raw IERC20.transferFrom() calls wrapped in require() statements, expecting a boolean return value from all ERC20 tokens. However, tokens like USDT, which have a void 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 | high | storage | false | false | ## High: Anyone can perform any arbitrary calls on behalf of `VoterProxy`
### Description
Function `deposit` in `VoterProxy` defined at https://github.com/convex-eth/platform/blob/754d9e700693246275b613e895b4044b63ce9ed5/contracts/contracts/VoterProxy.sol#L60 accepts call from anyone with any `_token` and `_gauge`, so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Removedamount will remain stuck forever in the contract if totalvesting becomes 0
### Description
The `EscrowedToken` contract allows users to claim some escrowed tokens during a certain period of time. If users wait until the end of the claiming period, they will be able to claim the full amount of escrowe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | false | false | ## Low: Consider consistently use `Ownable2Step`
### Description
Currently some contracts use just Ownable, consider have all contracts use Ownable2Step to prevent accidental ownership loss. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unclear Mechanism of Detecting and Handling Costfree Wallets
### Description
**Update**
Addressed in `86dc611b71111c038fbf0f1c30ed15f6d2fd2a17` and in provided draft documentation. The team has updated the documentation, stating that _"the cost-free wallets will only be used for internal wallets of the Bret... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `guardian` missing `PAUSER_ROLE` grant in `onUSD` deployment
### Description
**Description:** Deployment of the `onUSD` token is handled via the `onUSDFactory`, which sets up the token as an upgradeable proxy using the transparent proxy pattern (EIP-1967).
As documented in the contract comments, the `guardian... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: An attacker can block the bond distribution
### Description
An attacker can block the distribution of bonds through large transfers of Basis tokens to the bond token manager. This issue is caused by SafeMath's handling of overflows using revert.
A special user, the **controller**, is the only user authorized... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious intent creator can provide _expiryTime that is sufficient only for solver intent ex- ecution but not proving
### Description
A malicious intent creator can provide an *expiryTime*, while creating the intent in `createIntent()`, that is only sufficient for solver intent execution but not proving fulfill... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [Axiom - 03] Padded Merkle mountain range cannot be updated after updateOld
### Description
The incorrect check in AxiomV2Core.sol#L230 of `appendHistoricalPMMR` may cause `blockhashPmmr` updates to be blocked.
If `blockhashPmmr.size` is not a multiple of `BLOCK_BATCH_SIZE`, the check above will prevent the 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... | cyfrin_structured | low | logic-error | false | false | ## Low: Unused field `MarketResolution.resolved`
### Description
The `MarketResolution` struct includes a [`resolved`](http://github.com/Polkamarkets/polkamarkets-js/blob/24f1394be94d27433d2e3a7370442126e1c1e5ba/contracts/PredictionMarketV3_4.sol#L160) field, but it is not used anywhere in the current contract logic. ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol unable to get extra Rewards in OCY_Convex_C
### Description
Convex would wrap `rewardToken` for pools with IDs 151+, but the counting logic in `OCY_Convex_C.sol` makes it impossible for zivoe to forward yield.
### Impact
Users will lose extra rewards from convex pools with IDs 151+.
### Recommendat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | true | false | ## Low: Unsafe cast from uint256 to int256 could overflow
### Description
In the `moveOut()` function, the variable `received` is cast from `uint256` to `int256` directly:
```solidity
uint received = token.balanceOf(payer) - balanceBefore;
TransientNetflows.add(token, int256(uint256(received)));
```
This approach is ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: Unused Role.
### Description
**Description**
The address of fundManager is declared within the Chainport Main Bridge contract, with functions provided to set and update its value. However, no active functions or codes within the contract demonstrate any interaction by the fund manager. This suggests that 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 | oracle | false | false | ## Low: IRMSynth special-cases oracle price of 0
### Description
The IRMSynth._computeRate code treats a quoted amount of 0 as an error condition. However, the Euler oracles revert on error conditions and don't use a return value of 0 to indicate errors.
### Recommendation
A quoted amount of 0 should be treated as an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [12] `++i` costs less gas than `i++`, especially when it's used in `for`-loops (`--i`/`i--` too)
### Description
Saves **6 gas per loop**
*There are 5 instances of this issue:* | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insufficient Contract Token Balance Can Lead to Fee Collector Not Receiving Full Token Fees
### Description
**Update**
This was resolved as recommended in commit `2c06b09e5af4f3ad621af0addd00db169601b670`.
**File(s) affected:**`contracts/distributors/TokenOpsMerkleDistributor.sol`, `contracts/distributors/Tok... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: UNSAFE CAST CAN ALLOW USERS TO PERMANENTLY MINT GOLD TOKENS
### Description
In the contract `StakingSystem`, the function `claimNavyStakeRewards()` is used to claim the Gold Tokens rewards for the Navy ships staked. This function calls the `_claimGameItemStakeRewards()` to calculate the `goldOwed`:
### Recom... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rounding down in fee computation enables users to bypass fees
### Description
_Resolved_
In functions like `withdrawAsset()`, `withdrawHYPE()`, and `_beforeDeposit()`, the fee calculation is performed using integer division, which rounds down the result. As a result, when the calculated fee is very small, it ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | false | ## Medium: Redeem cap bypassed using `swap()`
### Description
A critical vulnerability exists where the `swap()` function can be used to bypass the `_checkRedeemCap()` safety mechanism, which is designed to limit large, rapid withdrawals of the base asset over short periods. This allows a user to obtain baseToken via ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing address for `SafeModerator` or `ConsoleFallbackHandler` will break existing `subAccounts`
### Description
During execution of operations on sub-accounts, the fallback handler and guard are not allowed to change:
[`TransactionValidator::_checkSubAccountSecurityConfig`](https://github.com/code-423n4/20... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Rewards may become locked in `Voter`
### Description
When a gauge is killed, its claimable rewards are transferred to the minter, and subsequent rewards are redirected there as well. However, if the gauge is later revived before `updateGauge()` is called, and an index update (via the public `notifyRewardAmount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Validation | false | false | ## Vulnerability Report
## Severity
**High Risk**
## Context
*ClearingHouse.sol#L21*
## Description
Anyone can create a SeaPort order with one of the considerations' recipients set to a ClearingHouse with a `collateralId` that is genuinely already set for auction. Once the spoofed order settles, SeaPort calls into t... | Spearbit | 5 | Astaria |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Owner can sweep tokens in certain cases
### Description
The AegisVaultCore includes a `sweepExtraTokens()` function designed to recover non-vault tokens from the contract:
When the owner attempts to rescue a vault token, the function throws a "WTK" error. However, the owner can bypass this check if a token h... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Contracts do not support tokens with fees or rebasing tokens
### Description
All these contracts assume the payment currency is a standard-abiding ERC20, where there are no fees on transfer. Given Tradable Finance is considering DAI, USDC, and maybe USDT, transfer amounts may not be exactly equal to expecte... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 is not working as a state machine
### Description
Currently it is possible for the `metadataOwner` to set the `redeemOpen` value to `true` while the `revealOpen` hasn't been set to `true` yet. There should be a sequence/flow of how the contract works - first minting, then revealing, then redeem (or re... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: The calculation of the total weight in the TokenLocker is incorrect
### Description
Users lock their tokens to gain voting weights, and the total voting weight should match the sum of all individual users' voting weights. However, the total weight is miscalculated when users withdraw their tokens with a penal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Misspelled variable name in Upgrade Authorization Logic
### Description
The misspelling of the variable `newImplementation` as `newImplmentation` in the `_authorizeUpgrade` function prevents the contract from compiling successfully. This issue impedes the upgrade mechanism of the contract, potentially loc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expired Allowance Miscalculation
### Description
## SEP-41 Standard Overview
The SEP-41 standard allows the optional specification of an expiration time for allowances. This means an account (from) may grant spending permission to another account (spender) for a limited time.
The current implementation of 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: Kodiak staking time is not adjustable
### Description
When staking tokens to Kodiak, the staker chooses how long they want to stake their tokens, and the staking multiplier is then based on this duration. When calling the `stake` function on the Kodiak adapter, the staking time is set to `lock_time_for_max_mul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Locked Funds Due to Non-Executable Proposals
### Description
**Update**
Marked as "Fixed" by the client. The Ajna team fixed the issue by validating that the destination address is not zero or the AJNA token contract. Addressed in: `79d58000231949d63c0a9e98acf7c24b611d0d2c`.
**File(s) affected:**`StandardFun... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Re-entrancy may lead to stolen ethers
### Description
The `Operations` contract allows authorized users to send ethers. A re-entrancy vulnerability may allow a malicious user to send more ethers than expected. Once a transaction is confirmed, the `checkProxy` function is invoked (`Operations.sol#L278-L284`):
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: _get() doesn't do length check
### Description
AssociatedArrayLib._get() doesn't do a length check, so if the index is out of bounds, it returns a garbage value.
### Recommendation
Revert if the index is out of bounds. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Redundant zero value check in `LSSVMPair::getBuyNFTQuote` and `LSSVMPair::getSellNFTQuote`
### Description
The `numNFTs` argument to `LSSVMPair::getBuyNFTQuote` is validated to be a non-zero value; however, in `ICurve::getBuyNFTQuote`, all current implementations revert if the `numItems` parameter is zero, 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 | high | storage | false | false | ## High: GhoListingPayload permanently modifies the storage of the governance executor contract
### Description
Executing the `GhoListingPayload` payload will change the storage of the governance executor contract, which could affect future payloads. Most of the variables in `GhoListingPayload` are either constant or ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | false | false | ## Gas: Using `private` rather than `public` for constants, saves gas
### Description
If needed, the value can be read from the verified contract source code. Saves **3406-3606 gas** in deployment gas due to the compiler not having to create non-payable getter functions for deployment calldata, not having to store 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... | cyfrin_structured | low | logic-error | false | false | ## Low: Referrer cannot be set after account creation
### Description
The referral system has a critical limitation, users can only set a referrer during their **first deposit call** when creating a new account. There is no function to set or update a referrer after account creation, which creates several problems:
1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 NATSPEC DOCUMENTATION
### Description
Solidity contracts can use a special form of comments to provide rich documentation for functions, return variables and more. This special form is named the Ethereum Natural Language Specification Format (NatSpec).
### Recommendation
**SOLVED:** This finding was 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 | low | other | true | false | ## Low: For modern and more readable code; update import usages
### Description
**Context:**
**Description:**
Solidity code is also cleaner in another way that might not be noticeable: the struct Point. We were importing it previously with global import but not using it. The Point struct `polluted the source code` 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 | other | false | false | ## Medium: Lack of docs
### Description
The purpose of the contract and the way it will work is not clear from the code.
Also the logic with accumulated `getCumulativeReward` and `totalWithdrawnReward` must be described in the code as well as the typical scenario of the contract usage.
### Recommendation
Add comprehe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: (Re-Audit) Liquidation Threshold Is Hardcoded
### Description
**Update**
Liquidation can now be activated if the leftover collateral in GLP after paying back the loan is `30%` or less than the original collateral in GLP. The `30%` number can be increased to `50%`. We recommend deploying with a maximum number `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | true | false | ## Medium: Bonding WETH discounts can drain WETH reserves of RdpxV2Core contract to zero
### Description
Depending on the reserves of rDPX, bonding discounts are given both on the rDPX and WETH collateral requirements for minting dpxETH. The bonding discounts (for both rDPX and WETH portions) are provided as rDPX whic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] Tokens can be lost in the contract if the `withdrawERC20s` are not set as `distributableERC20s`
### Description
### Lines of code
https://github.com/code-423n4/2024-02-althea-liquid-infrastructure/blob/bd6ee47162368e1999a0a5b8b17b701347cf9a7d/liquid-infrastructure/contracts/LiquidInfrastructureERC20.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 | low | other | false | false | ## Low: Improvements to Incentive Model
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: Since the contracts hold significant funds and are already live, we are avoiding making a change to the fee logic at the moment
**File(s) affected:**`LP/*.sol`
**D... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: ANYONE CAN ADD TOKENS TO ANY BUNDLE OR PERSONALBUNDLE
### Description
Users can add any whitelisted NFTs to their bundles or personal bundles with the `safeTransferFrom()` or `getChild()` functions.
However, it has been detected that no checks are in place to ensure that users can only add tokens to bundles t... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Improper Lock State Updates: Misreported Locked Token Data infects Governance Participation, rewards distribution and Harms Protocol Trust.
### Description
The `veRAACToken` contract includes functions that allow users to retrieve information about their locked tokens—namely, the locked amount, lock expiry, an... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Differences between Morpho and Compound borrow validation logic
### Description
The Morpho approach is to mimic 1:1 the logic of the underlying protocol, including all the logic and sanity checks that are done before executing a user's action. On top of the protocol's logic, Morpho has its own logic.
By 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 | other | true | false | ## Low: Where possible, a specific contract type should be used rather than address Pending
### Description
Rather than storing `address`es and then casting to the known contract type, it’s better to use the best type available so the compiler can check for type safety.
### Recommendation
This issue was partially ad... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Missing a check against address(0) inConnextPriceOracle 's constructor
### Description
## Severity: Low Risk
**Context:** ConnextPriceOracle.sol#L78-L81
**Description:** When `ConnextPriceOracle` is deployed an address `_wrapped` is passed to its constructor. The current codebase does not check whether the p... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect assessment of delegatecall result
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In contract Diamond.yul at lines 49-50 and 80-81, after performing delegate calls, the execution result is checked in an incorrect way. It reverts if `success` i.e non-zero value, returning... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Arbitrage opportunity in the PSM contract
### Description
Given two PSM contracts for two different stablecoins, users could take advantage of the difference in price between the two stablecoins to engage in arbitrage. This arbitrage opportunity exists because each PSM contract, regardless of the underlying st... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: The incorrect initialize of `specific_emissions_per_gauge` in `GaugeController::add_gauge()`
### Description
When new gauge is added to `GaugeController` the `specific_emissions_per_gauge` is initialized by `self.specific_emissions`, which is stale data.
`GaugeController` updates the `specific_emissions` v... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Fee collector address cannot be set
### Description
To claim fees, the creator or the collector can call the `claimFees` function.
```solidity
function claimFees(uint256 id) external {
address creator = creatorOf[id];
if (!canCollectFees[msg.sender] && msg.sender != creator) {
revert NoAuthorizatio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 requirement in reweight function (`ManagedIndexReweightingLogic.sol`)
### Description
_Submitted by TrungOre_
[ManagedIndexReweightingLogic.sol#L32](https://github.com/code-423n4/2022-04-phuture/blob/594459d0865fb6603ba388b53f3f01648f5bb6fb/contracts/ManagedIndexReweightingLogic.sol#L32)
[IIndexRegis... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | true | true | ## Medium: Potential funds locked due low token decimal and long stream duration
### Description
In cases where the deposit token decimal is too low (4 or less) or when the remaining stream duration is too long, checking `streamAmt > 0` may affect regular users. They could be temporarily blocked by the contract, meani... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: `RangePool::adjustToTick()` desyncs when `nextTick == tick` leading to stolen fees
### Description
`RangePool::adjustToTick()` breaks when the `nextTick` equals the current tick:
```solidity
function adjustToTick(State storage self, int24 tickSpacing, int24 tick, address[] memory tokens) internal {
int24 cu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 DOES NOT FOLLOW THE SOLIDITY STYLE GUIDE'S SUGGESTED LAYOUT ORDERING
### Description
The [style guide](https://docs.soliditylang.org/en/v0.8.16/style-guide.html#order-of-layout) says that, within a contract, the ordering should be:
1. Type declarations
2. State variables,
3. Events
4. Modifiers
5.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RegistrationFacet.changeVerificationAddress() zero check missed
### Description
`RegistrationFacet.changeVerificationAddress()` allows setting `AppStorage.numeStorage().verificationAddress` as the zero address. It is not correct for future signature checks used in `SettlementsFacet`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Zero Address Checks
### Description
## ECDSAValidator Signature Validation Issue
In `validateSignature` within `ECDSAValidator`, the signer address passed to `_validateSignature` is not checked to be non-zero. The value may become zero if the signer entry for the key `_userOp.sender` is uninitialized.
## Aff... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential money remains on the strategy
### Description
At the line https://github.com/Grandthrax/yearnV2-generic-lender-strat/blob/979ef2f0e5da39ca59a5907c37ba2064fcd6be82/contracts/Strategy.sol#L431:
`uint256 toSend = assets.mul(_newPositions[i].share).div(1000)`
Then the contract sends `toSend` amount ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | true | false | ## Medium: Refund Underflow in Swap Refund Logic Leading to Locked Funds
### Description
***
### Summary and Impact
The vulnerability lies in the refund logic within the `refundSwap` function in the `StabilityBranch.sol` contract. In this function, the code subtracts a configured base fee (`baseFeeUsd`) from the 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 | medium | cross-chain | false | false | ## Medium: Use `quoteLayerZeroFee` instead of sending all native asset balance as gas fee for `swap` call
### Description
**Likelihood:**
High, because the wrong value will be sent always
**Impact:**
Low, because the `swap` function has a gas refund mechanism
**Description**
Currently in `StargateArbitrum::stargate... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Adversary can lock tokens forever for any HoneyLocker
### Description
The `onlyOwnerOrMigratingVault` modifier on `HoneyLocker` has a vulnerable check `owner() != Ownable(msg.sender).owner()`.
The problem with this is that an adversary can create a malicious contract implementing an `owner()` function that 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... | solodit_api | medium | EIP-4524 | true | false |
[HolographERC20.sol#L539](https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC20.sol#L539)<br>
HolographERC20 is the ERC20 enforcer for Holograph. In the safeTransferFrom operation, it calls \_checkOnERC20Received:
if (_isEventRegistered(H... | Code4rena | 4 | Holograph |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple outdated dependencies
### Description
During the security assessment, an automated check was performed against the project dependencies. The command `go list -u -m -json all | go-mod-outdated -update -direct` revealed the use of multiple vulnerable or outdated dependencies.
\*\*\*Disclaimer:\*\*\* Du... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing validation of `msg.value` in the function `SecuritizeSwap::executePreApprovedTransaction()`
### Description
**Description:** `SecuritizeSwap` allows anyone to execute pre-approved transactions using the function `SecuritizeSwap::executePreApprovedTransaction`. This function validates that the protoc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Payments for coupons to Booster are irretrievable
### Description
**Details**
[Booster.sol#L92-L99](https://github.com/Buffer-Finance/Buffer-Protocol-v2_5/blob/84b6060b4447b2550de595202e8820c7f515988b/contracts/core/Booster.sol#L92-L99)
uint256 price = couponPrice - discount;
require(token.balanceOf(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 | medium | oracle | true | false | ## Medium: _validateAndGetPrice() doesn't check If Arbitrum sequencer is down in Chainlink feeds
### Description
When utilizing Chainlink in L2 chains like Arbitrum, it's important to ensure that the prices provided are not falsely perceived as fresh, even when the sequencer is down. This vulnerability could potential... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reentrance in `mint()` of `CreditUSDMinter`
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
The mint() function of CreditUSDMinter violates checks effects interactions pattern. The external call of safeTransferFrom is made on the line: 68, which is before all the state changes ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: POOL BLOCKING
### Description
One of MonoX's main objectives is to allow users for listing ERC20 tokens without the need for providing liquidity. Users can set arbitrary prices for tokens they list because the `Monoswap.sol` contract does not verify them against third-party data sources. The price of a given ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect assignment of a value to the variable
### Description
**Description**
Incorrect assignment of a value to the stargatePerBlock variable in the LPStaking contract
constructor. Among the constructor parameters is the variable _stargatePerBlock. In its
implementation, its value should be assigned 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 | other | true | false | ## Low: Use named mappings to explicitly denote the purpose of keys and values
### Description
**Description:** Use named mappings to explicitly denote the purpose of keys and values:
**Strata:** Fixed in commit [ab231d9](https://github.com/Strata-Money/contracts/commit/ab231d99e4ba6c7c82c4928515775a39dc008808).
**... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Extreme weight ratios combined with large balances can cause denial-of-service for unbalanced liquidity operations
### Description
**Description:** The weighted pool math can potentially overflow when making unbalanced liquidity adjustments to a pool tokens with very small weights and large balances.
The issu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A call with empty calldata may have unexpected behavior
### Description
The evaults are deployed by `GenericFactory.createProxy`, with either `BeaconProxy` or `MetaProxy`. Both proxies will append metadata to every delegatecall to the implementation. In the current implementation of `EVault`, the metadata incl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing swap-withdrawal validation enables accumulated token drainage
### Description
Missing validation between swap output token and target withdrawal token will cause a loss of accumulated token balances for the protocol and users as an attacker will craft malicious cross-chain transactions with mismatched... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | access-control | true | false | ## High: Missing access control on update() function in Earning.sol opens up many attack vectors
### Description
The `update()` function in `Earning.sol` is callable by anyone as it is lacking the `onlyAdmin` modifier. This allows pool owners to directly send in `wsteth` to the `Earning.sol` contract and call the `upd... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Funds Could Be Stolen While the Bridge or Sonic Chain Are Dead
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `5dcf7016b6644d5e8f48eb32201fd6ba4e058a80`. The client provided the following explanation:
> Admin access replaced by updating the ExitAdministrator by validators update.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sandwiching yield distributions allows users to profit from redemption
### Description
The `StakedYuzuUSD` allows users to deposit and initiate redeem requests immediately after the reward distribution. When rewards are distributed to the `StakedYuzuUSD` contract, the `totalAssets()` increases while `totalS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The Contract Owner Will Always Be an Externally Owned Account (EOA)
### Description
**Description:**
During the code review, It has been noticed that owner is directly set to msg.sender in the constructor. From that reason, an owner always will be EOA.
**Recommendations:**
Consider using Ownable2Step contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Contesting A Correct Proof May Become Economical Viable
### Description
At times of high gas prices on the Ethereum Mainnet, it may be profitable for a proposer or prover to incorrectly contest a block proof in order to not have to verify any blocks in a following call. When calling `proposeBlock()` or `proveB... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Mixed testing and production code
### Description
Many contracts, like [`FeePayer`](https://github.com/UMAprotocol/protocol/blob/1631ef7ad29aaeba756ef3b9a01c667e1343df85/packages/core/contracts/financial-templates/common/FeePayer.sol#L23), inherit from the [`Testable` contract](https://github.com/UMAprotocol/p... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.