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... | solodit_api | medium | Business Logic | false | false | ## Severity: Medium Risk
## Original Context
(This area of the code has changed significantly since the initial audit, so maintaining the link to the original code base)
MarketsManagerForAave.sol#L448
## Context
- aave-v2/InterestRatesManager.sol#L182
- compound/InterestRatesManager.sol#L164
## Description
U... | Spearbit | 5 | Morpho |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 error risk in borrow() function in Lender.sol
### Description
Rounding error risk in borrow() function in Lender.sol.
Affected line:
uint256 fees = (debt * borrowerFee) / 10000;
Since borrowerFee is currently set to 50, if the value of debt is <= 199, the computation will result in a rounding error... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [03] Zero-liquidity position creation allows for storage exhaustion attack
### Description
A malicious user could intentionally exhaust storage by creating unlimited positions without requiring any initial liquidity. This issue exists in the position minting functionality where users are allowed to create new ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Optimize VaultGroup and Fee Structs Using Bitwise Operations
### Description
The current `VaultGroup` and `Fee` structs in the `VaultControllerStrategy` contract are defined as:
```solidity
struct VaultGroup {
uint64 withdrawalIndex;
uint128 totalDepositRoom;
}
struct Fee {
address receiver;
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Scope 1 - ProtocolUpgradeHandler Design Flaws
### Description
The `ProtocolUpgradeHandler` is the state machine of processing the Security Council's and Guardian's say on a protocol upgrade proposal. The Council can approve an upgrade and the Guardians can approve as well as veto an upgrade. These calls are... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fee Accumulation due to Lack of FPT Staking
### Description
## FPT Staking Contract Issue
The issue in the FPT Staking Contract concerns the handling of fees (in USDF and other asset fees) when no FPT (Fluid Protocol Token) tokens are staked. The functions `increase_f_usdf` and `increase_f_asset` are responsi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: `InvariantLib` uses current position for margin check allowing to withdraw collateral while the position decrease is only pending and can cause unexpected immediate user liquidation.
### Description
In normal `update`, the `InvariantLib.validate` uses the `currentPosition` for margin check:
```solidity
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 | medium | initialization | true | false | ## Medium: EthAssetManager and ThreePoolAssetManager don't control Meta tokens decimals
### Description
_Submitted by hyh_
Both contracts treat meta assets as if they have fixed decimals of 18. Minting logic breaks when it's not the case. However, meta tokens decimals aren't controlled.
If actual meta assets have 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 | initialization | false | false | ## Medium: Malicious liquidity provider can rug-pull users
### Description
**Severity**
**Impact:** High
**Likelihood:** Low
**Description**
There are a few ways for malicious liquidity to rug-pull users:
#### Calling `removeLiquidity` without previously calling `addLiquidity`
A token owner can call `enableTradi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Check For Admin Address
### Description
## AccessProtected Safety Review
In the constructor of `AccessProtected`, `tx.origin` is set as the admin. If the intention of utilizing `tx.origin` is to restrict smart contracts from calling and only allow externally owned accounts to call, it is advisable to use `msg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Initialization of Ownable in BitcoinRelayLogic Contract
### Description
The `BitcoinRelayLogic` contract, which implements `Ownable2StepUpgradeable` among other functionalities, incorrectly uses `OwnableUpgradeable.__Ownable_init()` for initialization instead of the expected `Ownable2StepUpgradeab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | signature | false | false | ## High: Replay attack and revocation inversion on confidentialApprove
### Description
The `confidentialApprove` method is used to allow third parties to spend notes on the note owner’s behalf. In the `confidentialApprove` method, there is a call to `validateSignature`, which verifies that the signature giving (or revo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Collection referrers will not receive their share of the minting fee
### Description
Collection referrers will not receive their share of the minting fee, leading to a loss of assets for the collection referrers.
### Impact
Following are some of the negative impacts that could lead to a loss of assets:
1. C... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: `ConstantProductPool` & `HybridPool`: Adding and removing unbalanced liquidity yields slightly more tokens than swap
### Description
_Submitted by GreyArt, also found by broccoli_
##### Impact
A mint fee is applied whenever unbalanced liquidity is added, because it is akin to swapping the excess token amou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: MISSING ZERO ADDRESS CHECKS
### Description
It has been detected that some functions, such as `exportNft()`, and `exportToken()` of the smart contracts, are missing address validation. Every input address should be checked not to be zero, especially the ones that could lead to rendering the contract unusable, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper Sale Parameter Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `f36395027ea6a0a443e0f5945cb74f0fad9243ed`. The client provided the following explanation:
> Parameter validation was added to the initialize_sale and update_sale instructions. Unit tests were added... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect inclusion of removed nodes in `_requireMinSecondaryAssetClasses` during `forceUpdateNodes`
### Description
**Description:** The function `_requireMinSecondaryAssetClasses` is utilized within the `forceUpdateNodes` process. During execution, if a node is removed in the first iteration, the subseque... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: The keygen binary saves keyfiles with overly broad permissions
### Description
The `keygen` binary built by the `util/keyfile` project creates private key files with `0666` permissions. Depending on the configuration of Linux `umask`, this may allow an attacker to read the private key file if he gets filesyste... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: Withdrawing to other chain when exercising options won’t work as expected, leading to DoS
### Description
Withdrawing to another chain when exercising options will always fail because the implemented functionality does not bridge the tokens exercised in the option, and tries to perform a regular cross-chain... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | rounding | false | false | ## Medium: MarketUtils.getFundingAmountPerSizeDelta() has a rounding logical error.
### Description
``MarketUtils.getFundingAmountPerSizeDelta()`` has a rounding logical error. The main problem is the divisor always use a roundupDivision regardless of the input ``roundUp`` rounding mode. Actually the correct use shoul... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Vault.withdraw` sometimes burns too many shares
### Description
_Submitted by cmichel, also found by 0xsanson and 0xRajeev_
The `Vault.withdraw` function attempts to withdraw funds from the controller if there are not enough in the vault already.
In the case the controller could not withdraw enough, i.e.,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 if keyword
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In the substractFundingRates() function of the Formula contract, currentFundingRate._direction is checked with the _entryFundingRate._direction.
However, in the else case, no need to check if currentFundi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `> 0` is less efficient than `!= 0` for unsigned integers (with proof)
### Description
`!= 0` costs less gas compared to `> 0` for unsigned integers in `require` statements with the optimizer enabled (6 gas)
Proof: While it may seem that `> 0` is cheaper than `!=`, this is only true without the optimizer enab... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: users might pay enormous amounts of gas
### Description
_Submitted by danb_
when a user mints new liquidity, it the pair doesn't already exist, it deploys it.
deploying a new contract on ethereum is super expensive, especially when it's such a large contract like TimeswapPair, it can cost thousands of do... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Double-Counted Fees in Partial Bid Claims
### Description
This issue has been identified within the `_claimOrder` function of the `ProxyLOB` contract.
When placing a bid (`isAsk = false`), the contract transfers `quantity * price + passivePayoutCommission` into the LOB and records the same total in `lobRese... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unlocked Pragma
### Description
The `EthereumBTC.sol` file currently uses floating pragma version `^0.8.20`, which means that the code can be compiled by any compiler version that is greater than or equal to `0.8.20`, and less than `0.9.0`.
It is recommended that contracts should be deployed with the same 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 | low | initialization | true | false | ## Low: Unhandled Write Value
### Description
## Handling Return Values in Write Calls
The return value of the write call is not properly handled in multiple places. This might cause unexpected truncation of the input string. For example, see `init_pool_handler` [0].
## Code Example
### staking/src/instructions/ini... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delayed orders won't use correct prices
### Description
GMX uses two oracle types - an off-chain oracle archive network for historical prices of tokens whose value fluctuates a lot, and a set of price feed oracles for tokens that don't change value much. The oracle archive network allows people to submit or... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | false | false | ## Low: Inconsistent Starting and Ending Epoch Timepoints
### Description
In the [`TimeBasedCollateralPool`](https://github.com/AmperaFoundation/sol-contracts/blob/c6e940c12044c8994f778c978e34582449229df8/contracts/TimeBasedCollateralPool.sol) contract, the [`getCurrentEpoch`](https://github.com/AmperaFoundation/sol-c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | cross-chain | true | false | ## Medium: It is possible that operator loses sent ETH after calling `HolographOperator` contract's `executeJob` function
### Description
ETH can be sent when calling the `HolographOperator` contract's `executeJob` function, which can execute the following code.
Executing the `try ... {...} catch {...}` code mention... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Redundant Array Bounds Checks
### Description
## Observations on Explicit Bounds Checks in Array Accesses
We have observed several instances where explicit bounds checks are used for array accesses.
## File: contracts/FCNProduct.sol
### Solidity Function: `updateOptionBarrier`
However, such checks are red... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No check if Arbitrum L2 sequencer is down in Chainlink feeds
### Description
Using Chainlink in L2 chains such as Arbitrum requires to check if the sequencer is down to avoid prices from looking like they are fresh although they are not.
The bug could be leveraged by malicious actors to take advantage of 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 | access-control | true | false | ## Low: DexWrapper Contract Allows Setting Slippage to Zero
### Description
The `DexWrapper` contract provides functionality to swap tokens. A crucial parameter in this process is `slippage`, which defines the maximum price movement a user is willing to tolerate for their swap. Currently, the contract includes a `setS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Delegation not revoked on withdrawal allows reward and voting power inflation post-maturity
### Description
### Finding description and impact
Stakers delegate their voting power using the `stake()` function, which internally calls `_delegate(receiver, delegatee)` and records the delegatee via checkpointin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Fulfillers exploit `EIP-150` to bypass `zkPayCallback`
### Description
`fulfillQuery` calls the callback function of `ZKPayClient` near the end of its execution, which is done within a try-catch block:
```solidity
try IZKPayClient(queryRequest.callbackClientContractAddress).zkPayCallback(
queryHash, 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 | low | rounding | true | false | ## Low: Precision loss/Rounding to Zero in `_distribute()`
### Description
The identified vulnerability is associated with the `_distribute` function in
`Distributor.sol`. In scenarios where the total token amount is low or low values are used for percentages, the function may encounter a precision issue.
This arise... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract UnifarmRewardRegistryUpgradeable, function setRewardCap, for a better gas optimization, you can save the value of rewardTokenAddresses.length in memory and iterate over the variable that is safe in memory, it will be cheaper to read from memory every time then to read from storage.
### 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... | skyward_49k | low | initialization | false | false | ## Low: Redundant Function Definition
### Description
The issue is identified within the [\_getClaimableBondShares](https://github.com/lidofinance/community-staking-module/blob/a898d045b63303294752d1a60ad9dfe8d8ba69ca/src/abstract/CSBondCore.sol#L275-L279) function of the `CSBondCore` contract. This function is redund... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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‑14] Inconsistent method of specifying a floating pragma
### Description
Some files use `>=`, some use `^`. The instances below are examples of the method that has the fewest instances for a specific version. Note that using `>=` without also specifying `<=` will lead to failures to compile, or external proj... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 sanity checks
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In the PToken contract, there is missing sanity checks for newProtocolSeizeShareMantissa in the _setProtocolSeizeShareMantissa() function. This could lead to newProtocolSeizeShareMantissa being set to any arbitrary ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expanding reward token list right after linked YT expiration freezes the accumulated rewards
### Description
In some cases, it is allowed to expand the SY reward tokens list, and this can happen after `_setPostExpiryData()` has fixed the expiry state in one of the YTs linked to that SY.
For example, if a ne... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `++i` costs less gas compared to `i++` or `i += 1`
### Description
`++i` costs less gas compared to `i++` or `i += 1` for unsigned integer, as pre-increment is cheaper (about 5 gas per iteration). This statement is true even with the optimizer enabled.
`i++` increments `i` and returns the initial value of `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... | solodit_api | medium | Chain Reorganization Attack | false | false | ## Lines of code
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/QuestFactory.sol#L75
https://github.com/rabbitholegg/quest-protocol/blob/8c4c1f71221570b14a0479c216583342bd652d8d/contracts/QuestFactory.sol#L108
## Vulnerability details
## Description
The `crea... | Code4rena | 5 | RabbitHole |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unrestricted `diamondCut` allows unauthorized facet modifications
### Description
## Severity
**Impact:** High
**Likelihood:** High
## Description
## Description
The `SimplexDiamond` contract includes `DiamondCutFacet.diamondCut.selector` in its selectors. This function allows adding, removing, or modify... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 reason to override
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In contract AssetVault the hooks beforeWithdraw and afterWithdraw are overridden in the contract, however there is no reason to override the functions as there is no changes in them..
**Recommendation**: ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MISTAKENLY SENT ERC20 TOKENS CAN NOT RESCUED IN THE CONTRACTS
### Description
The contracts are missing functions to sweep/rescue accidental ERC-20 transfers. Accidentally, sent ERC-20 tokens will be locked in the contracts.
### Recommendation
**ACKNOWLEDGED**: The `Aura Finance team` acknowledged this findin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Wrong loop area in `removeLiquidity`.
### Description
The `removeLiquidity` function uses <= operator instead of <. Not much serious impact due to the function exiting the loop immediately t equals 32 but an extra iteration is attempted. Consider using the < operator instead. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | logic | true | false | ## Medium: `updateIRMParams` does not call `applyInterestForToken` before updating `irmParams` which leads to incorrect calculation of interest rate for subsequent trades.
### Description
### Impact
Incorrect interest rate value will be calculated for future trades as the update to `irmParams` does not update the `la... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Score in `AgentDAO` is not an accurate measure and can be artificially inflated by spamming proposals
### Description
### Finding description and impact
In `AgentDAO._castVote()`, a user’s score is updated anytime they vote on a proposal. This is a problem because submitting a proposal is permissionless, a... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | true | false | ## High: Interruptions and Manipulations In RandomnessCommit
### Description
## Randomness Commitment Vulnerabilities and Remediation
The `RandomnessCommit` instruction may be called by anyone and executed multiple times. This opens up the possibility for a malicious user to disrupt the process for a genuine user. Wh... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can approve any token
### Description
User can approve any token:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/credit/CreditManager.sol#L761
### Recommendation
We recommend adding a check that user can only approve allowable 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... | solodit_api | high | reentrancy | true | false | ## High Risk Report
**Severity:** High Risk
**Context:** `Divider.sol#L157-180`, `Divider.sol#L511-547`
## Situation
A reward and stake can be sent from `settleSeries()` or `backfillScale()`. However, this should only be done once. Luckily, `settleSeries()` can’t be run twice as this is prevented by `_canBeSettle... | Spearbit | 5 | Sense |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Fee On Transfer | true | false | ## Token Transfer Fee Risk Analysis
## Severity
**Medium Risk**
## Context
`AeraVaultV1.sol#L456-L514`
## Description
Some tokens have a fee on transfer, for example USDT. Usually, such a fee is not enabled but could be re-enabled at any time. With this fee enabled:
- The `withdrawFromPool()` function would receive... | Spearbit | 5 | Gauntlet |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | logic-error | true | false | ## Low: Code duplication in function overrides that only add modifiers
### Description
The `SecuritizeRWASegWrap` contract overrides four functions from its parent `RWASegWrap` contract (`deposit`, `redeem`, `redeemById`, and `depositById`) with identical implementation logic, only adding the `receiverIsSender` modifi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Overflow Risk During Vesting Math with Extremely Large Amount (Owner/Merkle-Builder Data Issue)
### Description
The `getVestedAmount()` multiplies `totalGrantAmount` by BPS and by elapsed values. With Solidity 0.8 checked math, extreme `amount` values (from the Merkle leaf) can overflow and revert. That bri... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | integer-overflow | true | false | ## Low: Use != 0 instead of > 0 for unsigned integer comparison | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: VaultAdapter::multiplier not initialized can lead first borrows to have `utilizationRate` = 0
### Description
InterestRate calculted in `DebtToken::_nextInterestRate()` is composed of 2 value: rate (marketRate or benchmarkRate) plus an `utilizationRate`. For an issue in `VaultAdapter` the utilizationRa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Funding.getRemainingFundable()`: L236 should be unchecked due to L235
### Description
See `@audit` tag: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Attacker can spam Plots to victim to cause DOS on Plot transfer
### Description
To remove certain Plot index from account it loops through array `plotIndexes`:
```solidity
function removePlotIndexFromAccount(
address account,
uint256 fieldId,
uint256 plotIndex
) internal {
AppStorage storage s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Re-minting Same `tokenId` After Burn Is Currently Possible
### Description
The `burn()` marks `stakes[tokenId].burned = true` and sets `burnedAt`. ERC-721 `_burn()` sets owner to `address(0)`, and standard `_mint()` allows minting tokenId again. That means the NFT collection may later re-mint the same `tokenId... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: First depositor can massively inflate their share count by recycling deposits and withdrawals
### Description
**Description:** The first depositor can massively inflate their share count by recycling deposits and withdrawals.
**Impact:** The first depositor will have a massively inflated share count. However ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `feeWallet` Cannot Be Updated
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation: Since this is an operational measure we are considering avoiding a fix for this currently
**File(s) affected:**`Boba_GasPriceOracle.sol`
**Description:** The `Boba_G... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | other | true | false | ## Low: Cheaper no to cache `calldata` array length
### Description
It is [cheaper not to cache `calldata` array length](https://github.com/devdacian/solidity-gas-optimization?tab=readme-ov-file#6-dont-cache-calldata-length-effective-009-cheaper):
* `WorldLibertyFinancialRegistry::agentBulkInsertLegacyUsers`
```solidi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Known vulnerabilities exist in currently used @openzeppelin/contracts version
### Description
As some [known vulnerabilities](https://snyk.io/test/npm/@openzeppelin/contracts/4.3.2) exist in the current @openzeppelin/contracts version, consider updating package.json with at least @openzeppelin/contracts@4.4.2 ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: This protocol doesn’t support all fee on transfer tokens
### Description
## Handle
0x0x0x
## Vulnerability details
Some fee on transfer tokens, do not reduce the fee directly from the transferred amount, but subtracts it from remaining balance of sender. Some tokens prefer this approach, to make the amo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TRST-M-6 User will lose all Console functionality when upgrading their wallet and an upgrade target has not been set up
### Description
**Description:**
Console supports upgrading of the manager wallet using the `upgradeWalletType()` function.
Note that upgradablePaths are set by governance. There is a l... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Confusing examples
### Description
The [`upgradeable-contracts` example](https://github.com/paritytech/ink/tree/c8aa3ee41112b327d4f3cb3959f188945c8ccace/examples/upgradeable-contracts) shows two ways of implementing upgradeability:
* The first one, implemented in the [`set-code-hash`](https://github.com/pari... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Project Upgrade and Stop Scenario should be added
### Description
At the start of the project, the system may need to be stopped or upgraded. I suggest you have a script beforehand and add it to the documentation. This can also be called an "EMERGENCY STOP (CIRCUIT BREAKER) PATTERN".
This can be done by addin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Handling of Guardian Votes in TrustedGuardiansPlugin
### Description
The TrustedGuardiansPlugin does not correctly handle cases where a guardian who has already voted is later removed from the guardian set.
Currently, the plugin simply checks if the number of votes (guardiansVoted.length) meets 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: Possibility of Rebalacing execution fee being unused and stuck in the contract
### Description
**Severity**: Low
**Status**: Resolved
**Description**
In the GlmRebalnce contract, the method `_keeperTokenPurchases(...)` checks if sufficient `msg.value` for the execution of all token purchases using the follo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential inefficiency due to duplicate token addresses in harvestBribes Function
### Description
The `harvestBribes` function does not check for duplicate token addresses in the `_tokens` array. While this does not affect the correctness of the function, it can lead to increased gas usage due to redundant calcu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code Optimisation
### Description
## DN404::_transfer_min
The function `DN404::_transfer_min` is used to find the minimum value among three values: `t.fromOwnedLength`, `t.numNFTBurns`, and `t.numNFTMints`. However, in this specific context, `t.fromOwnedLength` is always greater than or equal to `t.numNFTBurn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## High: Sender transferring GiantMevAndFeesPool tokens can afterward experience pool DOS and orphaning of future rewards
### Description
## Lines of code
https://github.com/code-423n4/2022-11-stakehouse/blob/4b6828e9c807f2f7c569e6d721ca1289f7cf7112/contracts/liquid-staking/GiantMevAndFeesPool.sol#L170-L173
## Vuln... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Secondary debt dust balances are not truncated
### Description
Dust balances in primary debt are truncated toward zero. However, this truncation was not performed against secondary debts.
### Impact
The inconsistency in handling dust balances in primary and secondary debt could potentially lead to discrepa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | dos | false | false | ## High: | DoS Dividends
### Description
**Description**
Due to the unbounded `for` loop in `distributeDividends`, there is a risk of a DoS attack. A malicious party can keep generating new addresses and minting minimal amounts of the BridgesPair token to make `distributeDividends` exceed the block gas limit, stoppin... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] Function in `BytesLib` could revert with no error message
### Description
All functions in `BytesLib` have some require check for overflow. However, these checks will only work with Solidity version `= _length, "slice_overflow");
require(_start + _length >= _start, "slice_overflow"); // @audit These cal... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: Signature missing nonce & expiration deadline
### Description
The signature used in `ProxyFactory::deployProxyAndDistributeBySignature()` is missing a nonce & expiration deadline.
### Impact
This doesn't appear to currently be directly exploitable as `ProxyFactory::_distribute()` can't be called using the sig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: "Weight" and `poolWeight` serves different meanings throughout the code/documentation
### Description
**Description:** The concept weight/variable `poolWeight` is used in multiple places throughout the contract, serving three distinct purposes, which may lead to confusion:
1. In [`PredictionMarketV3_4::addLiq... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Permission escalation by adding the same permission twice
### Description
The function `combinePermissions` adds permission to available permissions.
If the same permission is added twice, then this will result in a new and different permission.
For example, adding `_PERMISSION_STATICCALL` twice results in ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Fee validation calculated but not enforced allows transaction failure
### Description
The code calculates whether users have sufficient balance for transaction fees but doesn't actually prevent submission when fees are insufficient. The validation logic exists but is commented out.
**Recommendation**
Consid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Uninformative implementation of maxDeposit and maxMint from EIP-4626
### Description
The GVault implementation of EIP-4626 is uninformative for `maxDeposit` and `maxMint`, as they return only fixed, extreme values. EIP-4626 is a standard to implement tokenized vaults. In particular, the following is specified:... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Liquidations can be frontrunned to avoid by paying as little as 1 share.
### Description
The protocol integrates with Morpho which internally handeles the debt repayment in a way that when Liquidtions will be frontrunned via repayment with just 1 share it can easily be avoided.
https://github.com/morpho-org... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Batch Commitments Can Make Use of Arbitrary Library
### Description
In the [`commitBatch` function](https://github.com/scroll-tech/scroll/blob/8bd4277c13ec17670963848a24e4e1b135504f3f/contracts/src/L1/rollup/ScrollChain.sol#L267) of the `ScrollChain` contract, the [`_version`](https://github.com/scroll-tech... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TypeScript compiler errors during deployment
### Description
TypeScript throws an error while trying to compile scripts during the deployment process.
```
scripts/helpers/deploy-exchange.ts:29:5 - error TS7053: Element implicitly has an 'any' type
because expression of type 'string' can't be used to index typ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Contract and file name not matching
### Description
The `Signature.sol` file contains the `SignatureEIP712` smart contract - use the same name for both, for example only `Signature`. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple contracts are missing inheritances
### Description
Multiple contracts are the implementation of their interfaces, but do not inherit from them. This behavior is error-prone and might lead the implementation to not follow the interface if the code is updated. The contracts missing the inheritance are:
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | true | false | ## High: Missing Account Seed Verification
### Description
## Vulnerability Report on OpenPositionShort Structure
In the current implementation of the OpenPositionShort structure within `open_position_short`, the `lp_staking` account seed is the static byte string `b"staking"` referencing the `staked_token_mint` fiel... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | token | true | false | ## Low: Cache result of identical external calls when the result can't change
### Description
Cache result of identical external calls when the result can't change.
* `contracts/service/ServiceConsumer.sol`
```solidity
// in the modifiers, cache `trustManager.getRole(msg.sender)` and
// use the cached value inside 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 | rounding | true | false | ## Low: Rounding directions are not applied correctly in _calcPM (part 1)
### Description
## Security Issue Report
## Severity
**Low Risk**
## Context
`MarginViewUtils.sol#L64-L87`
## Description/Recommendation
In the code snippet below, it is highlighted which rounding directions need to be applied versus the curr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 need to initialise variable to their default values
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
In TradingVaultV2, these variables periodFinish & rewardRate is initialized to 0 which is not necessary as storage variable are by default initialized to their default valu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of slippage protection in `unstake` function in `DIAExternalStaking`
### Description
The `unstake()` function in `DIAExternalStaking` calculates withdrawal amounts based on the current pool state at execution time, without providing slippage protection for users. The calculation `currentAmountOfPool = (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 | medium | front-running | true | false | ## Medium: `regerralFeePool` is vulnerable to MEV searcher
### Description
_Submitted by jonah1005, also found by cmichel_
#### Impact
`claimRewardAsMochi` in the `ReferralFeePoolV0` ignores slippage. This is not a desirable design. There are a lot of MEV searchers in the current network. Swapping assets with no slip... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Medium: Uncompilable `DeployUsdxlHyperTestnet` script
### Description
The `DeployUsdxlHyperTestnet` script attempts to use `usdxlConfig` for deployment configuration but fails to declare it as a state variable. This causes compilation failures and renders the deployment script unusable.
```solidity
//File: script/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Greedy Contract
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `c801e86199e25821f6f5939cbc521ca44f12f16e`.
**File(s) affected:**`BondManager.sol`, `PheasantNetworkBridgeChild`
**Description:** A greedy contract is a contract that can receive ether that can never be redeemed. The co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Margin call limit bypass
### Description
**Description:** The limit check for margin calls can be bypassed, allowing the total number of margin calls to exceed `MAX_MARGIN_CALL_TRADES`.
The issue occurs because after the first `check_{short,long}_margin_call`, the trade counter is reset in next `check_{short,... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DURATION IS NOT VALIDATED IN STAKING CONTRACT
### Description
The `instantiate` and `update_staking_duration` functions in **krp-token-contracts/staking** contract do not validate that the `duration` is greater than 0. If it is mistakenly set to **0**, the operation of notifying reward amount will always panic... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [16] Admin could intentionally/unintentionally front-run borrower with the fee increasing
### Description
### Proof of Concept
Protocol allows the borrower to deploy a new market and pay a fee to the protocol if it exists. This fee could be changed at any moment by admin.
Admin can accidentally/intentionally... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Withdrawals Can Revert
### Description
**Update**
Marked as "Acknowledged" by the client. The client provided the following explanation:
> It is a result of the design decision.
**File(s) affected:**`EigenLSTRestaking.sol`, `NativeLendingETHStrategy.sol`, `StoneVault.sol`, `StrategyController.sol`, `Symbioti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Excessive Arguments Reduce Readability and Increase Complexity
### Description
This issue has been identified within functions such as `setConfig` and `getConfig`, where more than five separate parameters are passed rather than using a single structured parameter or return object. Handling numerous individual ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | high | token | true | true | ## High: More value can be extracted by liquidations than expected due to incorrect transfer calculations when the violator does not own the total ERC-6909 supply for each `tokenId` enabled as collateral
### Description
Given that the `UniswapV3Wrapper` and `UniswapV4Wrapper` contracts are not typical EVK vault collat... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.