prompt listlengths 2 2 | source stringclasses 3
values | severity stringclasses 5
values | category stringclasses 186
values | has_code bool 2
classes | has_poc bool 2
classes | reference_response stringlengths 23 5k | firm stringclasses 26
values | quality_score float64 0 5 | protocol stringclasses 398
values |
|---|---|---|---|---|---|---|---|---|---|
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | true | false | ## Medium: Missing check for equal length arrays in transferByOwnerBatch and mintByOwnerBatch
### Description
The `transferByOwnerBatch()` and `mintByOwnerBatch()` functions in the ERC1155 implementation does not check whether the lengths of the arrays submitted are equal. This can lead to unexpected results.
### Imp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 checks against accuracy
### Description
**Description**
Both PrivateVesting and Vesting contracts has no checks if initial percentage for unlock is not
greater than the desired accuracy (see _initialPercentage variable).
**Recommendation**:
Add necessary checks. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Morpho should check that the _positionsManager used has the same _E_MODE_CATEGORY_ID and _ADDRESSES_PROVIDER values used by the Morpho contract itself
### Description
Because `_E_MODE_CATEGORY_ID` and `_ADDRESSES_PROVIDER` are immutable variables and because Morpho is calling the PositionsManager in a deleg... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missing safety check in the Purger’s absorb function
### Description
The Purger has separate entry point functions for performing searcher liquidations (`liquidate`) and for triggering absorptions and redistributions (`absorb`). For the most part, both functions follow a comparable sequence of steps with one 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 | medium | overflow | true | false | ## Medium: StRSR: seizeRSR function fails to update rsrRewardsAtLastPayout variable
### Description
If a RToken is under-collateralized, the `BackingManager` can call the `StRSR.seizeRSR` function ().
This sends some amount of `rsr` held by the `StRSR` contract to the `BackingManager` which can then be traded for oth... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect Naming of Error `ClaimstatusDoesntAllowNonOwnerClaims`
### Description
The `ClaimstatusDoesntAllowNonOwnerClaims` error is incorrectly named, which may lead to confusion for developers and users of the contract. The name does not conform to standard naming conventions and does not provide a clear 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 | medium | liquidation | false | false | ## Medium: Queued stables can get stuck in `PositionManager` after a collateral is sunset
### Description
After a collateral is sunset, all the orphaned collateral tokens can be withdrawn by the guardian. If users have queued redemptions, their queued stables will get stuck in the `PositionManager` contract, as there ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: Incorrect Randomness Computation Allows Proof Forgery
### Description
The `PlonkVerifier` contract is called by the rollup to verify the validity proofs associated with blocks of transactions. The [`Verify`](https://github.com/Consensys/linea-contracts-fix/blob/dd24dc8acd7f9b58a56caaef68b8b5f4e247c59b/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 | high | other | true | false | ## High: Not all providers claim the rewards
### Description
Providers wrongly assume that the protocols will no longer incentivize users with extra rewards.
### Impact
The implementations of the providers are based on the current situation. They are not flexible enough to support the rewards in case the incentives 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 | initialization | true | false | ## Low: Incomplete Status Mapping
### Description
## isActiveIntent Overview
`isActiveIntent` aims to determine if a purchase intent is currently in the ACTIVE state. It prioritizes checking the local intents mapping (V2 storage). If not found locally, it falls back to the `v1DataStorage` to check for the intent’s ex... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No slippage protection when withdrawing and providing liquidity in rebalanceAll
### Description
When `rebalanceAll` is called, the liquidity is first withdrawn from the pools and then deposited to new positions. However, there is no slippage protection for these operations.
### Impact
The withdraw and provid... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol allows creating broken tri-crypto CPMM pools
### Description
[/contracts/pool-manager/src/manager/commands.rs# L75](https://github.com/code-423n4/2024-11-mantra-dex/blob/26714ea59dab7ecfafca9db1138d60adcf513588/contracts/pool-manager/src/manager/commands.rs# L75)
### Finding description and impact
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [FIXED] Obsolete comments in `PositionManager`
### Description
In the contract `PositionManager`, the comment for the function `allowManagePosition` suggests obsolete typing for the `_ok` parameter, which is of `bool` type.
### Recommendation
We recommend fixing the comment to match the variable type. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization due to `destroy()` method
### Description
**Severity**: Medium
**Status**: Resolved
**Description**
In Contract TokenSale.sol, the method `destroy()` self-destructs the contracts and sends all funds to the admin wallet.
Since only the admin can call this method, the security of the funds... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | false | false | ## Low: Lack of indexed parameters in events
### Description
None of the parameters of the [`PriceUpdated`](https://github.com/compound-finance/open-oracle/blob/d0a0d0301bff08457d9dfc5861080d3124d079cd/contracts/Uniswap/UniswapAnchoredView.sol#L45) and [`PriceGuarded`](https://github.com/compound-finance/open-oracle/b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Vault should have two step ownership transfer
### Description
While many of the contracts in the system inherit `ProposableOwnable.sol` for their ownership, `Vault.sol` simply tracks an `owner` in storage and has a one step `setOwner()` function.
Because the vault is (a) one of the only non-upgradeable con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Lack of upper bound for `numberOfBlocksToFinalize` in `setNumberOfBlocksToFinalize()`
### Description
If `numberOfBlocksToFinalize` is set higher than the end block number of the latest record in oracle, then `UnstakeRequestsManager._isFinalized()` returns false for each claimed request
https://github.com/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 | liquidation | true | false | ## Medium: Liquidations will revert incorrectly due to an out-of-sync leftover collateral value
### Description
Liquidations will revert incorrectly due to an out-of-sync value
### Impact
Liquidations will revert incorrectly which is an extremely time-sensitive operation, this can lead to bad debt for the protocol
#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | dos | false | false | ## Medium: [gALCX.sol] Attacker can make the contract unusable when totalSupply is 0
### Description
_Submitted by TerrierLover_
An attacker can make the contract unusable when totalSupply is 0. Specifically, `bumpExchangeRate` function does not work correctly which results in making `stake`, `unstake` and `migrateS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PRESENCE OF TO-DO COMMENTS ON THE CODE
### Description
Multiple TO-DO comments were found on the code. From the security perspective, the use of these comments does not imply a security risk. However, it could mean that the developed application did not reach an appropriate level of maturity to be in a product... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Return value of low level isn't checked, execution will resume even if the called contract throws an exception.
### Description
Report type: Smart Contract
Target: https://etherscan.io/address/0x3C28B7c7Ba1A1f55c9Ce66b263B33B204f2126eA#code
Impacts:
- Contract fails to deliver promised returns, but doesn'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 | gas | signature | true | false | ## Gas: Empty blocks should be removed or emit something
### Description
The code should be refactored such that they no longer exist, or the block should do something useful, such as emitting an event or reverting. If the contract is meant to be extended, the contract should be abstract and the function signatures be... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | true | false | ## Low: Missing zero output validation in `SecuritizeAmmNavProvider` quote and buy functions
### Description
**Description:** `SecuritizeAmmNavProvider::quoteBuyBase, quoteSellBase, executeBuyBase, executeSellBase` lack validation that output values are non-zero. Apart from issues already mentioned where rounding down... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Fill-or-Kill order crashes the nord server
### Description
A Fill-or-Kill order should not add new orders to the orderbook. It should only fill existing orders. However, the implementation of `Orderbook::plan_execute` does not take the edge-case of a Fill-or-Kill order into account, and it can set a new order... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of ownership management leads to permanent loss of administrative control
### Description
In the `Peg` contract, once the `minter` role is transferred to the `Minter` contract, there is no way to update the `setMerkleClaim` address again.
The issue stems from the fact that:
1. The `minter` role is initi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | storage | true | false | ## Medium: BeaconDS can create broken margin accounts via an undeployed Account implementation
### Description
The AccountFactory contract uses the BeaconDS contract for setting/retrieving the Account implementation; however, BeaconDS does not perform contract existence checks when the Account implementation is set, 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 | medium | other | true | false | ## Medium: AllowedCalldataEnforcer: Must Only Be Used for Static Types
### Description
Several enforcers have a *technical* name and specification, but they’re most likely used with a specific *intention* in mind. To make sure they don’t just work on a technical level but fail to enforce the intention, certain usage 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 | false | false | ## Low: Miscellaneous Gossamer Issues
### Description
This section details miscellaneous findings discovered by the testing team that do not have direct security implications:
1. **Code Simplification**: In `lib/blocktree/blocktree.go`, the function `AddBlock()` can be simplified. Instead of:
```go
number := big.... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | flash-loan | true | false | ## High: Manipulation of `livePrice` to receive `defaultIncentive` in 2 consecutive blocks
### Description
In StabilizerNode, the default behaviour when twap is below the lower peg threshold, all transfers to the amm pool are blocked. However when `usePrimedWindow = true`, it will only block transfers for `primedWindo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | liquidation | false | false | ## Medium: Supporting fee-on-transfer tokens can lead to bad debt
### Description
**Severity**
**Impact**: High, FOT tokens will incur bad debt
**Likelihood**: Low, FOT tokens are rare
**Description**
The protocol claims it can support fee-on-transfer (FOT) tokens if necessary. According to the pre-audit questionl... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | dos | false | false | ## Low: Double Verification For Owner Change
### Description
## Global Configuration and User State
The **GlobalConfig** structure represents the global configuration settings, and the **UserState** structure represents the state of a user’s interaction, containing information about the user’s stake, rewards, etc. 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 | true | false | ## Low: User can pass invalid timestamp through auth check
### Description
The `i64::abs` function, given `i64::MIN`, will crash or return `i64::MIN` depending on compilation settings. A user can observe the current likely node timestamp through a side channel (observing the Pyth feed) or even get it publicly served 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 | gas | reentrancy | true | false | ## Gas: Events may be emitted out of order due to reentrancy
### Description
Events may be emitted out of order due to reentrancy | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient validation leads to locking up prize tokens forever
### Description
The `ProxyFactory::setContest()` lacks validating the case of the `implementation` param pointing to a target address with no contract. As a result, all tokens sent to the `Proxy` address will be stuck forever.
### Impact
The `se... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | other | false | false | ## Medium: Failure to Reset `rewardRate` in `updatePeriod()`
### Description
The `updatePeriod()` function fails to reset `rewardRate` to zero when a new period starts. This allows users to claim rewards even when no new rewards have been notified, leading to an over-distribution of tokens.
---
### Impact
- **Over-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 | liquidation | false | false | ## Low: 3S-LENFT-N15 Throughout codebase: rename variables to better represent their meaning
### Description
Some variables should be renamed to better represent their use and meaning.
### Recommendation
- LoanCenter: [Lines 276 and 280](https://github.com/leNFT/contracts/blob/bb8708ab9ab319f64ef3a45aa549d95755e2afaf... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of Funds if Unsupported Chain ID Specified
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `24ecd459fa5339108c56f96c285b802da9ff1e67`. The client provided the following explanation:
> Added mapping for destChainIDs to ensure users can only indicate the specific chain to send 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 | access-control | true | false | ## Medium: Kodiak swap functions do not check if output token is approved, risking stuck assets
### Description
**Description:** In the swap implementations within `Inch_Module`, both the input token and output token are validated to ensure they are approved before executing a swap. This validation is present in [`inc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: In contract MetaRouterV2, function metaRouteV2, lines 87 & 67, there are some external calls to an arbitrary address with an arbitrary data, an malicious actor could carefully craft the input arguments to call transferFrom function from an ERC20 that was previously approved by the user.
### Description
**Reco... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: transfer() instead of call()
### Description
**Description**
EthDexManager.sol, line 210
transfer() for Eth is considered as unsafe (because of Istanbul Ethereum update) and should
be replaced with call(). Especially because of missing restrictions to non-contract accounts.
**Recommendation**:
Change tra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Changing the shared variable can affect previous votes
### Description
At the lines
https://github.com/lidofinance/aragon-apps/blob/8c46da8704d0011c42ece2896dbf4aeee069b84a/apps/voting/contracts/Voting.sol#L126-L133 in the `unsafelyChangeVoteTime()` method is a change in the common for all voting variable `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 | dos | true | false | ## Medium: Unbounded loops may cause `exercise()`s and `withdraw()`s to fail
### Description
_Submitted by IllIllI, also found by 0xNineDec, sashik_eth, shung, and xiaoming90_
### Impact
There are no bounds on the number of tokens transferred in an order, and gas requirements can change (especially since orders can... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | false | false | ## Low: [06]
### Description
In general, it is considered good practice to provide a deadline for signatures and a way to revoke them (e.g., when a private key is compromised), which is both currently not implemented. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: `yVault.earn()`: `token` and `controller` should get cached
### Description
See `@audit` tags: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A single invalid/expired/cancelled signature will prevent the creation and updation of proposals
### Description
For proposals created via `proposeBySigs()` or updated via `updateProposalBySigs()`, if the proposer includes even a single invalid/expired/cancelled signature (without performing offchain checks 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 | high | token | false | false | ## High: Locked funds are debited twice from the user during tokenization leading to fund loss
### Description
During tokenization of conviction scores, the user can optionally provide FSDs to be locked to let it continue conviction accrual. However, the amount of FSDs specified for locking are debited from the user 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 | cross-chain | false | false | ## Low: Current system lacks the ability to retry failed cross chain messages
### Description
The OmniPortal contract facilitates cross-chain messaging for various supported networks, enabling a wide range of applications. While some of these applications can tolerate non-atomic behavior (e.g., where the transaction o... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `FixedLock` Does Not Support Rewards
### Description
**Update**
The client acknowledged the issue and provided the following explanation:
> The project has decided not to provide rewards.
**File(s) affected:**`FixedLock.sol`
**Description:** Currently, the [deployed `FixedLock` contract](https://nmscan.netm... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inheriting CoreControlled means that GOVERNOR can circumvent the timelock
### Description
CoreControlled contains an `emergencyAction` function to permit them to make arbitrary calls to arbitrary addresses.
```solidity
(bool success, bytes memory returned) = target.call{value: value}(callData);
```
Paired 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 | high | liquidation | true | false | ## High: Users are paying an incorrect amount of fees when decreasing a position leading to loss of funds.
### Description
**Severity**: High
**Status**: Resolved
**Description**
When a user decreases one of its positions by calling `decreasePosition()` within the `TradeFacet.sol` smart contract, `tradeFees` are c... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | other | false | false | ## High: BBRO TOKENS ARE LOST WHEN UNSTAKING OR CLAIMING REWARDS
### Description
When a user `unstake` or `claim BRO rewards` in **staking-v1** contract, his information is totally removed from `STAKERS` item if the following conditions are true:
* Total staked amount is zero
* Pending BRO reward is zero
Under the m... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Insufficient test coverage
### Description
The project lacks unit and E2E tests. It is always a good practice to implement unit tests and E2E tests, as it helps discovering vulnerabilities in the early stages of development, and later on it helps with maintaining and updating the code base.
### 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 | medium | reentrancy | false | false | ## Medium: Potential reentrancy attack to claim rewards multiple times.
### Description
**Description**
FNDZStaking.sol: function _ claim RewardsAsFNDZ().
Function performs swap of rewards to FNDZ token with swap routes which are passed by user. Since, anyone can create a pair on Uniswap factory, a path with malicio... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `ComplianceServiceGlobalWhitelisted::newPreTransferCheck` and `preTransferCheck` allow blacklisted users to transfer tokens
### Description
**Description:** `ComplianceServiceGlobalWhitelisted::newPreTransferCheck` and `preTransferCheck` only enforce that the recipient of tokens is not blacklisted, but they... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | Code Quality | false | false | ##### Description
The last instruction of the `getPriceByExternal` function will always return the same price (30_000e18).
https://github.com/DivergenceProtocol/diver-contracts/blob/e5286f94a7ccb9d6279fae51ea66a8833672628a/src/core/Oracle.sol#L43
It leads to the incorrect settles of battles. An attacker can use this c... | MixBytes | 3 | Divergence Protocol |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Trade.index` is assigned twice
### Description
**Severity**: Informational
**Status**: Acknowledged
In Contract TradingStorage, the method storeTrade(...) assigns _trade.index the return of method firstEmptyTradeIndex(...).
Although, storeTrade() is being called by the method _registerTrade(...) in the Con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | reentrancy | true | false | ## Low: The `nonReentrant` `modifier` should occur before all other modifiers
### Description
This is a best-practice to protect against reentrancy in other modifiers
1. File: src/CitadelMinter.sol (line [173](https://github.com/code-423n4/2022-04-badger-citadel/blob/dab143a990a9c355578fbb15cd3c884614e33f42/src/Cita... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient support for fee-on-transfer tokens
### Description
The ```BufferBinaryPool.sol``` and ```BufferRouter.sol``` do not support fee-on-transfer tokens. If ```tokenX``` is a fee-on-transfer token, tokens received from users could be less than the amount specified in the transfer.
### Impact
The pro... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: TxType Could Be Using Enums
### Description
The `txType` variable in the `modifyPosition` function of the **FuturesCore** contract is defined as a `uint256` to represent transaction types (e.g., `0` for open, `1` for increase, `2` for decrease, and `3` for liquidation). Using plain integers can lead to **ambig... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused 'public' visibility.
### Description
**Severity**: Informational
**Status**: Resolved
**Description**
TestStake: emergency WithdrawMatic(), feeWithdraw(), addFreezeWallet(), setOwnersAndMinimum Signatures(), revokeVote(), proposeAndVote Upgrade(), totalAmount(), updateStakeWallet(), unStakeAll(), reS... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential uninitialized `entropySlots` reading in `getNextEntropy`, causing 0 entropy mint
### Description
The `getNextEntropy` function can be called at any time without waiting for the write entropy batches process to finish. This could lead to the function returning an uninitialized entropy value of `000... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | false | ## Medium: Arbitrary contract call within `UniV3LpVault._swap` with controllable `swapPath`
### Description
_Submitted by rayn_
[UniV3LpVault.sol#L621](https://github.com/code-423n4/2022-04-dualityfocus/blob/main/contracts/vault_and_oracles/UniV3LpVault.sol#L621)
[UniV3LpVault.sol#L379](https://github.com/code-423n4/... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | oracle | true | false | ## Gas: `++i` costs less gas than `i++`, especially when it's used in `for`-loops (`--i`/`i--` too)
### Description
Saves **5 gas per loop**
*There is 1 instance of this issue:*
https://github.com/with-backed/papr/blob/1933da2e38ff9d47c17e2749d6088bbbd40bfa68/src/libraries/OracleLibrary.sol#L48 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Refactor event to avoid emitting empty data
### Description
https://github.com/code-423n4/2023-07-basin/blob/main/src/Aquifer.sol#L58
**[publiuss (Basin) acknowledged and commented](https://github.com/code-423n4/2023-07-basin-findings/issues/272#issuecomment-1690777881):**
>G-01 No remediation
G-02 Fixed
G-0... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: PegStabilityModule quoteToUnderlyingGivenOut should round in favor of the protocol
### Description
The value returned by `quoteToUnderlyingGivenOut`:
```solidity
function quoteToUnderlyingGivenOut(uint256 amountOut) public view returns (uint256) {
return amountOut * BPS_SCALE / (BPS_SCALE - TO_UNDERLYING_FEE... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | true | false | ## Low: Missing Validation Logic
### Description
## Issues Identified and Remediation Steps
## Issues
1. In the current implementation, `init_module` functions do not verify that the deployer’s address matches the predefined address stored in `ds_protocol`. This is especially necessary since key helper functions suc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | storage | false | false | ## Low: Absence of Storage Gaps Will Lead to Storage Collision in the Upgradable Contracts
### Description
When contracts upgrade their logic, a storage collision may occur if any other storage variables are added to support the new logic. That's where storage gaps and namespaced storage come into play. When put and u... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Editor can update fee configuration even if it is unset
### Description
In the `updateFeeToken`, `updateFeeAmount`, and `updateFeeTo` functions, the fee config is not checked to ensure it has been properly set beforehand. As a result, an editor could mistakenly update the fee config for a chain ID where the fe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 compilers
### Description
To ensure stability, it's important that contracts are deployed with the same compiler version and flags used during development and testing. Locking the pragma helps to ensure that contracts do not accidentally get deployed using another pragma. For example, an outdat... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: `getTotalAmounts` and `getBasePosition` may be DOSed
### Description
`getTotalAmounts` and `getBasePosition` are `external view` functions and may be externally dependent.
They will both call `_checkHysteresis`, which does not allow token swaps in the corresponding uniswap pool within the same block. Therefo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Value In Record Name
### Description
This function returns erroneous values under two circumstances:
1. When the domain is a normal domain, the function returns an empty string for `default_domain_name`.
2. When the domain is a subdomain of `addr.reverse`, the function returns the default domain nam... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: BaseToken contract can withdrawToken() function allows role gov to be able to withdraw tokens.
### Description
**Severity** : Low
**Status**: Resolved
**Recommendations**:
The gov address should be a multisig wallet to avoid malicious gov from withdrawing tokens.
**Fixed**: Issue fixed in commit 3998b5 | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | medium | input-validation | true | true | ## Medium: Bad signature validation, malleability & lack of zero address protection in `updateValidatorSet`
### Description
The `ecrecover` built-in will return `address(0)` if it fails to recover the signer from a message digest and corresponding signature. There is no `address(0)` check in [`Signature::recoverSigner... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Public functions not called internally
### Description
Those functions should be declared as `external` instead of `public`, as they are never called internally by the contract.
Contracts are allowed to override their parents' functions and change the visibility from external to public.
*There are 13 instanc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: A malicious attacker can steal 25% of the funds of the first depositor in a strategy
### Description
Inflatability of the `TokenizedStrategy` share value, combined with the lack of an initial deposit via the `StrategyFactory`, allows a malicious attacker to steal 25% of the first depositor's funds.
### Impac... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | reentrancy | true | true | ## Medium: Attacker can perform DOS attack by locking user
### Description
An attacker can use `create_lock_for()` to create locks on behalf of other users using just 1 wei and `MAXTIME`, reaching `MAX_DELEGATES`. As a result, when the affected user attempts to create a lock, the transaction will revert with `"dstRep ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The tokenURI method does not check if the NFT has been minted and returns data for the contract that may be a fake NFT
### Description
## Lines of code
https://github.com/code-423n4/2023-04-caviar/blob/cd8a92667bcb6657f70657183769c244d04c015c/src/Factory.sol#L161
https://github.com/code-423n4/2023-04-cavia... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Expired attestations lock funds
### Description
The [`Attestation`](https://github.com/celo-org/celo-monorepo/blob/7be22605e172ca536c028e408b147aab83202e4a/packages/protocol/contracts/identity/Attestations.sol#L22) contract allows users to request an attestation that they own a specific telephone number. 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 | other | true | false | ## Medium: SLIPPAGE LIMITS ARE NOT ENFORCED ON-CHAIN
### Description
When an order is placed in the `Passage` contract, the user has to specify some slippage limits such as:
* Minimum price of the asset at the time of creating the policy.
* Maximum price of the asset at the time of creating the policy.
* Maximum widt... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: wrong out of range check
### Description
_Submitted by danb_
### Vulnerability details
require(merkleIndex
However, the trees start at index 1, therefore index 0 should fail this check, but it doesn't.
### Recommended Mitigation Steps
change to:
require(merkleIndex 0, 'merkleIndex out of range')... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Avoid duplicated code
### Description
Duplicate code makes it harder to understand the code’s intention and thus, auditing the code correctly. It also increases the risk of introducing hidden bugs when modifying one of the copies of some code and not the others.
The logic in [transfer](https://github.com/iEx... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Code quality issues: remove unused function parameter
### Description
The `royaltyInfo` function in `WERC721.sol` has an unused parameter `tokenId` which could be removed (or) commented out. Unused function parameters could be confusing and decrease code quality.
### Recommendation
Consider removing the unuse... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: WithdrawMultiple can be DOS'ed by a random user
### Description
When someone needs to withdraw from multiple `streams`, they can easily do so by calling `withdrawMultiple`. The user specifies the `amounts` to withdraw and the corresponding stream IDs. This feature is particularly useful when a user creates a b... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect Account Size Calculation
### Description
## Update Points Function Analysis
In `state::update_points`, `std::mem::size_of::` is utilized in the calculation of the new size for the staking account when reallocating. While `std::mem::size_of::` returns the actual size of the `EphemeralMultiplier` stru... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Discrepancy in Burning NFT with an Escrow Account
### Description
## NFT Management in SPL Token Accounts
An NFT is generally held in a standard SPL token account, with a balance of 1 representing the single instance of the NFT. When it is burned, its metadata and mint record are deleted, effectively removing... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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. A function to withdraw ETH has been implemented. Addressed in: `f1b72c81d9d026b834118e7994cff7172ef92958`.
**File(s) affected:**`RenovaItemBase.sol`
**Description:** A greedy contract is a contract that can receive ether which can 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 | medium | access-control | false | false | ## Medium: The pool borrower must not be permitted to participate in the auction
### Description
In `setWhitelistedBidder` there aren't any checks for `bidder` (https://github.com/clearpool-finance/permissionless-protocol/blob/f1f38c5ba83e2c3a68155042229b04678d9425ce/contracts/Auction.sol#L179).
But in [whitepaper](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 | high | other | false | false | ## High: Centralized issuance, requires trust in US government
### Description
The USD monetary base is tied to the centralized policies of the Federal Reserve team. In contrast with most other digital assets, where supply is algorithmically pre-determined, the USD token’s supply is subject to central planning and man... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: M01] Undocumented security assumptions
### Description
###### Medium
The `VDFVerifier` contract [uses a constant modulus](https://github.com/BeamNetwork/currency/blob/de81d9bad4195e03f07aedd2a6817f0cb04a8c8d/contracts/VDF/VDFVerifier.sol#L12) [`N`](https://github.com/BeamNetwork/currency/blob/de81d9bad419... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## Low: Missing `BaseGauge::distributionCap` validation leads to over-emission of rewards
### Description
The `BaseGauge` contract includes a `distributionCap` state variable that is intended to limit the total rewards distributed across all periods. However, while this cap can be set by the `FEE_ADMIN` role through `... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## Low: LidoYieldProvider.isStakingEnabled is incorrect
### Description
## Security Analysis Report
## Severity: Low Risk
### Context: LidoYieldProvider.sol#L55
**Description:**
The `LidoYieldProvider.isStakingEnabled` function returns true only if Lido is paused.
**Recommendation:**
It should return false whe... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | ## High: Repeated distributions for killed gauges can block valid distributions
### Description
**Note: Distributions for killed (standard) gauges will currently fail, so this report assumes that the killed gauge referred to is an AlgebraGauge**.
When a gauge is killed, the pending emissions for that gauge, for the 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 | low | other | false | false | ## Low: Multiply first, the divide
### Description
**Description**
There is a multiplication on the result of a division:
-_pr = (((_totalPr * amount) / poolCapital[_pool]) * IRiskPool(_pool).APR()) / totalAPRofPools
(contracts/Cohort.sol#180)
This operations order decreases the result accuracy.
**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 | other | false | false | ## Low: Outdated reference to urBEAN3CRV Convert
### Description
There are multiple instances in `LibConvert::getMaxAmountIn` and `LibConvert::getAmountOut` that reference conversion to urBEAN3CRV and BEAN:3CRV. Since the underlying liquidity has now been migrated to the BEAN:ETH Well, it is no longer possible to conv... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | true | false | ## High: DOS of pool adapters via positive allowance
### Description
All pool adapters have public `swap()` methods. A hacker can directly call `swap()` to invoke `safeIncreaseAllowance()` and then leave this allowance unspent due to `minAmountOut > minDy`:
```
SafeERC20.safeIncreaseAllowance(erc20Impl, pool, amountIn... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Risk of denial of service due to unbounded loop
### Description
When protocol fees are distributed, the system loops through the list of beneficiaries (known internally as receivers) to send them the protocol fees they are entitled to.
```solidity
function distribute(uint256 vaultId) external override virtu... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | other | true | true | ## High: Impossible to liquidate borrower when a `TroveManager` instance only has 1 active borrower
### Description
When a `TroveManager` instance only has 1 active borrower it is impossible to liquidate that borrower since `LiquidationManager::liquidateTroves` only executes code within the [while](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 | low | initialization | true | false | ## Low: Front-runable initializer
### Description
There is nothing preventing another account from calling the initializer before the contract owner. In the best case, the owner is forced to waste gas and re-deploy. In the worst case, the owner does not notice that his/her call reverts, and everyone starts using a con... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | oracle | true | false | ## Low: Externally owned accounts may be unable to submit requests during periods of high usage
### Description
Users are required to include a nonce in each request, which must correspond to a global request counter for the Oracle contract. When many requests are included in a single block, users interacting with the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: uberOwner cannot do all the things an owner can
### Description
## Handle
cmichel
## Vulnerability details
## Vulnerability Details
The `uberOwner` cannot do the same things the owner can.
They can "only" set the reference contract for the market.
The same ideas apply to `Treasury` and `Factory`'s `uberO... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.