prompt
listlengths
2
2
source
stringclasses
3 values
severity
stringclasses
5 values
category
stringclasses
186 values
has_code
bool
2 classes
has_poc
bool
2 classes
reference_response
stringlengths
23
5k
firm
stringclasses
26 values
quality_score
float64
0
5
protocol
stringclasses
398 values
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Discrepancy Between the Documentation and Actual Implementation ### Description The project implementation deviates from its documentation for the following reasons: - The `_mintCheck()` function does not verify that the user has enough funds to cover the minting cost. - The `withdraw()` function does not ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
overflow
true
false
## Low: Possible denial of service for bridges when high limits are set ### Description When using Solidity versions `0.8.0` and above, the compiler natively handles overflows and underflows by reverting the transaction if these issues occur. In the `XERC20` contract, specifically in the `_getCurrentLimit()` function,...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
false
false
## High: Users can get their Kerosene stuck until TVL becomes greater than Dyad's supply ### Description The protocol expects users to migrate their collateral from V1 vaults to V2 vaults, this significantly increases the TVL of the protocol's V2. At the same time, the Kerosene price depends on the TVL, in `UnboundedK...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sensitive mobile settings are stored unsecurely ### Description Settings for the mobile application are stored in plaintext. This allows an attacker with access to an authenticated phone to dump the shared secret and other sensitive information, potentially leading to the loss of funds. ```kotlin val setti...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Declare `immutable` as `private` to save gas ### Description Using `private` instead of `public` for immutables saves gas. The compiler doesn't need to create non-payable getter functions for deployment calldata, store the bytes of the value outside of where it's used, or add another entry to the method ID tab...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Use named constants instead of hard-coded literals for important values ### Description **Description:** Use named constants instead of hard-coded literals for important values: **Securitize:** Acknowledged.
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Claim airdrop repeatedly ### Description _Submitted by gpersoon, also found by elprofesor, fr0zn, and pauliax_ #### Impact Suppose someone claims the last part of his airdrop via `claimExact()` of `AirdropDistribution.sol` Then `airdrop\[msg.sender].amount` will be set to 0. Suppose you then call validate(...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
initialization
true
true
Source: https://github.com/sherlock-audit/2023-10-aloe-judging/issues/40 ## Found by roguereddwarf This issue deals with how the `Oracle.consult` function can be provided with a malicious `seed` such as to return wrong results. This is a complex issue that requires multiple steps to be executed in order to set up...
Sherlock
4.5
Aloe
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: No SPDX-License-Identifier found in: CommunityVault.sol ### Description **Description** Trust in smart contracts can be better established if their source code is available. Since making source code available always touches on legal problems with regards to copyright, the Solidity compiler encourages the use ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: Unnecessary Explicit Initialization of Local Variables ### Description Within the `registerPlayer` function, the code explicitly initializes local variables to their default values: ```solidity address referrer = address(0); uint256 points = 0; ``` Since Solidity automatically zero-initializes local variable...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Add sanity check that `totalWeight` equals 100% in `PerpRewardDistributor` ### Description You perform this check in all places except `constructor()` in `PerpRewardDistributor` on adding the initial `rewardToken`
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Missed token ### Description At the line: https://github.com/andy8052/yveCRV-vault/blob/6706b9ad45e71ee9014454419f229adfa6409f1d/contracts/Strategy.sol#L266-L277 The function `protectedTokens()` is used for removing tokens from this Strategy that are not the type of tokens managed by this Strategy. This may...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Medium: Inline assembly is used to validate external contract calls ### Description In the **ERC20Wrapper** library, external function calls are made to an arbitrary address implementing the standard **ERC20** interface. The **checkSuccess** function uses inline assembly to test the **returndata** from the function...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: IPOrders with upfront points program rewards cannot be filled ### Description When filling IP orders with an upfront reward style (RecipeOrderbook.sol#L476), the reward token is assumed to be an ERC20 token; everywhere else in the codebase, a check is done to see if the token is actually a points program. Sk...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing checks for array indexes ### Description The issue is identified within the contract `Prestaking`. There are multiple functions that accept `stakingWalletNumber` as a parameter, but don't check whether it exists in the `stakingWallets` array. This issue is present in the [`getStakingWalletBeneficiary`]...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
initialization
true
true
## High: market.apr is calculated incorrectly for every swap 's execution ### Description ## TermMax Vulnerability Report ## Context (No context files were provided by the reviewer) ## Relevant Context TermMax facilitates lending and borrowing between parties by creating a two-token system and an AMM between these: ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [17] Verify the receiver chain is supported in `ProcessZRC20WithdrawalEvent` ### Description I would recommend to verify the receiver chain is supported in `ProcessZRC20WithdrawalEvent`. I understand that the condition is mostly redundant in the moment as that would require `foreignCoin.ForeignChainId` to be i...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
true
false
## Low: Bugged `erc7579-implementation` commit imported ### Description **Description:** Currently, the codebase imports the `erc7579-implementation` external repository at commit `42aa538397138e0858bae09d1bd1a1921aa24b8c `to use the `ExecutionHelper`. This import is used inside the `DelegationMetaSwapAdapter` to impl...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
oracle
false
false
## Low: Missing Docstrings ### Description Throughout the [codebase](https://github.com/Ion-Protocol/ion-protocol/tree/5333fe3c49d8de302e93f097a836e5c1b5090f2d/), there are several parts that do not have docstrings: * [Lines 4-9](https://github.com/Ion-Protocol/ion-protocol/blob/5333fe3c49d8de302e93f097a836e5c1b5090...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Sponsors can delay liquidations ### Description Any under-collateralized sponsor can delay liquidation attempts by [transferring their position](https://github.com/UMAprotocol/protocol/blob/e6eaa48124ae3f209fb117cf05eb18292cf26d21/core/contracts/financial-templates/implementation/PricelessPositionManager.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
high
rounding
false
false
## High: Unstaking does not update the mapping `sETHUserClaimForKnot` ### Description If a user stakes some sETH, and after some time decides to unstake some amount of sETH, later s/he will not be qualified or be less qualified to claim ETH on the remaining staked sETH. ### Proof of Concept Suppose Alice stakes 5 sE...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Missing Validation for Zero `success_percentage` in DAO Creation ### Description **Update** The team addressed in: `a429b0c9ce78be9294a27934e1a184261b88917a`, `2255f30c7f9559ce225b407c26f6d816325d78f3`with the following explanation: > Second commit (2255f30c7f9559ce225b407c26f6d816325d78f3) contains 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...
skyward_49k
low
other
false
false
## Low: Usage of `selfdestruct` Can Deny Servicing of `UpdateManager.payFastLane()` ### Description **Update** Marked as "Fixed" by the client. Addressed in: `3ddf2e26297b00493437c51e99f0a129850522f3`; review2 branch. Now, there is a flag toggling whether there was a fee deposited directly through `payFastLane()`. If...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
gas
other
false
false
## Gas: `_getUtility` calculates the same value twice ### Description Cache results of `-bQuad*MULTIPLIER`, `disc*MULTIPLIER` and `aQuad.mul(two).muli(MULTIPLIER)` to not calculate it twice. **[viraj124 (Shell) acknowledged](https://github.com/code-423n4/2023-08-shell-findings/issues/120#issuecomment-1704643561)** *...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: CACHE ARRAY LENGTH IN FOR LOOPS CAN SAVE GAS ### Description Reading the length of the array at each iteration of the loop requires 6 gas (3 for `mload` and 3 to place `memory_offset`) onto the stack. Caching the length of the array on the stack saves about 3 gas per iteration. Code Location ------------- ##...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Loss of user locked voting tokens due to unsafe downcast overflow ### Description **Description:** `TokenLocker::AccountData` [stores](https://github.com/Bima-Labs/bima-v1-core/blob/09461f0d22556e810295b12a6d7bc5c0efec4627/contracts/dao/TokenLocker.sol#L41-L49) the account's current `locked`, `unlocked` and...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
initialization
true
false
## Low: [8] contracts/FETH.sol (Out of Scope) ### Description In `constructor` instead of passing `_lockupDuration` pass `_lockupInterval` to save on the exact division check. So taking that into consideration the `constructor` would look like this: Also, the `_lockupInterval` check is moved up before the assignme...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: authAllowedForToken() returns prematurely in certain scenarios causing an authentication DoS ### Description Tokens listed on Nifty or Foundation (therefore returning a valid `niftyRegistry` or `foundationTreasury`) where the `proposedAuthAddress` is not a valid Nifty sender or a valid Foundation Treasury 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: Possible incorrect price for tokens in Balancer stable pool due to amplification parameter update ### Description Incorrect price calculation of tokens in StablePools if amplification factor is being updated ### Impact In case the amplification parameter of a pool is being updated by the admin, wrong price...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Syscall pointer type parameters missing address range check ### Description **Severity:** Low **Path:** zkvm/src/host/server/exec/syscall.rs **Description:** Risc0’s syscalls (`SysGetenv`, `SysLog`, `SysPanic`, `SysSliceIo`, `PosixIo’s` `sys_write`) read a buffer from the memory via `buf_ptr` and `buf_len` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Potential overwriting of auction storage leading to loss of auctioned tokens ### Description The `ApiologyDAOAuctionHouse` contract utilizes random numbers generated by the Pyth Entropy contract to create auctions for the queued tokens. When a random number is ready to use, the `ApiologyDAOAuctionHouse::entro...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
input-validation
true
false
## High: Airdrop Implementation Issues: Unvalidated Ratio and Potential Transfer Direction Mismatch ### Description The `airdrop` function is intended to convert user-earned `points` into DRVS tokens. However, the implementation has the following issues: **Issue 1: Unvalidated Ratio Parameter** The `AirdopOnChain` 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
false
false
## Low: > 0 CONSUMES MORE GAS THAN != 0 ### Description The use of `>` consumes more gas than `!=`. There are some cases where both can be used indistinctly, such as in unsigned integers where numbers can't be negative, and as such, there is only a need to check that a number is not 0. Code Location ------------- `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
false
false
## High: Incorrect Optimization ### Description ## Optimizer Overview The optimizer contains `_merge_load`, an optimization function that aims to reduce redundant load operations in the intermediate representation code by merging consecutive load operations into a single copy operation when possible. In Ethereum, 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
high
liquidation
true
false
## High: Settlement can be called when auction period isn't concluded, allowing HPB depositors to game bad debt settlements ### Description The end of auction period is included to it across the logic, but settlePoolDebt() treats the last moment as if it is beyond the period. ### Impact Pool manipulations become poss...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect value returned by position() function ### Description The [position()](https://github.com/Cyfrin/2023-12-the-standard/blob/main/contracts/LiquidationPool.sol#L88) function returns incorrect value for a user's EUROs holdings when balance of `LiquidationPoolManager.sol` contract is greater than zero. 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
high
other
true
false
## High: currentMultiplier is calculated incorrectly, causing up to 86400x discounted issuance ### Description Multiplier.sol returns a `currentMultiplier` value, which is intended to represent the multiplier up to the current second (as opposed to the tracked value, which is rounded to the latest day). The value is 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: Missing Validation for `vesting_total_duration` ### Description **Update** The team has acknowledged and decided to keep the minor issue as it is. **File(s) affected:**`locker.fc` **Description:** As stated in the file `README.md`, the `locker` contract should include a check for `vesting_total_duration > 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
dos
false
false
## Low: [14] Sentinel storage desynchronizes when `_tstoreSupport` flips ### Description ### Vulnerability details `TrailsRouterShim` writes the success sentinel via `_setTstorish`, which chooses either `sstore` or `tstore` based on `_tstoreSupport`. If the mode toggles between write and read (e.g., `TstoreMode` help...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
true
## Low: Failing test case for VerifyingPaymaster.getHash() function ### Description The `test_getHash_isCorrect` test case in `test/VerifyingPaymaster.t.sol` is failing as the hash returned by the `VerifyingPaymaster.getHash` function is not equal to the expected hash value. ### Recommendation Consider updating the 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
initialization
true
false
## Low: [04] Inconsistent event handling in `GetTxInItem` function ### Description The `GetTxInItem` function handles different event logs but has a lack of consistent handling for scenarios where multiple events of a particular type (like `transferOutEvent`) occur in the same transaction. The code contains checks for...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: If a redemption has `N` disputable shorts, it is possible to dispute `N-1` times the redemption to maximize the penalty ### Description Ditto is a decentralized CDP protocol allowing users to get stablecoins (called dUSD here) against LST (Liquid Staking Tokens like stETH or rETH) collateral. Depositing LST...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Available Assets Do Not Account For Long Positions ### Description When a short position is minted, tokens are moved from the Panoptic Pool to the AMM pool thus reducing the balance of the pool. This amount is reflected in the reduction of the available assets, thus preventing withdrawals. When a correspo...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
other
true
false
## High: The referrer receives the lowest available amount for the first purchase, even when he referred above the maximum threshold, leading to receiving fewer funds than expected. ### Description **Severity**: Critical **Status**: Acknowledged **Description** When a user purchases, let's say, 10 vaults using a 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: `GovValidators` can transfer non-transferable `GovValidatorToken` to non-validators making them validators ### Description **Description:** `GovValidators` can transfer non-transferable `GovValidatorToken` to non-validators making them validators. **Impact:** Non-transferable tokens can be transferred making ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Insufficient testing of cross-chain transfers ### Description There are no tests to validate that the LAToken can be transferred between two chains using the LayerZero OFT integration. The OFT library had to be forked and vendored to support ERC-20 permit and OpenZeppelin access control functionalities. The im...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: EXTERNAL FUNCTION CALLS WITHIN LOOP ### Description External calls inside a loop increase Gas usage or might lead to a denial-of-service attack. In `GebProxySaviourActions.sol` contract functions discovered, there is a for loop on variable `i` that iterates up to the `tokens.length` array length. Where, in `Ac...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: [10] Using spot prices directly for liquidations might be unfair for users and leaves them at risk ### Description When liquidating a position, [spot prices are used to check if indeed the position is liquidatable](https://github.com/code-423n4/2024-07-loopfi/blob/57871f64bdea450c1f04c9a53dc1a78223719164/src/C...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
cross-chain
false
false
## Medium: | Unable to Swap ETH ### Description **Description** Because the trading fee `tradingFee` is taken before `amounts` is calculated, there may not be enough BNB to deposit into the WBNB contract. Thus, the transaction will revert and the swap will fail. **Recommendation** Take the trading fee after the swa...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Riskless leverage during the grace period ### Description The grace period was designed to give users some time to increase their health. - https://github.com/aave-dao/aave-v3-origin/blob/ec60c001358ee6ddf316f79461d21f0a1c3ed7a5/src/core/contracts/protocol/libraries/logic/ValidationLogic.sol#L534-L538 But al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Flash loan with 0 fees ### Description It was observed that if Users borrow and repay in the same block, then no interest is taken and the operation is completed successfully. This behavior further helps attackers to perform more advanced attacks like sandwich attacks without financially losing much, 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
medium
other
false
false
## Medium: State Change Capability In Staticcall ### Description ## Staticcall in Ethereum Contracts `staticcall` executes code in a read-only manner. However, some precompiled contracts, which are native contracts implemented in the Ethereum protocol, contain methods that may modify the state. Executing state-changi...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Lack of timeout to resolve candidates ### Description After voting ends, there is no timeout to approve a winning candidate to change the state of the contract. A user can wait an arbitrary amount of time to do so. After the voting period ends, one of the users is expected to call a `resolveRegistration` func...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Single-asset liquidity functions allow stealing of assets ### Description Incorrect access control in the single-asset liquidity functions allows an attacker to withdraw all the assets. The Balancer whitepaper states that: > Controlled pools are configurable by a “controller” address. Only this address can 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
dos
false
false
## Low: Potential DoS Risk with Excessive Initialized Ticks ### Description Severity: Low Risk Context: GrowthOutsideUpdater.sol#L105 Description: There is a potential Denial of Service (DoS) risk if there are too many initialised ticks to iterate through, which could cause transactions to exceed the block gas limit. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
logic-error
true
false
## Low: Superfluous assignment can be removed ### Description The assignment of `newDuration` to `maxDuration` within `TimeWeightedIncentiveLogic::_earnedTimeWeigthed` when it exceeds this value can be removed as this case is handled in the subsequent conditional block and so is effectively a no-op. ### Recommendatio...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Improper implementation of the `PositionMarginProcess.updatePositionFromBalanceMargin()` function. ### Description The updates to position values are not based on the current price of the `marginToken`. ### Impact Users can update their positions' `initialMarginInUsdFromBalance` values using a price higher t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Rewards can be lost ### Description If these addresses have been set to 0, then the rewards can be lost: https://github.com/mixbytes/lido-dot-ksm/blob/76a10efa5f223c4c613f26794802b8fb9bb188e1/contracts/Lido.sol#L218 https://github.com/mixbytes/lido-dot-ksm/blob/76a10efa5f223c4c613f26794802b8fb9bb188e1/contr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
rounding
true
true
## Low: Use of signed SD59x18 in SablierV2LockupDynamic ### Description The `SablierV2LockupDynamic` contract uses the signed version of the SD59x18 library in contrast to the `SablierV2LockupLinear` contract which uses the more appropriate unsigned UD60x18 version. The `_calculateStreamedAmountForMultipleSegments()`...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Roles Can Be Renounced ### Description **Update** Marked as "Acknowledged" by the client. The client provided the following explanation: > Renouncing roles is intended but for our case, sensitive roles will be controlled by a multisig **Description:** The `AccessControl` contract implements the `renounceRole...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: rescueTokens can be used to withdraw any token contrary to its documented usage ### Description ```solidity /** * @notice Allows the owner to rescue tokens. Serves 2 purposes: * - Recovers various tokens accidentally sent to the contract. * - Recovers flood assets in case of emergency/bug in flood logic. *...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
access-control
false
false
## Medium: Privileges granted to accounts as `system contracts` cannot be revoked ### Description Accounts can be marked as [`isTroveManager`, `isBorrowerOperations` and `isStabilityPool`](https://github.com/Threshold-USD/dev/blob/800c6c19e44628dfda3cecaea6eedcb498bf0bf3/packages/contracts/contracts/THUSDToken.sol#L58...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
liquidation
false
false
The liquidation reward is calculated slightly differently for insolvent and solvent LoCs, resulting in a slightly lower fee percentage in the insolvent case. This small inconsistency is considered acceptable due to the special circumstances of an insolvent LoC. However, [the liquidation fee for an insolvent LoC](http...
OpenZeppelin
4
Anvil Audit
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Use < Instead of <= ### Description **Severity** - Medium **Status** - Resolved **Description** Case 1: In the function createBottomUpMsgBatch (L353 in GatewayRouterFacet.sol) we check that if we are trying to create a batch from the future and the check for that is -> This check would make the code re...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
other
true
false
## Low: Cache `signer` in `SpinGame::participate` ### Description In `SpinGame::participate`, the `signer` state variable is accessed multiple times: ```solidity address recoveredSigner = ECDSA.recover(...); if (recoveredSigner != signer || signer == address(0)) { revert SignerNotAllowed(recoveredSigner); } ``` ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: State variables should be cached in stack variables rather than re-reading them from storage ### Description The instances below point to the second access of a state variable within a function. Less obvious optimizations include having local storage variables of mappings within state variable mappings or mapp...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Last user will be unable to claim collateral gain in StabilityPool in some case ### Description The function `StabilityPool.enableCollateral()` will overwrite the old collateral index in case the collateral was sunset. This logic is present in `_overwriteCollateral()` (StabilityPool.sol#L207-L242). The pr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Deprecated or compromised pools can’t be removed ### Description **Severity**: Medium **Status**: Resolved **Description** The addNewPool function in SingleLiquidityProvider.sol allows the contract owner to add new pools by specifying a stable address and a vault. However, there is no corresponding funct...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: It might not be possible to `applyRewards()`, if an amount received is less than 0.05 eth ### Description * Upon claiming Votium rewards, `applyRewards()` is intended to be invoked bi-weekly in order to exchange the tokens for eth and put the eth received back into the strategies. Based on the current `rat...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
initialization
false
false
## Medium: Malicious user can get infinite free trial by repeatedly refund and repurchase right before the freeTrial ends ### Description _Submitted by WatchPug_ The current design/implementation allows users who are refunded before to get another `freeTrial`. This can be exploited by malicious users to get an infini...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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: Use named return variables to save at least 9 gas per variable ### Description Using [named return variables](https://x.com/DevDacian/status/1796396988659093968) saves at least 9 gas per variable; named returns are already used in some functions of the protocol but not in others: ```solidity PauseManager.sol 1...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
upgrade
true
true
## Low: Lack of Governance action to update registered emitters ### Description The Wormhole CCTP integration contract currently exposes a function [`Governance::registerEmitterAndDomain`](https://github.com/wormhole-foundation/wormhole-circle-integration/blob/f7df33b159a71b163b8b5c7e7381c0d8f193da99/evm/src/contracts...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: User can frontrun `completeGame` to finalize stake or unstake request ### Description Staking user can frontrun `Flip.completeGame()` and finalize his stake/unstake request (based on game result loss or win): ```solidity function finalizeUnstake(address token) external nonReentrant { UnstakeRequest mem...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\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
input-validation
false
false
## Low: Lack of validation checks in `PriorityPool::depositQueuedTokens` can trigger temporary delays in queued deposits ### Description `PriorityPool::depositQueuedTokens` lacks a validation check to ensure `_queueDepositMin < _queueDepositMax`. This oversight alllows a griefing attack vector where a user can call `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
medium
oracle
false
false
## Medium: Lack of slippage control on `LRTDepositPool.depositAsset` ### Description The [depositAsset](https://github.com/code-423n4/2023-11-kelp/blob/c5fdc2e62c5e1d78769f44d6e34a6fb9e40c00f0/src/LRTDepositPool.sol#L119C14-L119C26) function of the [LRTDepositPool](https://github.com/code-423n4/2023-11-kelp/blob/c5fdc...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Unused variables ### Description Several storage variables can be removed: https://github.com/cryptoalgebra/Algebra/blob/7290fad656bfa89db3743c52af631154f6a8a2d5/src/tokenomics/contracts/FarmingCenter.sol#L21 https://github.com/cryptoalgebra/Algebra/blob/7290fad656bfa89db3743c52af631154f6a8a2d5/src/tokenomics/...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: Lack of verification for the native `ETH` balance and staking balance in the `eigenPod` ### Description There is a lack of verification for the native `ETH` balance and staking balance in the `eigenPod` within the `removeNodeDelegatorContractFromQueue` function, potentially leading to the discrepancies of t...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
signature
true
false
## High: Incorrect function signature in `daoVoteGrantImplant.proposeAdvancedGrant()` `daoVetoGrantImplant.proposeAdvancedGrant()` ### Description An incorrect function signature `executeAdvancedGrant(MetaVesT.MetaVesTDetails)` is used for `abi.encodeWithSignature()` in `daoVoteGrantImplant.proposeAdvancedGrant()` and...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
access-control
true
false
## Low: Missing Event Emission at `setFeeToZero()` ### Description **Severity**: Informational **Status**: Acknowledged **Description** Event emission is a crucial practice in blockchain development for tracking and monitoring contract state changes. In this case, the setFeeToZero() function in `StableSwapPool.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: 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
low
token
false
false
## Low: compliance ### Description Although a minor problem, the `decimals` state variable should be defined with type `uint8` to be [compliant with ERC20](https://github.com/ethereum/EIPs/blob/master/EIPS/eip-20-token-standard.md#decimals). Additionally, the version of OpenZeppelin used for Enigma (1.2.0) included ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
cyfrin_structured
low
initialization
true
false
## Low: `AngstromL2::beforeInitialize` conditionals can be combined ### Description `AngstromL2::beforeInitialize` validates support for both dynamic fees and native currency within the pool key: ```solidity function beforeInitialize(address, PoolKey calldata key, uint160) external view returns (bytes4) {...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 sanity zero-address checks may lead to undesired behavior ### Description Certain logic should implement zero-address checks to avoid undesired behavior. - `verifierAddress`, `axiomHeaderVerifierAddress`, and `axiomProverAddress` implement these checks at the initializer. Nonetheless, these checks are ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
liquidation
false
false
## Medium: The protocol may end up holding collateral assets in an unwanted manner ### Description The Comet contract has an [immutable value](https://github.com/compound-finance/comet/blob/0f1221967149115f50a09681eea9580879ee7720/contracts/Comet.sol#L110) that defines the target amount of reserves of the base token. ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
reentrancy
false
false
## High: Possibility of Reentrance via vote() ### Description **Severity**: High **Status**: Resolved **Description** The vote() function of the PendleVoteManagerMainChain contract is vulnerable to a reentrance attack. This is because the _updateVoteAndCheck() function makes an external call via stakeFor() and wit...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Reentrancy Safeguards Needed In GClaimManager ### Description ## Security Vulnerability Report ## Severity **Medium Risk** ## Context **File**: GClaimManager.sol **Lines**: 77-104 ## Situation In the function `exit()` of `GClaimManager.sol`, the burning of the tokens is done at the end. This does not c...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
medium
other
false
false
## Medium: KintoID.lastMonitoredAt fails the isKYC() check for all accounts if no new monitors appear ### Description `KintoID.lastMonitoredAt` is a very risky parameter. It is reset to the current `block.timestamp` every time `monitor()` is called. If `monitor()` is not called for 7 days - all `isKYC()` checks for al...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Incorrect scaling of the spot price ### Description The incorrect scaling of the spot price leads to the incorrect spot price, which is later compared with the oracle price. If the spot price is incorrect, it might potentially fail to detect the pool has been manipulated or result in unintended reverts due 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...
cyfrin_structured
low
integer-overflow
true
false
## Low: Wrong revert reason In `onSlash` functionality ### Description In the `onSlash` function of `VaultTokenized`, the following check is used to validate the `captureEpoch` parameter: ```solidity if ((currentEpoch_ > 0 && captureEpoch < currentEpoch_ - 1) || captureEpoch > currentEpoch_) { revert Vault__Invali...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
high
overflow
false
false
## High: Attacker can forge arbitrary read value from memory in case `skip_if_legitimate_fat_ptr` ### Description Attempting to read a word that spans across the pointer bound start`+`offset should return zero bytes for the addresses. When offset `>=` length, the result should be completely zeros, so we can skip the 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
medium
front-running
true
false
## Medium: Possibility of Slippage Attacks ### Description **Severity**: Medium **Status** : Acknowledged **Description**: No slippage has been set during swapping of tokens in the function `swapTokensForEth()`. This could lead to the user being vulnerable to slippage attacks in which an attacker can manipulate ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Return values of batch operations are ignored ### Description ## Handle 0xRajeev ## Vulnerability details ## Impact Many batched operation functions return values but these are ignored by the caller batch(). While this may be acceptable for the front-end which picks up any state changes from such function...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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
overflow
true
false
## Gas: Using unchecked blocks to save gas - Increments in for loop can be unchecked ( save 30-40 gas per loop iteration) ### Description The majority of Solidity for loops increment a uint256 variable that starts at 0. These increment operations never need to be checked for over/underflow because the variable will n...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: First Deposit Can Result in Zero Shares Due to Direct Token Transfer ### Description The StakedUSH vault is vulnerable to zero share deposits when USH tokens are sent directly to the contract. Because the vault calculates shares based on totalSupply and totalAssets, a direct token transfer increases totalAsse...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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 Solidity pragma version. ### Description **Description** Currently, the contract uses Solidity ^0.8.1, which violates the standard security checklist since it is set as a float version, not fixed, and it is not the latest stable version (which is 0.8.17). Using any other Solidity version except for ...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
storage
true
false
## Low: Duplicated constants ### Description [`TypeHashDirectory`](https://github.com/horsefacts/seaport/blob/5de7302bc773d9821ba4759e47fc981680911ea0/contracts/lib/TypehashDirectory.sol#L20-L24) defines several constants, like `OneWord`, `OneWordShift`, `AlmostOneWord`, and `FreeMemoryPointerSlot` that are defined el...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Filename Validation ### Description Users may manipulate paths in web environments to traverse directories (`../` or `\..\`) and potentially access files outside of the intended directory. In `JsonToCSV::SaveAs`, if `fileName` is not properly sanitized, an attacker may craft a malicious `fileName` that include...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Multiple instances where Vault's `totalAssets()` is not properly scaled to ZAROS precision ### Description Note: there are several instances where vault's `totalAssets()` is interrogated and not properly scaled to ZAROS precision (18 decimal points, usually `UD60x18` or `UD59x18` representation). Each of thes...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each finding, output a structured block:\nFINDING | contract: <name> | function: <name> | bug_class: <CWE/category> | confidence: <0-100>\n\nThen provide:\n- desc...
skyward_49k
low
other
false
false
## Low: Parameter `privateTokenPrice` is not validated ### Description **Severity**: Low **Status**: Resolved **Description** In Contract Admin.sol, the method `_checkingParams` has validation all the fields of the Struct param except `privateTokenPrice`. It needs to be validated to make sure that it is an appropr...
0
[ { "role": "system", "content": "You are an expert smart contract security auditor. Analyze the provided Solidity code for vulnerabilities.\n\nFor each 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: Protocol fees will be sent to address(0) ifprotocolFeeRecipient is not set. ### Description Protocol fees will be sent to `address(0)` if `protocolFeeRecipient` is not set. ### Recommendation - Either add a check before `_transferFungibleTokens` to ensure fees are only sent if `protocolFeeRecipient` is not `a...
0