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... | cyfrin_structured | low | timing | false | false | ## Low: Cooldown Deactivation Instantly Unlocks Pending Cooldown Funds
### Description
The documentation does not clearly specify the behavior of funds that are already in the cooldown state when `cooldownDuration` is set to 0. In the current implementation, disabling cooldown allows users with pending cooldown balanc... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: AccountManager: Liquidations not possible when transfer fails
### Description
When the transfer of one asset fails, liquidations become impossible.
### Impact
See above, an account cannot be liquidated. In certain conditions, this might even be triggerable by the user. For instance, a user could try to get... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use bytes32 instead of string
### Description
Use bytes32 instead of string to save gas whenever possible. String is a dynamic data structure and therefore is more gas consuming then bytes32. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: No storage gap in `RoleBasedAccessControl` contract
### Description
_Resolved_
The `RoleBasedAccessControl` contract, which inherits from `Initializable`, `ERC1155Upgradeable`, and `UUPSUpgradeable`, defines state variables such as `pendingSuperAdmin` and `roleTransferExpiry`.
**However, it does not impleme... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: The renewal grace period gives users insurance for no premium
### Description
When a protection position is renewed, the contract checks that the expired timestamp is within the grace period of the current timestamp. The issue is that when it is renewed, it starts insurance at block.timestamp rather than 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: Unnecessary checks
### Description
There are several unnecessary checks.
https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contracts/claiming/FantiumClaimingV1.sol#L408-L412
https://github.com/FantiumAG/smart-contracts/blob/a2d126453c1105028f12277b8f342d2cdbf01a77/contr... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | overflow | false | false | ## Medium: Missing signextend when dealing with non-full word signed integers
### Description
The AssemblyLib is using non-full word signed integers operations. If the signed data in the stack has not been sign-extended, the two’s complement arithmetic will not work properly, most probably reverting. The Solidity comp... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Pre-compute and cache `domainSeparator` in `TransactionHelper.sol`
### Description
**File:** `TransactionHelper.sol`
[File: code/system-contracts/contracts/libraries/TransactionHelper.sol](https://github.com/code-423n4/2024-03-zksync/blob/main/code/system-contracts/contracts/libraries/TransactionHelper.sol#L1... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DoS of popular tokens
### Description
Well-known tokens can be maliciously deposited to newly created vaults as a reward, so when vault managers decide to set rewards, they will need to pay a lot of gas to skip empty epochs: https://github.com/euler-xyz/reward-streams/blob/95783173eff4668bb177eeefd9e8a9dc1a446... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: RISK OF OUTDATED PRICE FEED
### Description
The program relies on the Pyth oracle to retrieve the current USD prices of JLP and USDC tokens. However, the maximum age for the price feed update is currently set to 120,000 seconds (approximately 33.3 hours). If prices become outdated, such as during a Pyth oracle... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 compiler
### Description
The current contract in scope has an unlocked compiler `^0.8.21`. To ensure stability, it's important that contracts be deployed with the same compiler version and flags used during development and testing. Locking the pragma helps to ensure that contracts do not accide... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 INITIALIZATION OF UINT VARIABLES TO 0
### Description
As the variable is a `uint`, it is already initialized to 0. For example, `uint256 i = 0` reassigns the 0 to `i`, which wastes gas.
Code Location
-------------
`GTokenOpenPnlFeed.sol`
* Line 197: `for(uint i = 0; i < reqToResetCount; i++)`
* Li... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | false | false | ## Gas: Reentrancy guard and nonReentrant modifier not required.
### Description
The contract ``Escrow.sol`` uses reentrancy guard contract and nonReentrant modifier to not allow someone to reenter into the same function twice but it is not required as ``inState`` modifier ensures that a function can only be called by... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Change for loop behavior by removing add (+1) and ++x is more gas efficient
### Description
`test_Buy() (gas: -105 (-0.035%))`
`test_Buy() (gas: -97 (-0.025%))` and `test_LPDA() (gas: -210 (-0.030%))`
`test_Buy() (gas: -102 (-0.034%))` | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | overflow | false | false | ## Low: [06] Recommendations/how to fix
### Description
1. **Domain Checking**: The library must revert for `\(x \le 0\)`, as `\(\ln(x)\)` is not defined in that region.
2. **Recursive Behavior**: The internal call to `ln(...)` for reciprocals can lead to deep recursion unless the input range is carefully controlled.
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [14] CONSTANTS CAN BE USED INSTEAD OF MAGIC NUMBERS
### Description
To improve readability and maintainability, a constant can be used instead of the magic number. Please consider replacing the magic numbers, such as `16`, used in the following code with constants: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | access-control | true | true | ## Security Assessment of Atlendis Labs Protocol
## Difficulty
**High**
## Type
**Timing**
## Target
**Managed.sol**
## Description
The Atlendis Labs protocol uses role-based access control to manage permissions and privileges. The manager of the roles is responsible for granting and revoking roles; if necessary, t... | TrailOfBits | 5 | Atlendis Labs Loan Products |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Repository.setLiquidationThreshold()` can unexpectedly change the global `defaultConfig.liquidationThreshold` when setting an isolated threshold for a specific asset.
### Description
When changing the threshold for a specific asset, the threshold for all default tokens may also change in a way that is unfa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Non-Comprehensive Test Suite
### Description
The current test suite does not cover all the functionality in the `BalancerMetaPoolStrategy`.
* There are no tests for [`deposit`](https://github.com/OriginProtocol/origin-dollar/blob/eb11498c376b65696c90981757221b076d6226aa/contracts/contracts/strategies/bala... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | token | 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 are 9 instances of this issue:*
https://github.com/code-423n4/2022-08-frax/blob/c4189a3a98b38c8c962c5ea72f1a322fbc2ae45f/src/contracts/FraxlendPairDeployer.sol#L130
ht... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: ANDROID - CERTIFICATE PINNING BYPASS
### Description
Certificate pinning is a security measure that binds a mobile app to a specific X.509 certificate or public key for backend communication, rather than relying on certificates from any trusted certificate authority (CA). This reduces the risk of man-in-the-mi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Line Length
### Description
Max line length must be no more than 120 but many lines are extended past this length.
### Recommendation
Consider cutting down the line length below 120. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `RCFactory.createMarket()` does not enforce `_timestamps` and `_timestamps` being larger than `_timestamps`, even though proper functioning requires them to be so
### Description
_Submitted by [jvaqa](https://twitter.com/jvaqa), also found by [0xRajeev](https://twitter.com/0xRajeev), [paulius.eth](https://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 | high | rounding | true | false | ## High: `YearnVault.sol#pull()` will most certainly fail
### Description
_Submitted by WatchPug_
The actual token withdrew from `yToken.withdraw()` will most certainly be less than the `tokenAmounts[i]`, due to precision loss in the calculation of `yTokenAmount`.
As a result, `IERC20(_vaultTokens[i]).safeTransfer(... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | gas | other | true | false | ## Gas: Function `withdrawStake()` can be more optimized (Save 443 Gas on average)
### Description
| | Min | Max | Avg | |
| ------ | ------ | ------ | ------ | --- |
| Before | 104389 | 121489 | 110093 | |
| After | 103946 | 121046 | 109650 | |
| | | | | |
**Similar to the previous explanations with so... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: calculateMaxLong 's algorithm does not try to find the max long position accurately
### Description
The current approach to estimate the max long uses some heuristic guesses. There are no explanations as to why these heuristics might work. Writing down the formulas, one can see that the initial guess and the s... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | true | false | ## Medium: No Checks on LST Price Oracles
### Description
No checks are performed on Liquid Staking Token (LST) rates returned by LST price oracles.
### Recommendation
The development team has mitigated the issue regarding rate manipulation by placing guards on the rate of change of the rsETH price in `LRTOracle.sol`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Incorrect Check in `_reorderChunk`
### Description
The `_reorderChunk` function in the contract is designed to allow the reordering of chunks from one index to another. However, due to a problematic conditional check, the function prematurely exits without performing the reorder when the `indexTo_` specified 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... | cyfrin_structured | low | token | true | false | ## Low: Users can select higher-value NFTs by delaying prize claims
### Description
When a user wins, the contract only tracks that they have won a specific `prizeID` in [`Spin::_fulfillRandomness`](https://github.com/Consensys/linea-hub/blob/295344925ec4321265f7cbac174fcf903b529a4e/contracts/src/Spin.sol#L576-L592):
... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 | flash-loan | true | false | ## Low: Using a single pool creates one-sided risk and reduces rebalancing efficiency
### Description
### Proof of Concept
Take a look at
As seen, the `LamboRebalanceOnUniwap` contract is hardcoded to use a single Uniswap V3 pool with a fixed fee tier for all rebalancing operations. This design however has several... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Violations of Solidity Style Guide Conventions - typos.
### Description
**Description**
3. A typo in the case of a reverted transaction
ChainportMain Bridge:closePreRelease() has require that checks amount for a specific nonce is correct and in case of falling this statement error says: "Amount is correct" 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 | low | other | false | false | ## Low: [L-04]
### Description
[L-04] addSupportedToken() allows zero fees to be set, but changeFee() doesn’t
Line References
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/token/TokenManager.sol#L49-L53
https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/token/TokenMa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect usage of Pyth price data without considering confidence interval
### Description
The `create_order` function is responsible for creating a new order in the program. It performs several critical tasks, including:
* Validating the stability of the USDC price obtained from the Pyth Network.
* Ensuring ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Inconsistent Native Value Handling in LegacyRecoveryPlugin
### Description
The `LegacyRecoveryPlugin.lrResetGuardianVoting` function is marked as `payable`, indicating it expects to receive native value. However, the `LegacyRecoveryPlugin.lrPropose` and `LegacyRecoveryPlugin.lrConfirm` functions do not support... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | liquidation | true | false | ## Low: Liquidity Branches will likely use the Redistribution due to 20% vs 5% premium
### Description
**Impact**
The difference in premium seems way too high, this can lead to scenarios in which, for low liquidity branches, whales remove bold from the stability pool as a means to trigger a redistribution
This is 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 | other | false | false | ## Low: CrownyVesting __getJunctureIndex contains a loop with an unrestricted amount of iterations
### Description
**Description**
__getJunctureIndex function contains an iteration through junctures and there aren’t any
restrictions on the length of junctures so the gas consumption of this function can be hard to
pre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flawed Liquidation Design
### Description
## Vulnerability Report
The current `checkUnstakeParam` inadequately prevents contracts from accessing the liquidation feature. An attacker may deploy a contract to manipulate prices on the Uniswap V3 pool. Subsequently, they may deploy another contract to access the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | signature | true | false | ## Low: Signatures Have No Deadline and Cannot Be Cancelled
### Description
The lack of a deadline or inability to be cancelled exists in the following contracts:
- `UniswapNFTManager.sol`'s `callback()` allows using signature permit withdrawal from the NFT. The permit is, however, flawed in that it has no deadline, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | overflow | true | false | ## High: executeExchangeOrders exchanges fails to properly validate repeated
### Description
The `executeExchangeOrders` function parses orders. This function fails to properly validate repeated exchanges when it is executed. The `executeExchangeOrders` function is shown in Figure 1. This function parses, validates, ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Malicious Creator can steal from collectors upon minting with a custom NFT contract
### Description
_Submitted by joestakey, also found by byndooa_
In the case of a fixed price sale where `nftContract` is a custom NFT contract that adheres to `INFTDropCollectionMint`, a malicious creator can set a maliciou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: DAO or lsdn owner can steal funds from node runner
### Description
DAO or LSD network owner can swap node runner of the smart contract to their own eoa, allowing them to withdrawETH or claim rewards from node runner.
### Proof of Concept
There are no checks done when swapping the node runner whether 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 | low | liquidation | false | false | ## Low: It Is Possible to Call poolCollateral for a Disabled Token
### Description
The users of the [`CollateralVault`](https://github.com/AmperaFoundation/sol-contracts/blob/c6e940c12044c8994f778c978e34582449229df8/contracts/CollateralVault.sol#L34-L957) contract can only interact with certain [whitelisted](https://g... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | false | false | ## Medium: Improper Calls to `onERC721Received()` Will Result in Lost Nfts
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `7ef86ce5f4a487cbeecbfab93c079186023f0ea2`. The client provided the following explanation:
> If data length is incorrect, throw `InvalidParameter` error, so the supplied... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `Basket.sol#auctionBurn` calculates `ibRatio` wrong
### Description
_Submitted by 0x0x0x_
The function is implemented as follows:
function auctionBurn(uint256 amount) onlyAuction nonReentrant external override {
uint256 startSupply = totalSupply();
handleFees(startSupply);
_burn(msg.sender, amount... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | access-control | false | false | ## Low: swETH Minter Cannot Be Altered Once Set
### Description
The swETH token has a minter role that is set on construction. Only this address is able to mint swETH and this role is handled by the swNFT.sol contract. Minting or burning swETH will become impossible if the swNFT ever has to change address. A new swETH... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Visibility not set
### Description
Visibility is not set:
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/core/ContractsRegister.sol#L16
https://github.com/Gearbox-protocol/gearbox-contracts/blob/0ac33ba87212ce056ac6b6357ad74161d417158a/contracts/co... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | high | reentrancy | true | true | ## High: Incorrect `owner` passed to `Manager::redeem` in YToken withdrawal flow
### Description
YieldFi’s yield tokens (`YTokens`) implement a more complex withdrawal mechanism than a standard ERC-4626 vault. Instead of executing withdrawals immediately, they defer them to a central `Manager` contract, which queues 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: `VoterID` token can be minted to the zero address
### Description
`VoterID` tokens can be minted to the zero address in `VoterID#createIdentityFor`.
[`VoterID#createIdentityFor`](https://github.com/code-423n4/2022-05-factorydao/blob/e22a562c01c533b8765229387894cc0cb9bed116/contracts/VoterID.sol#L122-L147)
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... | solodit_api | medium | Blacklisted | true | false | **Description:** In [`PerpetualBond::_update`](https://github.com/YieldFiLabs/contracts/blob/40caad6c60625d750cc5c3a5a7df92b96a93a2fb/contracts/core/PerpetualBond.sol#L508-L510), the line intended to restrict transfers between non-blacklisted users is currently commented out:
```solidity
function _update(address from,... | Cyfrin | 3 | Yieldfi |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proposals Can Be Reused To Add Pools
### Description
Pool proposals are not being deleted after a pool is added. As a result, old proposals can be reused to add the pool without requiring a new proposal.
Adding a pool requires a new proposal, and the proposal delay period must lapse before it can be executed... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [N‑03] Lint
### Description
Wrong indentation:
Don't use extra parenthesis:
Missed space:
Remove space: | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing Input Validation
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `5ba9e24e8cb504b66e040e7a4d10858f53c83ac7`. The client provided the following explanation: There are multiple sub points in [NFTY-11](https://certificate.quantstamp.com/full/nifty-apes-seller-financing/edbc671f-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 | false | false | ## Low: Concerns
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `d70ee54634af4466feec4a1d7c9716628f60290e`, `c5febb2ad9f3278236f04829aba400e034c8d837`. The client provided the following explanation:
> Modified as recommended together with [Solv-2](https://certificate.quantstamp.com/full/sol... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: Improper Constraint Checks
### Description
## Code Constraints Validation
The constraints on `owner_project_first_account` and `owner_project_second_account` in the `withdraw_rewards` instruction don’t validate that the accounts have `owner.key()` as the owner. The constraints on `admin_project_first_account`... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: MERKLE.insert does not return the updated tree leaf count
### Description
The NatSpec comment for `insert` is:
* `@return uint256 Updated count (number of nodes in the tree).`
However, this is not accurate. If the updated count is \(2k(2n + 1)\) where \(k, n \in \mathbb{N} [0]\), then the return value would... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Centralization Risk Due to Overpowered Owner
### Description
**Severity**: Medium
**Status**: Acknowledged
**Description**
The `AdvancedOrderEngine` smart contract grants significant control to the contract owner through several `onlyOwner` functions. This centralization poses a risk as it places conside... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Config param sanity check
### Description
**Severity**: Low
**Status**: Acknowledged
**Description**
In contract LzApp.sol, in the function setTrustedRemote, there’s no sanity check for the _srcAddress parameter. This can generate a wrong assignment even if the route can only be accessed by the owner of the... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | token | true | false | ## Medium: Tokens with a fee-on-transfer mechanism will break the protocol
### Description
**Impact:**
High, as some users will lose value
**Likelihood:**
Low, as such tokens are not common
**Description**
The ERC20 logic in all crowd sale contracts as well as in `TimelockedToken` is incompatible with tokens that 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 | low | access-control | false | false | ## Low: Token Purchase Behaviour Subject to Single Point of Failure
### Description
Currently, there are no access control restrictions on token creation; therefore, any user can be the owner of a `Token1155` or `TokenCollectibles721` contract. The expectation from the testing team, based on information provided by 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 | medium | token | false | false | ## Medium: User can bypass `entryFee` by sending arbitrary `calldata` to ParaSwap operator
### Description
_Submitted by 0xDjango_
[NestedFactory.sol#L466](https://github.com/code-423n4/2022-06-nested/blob/b4a153c943d54755711a2f7b80cbbf3a5bb49d76/contracts/NestedFactory.sol#L466)
[ParaswapOperator.sol#L34](https://gi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | cyfrin_structured | low | signature | true | false | ## Low: Asynchronous VRF request fulfillment uses stale or incorrect parameters due to lack of request-specific data tracking
### Description
The `SpinGame` contract has a critical architectural flaw in how it handles asynchronous VRF requests. The contract stores user boost values and prize configurations globally ra... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | false | false | ## Low: `WormholeTransceiver` EVM chain IDs storage cannot be updated
### Description
In the unlikely but possible scenario in which a registered EVM-compatible chain diverges as the result of an upgrade, the existing implementation of [`WormholeTransceiverState::setIsWormholeEvmChain`](https://github.com/wormhole-fou... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Paymaster will unexpectedly revert on 64-byte ECDSA short-sigs
### Description
The Paymaster contract appears to signal intent for supporting both 64-byte and 65-byte signatures, as is apparent with the require statement which supports both lengths being passed. It specifically includes the require, so any 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 | low | liquidation | false | false | ## Low: [NO ISSUE] Validation of `_debtFloor` in `CollateralPoolConfig`
### Description
In the function [`setDebtFloor`](https://github.com/Into-the-Fathom/fathom-stablecoin-smart-contracts/tree/3768c87367d286ae0e82f444b2f9d760417b507e/contracts/main/stablecoin-core/config/CollateralPoolConfig.sol#L118 "/contracts/mai... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Issuance premium calculation may be inaccurate for view functions
### Description
The `issuancePremium()` function in `BasketHandler` assumes that `refresh()` has been called on the collateral token in the current block. If this assumption is not met, it returns `FIX_ONE` instead of calculating the actual prem... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: If a token's oracle goes down or price falls to zero, liquidations will be frozen
### Description
In some extreme cases, oracles can be taken offline or token prices can fall to zero. In these cases, liquidations will be frozen (all calls will revert) for any debt holders holding this token, even though 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 | cross-chain | false | false | ## Low: Confusing variable name
### Description
At the line https://github.com/aave/governance-crosschain-bridges/blob/7f56e7ae63f30ba8dcd7ced6a11a34c2eb865a1d/contracts/BridgeExecutorBase.sol#L124, the function is called `getActionsSetState()`. But it is very difficult to understand when in one word there are two dif... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | rounding | false | false | ## Low: [17] Consider replacing decimal multiplier with `ether` keyword
### Description
Since ether contains 18 decimals it is possible to use the `ether` keyword when describing NRN values. It is shorter and conveys the amount just as well.
Example:
A simple string replace will update all instances correctly, with... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | initialization | false | false | ## Low: Missing zero address validation for _token0 in AdaswapPair initialize.
### Description
**Description**
Missing zero address validation of_token0.
Location:
./core/contracts/AdaswapPair.sol #55
**Recommendation**
Add zero address validation for `_token0` parameter in `initialize` function.
**Re-audit commen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Misleading NatSpec comment
### Description
**Description**
In Commitments.sol contracts for function insertLeaves() provided misleading comments in
lines 138-142. In section @notice and @dev descriptions in not valid for the functionality.
**Recommendation**:
Consider fixing the comment. | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Proxy Design Inconsistencies
### Description
1. The feature to pause/unpause the contract is available in the proxy, however, via the inherited `isAdmin` modifier the functions still delegate calls to the implementation, if the caller is *not the Admin* and the system is not paused. This can produce unintended... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Likely mistake in roles allowed to mint()
### Description
At FantiumMinterV1 function mint() has the following lines:
```
// sender must be KYCed or Admin or Manager
if (
!hasRole(PLATFORM_MANAGER_ROLE, msg.sender) ||
!hasRole(DEFAULT_ADMIN_ROLE, msg.sender)
) {
require(isAddressKYCed(msg.sender)... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Optimism Portal can run out of gas due to incorrect overhead estimation
### Description
In contrast to `CrossDomainMessenger` which has a 5k gas buffer, the Optimism Portal doesn't, meaning all its relayed calls will have 5k+ less gas than intended.
This forces integrations (e.g. Bridges) to spend more gas... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Consider adding address(this) balance to ignored supply in ESynth
### Description
ESynth is designed to function as follows:
1. The owner mints tokens to `address(this)` and then deposits them into `EVault` via the `allocate` function.
2. A user can withdraw tokens using `deallocate()` and subsequently burn 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 | overflow | true | false | ## Medium: Users are charged too much `exitFee` in `UpliftOnlyExample::onAfterRemoveLiquidity` function when `localData.lpTokenDepositValueChange > 0` and can cause underflow error if `lpTokenDepositValueChange` increase too much.
### Description
Users are charged too much `exitFee` in `UpliftOnlyExample::onAfterRemov... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol reported: liquidity mining layer doesn 't increase the length of the balanceChanges array during special Withdrawal
### Description
During a special withdrawal, the liquidity mining layer doesn't increase the length of the `balanceChanges` array properly.
Let's see an example:
- The connector sup... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | oracle | false | false | ## Medium: Reward rates can be changed through flash borrows
### Description
The rewards per market are proportional to their `totalBorrows` which can be changed by a large holder who deposits lots of collateral, takes out a huge borrow in the market, updates the rewards, and then unwinds the position.
They'll only pa... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [07] `forceTransfer` function implementation deviates from technical specification
### Description
The `ERC20AdminUpgradeable::forceTransfer()` function does not implement the functionality as specified in the technical documentation.
While the specification states (beyond other conditions):
1. `Sender not 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 | high | other | true | false | ## High: Genes are overrideable
### Description
The function `gene()` can be called any time to change the gene implementation. Furthermore, child accounts can change their own genes at will. Hence, there is no difference between a TBA leaving their gene unset and passing whichever implementation it prefers when minti... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 | rounding | true | true |
Library has “mantissa size auto-scaling” rule to achieve the following:
> In other words, the library down scales the size of the mantissa to make sure it is as gas efficient as possible, but it up scales to make sure it keeps a minimum level of precision. The library prioritizes precision over gas efficiency.
Howe... | Code4rena | 5 | Forte |
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Interest May Not Compound
### Description
When calculating interest in [`CToken.accrueInterest()`](https://github.com/compound-finance/compound-protocol/blob/f385d71983ae5c5799faae9b2dfea43e5cf75262/contracts/CToken.sol#L597), simple interest is applied over the blocks since the last update. This will under... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Simplify checks to fail faster and remove negation operator on final boolean result
### Description
**Description:** Many checks in the code use a pattern of:
Often these checks can be simplified with improved efficiency by re-writting to:
* use `||` instead of `&&` which makes the check fail sooner, avoidi... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Upgradability
### Description
**Update**
Acknowledged by the Sequence team:
> _"By design"_
**Description:** While upgradability is not a vulnerability in itself, contract users should be aware that the contracts can be upgraded at any given time by their owner. This audit does not guarantee the behavior of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Additional checks are required for function setWithdrawSigner() at RaiinmakerCampaignVault.sol
### Description
**Description**
There is no verification for the zero address for the _withdrawSigner.
**Recommendation**:
Add additional check:
require(account != address(0), "Wrong signer address"); | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | reentrancy | true | false | ## High: Users Could Experience Fund Loss Due To `Front-Running` When Multiple Fee Tiers Are Present During Deposit Process
### Description
The `deposit()` function essentially allows users to deposit `token0` and `token1` into the Enigma pool, receive shares in return, and add liquidity to the Uniswap V3 pools based ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Unused ETH is not refunded when a limit price is set
### Description
`Router.sol#L90-L91`
### Impact
Users may lose a portion of ETH when setting a limit price and selling ETH.
### Proof of Concept
The Router contract (`Router.sol#L18`) is a higher level contract that will be used by the majority of ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Correcting the require statements to be more precise
### Description
**Description**
Since the transactions would fail if the require condition is not satisfied, So it is recommended
to add a statement which justifies the reason for failing of the transaction.
**Recommendation**:
1) In IXSVestedDistribution... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [04] The current `pricefeed.sol` could become completely unavailable
### Description
https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/PriceFeed.sol#L28-L33
https://github.com/code-423n4/2024-05-predy/blob/a9246db5f874a91fb71c296aac6a66902289306a/src/PriceFeed.sol#... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | low | other | true | false | ## Low: Unclear handling of unexpected machine state transitions
### Description
The OSP Machine contract does not handle unexpected state transitions when executing a single opcode in a consistent manner. In some cases (such as when `setPc` is called), the machine enters an errored state when an unexpected value 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 | high | initialization | false | false | ## High: uint(-1) index for not found
### Description
Functions `getTokenConfigBySymbolHash`, `getTokenConfigByCToken` and `getTokenConfigByUnderlying` check returned index against max uint:
index != uint(-1)
-1 should indicate that the index is not found, however, a default value for an uninitialized uint is 0, so i... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | medium | initialization | false | false | ## Medium: Frontrunners can corrupt the initialization of the TimeLock and BerachainGovernance contracts
### Description
The deployment process implemented in `DeployGovernance.s.sol` begins with two transactions (see `DeployGovernance.s.sol#L39-L44`) that deploy the corresponding implementation and proxy contracts fo... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc... | skyward_49k | high | oracle | false | false | ## High: Incorrect Accrual Of `sumNative` and `sumUSD` In Producing Consultation Results
### Description
_Submitted by leastwood_
#### Impact
The `TwapOracle.consult()` function iterates over all token pairs which belong to either `VADER` or USDV\` and then calculates the price of the respective asset by using both ... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `BytesUtil.compare` returns wrong result on some strings longer than 32 characters
### Description
[BytesUtils.sol#L66-L70](https://github.com/code-423n4/2022-07-ens/blob/ff6e59b9415d0ead7daf31c2ed06e86d9061ae22/contracts/dnssec-oracle/BytesUtils.sol#L66-L70)
Due to incorrect condition in `ByteUtil.compare... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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 away `liquidatedCollateralUsdX18` variable from `LiquidationBranch::liquidateAccounts`
### Description
The `liquidatedCollateralUsdX18` variable is used to store the return value of `TradingAccount::deductAccountMargin`, then the only other use is to assign it to `ctx.liquidatedCollateralUsdX18`.
Hen... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: `JBXBuybackDelegate` deployer should decide if held fees should be refunded
### Description
When minting of tokens is done, via `JBXBuybackDelegate::_mint`, ETH is sent back to the terminal via a call to `addToBalanceOf`.
There are 2 versions of `addToBalanceOf`. One that [accepts a flag `_shouldRefundHeldFee... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Usage of the transfer function can lead to unexpected future behavior
### Description
**Update**
Marked as "Fixed" by the client. Addressed in: `644f30adce7ee1c151c7b1a224693569f1cfc9c6`.
**File(s) affected:**`src/ETHVault.sol`
**Description:** Relying on `address.transfer()` in Solidity for a reentrancy-fre... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lines are too long
### Description
Usually lines in source code are limited to [80](https://softwareengineering.stackexchange.com/questions/148677/why-is-80-characters-the-standard-limit-for-code-width) characters. Today's screens are much larger so it's reasonable to stretch this in some cases. Since the file... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Close active pools via `resolveAuctionWithoutGoverment`
### Description
In commit 68820cb61c8e3fa1714be0aca161d9916c8ac9d3 `resolveAuctionWithoutGoverment` is called without a pool and time filtering. These checks can be passed by the user (https://github.com/clearpool-finance/permissionless-protocol/blob/688... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Operator admin key can mint (and thus withdraw) arbitrary funds
### Description
## Rollup Validity Check Issue
**Context:** rollup.rs#L189
**Description:**
There is no validity check or way to challenge a bad deposit (showing it doesn't exist). Rather, the process of challenging (as described in the des... | 0 | ||
[
{
"role": "system",
"content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Move “Magic numbers” to constants
### Description
**Description**
PontoonTokenVesting.sol, line 116, 117, 120, 129, 130, 133, 142, 151, 154, 159, 161, 169, 321,
355, 449, 470
A lot of contract’s central constants are kept as “magic numbers”. For example:
- the accuracy (10000)
- the percent per team and per r... | 0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.